joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011420
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.10068c10
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
call fcn.10010370
mov dword [eax + 0x10], esi
call fcn.10010370
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
test esi, esi
je 0x10011468
call fcn.10010370
push method.DuiLib::CWindowWnd.virtual_4
push dword [eax + 4]
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [ebp + 0xc]
push 0x800
mov dword [0x100bfa80], eax
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [0x100bfa84], edi
call fcn.1006b580
add esp, 0xc
test edi, edi
je 0x100114bc
mov esi, dword [edi]
test esi, esi
je 0x100114bc
lea ecx, [esi + 4]
lea edx, [ebp - 0x804]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x100114a1
mov eax, dword [esi]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x8c8
lea eax, [ebp - 0x10cc]
push 0
push eax
call fcn.1006b580
lea eax, [ebp - 0x804]
push eax
push str._GInstaller___s_r_n
lea eax, [ebp - 0x10cc]
push 0x464
push eax
call fcn.10010c00
add esp, 0x1c
lea eax, [ebp - 0x14cc]
push 0x400
push eax
push str.GPTBROWSER_ENABLE_LOGGING
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
pop edi
pop esi
test eax, eax
je 0x10011519
lea eax, [ebp - 0x10cc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067e5d
mov esp, ebp
pop ebp
ret

Function at 0x100118f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.10010370
mov esi, dword [ebp + 0x18]
mov dword [eax + 0x10], esi
call fcn.10010370
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
test esi, esi
je 0x10011920
call fcn.10010370
push method.DuiLib::CWindowWnd.virtual_4
push dword [eax + 4]
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [ebp + 0xc]
mov dword [0x100bfa80], eax
mov eax, dword [ebp + 0x14]
mov dword [0x100bfa84], eax
call fcn.10010370
pop esi
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10011959
push 1
push 1
add ecx, 0xfffff894
call fcn.10020607
push str._GInstaller__UI_Shown
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop ebp
ret
push str._GInstaller__UI_not_found
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop ebp
ret
Function at 0x10011970
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
call fcn.10010370
mov dword [eax + 0x10], esi
call fcn.10010370
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
test esi, esi
je 0x100119aa
call fcn.10010370
push method.DuiLib::CWindowWnd.virtual_4
push dword [eax + 4]
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [ebp + 0xc]
mov dword [0x100bfa80], eax
mov dword [0x100bfa84], edi
call fcn.10069be8
push 0
push 0x989680
push edx
push eax
call fcn.10068c40
mov edi, edx
lea ecx, [esp + 8]
mov esi, eax
push edi
push esi
call fcn.1000a9f0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x100119e5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1c]
cmp ecx, 8
jb 0x10011a28
mov edx, dword [esp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10011a1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10011ab7
push ecx
push edx
call fcn.10067e6b
add esp, 8
push edi
push esi
lea ecx, [esp + 0x10]
call fcn.1000a9f0
mov edi, eax
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x10011a40
mov edi, dword [edi]
cmp dword [0x100bfa84], 0
je 0x10011a79
mov eax, dword [0x100bfa80]
add eax, 8
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [0x100bfa80]
mov esi, eax
push edi
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [0x100bfa84]
mov ecx, dword [edx]
mov dword [esi], ecx
mov dword [edx], esi
mov ecx, dword [esp + 0x1c]
cmp ecx, 8
jb 0x10011ab1
mov edx, dword [esp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10011aa7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10011abc
push ecx
push edx
call fcn.10067e6b
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1006f170
call fcn.1006f170
int3

Function at 0x10011c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x100bc0b0]
xor eax, esp
mov dword [esp + 8], eax
push esi
mov esi, dword [ebp + 0x18]
call fcn.10010370
mov dword [eax + 0x10], esi
call fcn.10010370
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
test esi, esi
je 0x10011c61
call fcn.10010370
push method.DuiLib::CWindowWnd.virtual_4
push dword [eax + 4]
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [ebp + 0xc]
mov dword [0x100bfa80], eax
mov eax, dword [ebp + 0x14]
mov dword [0x100bfa84], eax
call fcn.10010c80
push 4
mov esi, eax
call fcn.1006809e
add esp, 4
lea ecx, [esp + 8]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x100126a0
push 0
push 0
call fcn.10074c27
add esp, 0x18
mov dword [esp + 4], eax
test eax, eax
je 0x10011cd2
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x10011ccb
push ecx
push eax
call fcn.10069d5e
add esp, 8
test eax, eax
jne 0x10011ccb
mov ecx, dword [esp + 0xc]
pop esi
xor ecx, esp
call fcn.10067e5d
mov esp, ebp
pop ebp
ret
push 1
call fcn.10069c79
push 6
mov dword [esp + 0xc], 0
call fcn.10069c79
int3
Function at 0x10012160
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.1006b580
mov edi, dword [0x100bfa84]
add esp, 0xc
test edi, edi
je 0x100121cb
mov esi, dword [edi]
test esi, esi
je 0x100121cb
lea ecx, [esi + 4]
lea edx, [ebp - 0x804]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x100121b0
mov eax, dword [esi]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push 0
push 0
push 0xa
call fcn.10010a20
add esp, 0x10
test al, al
lea eax, [ebp - 0x804]
je 0x1001221f
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10009ab0
xor cl, cl
call fcn.10010070
lea eax, [ebp - 0x804]
mov ecx, esp
push eax
call fcn.10009ab0
mov cl, 1
call fcn.10010070
add esp, 0x18
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067e5d
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
push eax
push str.taskbarunpin
push 0
call esi
push 0
push 0
push 0
lea eax, [ebp - 0x804]
push eax
push str.taskbarpin
push 0
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10067e5d
mov esp, ebp
pop ebp
ret

Function at 0x10012270
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.10010c80
cmp eax, 1
je 0x100122e1
push str.GlobalGCMainWnd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1001229d
test esi, esi
jne 0x100122e1
push edi
push str.GCMainWnd
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x100122d5
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xf020
push 0x112
push edi
call esi
push 0
push 0xf120
push 0x112
push edi
call esi
pop edi
mov ecx, 1
pop esi
jmp fcn.10010d10
xor ecx, ecx
pop esi
jmp fcn.10010d10

Function at 0x10012c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090af5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push 8
call fcn.1006809e
mov dword [ebp - 0x1c], eax
mov dword [eax], edi
mov dword [eax + 4], esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x10013a20
push 0
push 0
call fcn.10074c27
add esp, 0x1c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10012d1b
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.100109e0
cmp dword [ebp - 0x14], 0
jne 0x10012d16
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067e5d
mov esp, ebp
pop ebp
ret 4
call fcn.10075f19
push 6
mov dword [ebp - 0x14], 0
call fcn.10069c79
int3
Function at 0x10019a48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x11
call ebx
movsx esi, ax
sar esi, 0x1f
push 1
and esi, 8
call ebx
mov edi, esi
or edi, 1
test ax, ax
push 2
cmovns edi, esi
call ebx
mov esi, edi
or esi, 2
test ax, ax
push 0x10
cmovns esi, edi
call ebx
mov edi, esi
or edi, 4
test ax, ax
push 0x12
cmovns edi, esi
call ebx
mov ecx, edi
or ecx, 0x20
test ax, ax
cmovns ecx, edi
pop edi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x1001cbb2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x4a8]
call fcn.1001f85f
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
jle 0x1001cc13
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [esi + 0x4a8]
mov byte [ebp + 0xf], 0
call fcn.1001f413
lea ecx, [ebp + 0xf]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push ebx
push edi
call dword [edx]
cmp byte [ebp + 0xf], 0
jne 0x1001cc6f
inc dword [ebp - 4]
lea ecx, [esi + 0x4a8]
call fcn.1001f85f
mov ecx, dword [ebp - 4]
cmp ecx, eax
jl 0x1001cbd9
sub edi, 0x100
je 0x1001ccd2
sub edi, 4
je 0x1001cc73
dec edi
sub edi, 1
jne 0x1001ccc9
and dword [ebp + 0xc], edi
push ebx
call fcn.1007a58e
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp + 0xc]
push 0x80000012
mov word [ebp + 0xc], ax
push edx
mov eax, dword [ecx]
push 0x1001e92f
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x1001ccc9
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x128]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x1001cccb
cmp dword [esi + 0x108], 0
je 0x1001ccc9
mov eax, dword [esi + 0x11c]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x120]
and dword [ebp - 0x20], 0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x24], 6
mov word [ebp - 0x10], bx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
call fcn.10019a48
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp ebx, 9
jne 0x1001ccc9
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x1001cd2a
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x1001cd2a
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x1001cd2a
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.1006b6da
pop ecx
pop ecx
test eax, eax
je 0x1001cd2a
mov ecx, dword [esi + 0x108]
call fcn.10040661
test al, al
jne 0x1001ccc9
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x1001cd72
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x1001cd72
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x1001cd72
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.1006b6da
pop ecx
pop ecx
test eax, eax
jne 0x1001ccc9
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr ax, 0xf
mov ecx, esi
xor al, 1
movzx eax, al
push eax
call fcn.1001e0c6
jmp 0x1001cc6f
Function at 0x1001dd3d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x1001dd69
cmp esi, dword [edi + 0x108]
je 0x1001dd69
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x108]
cmp esi, eax
je 0x1001de4d
test eax, eax
je 0x1001ddcf
and dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0x108]
call fcn.1001d87e
and dword [edi + 0x108], 0
test esi, esi
je 0x1001de4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x1001de4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x1001de4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x1001de4d
and dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi + 0x108], esi
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0x108]
call fcn.1001d87e
pop edi
pop esi
leave
ret 4
Function at 0x1001ef7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x214], edi
test cx, cx
je 0x1001efdc
add edi, 0x28
cmp word [eax], 0x3c
mov ecx, edi
jne 0x1001efbd
push eax
call fcn.100429b5
jmp 0x1001efc5
push 0
push eax
call fcn.10042a03
test al, al
jne 0x1001f039
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067e5d
leave
ret 8
push edx
push eax
call fcn.10019699
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x1001efc9
push esi
call fcn.10019699
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x1001f00c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1001efc9
push 0
push esi
add edi, 0x28
call fcn.10019699
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, edi
call fcn.10042ce9
test al, al
je 0x1001efc9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.1004290f
sub esp, 0x20c
mov esi, eax
mov edi, esp
mov ecx, 0x83
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x214]
call fcn.1001ec90
jmp 0x1001efcb

Function at 0x10020531
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
push dword [ebx + 4]
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jmp 0x100205e0
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x100205e4
cmp dword [ebp - 0x1c], 0x10
jne 0x100205af
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x100205af
mov eax, dword [ebp - 0x18]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
lea eax, [ebp - 0x20]
push eax
call fcn.1001e70c
pop ecx
test al, al
jne 0x100205d1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x100205e4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1002057c
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
cmp dword [ebp - 0x1c], 0x12
pop edi
pop esi
pop ebx
jne 0x10020602
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x10020607
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10020639
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x1002120c
Capabilities:
Terminate process

Disassembly:
push 0x2e0
mov eax, 0x10091b5d
call fcn.10068a21
mov edi, ecx
push 0xfffffffffffffff0
call fcn.1001f85f
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.1001f85f
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi]
lea ebx, [edi + 0x30]
mov ecx, edi
call dword [eax + 0x30]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.1001972b
mov ecx, edi
lea eax, [edi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call fcn.10018bcc
lea ecx, [ebp - 0x2e8]
call fcn.10043618
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
and dword [ebp - 4], 0
push ecx
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.1001fa0c
mov edx, dword [edi]
mov ecx, edi
test al, al
jne 0x100212fb
lea eax, [ebp - 0x94]
push eax
call dword [edx + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1001f42b
push eax
call fcn.10076801
pop ecx
lea ecx, [ebp - 0x94]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.1001f31a
mov ecx, edi
lea eax, [edi + 0x28]
neg ecx
push 0
sbb ecx, ecx
and ecx, eax
push ebx
push ecx
lea ecx, [ebp - 0x118]
call fcn.1001f42b
push eax
push esi
lea ecx, [ebp - 0x2e8]
call fcn.10044621
mov esi, eax
jmp 0x10021342
mov esi, edi
lea eax, [edi + 0x28]
neg esi
sbb esi, esi
and esi, eax
lea eax, [ebp - 0x94]
push eax
call dword [edx + 0x2c]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1001f42b
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x2e8]
call fcn.10044621
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.1001f31a
test esi, esi
jne 0x100213ab
push 0xffffffffffffffff
push 0x10095b28
lea ecx, [ebp - 0x94]
call fcn.1001f218
mov eax, dword [edi]
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.1001f465
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 4
call fcn.1001f31a
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.1001f42b
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.10018c78
mov edx, edi
lea eax, [edi + 0x20]
neg edx
mov ecx, ebx
sbb edx, edx
and edx, eax
push edx
call fcn.10018b12
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.1001f31a
lea ecx, [ebp - 0x2e8]
call fcn.1004279a
xor eax, eax
call fcn.100689df
ret 0x10
Function at 0x10023246
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1002327a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002327a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x10023330
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x10023299
cmp dx, 0x5c
jne 0x1002329b
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002328d
cmp esi, ebx
je 0x100232e3
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.1006b000
add esp, 0xc
cmp esi, 0x208
jae 0x1002333e
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.10023246
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x10023300
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.1007aa99
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1007aa68
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10023330
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10067e5d
leave
ret
call fcn.10067fc3
int3

Function at 0x10023967
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x10023a13
cmp dword [esi + 4], 0xffffffff
jne 0x10023a13
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.1007abdd
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x100239ba
cmp eax, 0x2f
je 0x100239ba
push 0x100ad74c
push edi
call fcn.1007aa68
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x100239dc
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100239dc
mov eax, 0x2000000
jmp 0x10023a18
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100260fb
add esp, 0x10
test eax, eax
jne 0x100239fa
mov eax, dword [ebp - 4]
jmp 0x10023a18
push eax
call fcn.100267d5
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x10023a18
mov eax, 0x1000000
pop esi
leave
ret 0xc