joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012d2
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001332
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x1001326
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x100142f
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, 0x105
push edi
lea eax, [ebp - 0x46c]
push eax
push 0x10010f0
call esi
test eax, eax
je 0x10014bb
push edi
lea eax, [ebp - 0x260]
push eax
push 0x1001138
call esi
test eax, eax
je 0x10014bb
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
pop ecx
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
xor edi, edi
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 8
push edi
push edi
push edi
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x24], 5
mov dword [ebp - 0x4c], 0x10011a8
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10014bf
xor eax, eax
jmp 0x10014dc
cmp dword [ebp - 0x10], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10014cf
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], edi
je 0x10014d9
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x10014e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10011e8
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001551
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x10011c8
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001548
cmp dword [ebp - 8], esi
je 0x1001548
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x1001553
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret
Function at 0x1009512
Capabilities:
Encode data using xor

Disassembly:
call esi
jmp 0x100954d
inc ah
inc dword [ebp + 0x4b92]
call esi
xor eax, edi
je 0x1009512
xor edi, eax
jmp 0x100974f
mov cl, dh
lea edi, [eax]
xor ch, bl
call 0x1009512
lea ecx, [esp + 0x20]
jmp 0x100e220
inc edx
rdtsc
not ecx
sahf
ret
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], eax
nop
mov dword [ecx + 0x18], edx
and dword [ebp + 0x4b92], 0
jmp 0x1009510

Function at 0x1009746
Capabilities:
Resolve function by parsing pe exports

Disassembly:
je 0x10096b2
push 0
pop eax
imul eax, eax, 0xf
jmp 0x100e24d
ja 0x10095ba
xor eax, 0xce3a54f8
sbb eax, dword [esp + 4]
mov esp, esp
jne 0x100976f
mov eax, edx
lea eax, [esi + 0x5dc35aa0]
lea edi, [ebx]
jmp 0x1009627
sub dword [esp], eax
nop
pop eax
cld
cmp byte [edi], 1
jmp 0x10095db
mov ch, ch
cmc
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
and ch, 0x4a
add esi, dword [edx + 0x20]
jmp 0x1009769
lea esi, [ebx]
add edi, dword [edx + 0x1c]
add esi, dword [edx + 0x24]
dec edx
lea esi, [esi + ecx*2]
push ebx
jmp 0x100972e
ret
movzx eax, word [esi]
pop esi
test edx, ebx
add esi, dword [edi + eax*4]
ret 4
mov edx, ebx
mov esi, ebx
jmp 0x100960f
nop
xchg edi, edi
not ecx
pop ecx
lodsd eax, dword [esi]
inc ecx
cmp ecx, dword [edx + 0x18]
lea edi, [eax + ebx]
jmp 0x10095b1
push eax
test ebp, edi
xor esp, esi
xor esp, esi
movzx eax, byte [edi]
mov bh, bh
stc
lea edi, [edi + 1]
jmp 0x1009601
Function at 0x403c8a
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x74
test eax, eax
push ebx
push esi
mov esi, ecx
je 0x403ca0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
jmp 0x403caa
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esi + 4]
mov ebx, eax
push ebp
lea eax, [esp + 0x10]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x32f4]
test eax, eax
je 0x403d52
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x32f4]
lea eax, [esp + 0x34]
push eax
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x18]
add ecx, edx
push ecx
mov ecx, dword [esi + 0x32f4]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004c0000
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.004037a0
lea edx, [esp + 0x14]
push 2
push edx
mov ecx, esi
call fcn.00402840
mov eax, dword [esi + 0x3324]
test eax, eax
je 0x403d8d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 1
push ecx
push edx
push edi
push 0
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
push edi
mov ecx, esi
call fcn.00403bc0
push edi
mov ecx, esi
call fcn.00403a00
push edi
mov ecx, esi
call fcn.00403ae0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push 0xcc0020
push eax
push ecx
sub edx, eax
push edi
push edx
mov edx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x88]
pop edi
test eax, eax
pop ebp
je 0x403e19
mov edx, dword [esi + 4]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
pop ebx
add esp, 0x74
ret 4
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
add esp, 0x74
ret 4
Function at 0x404bba
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1048
call fcn.004d7fa0
push esi
mov esi, ecx
cmp word [esi + 0x3384], 0
lea eax, [esi + 0x3384]
je 0x404bdb
push eax
mov eax, dword [esi + 0x32ec]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 0x32ec]
push edi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x824
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 8]
push eax
call fcn.00490590
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 4
lea ecx, [esp + 8]
push 0x4f52d8
push ecx
call edi
add esp, 8
test eax, eax
je 0x404c36
mov word [eax], 0x2e
jmp 0x404c1c
lea edx, [esp + 8]
push 1
push edx
mov ecx, esi
call fcn.00403e50
mov eax, dword [esi + 0x1234]
pop edi
test eax, eax
je 0x404c83
mov eax, dword [esi + 0x1230]
push 0
push 0
push 0
test eax, eax
push 0
je 0x404c68
push 0x759c
jmp 0x404c6d
push 0x7595
call fcn.00422dd0
mov ecx, eax
call fcn.00422e60
mov dword [esi + 0x1234], 0
mov eax, dword [esi + 0x1238]
cmp eax, 3
jbe 0x404c9d
push 0
push 0
push 0
push 0
push 0x7596
jmp 0x404cc6
jne 0x404cae
push 0
push 0
push 0
push 0
push 0x7597
jmp 0x404cc6
push 0
push 0
test eax, eax
push 0
push 0
ja 0x404cc1
push 0x7599
jmp 0x404cc6
push 0x7598
call fcn.00422dd0
mov ecx, eax
call fcn.00422e60
mov eax, dword [esp + 0x1050]
test eax, eax
jne 0x404ce4
mov ecx, esi
call fcn.004048d0
mov eax, dword [esi + 4]
push eax
push eax
call dword [sym.imp.USER32.dll_GetMenu]
and eax, 0xffff
or eax, 0xb0000
push eax
mov eax, dword [esi + 0x32f0]
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 4]
push 0x2009
push ecx
mov word [esi + 0x124c], 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 1
mov ecx, esi
call fcn.004056d0
pop esi
add esp, 0x1048
ret 4
Function at 0x4055d0
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x214
push esi
mov esi, ecx
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push SysReAllocString
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4056c2
mov eax, dword [esi + 0x38]
push ebx
test eax, eax
push edi
jne 0x40561f
xor ebx, ebx
jmp 0x405631
mov ebx, dword [esi + 0x3c]
sub ebx, eax
sar ebx, 2
cmp ebx, 0x18
jle 0x405631
mov ebx, 0x18
mov ecx, dword [0x4f5360]
mov edx, dword [0x4f5364]
mov dword [esp + 0x18], ecx
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
test ebx, ebx
rep stosd dword es:[edi], eax
jle 0x4056b5
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__itow]
mov edi, 1
jmp 0x40566c
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [edx - 8]
test ecx, ecx
jle 0x4056ab
lea eax, [esp + 0x22]
push 0xa
push eax
push edi
call ebp
mov eax, dword [esi]
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
mov eax, dword [esp + 0x18]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
inc edi
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x405668
pop ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
add esp, 0x214
ret
Function at 0x405c20
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1050
call fcn.004d7fa0
push ebx
push ebp
mov ebp, dword [esp + 0x105c]
push esi
push edi
mov edi, dword [esp + 0x1070]
mov ebx, ecx
push ebp
mov esi, edi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x106c]
add esp, 4
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x405db1
push eax
push ebp
push edi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x405ccd
push 7
push 0x4f538c
push edi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405c99
mov eax, dword [esp + 0x10]
lea esi, [edi + 0xe]
push eax
push ebp
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x405ccd
push 0xb
push str.http:__www.
push edi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405db1
mov ecx, dword [esp + 0x10]
lea esi, [edi + 0x16]
push ecx
push ebp
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405db1
mov eax, dword [0x5ef10c]
test eax, eax
je 0x405db1
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x32ec]
lea edx, [esp + 0x18]
push 0x823
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x18]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x405d4d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
lea eax, [esi + edx*2]
push eax
push ebp
push 0x4f5368
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [ebx + 0x32ec]
add esp, 0x14
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push ebp
mov dword [ebx + 0x32e0], 0
call edi
push esi
mov dword [esp + 0x18], eax
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x32ec]
add esp, 8
push eax
push ecx
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push 0x4f5254
lea eax, [ebx + 0x3384]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esp + 0x107c]
mov edi, dword [esp + 0x1080]
add esp, 0x10
mov dword [ecx], 0
mov eax, dword [esp + 0x107c]
mov ecx, dword [esp + 0x1078]
mov edx, dword [ebx + 0x4c]
push eax
mov eax, dword [esp + 0x1078]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x107c]
add ebx, 0x4c
push eax
push edi
mov eax, dword [ecx]
mov ecx, ebx
push eax
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0x1c
Function at 0x409730
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x2090
call fcn.004d7fa0
mov eax, dword [0x51229c]
push edi
test eax, eax
mov edi, ecx
je 0x409753
mov eax, 0x5122a0
pop edi
add esp, 0x2090
ret
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add edi, 0x64
push 0x5c
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
mov edi, eax
lea eax, [esp + 0x10]
push esi
push 0x4f5254
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
add esp, 0x10
lea ecx, [esp + 0x10]
push edi
push ecx
call ebx
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, eax
test esi, esi
je 0x4097af
push edi
call ebp
lea esi, [esi + eax*2]
add esp, 4
test esi, esi
jne 0x4097d1
lea esi, [edi + 2]
lea edx, [esp + 0x10]
push esi
push edx
call ebx
mov edi, eax
test edi, edi
je 0x409844
push esi
call ebp
lea esi, [edi + eax*2]
add esp, 4
test esi, esi
je 0x409844
push 0x4f5690
push esi
call ebx
test eax, eax
je 0x4097e2
lea esi, [eax + 4]
jmp 0x4097fa
push 2
push 0x4f5688
push esi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4097fa
add esi, 4
push esi
call ebp
add esp, 4
test eax, eax
jbe 0x409844
push esi
push 0x4f5254
push 0x1047
push 0x5122a0
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x5122a0
mov word [0x51432e], 0
call fcn.00490590
push 0x5122a0
call fcn.00490c60
push 0x5122a0
call fcn.00490590
add esp, 0x1c
pop esi
pop ebp
pop ebx
mov dword [0x51229c], 1
mov eax, 0x5122a0
pop edi
add esp, 0x2090
ret
Function at 0x409970
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
lea eax, [esi + 0x64]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea edx, [esp + 0x18]
push edx
call fcn.00435130
lea eax, [esp + 0x1c]
push eax
call fcn.00490660
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0x10], eax
je 0x409adb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409adb
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 1
mov ecx, esi
call fcn.00409860
test eax, eax
mov dword [0x5e9710], eax
jne 0x409a00
push 0x64
call ebx
mov edx, edi
inc edi
cmp edx, 0x14
jb 0x4099d7
mov eax, dword [0x5e9710]
test eax, eax
je 0x409adb
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
mov edx, dword [0x5e9710]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov edi, dword [esp + 0x21c]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jne 0x409a70
mov ecx, dword [esi + 0x2c]
mov edx, dword [0x5e9710]
push eax
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 4
push 0x4f5698
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x409aac
mov eax, dword [esi + 0x2c]
mov ecx, dword [0x5e9710]
push 0x1e0000
push 0xffffffffffffffff
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 4
push edi
mov ecx, esi
call fcn.0040b4d0
test eax, eax
je 0x409aca
mov edx, dword [0x5e9710]
push edi
push 0
push edx
call fcn.00443e00
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret 4

Function at 0x409d30
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x410
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], si
push 0x103
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x420]
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push eax
push 0x4f56cc
push ecx
call fcn.00443550
add esp, 0x10
test eax, eax
je 0x409dde
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
rep stosd dword es:[edi], eax
lea edx, [esp + 8]
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4f4788
push 0x511a6c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esp + 8]
push 1
push eax
push 0x511864
call esi
push 2
lea ecx, [esp + 0x214]
push 0x511864
push ecx
call esi
lea edx, [esp + 8]
push 1
push edx
call fcn.00491a00
add esp, 8
pop edi
pop esi
add esp, 0x410
ret 4
Function at 0x409f40
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [esp + 8]
push 0x103
push eax
push 0x4f56cc
push esi
call fcn.00443550
add esp, 0x10
test eax, eax
je 0x409fc9
cmp word [esp + 8], 0
je 0x409fc9
push 0
push 0x4f56f4
push esi
call fcn.004434c0
add esp, 0xc
cmp eax, 1
jne 0x409fb8
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00435a00
add esp, 8
pop edi
pop esi
add esp, 0x208
ret 4
lea edx, [esp + 8]
push edx
call fcn.00424ba0
mov ecx, eax
call fcn.00426920
pop edi
pop esi
add esp, 0x208
ret 4

Function at 0x40a110
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x5e8de4]
sub esp, 0x208
test eax, eax
push esi
mov esi, ecx
jne 0x40a194
mov eax, dword [0x5e8de8]
test eax, eax
jne 0x40a194
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x64]
lea ecx, [esp + 8]
push eax
push str._s_taihang_cookieevent
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x18]
push edx
call fcn.00435130
add esp, 0x14
lea eax, [esp + 8]
push eax
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov eax, dword [0x5e8de4]
test eax, eax
pop edi
jne 0x40a194
mov eax, dword [0x5e8de8]
test eax, eax
jne 0x40a194
call fcn.00435cf0
call fcn.00435d50
call fcn.004069b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea ecx, [esi + 0x50]
mov dword [esi + 0x4c], eax
call fcn.004197e0
mov ecx, 0x5e7308
call fcn.0046fb00
mov ecx, esi
call fcn.0040aa40
push str.MFC42U.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 1
call fcn.0040c6f0
add esp, 4
mov eax, 1
pop esi
add esp, 0x208
ret
Function at 0x40a1f0
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edi, 1
lea eax, [esi + 0x64]
push edi
push eax
call fcn.0040b660
push 0
mov dword [esi + 0x44], edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push edi
mov ecx, esi
mov dword [0x610764], eax
call fcn.004093f0
test eax, eax
jne 0x40a226
pop edi
pop esi
pop ecx
ret 4
push ebx
call fcn.0048c5b0
call fcn.00488840
mov ebx, dword [esp + 0x14]
mov ecx, dword [0x5ef094]
lea edx, [esp + 0xc]
mov dword [0x5e9708], ecx
push edx
push 0x4f5784
push ebx
mov dword [esp + 0x18], 0
call fcn.004434c0
mov dword [0x5e970c], eax
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x40a273
mov eax, dword [0x5ef08c]
mov dword [0x5e970c], eax
mov ecx, esi
call fcn.0040b620
push edi
call fcn.0041c7f0
add esp, 4
mov ecx, esi
call fcn.0040a3e0
push 0x16
push str.FavoriteCY
push str.ToolBar
call fcn.004cbbf0
mov ecx, eax
call fcn.004ccd00
mov dword [0x610520], eax
call fcn.004cbbf0
mov dword [eax + 0x34], edi
call fcn.0043aae0
mov edi, eax
call fcn.00488270
mov dword [esp + 0x14], eax
call fcn.00424ba0
mov ecx, eax
call fcn.00424e90
call fcn.00424ba0
mov ecx, eax
call fcn.0042d2d0
call fcn.00424ba0
mov ecx, eax
call fcn.00426c10
call fcn.0048c010
call fcn.0045de60
mov ecx, eax
call fcn.0045ded0
call fcn.0040eee0
mov ecx, eax
call fcn.0040ef10
mov eax, dword [0x5e88e8]
test eax, eax
je 0x40a324
mov ecx, dword [0x5e88e0]
mov edx, dword [0x5e88e4]
push ecx
push edx
push eax
call fcn.00424ba0
mov ecx, eax
call fcn.0042b4b0
test edi, edi
je 0x40a34a
push ebx
mov ecx, esi
call fcn.0040a540
test eax, eax
je 0x40a342
mov ecx, esi
call fcn.0040a7c0
mov ecx, edi
call fcn.0043ba60
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
pop ebx
je 0x40a362
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x40a37d
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x20]
push ecx
call edi
mov dword [esi + 0x20], 0
call fcn.00418010
test eax, eax
je 0x40a38e
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40a39c
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, 0x5ed770
call fcn.004bd920
call fcn.004b3f90
push 0
call fcn.0041c7f0
add esp, 4
mov ecx, esi
push 0
call fcn.004093f0
mov esi, dword [esi + 0x14]
test esi, esi
je 0x40a3c8
push esi
call edi
pop edi
mov eax, 1
pop esi
pop ecx
ret 4

Function at 0x40a700
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esi + 0x60], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x5c], eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x40a5a0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x40a742
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0040a810
pop esi
pop ecx
ret 4