joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40faa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00413440
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40fb20
push 0x24
call fcn.004129f0
add esp, 4
push eax
push 0x100
mov eax, dword [ebp + 8]
push eax
call fcn.00415992
add esp, 0xc
mov eax, 2
jmp 0x40fbd8
mov dword [ebp - 0x220], 0x104
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push str.Version
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x40fb86
push 0x24
call fcn.004129f0
add esp, 4
push eax
push 0x100
mov eax, dword [ebp + 8]
push eax
call fcn.00415992
add esp, 0xc
mov eax, 2
jmp 0x40fbd8
lea ecx, [ebp - 0x218]
push ecx
push 0x25
call fcn.004129f0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
movzx eax, word [ebp - 0x218]
cmp eax, 0x36
jl 0x40fbb7
xor eax, eax
jmp 0x40fbd8
push 0x26
call fcn.004129f0
add esp, 4
push eax
push 0x100
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415c30
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret

Function at 0x40fbf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00413440
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomainshkbchina.comwww
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40fc51
mov eax, 1
jmp 0x40fc9d
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
push 0x421fe4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x40fc9b
mov eax, 1
jmp 0x40fc9d
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret
Function at 0x40fcb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomainshkbchina.com
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40fcf5
mov eax, 2
jmp 0x40fdcd
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4221cc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40fd36
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
jmp 0x40fdcd
mov dword [ebp - 0x14], 2
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.https
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40fd7a
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
jmp 0x40fdcd
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push str.http
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40fdb7
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
jmp 0x40fdcd
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4106b0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 8], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x4106ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4107c7
push str.DFUK_for_HKB_Service
lea eax, [ebp - 0x210]
push eax
call fcn.004118b0
add esp, 8
push 0xf003f
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41075a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x410746
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 4
jmp 0x4107c7
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 5
jmp 0x4107c7
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4107ab
cmp dword [ebp - 0x228], 4
je 0x410790
mov dword [ebp - 0x228], 4
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4107c7
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 5
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret

Function at 0x410a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
call fcn.0040e520
add esp, 4
push str.HKBTokendftxHKB_DFTX_Client.exe
lea ecx, [ebp - 0x218]
push ecx
call fcn.004118b0
add esp, 8
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x410aca
mov eax, 1
jmp 0x410b16
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftCryptographyDefaultsProviderDF_UKey_for_HKB_Cryptographic_Service_Provider
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410af5
mov eax, 1
jmp 0x410b16
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004106b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x410b14
mov eax, 1
jmp 0x410b16
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret
Function at 0x410b30
Capabilities:
Check if file exists
Create directory
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xae4
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0x14], eax
xor eax, eax
mov word [ebp - 0x430], ax
push 0x206
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.00413440
add esp, 0xc
xor edx, edx
mov word [ebp - 0x220], dx
push 0x206
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.00413440
add esp, 0xc
lea ecx, [ebp - 0x430]
push ecx
call fcn.0040e570
add esp, 4
push str.HKBToken
lea edx, [ebp - 0x430]
push edx
call fcn.004118b0
add esp, 8
push 0
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.HKB_DF_Setup.exe
lea ecx, [ebp - 0x430]
push ecx
call fcn.004118b0
add esp, 8
lea edx, [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0xffffffff
jne 0x410c98
push 0x20
call fcn.004129f0
add esp, 4
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00411a10
lea ecx, [ebp - 0xae0]
call fcn.00408c60
push 0x20
call fcn.004129f0
add esp, 4
push eax
lea ecx, [ebp - 0xae0]
call fcn.00411940
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0xae0]
call fcn.004118e0
push str.http:__www.hkbchina.com_portal_zh_CN_upload_Attachment_hkbwy.exe
lea ecx, [ebp - 0xae0]
call fcn.00411910
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0xae0]
call fcn.00411830
cmp eax, 1
je 0x410c78
mov dword [ebp - 0xae4], 1
lea ecx, [ebp - 0xae0]
call fcn.00408ce0
mov eax, dword [ebp - 0xae4]
jmp 0x410d58
push 0x21
call fcn.004129f0
add esp, 4
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00411a10
lea ecx, [ebp - 0xae0]
call fcn.00408ce0
push 0x22
call fcn.004129f0
add esp, 4
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00411a10
lea eax, [ebp - 0x430]
push eax
push str.__s_
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0x478], 0x44
push 0x40
push 0
lea edx, [ebp - 0x474]
push edx
call fcn.00413440
add esp, 0xc
mov dword [ebp - 0x44c], 1
mov eax, 1
mov word [ebp - 0x448], ax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x478]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x410d38
mov eax, 2
jmp 0x410d58
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00410a70
test eax, eax
je 0x410d56
mov eax, 2
jmp 0x410d58
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret
Function at 0x412a30
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00412d00
mov dword [ebp - 4], eax
movzx eax, word [ebp - 4]
push eax
call fcn.00412ae0
add esp, 4
test eax, eax
je 0x412a51
jmp 0x412acd
call fcn.00412b60
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
push ecx
call fcn.00412ae0
add esp, 4
test eax, eax
je 0x412a6d
jmp 0x412acd
call fcn.00412ba0
mov word [ebp - 8], ax
movzx edx, word [ebp - 8]
push edx
call fcn.00412ae0
add esp, 4
test eax, eax
je 0x412a89
jmp 0x412acd
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
push eax
call fcn.00412ae0
add esp, 4
test eax, eax
je 0x412aa6
jmp 0x412acd
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
push ecx
call fcn.00412ae0
add esp, 4
test eax, eax
je 0x412ac3
jmp 0x412acd
push 0
call fcn.00412a10
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x412ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push 0x4248d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
push str.GetSystemDefaultUILanguage
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412be3
call dword [ebp - 4]
jmp 0x412cb2
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
je 0x412c7d
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
push str.Control_PanelDesktopResourceLocale
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x412c75
mov dword [ebp - 0x1c], 0x20
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x412c6b
cmp dword [ebp - 0x18], 1
jne 0x412c6b
lea eax, [ebp - 0x10]
push eax
push 0x42495c
lea ecx, [ebp - 0x40]
push ecx
call fcn.00415d1d
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [ebp - 0x10]
jmp 0x412cb2
xor eax, eax
mov word [ebp - 0x48], ax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x412cae
lea ecx, [ebp - 0x48]
push ecx
push 0x412cc0
push 1
push 0x10
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov ax, word [ebp - 0x48]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret
Function at 0x412ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 4
je 0x412f35
mov eax, 0xd
jmp 0x412f38
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x41321a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x42f594], 0
push esi
jne 0x41318d
call fcn.004130b3
test eax, eax
je 0x4131d0
mov eax, dword [0x42f594]
cmp eax, 1
jne 0x4131ae
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4131d0
pop esi
ret
push eax
call dword [0x42f59c]
test eax, eax
jne 0x413218
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4131d4
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42f594]
call dword [0x42f59c]
mov edi, eax
test edi, edi
je 0x4131f9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x413215
mov edi, esi
add esi, 0xff0
push edi
push dword [0x42f594]
call dword [0x42f598]
add edi, 0x10
cmp edi, esi
jb 0x413201
mov eax, edi
pop edi
pop esi
ret
jmp 0x41317a

Function at 0x413653
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a95c]
jne 0x41365d
repz ret
jmp fcn.00416fc3
Function at 0x41b41b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00416160
and dword [ebp - 4], 0
cmp dword [0x4300b0], 0
mov ebx, eax
jne 0x41b4cc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41b57d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41b57d
push eax
call fcn.004160ee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4300b0], eax
call esi
push eax
call fcn.004160ee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4300b4], eax
call esi
push eax
call fcn.004160ee
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4300b8], eax
call esi
push eax
call fcn.004160ee
pop ecx
mov dword [0x4300c0], eax
test eax, eax
je 0x41b4cc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004160ee
pop ecx
mov dword [0x4300bc], eax
mov eax, dword [0x4300bc]
cmp eax, ebx
je 0x41b524
cmp dword [0x4300c0], ebx
je 0x41b524
push eax
call fcn.00416169
push dword [0x4300c0]
mov esi, eax
call fcn.00416169
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41b524
test edi, edi
je 0x41b524
call esi
test eax, eax
je 0x41b51b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41b51b
test byte [ebp - 0xc], 1
jne 0x41b524
or dword [ebp + 0x10], 0x200000
jmp 0x41b55d
mov eax, dword [0x4300b4]
cmp eax, ebx
je 0x41b55d
push eax
call fcn.00416169
pop ecx
test eax, eax
je 0x41b55d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41b55d
mov eax, dword [0x4300b8]
cmp eax, ebx
je 0x41b55d
push eax
call fcn.00416169
pop ecx
test eax, eax
je 0x41b55d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4300b0]
call fcn.00416169
pop ecx
test eax, eax
je 0x41b57d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41b57f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401600
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b526f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CWnd::CWnd
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x44]
mov byte [esp + 0x30], 1
mov ecx, edi
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 4]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0xf]
mov cl, byte [esp + 0xf]
mov byte [edi + 0xc], al
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x1c], cl
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x34], ebx
mov ecx, 0x11
mov eax, 0xa
mov dword [esi + 0x7c], 0x4c571c
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], 0x4c5708
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ecx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], eax
mov byte [esp + 0x30], 5
mov dword [esi], 0x4c5648
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push ebx
push ebx
lea edx, [esp + 0x20]
push eax
push edx
push ebx
push 0x53e720
push ebx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call sub.MFC42.DLL_CWnd::Create
push ebx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x20]
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x403be0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b56a8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push 0x65
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebp, eax
test ebp, ebp
je 0x403d1b
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esi + 0x60]
call sub.MFC42.DLL_CListCtrl::GetItemText_1
add esi, 0x1a4
push eax
lea edx, [esp + 0x24]
push esi
push edx
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_operator_4
push str..txt
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x20], 1
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
push 0x53236c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403cb5
push 0x53e720
mov ecx, ebp
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push ebx
push edi
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_rewind]
lea edx, [ebx + 1]
push edx
call sub.MFC42.DLL_operatornew
push esi
mov edi, eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x28
mov ecx, ebp
mov byte [edi + ebx], 0
push edi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push edi
call dword [sym.imp.MSVCRT.dll_free]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x403d30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b56c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esi + 0x18c]
mov dword [esp + 0x10], 0
test esi, esi
je 0x403d99
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esi + 8]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [esp + 8]
mov esi, dword [esi]
push 5
push 0x53e720
push 0x53e720
push ecx
push str.open
push 0
call edi
test esi, esi
jne 0x403d6b
pop edi
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4051e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b58f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4c5c20
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.0046288c
mov dword [ebx], 0x4c5c0c
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0046288c
or eax, 0xffffffff
push 0x53e788
mov dword [ebx], 0x4c5bd0
push edi
mov dword [esi], 0x4c5be4
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret