joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401570
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b00e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004ab670
xor ebp, ebp
mov dword [esi + 0x24], 0x4b4b50
mov dword [esp + 0x1c], ebp
mov dword [esi + 0x28], 0x64
lea edi, [esi + 0x2c]
mov byte [esp + 0x1c], 1
mov ecx, edi
call fcn.0049cb30
mov al, byte [esp + 0xf]
mov dword [esi + 0x30], 0x4b4b40
mov byte [esi + 0x34], al
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea ecx, [esi + 0x4c]
mov byte [esp + 0x1c], 3
call fcn.00490ff0
lea ecx, [esi + 0xac]
mov byte [esp + 0x1c], 4
call fcn.004a5ce0
lea ecx, [esi + 0x7a0]
mov byte [esp + 0x1c], 5
call fcn.004a5ce0
lea ecx, [esi + 0x2f58]
mov byte [esp + 0x1c], 6
call fcn.0045d7a0
lea ecx, [esi + 0x2f70]
mov byte [esp + 0x1c], 7
call fcn.0045d7a0
lea ecx, [esi + 0x2f88]
mov byte [esp + 0x1c], 8
call fcn.0045d7a0
lea ecx, [esi + 0x2fa4]
mov byte [esp + 0x1c], 9
call fcn.0045d7a0
lea ecx, [esi + 0x3004]
mov byte [esp + 0x1c], 0xa
call fcn.0045d7a0
lea ecx, [esi + 0x301c]
mov byte [esp + 0x1c], 0xb
call fcn.0045d7a0
push ebp
lea ecx, [esi + 0x50e4]
mov byte [esp + 0x20], 0xc
call fcn.0048c560
mov dword [esi], 0x4b4b2c
mov dword [esi + 0x24], 0x4b4b24
mov dword [edi], 0x4b4b20
mov dword [esi + 0x30], 0x4b4b10
mov dword [esi + 0x44], ebp
mov dword [esi + 0x2f44], ebp
mov dword [esi + 0x2f48], ebp
mov dword [esi + 0x2ff8], ebp
mov dword [esi + 0x2fc4], 5
mov dword [esi + 0x2fc8], ebp
mov dword [esi + 0x2fcc], ebp
mov dword [esi + 0x2fd0], ebp
mov dword [esi + 0x2fd4], 0x1a
mov dword [esi + 0x2fe0], ebp
mov eax, 3
mov dword [esi + 0x2fe4], 5
mov dword [esi + 0x2fd8], eax
mov edx, 0x20
mov dword [esi + 0x2f54], eax
mov ecx, 0x412
xor eax, eax
lea edi, [esi + 0x4094]
mov dword [esi + 0x2ffc], ebp
mov dword [esi + 0x2fdc], 0x10
mov dword [esi + 0x2fe8], ebp
mov dword [esi + 0x2fec], ebp
mov dword [esi + 0x2ff0], ebp
mov dword [esi + 0x2ff4], 0xa9a9a9
mov dword [esi + 0x2fc0], ebp
mov dword [esi + 0x2fbc], ebp
mov dword [esi + 0x2f40], edx
mov dword [esi + 0xe94], ebp
mov dword [esi + 0xe98], ebp
mov dword [esi + 0xe9c], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x2f3c], ebp
mov dword [esi + 0x2f4c], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x304c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
mov dword [esi + 0x50e0], eax
mov dword [esi + 0x50dc], eax
mov dword [esi + 0xea0], ebp
mov word [esi + 0xea4], bp
mov word [esi + 0x1eec], bp
mov dword [esi + 0x2f34], ebp
mov dword [esi + 0x2f38], ebp
mov dword [esi + 0x511c], ebp
mov dword [esi + 0x3048], 0x12
mov dword [esi + 0x3038], ebp
mov dword [esi + 0x3000], ebp
mov dword [esi + 0x303c], edx
mov dword [esi + 0x3044], edx
mov dword [esi + 0x2fa0], ebp
mov dword [esi + 0x3040], ebp
mov dword [esi + 0x2f50], ebp
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401589
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b00e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004ab670
xor ebp, ebp
mov dword [esi + 0x24], 0x4b4b50
mov dword [esp + 0x1c], ebp
mov dword [esi + 0x28], 0x64
lea edi, [esi + 0x2c]
mov byte [esp + 0x1c], 1
mov ecx, edi
call fcn.0049cb30
mov al, byte [esp + 0xf]
mov dword [esi + 0x30], 0x4b4b40
mov byte [esi + 0x34], al
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea ecx, [esi + 0x4c]
mov byte [esp + 0x1c], 3
call fcn.00490ff0
lea ecx, [esi + 0xac]
mov byte [esp + 0x1c], 4
call fcn.004a5ce0
lea ecx, [esi + 0x7a0]
mov byte [esp + 0x1c], 5
call fcn.004a5ce0
lea ecx, [esi + 0x2f58]
mov byte [esp + 0x1c], 6
call fcn.0045d7a0
lea ecx, [esi + 0x2f70]
mov byte [esp + 0x1c], 7
call fcn.0045d7a0
lea ecx, [esi + 0x2f88]
mov byte [esp + 0x1c], 8
call fcn.0045d7a0
lea ecx, [esi + 0x2fa4]
mov byte [esp + 0x1c], 9
call fcn.0045d7a0
lea ecx, [esi + 0x3004]
mov byte [esp + 0x1c], 0xa
call fcn.0045d7a0
lea ecx, [esi + 0x301c]
mov byte [esp + 0x1c], 0xb
call fcn.0045d7a0
push ebp
lea ecx, [esi + 0x50e4]
mov byte [esp + 0x20], 0xc
call fcn.0048c560
mov dword [esi], 0x4b4b2c
mov dword [esi + 0x24], 0x4b4b24
mov dword [edi], 0x4b4b20
mov dword [esi + 0x30], 0x4b4b10
mov dword [esi + 0x44], ebp
mov dword [esi + 0x2f44], ebp
mov dword [esi + 0x2f48], ebp
mov dword [esi + 0x2ff8], ebp
mov dword [esi + 0x2fc4], 5
mov dword [esi + 0x2fc8], ebp
mov dword [esi + 0x2fcc], ebp
mov dword [esi + 0x2fd0], ebp
mov dword [esi + 0x2fd4], 0x1a
mov dword [esi + 0x2fe0], ebp
mov eax, 3
mov dword [esi + 0x2fe4], 5
mov dword [esi + 0x2fd8], eax
mov edx, 0x20
mov dword [esi + 0x2f54], eax
mov ecx, 0x412
xor eax, eax
lea edi, [esi + 0x4094]
mov dword [esi + 0x2ffc], ebp
mov dword [esi + 0x2fdc], 0x10
mov dword [esi + 0x2fe8], ebp
mov dword [esi + 0x2fec], ebp
mov dword [esi + 0x2ff0], ebp
mov dword [esi + 0x2ff4], 0xa9a9a9
mov dword [esi + 0x2fc0], ebp
mov dword [esi + 0x2fbc], ebp
mov dword [esi + 0x2f40], edx
mov dword [esi + 0xe94], ebp
mov dword [esi + 0xe98], ebp
mov dword [esi + 0xe9c], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x2f3c], ebp
mov dword [esi + 0x2f4c], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x304c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
mov dword [esi + 0x50e0], eax
mov dword [esi + 0x50dc], eax
mov dword [esi + 0xea0], ebp
mov word [esi + 0xea4], bp
mov word [esi + 0x1eec], bp
mov dword [esi + 0x2f34], ebp
mov dword [esi + 0x2f38], ebp
mov dword [esi + 0x511c], ebp
mov dword [esi + 0x3048], 0x12
mov dword [esi + 0x3038], ebp
mov dword [esi + 0x3000], ebp
mov dword [esi + 0x303c], edx
mov dword [esi + 0x3044], edx
mov dword [esi + 0x2fa0], ebp
mov dword [esi + 0x3040], ebp
mov dword [esi + 0x2f50], ebp
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x402390
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x2104
call fcn.004ad150
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x82]
mov word [esp + 0x80], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x2f44]
push 0x823
stosw word es:[edi], ax
lea eax, [esp + 0x84]
mov dword [esi + 0xea0], 1
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0xc], 0x74
mov dword [esp + 0x10], 0x40000000
call fcn.00402b40
test eax, eax
push 0x4da9a0
je 0x402466
mov edx, dword [esi + 0x2f44]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push edx
call edi
mov eax, dword [esi + 0x2f44]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x459
push eax
call ebx
mov edx, dword [esi + 0x2f44]
lea ecx, [esp + 0x80]
push ecx
push edx
call edi
mov eax, dword [esi + 0x2fec]
mov edx, dword [esi + 0x2f44]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], eax
push ecx
push 4
push 0x444
push edx
jmp 0x40258a
mov eax, dword [esi + 0x2f44]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
mov ecx, dword [esi + 0x2f44]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 2
push 0x459
push ecx
call ebx
mov eax, dword [esi + 0x2f44]
lea edx, [esp + 0x80]
push edx
push eax
call edi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x10ca]
mov word [esp + 0x10c8], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10c8]
push 0x823
lea edx, [esp + 0x84]
push ecx
push edx
stosw word es:[edi], ax
call fcn.0044e740
add esp, 0xc
test eax, eax
je 0x40256d
mov edx, dword [esi + 0x2f44]
mov eax, dword [esi + 0x2ff4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], eax
push ecx
push 4
push 0x444
push edx
call ebx
lea eax, [esp + 0x10c8]
lea ecx, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
lea edx, [esp + 0x88]
lea eax, [esp + 0x10d0]
sub edi, edx
push eax
sar edi, 1
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
add eax, edi
mov ecx, esi
push eax
push edi
call fcn.00404ac0
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x2ff0]
push edx
mov dword [esp + 0x10], 0x74
mov dword [esp + 0x14], 0x40000000
mov dword [esp + 0x24], ecx
push 1
jmp 0x40257e
mov ecx, dword [esi + 0x2fec]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x24], ecx
push 4
mov eax, dword [esi + 0x2f44]
push 0x444
push eax
call ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404ac0
mov dword [esi + 0xea0], 0
pop edi
pop esi
pop ebx
add esp, 0x2104
ret
Function at 0x40301a
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x74
test eax, eax
push ebx
push esi
mov esi, ecx
je 0x403030
mov ecx, dword [esi + 4]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
jmp 0x40303a
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 + 0x2f4c]
test eax, eax
je 0x4030e2
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x2f4c]
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 + 0x2f4c]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004974a0
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00402bb0
lea edx, [esp + 0x14]
push 2
push edx
mov ecx, esi
call fcn.00401cd0
mov eax, dword [esi + 0x2fc0]
test eax, eax
je 0x40311d
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.00402f50
push edi
mov ecx, esi
call fcn.00402d50
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 0x4031a1
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 0x403ec0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1048
call fcn.004ad150
push esi
mov esi, ecx
cmp word [esi + 0x304c], 0
lea eax, [esi + 0x304c]
je 0x403eeb
push eax
mov eax, dword [esi + 0x2f44]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 0x2f44]
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.0046e2e0
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 4
lea ecx, [esp + 8]
push 0x4c3570
push ecx
call edi
add esp, 8
test eax, eax
je 0x403f46
mov word [eax], 0x2e
jmp 0x403f2c
lea edx, [esp + 8]
push 1
push edx
mov ecx, esi
call fcn.004031e0
mov eax, dword [esp + 0x1054]
pop edi
test eax, eax
jne 0x403f67
mov ecx, esi
call fcn.00403c10
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 + 0x2f48]
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 4]
push 0x2009
push ecx
mov word [esi + 0xea4], 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 1
mov ecx, esi
call fcn.00404970
pop esi
add esp, 0x1048
ret 4
Function at 0x404870
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x214
push esi
mov esi, ecx
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push reloc.DSOUND.dll_DirectSoundCreate
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 reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x404962
mov eax, dword [esi + 0x38]
push ebx
test eax, eax
push edi
jne 0x4048bf
xor ebx, ebx
jmp 0x4048d1
mov ebx, dword [esi + 0x3c]
sub ebx, eax
sar ebx, 2
cmp ebx, 0x18
jle 0x4048d1
mov ebx, 0x18
mov ecx, dword [0x4c3600]
mov edx, dword [0x4c3604]
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 0x404955
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__itow]
mov edi, 1
jmp 0x40490c
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 0x40494b
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 0x404908
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 0x406830
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.00407520
mov ecx, esi
call fcn.00407a70
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
lea ecx, [esi + 0x40]
call fcn.00411610
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40685f
mov ecx, esi
call fcn.00407740
push 1
push 0xffffffffffffffff
mov ecx, esi
call fcn.00407d40
mov ecx, 0x5b3820
call fcn.00494d50
push 0
call fcn.0045d800
mov ecx, dword [esi + 8]
add esp, 4
push ecx
call sub.gdiplus.dll_GdiplusShutdown
mov esi, dword [esi + 4]
test esi, esi
je 0x406895
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4068e0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x2090
call fcn.004ad150
mov eax, dword [0x4db430]
push edi
test eax, eax
mov edi, ecx
je 0x406903
mov eax, 0x4db434
pop edi
add esp, 0x2090
ret
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add edi, 0x54
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 0x4c3574
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 0x40695f
push edi
call ebp
lea esi, [esi + eax*2]
add esp, 4
test esi, esi
jne 0x40697d
lea esi, [edi + 2]
lea edx, [esp + 0x10]
push esi
push edx
call ebx
mov edi, eax
test edi, edi
je 0x4069e6
push esi
call ebp
lea esi, [edi + eax*2]
add esp, 4
test esi, esi
je 0x4069e6
push 0x4c3830
push esi
call ebx
test eax, eax
je 0x40698e
lea esi, [eax + 6]
jmp 0x4069a6
push 2
push 0x4c3828
push esi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4069a6
add esi, 4
push esi
call ebp
add esp, 4
test eax, eax
jbe 0x4069e6
push esi
push 0x4c3574
push 0x1047
push 0x4db434
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x4db434
mov word [0x4dd4c2], 0
call fcn.0046e2e0
push 0x4db434
call fcn.0046e9b0
add esp, 0x18
pop esi
pop ebp
pop ebx
mov dword [0x4db430], 1
mov eax, 0x4db434
pop edi
add esp, 0x2090
ret
Function at 0x406a00
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
sub esp, 0x20c
push esi
mov esi, ecx
lea ecx, [esp + 8]
lea eax, [esi + 0x54]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea edx, [esp + 0x10]
push edx
call fcn.00428590
lea eax, [esp + 0x14]
push eax
call fcn.0046e3b0
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0xc], eax
je 0x406b3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406b3a
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x5d6540]
test eax, eax
je 0x406b3a
lea ecx, [esp + 4]
push edi
push ecx
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov edi, dword [esp + 0x218]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jne 0x406aca
mov ecx, dword [0x5d6540]
push eax
mov eax, dword [esi + 0x24]
push 0xffffffffffffffff
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
mov eax, 1
pop esi
add esp, 0x20c
ret 4
push 0x4c3838
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x406b04
mov edx, dword [esi + 0x24]
mov eax, dword [0x5d6540]
push 0x1e0000
push 0xffffffffffffffff
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
mov eax, 1
pop esi
add esp, 0x20c
ret 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
jne 0x406b1a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406b2a
mov ecx, dword [0x5d6540]
push edi
push ecx
call fcn.00433780
add esp, 8
pop edi
mov eax, 1
pop esi
add esp, 0x20c
ret 4
xor eax, eax
pop esi
add esp, 0x20c
ret 4

Function at 0x406c90
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 0x4c3840
push ecx
call fcn.00432ef0
add esp, 0x10
test eax, eax
je 0x406d3e
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 0x4c3854
push 0x4dac04
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esp + 8]
push 1
push eax
push 0x4da9fc
call esi
push 2
lea ecx, [esp + 0x214]
push 0x4da9fc
push ecx
call esi
lea edx, [esp + 8]
push 1
push edx
call fcn.0046f250
add esp, 8
pop edi
pop esi
add esp, 0x410
ret 4
Function at 0x406e10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push 0x103
push ecx
push 0x4c3840
push eax
call fcn.00432ef0
add esp, 0x10
test eax, eax
pop edi
je 0x406e61
lea edx, [esp]
push edx
call fcn.0041bd80
mov ecx, eax
call fcn.0041d880
add esp, 0x208
ret 4

Function at 0x406f70
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x5b0064]
sub esp, 0x218
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov esi, ecx
jne 0x406fd3
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x54]
lea ecx, [esp + 0x1c]
push eax
push str._s_taihang_cookieevent
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x2c]
push edx
call fcn.00428590
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 4], eax
pop edi
call fcn.00429020
call fcn.00429080
call fcn.0048fc80
lea ecx, [esp + 8]
push ebx
lea edx, [esi + 8]
push ecx
push edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdiplusStartup
push 1
call fcn.0045d800
push section..taihang
call fcn.004690f0
add esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], eax
call fcn.00411430
mov ecx, 0x5aea00
call fcn.00455790
mov ecx, esi
call fcn.004076e0
mov eax, dword [0x5b0050]
pop esi
cmp eax, ebx
pop ebx
je 0x407051
push str.MFC42U.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, 1
add esp, 0x218
ret
Function at 0x407480
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esi + 0x50], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x4c], eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x407320
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4074c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00407550
pop esi
pop ecx
ret 4

Function at 0x407520
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x4074e0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x40754e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret