joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x64
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], 0x73006e
mov dword [ebp - 0xc], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
div ecx
xor eax, eax
add word [ebp - 0xc], dx
mov dword [esp + 8], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
jne 0x40862e
dec esi
jne 0x4085df
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x408639
Capabilities:
Read file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x408676
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x40867d
Capabilities:
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x4086ba
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x4088be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x14]
sub esp, 0x30
mov dword [ebp - 0x10], 0x4000
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [ebp + 0x18], 0
setne al
shl eax, 8
or eax, 0x20019
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040880a
sub esp, 0x10
test eax, eax
je 0x40890c
mov word [ebx], 0
jmp 0x40895f
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov word [ebx + 0x3ffe], 0
test esi, esi
jne 0x408905
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x408905
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x409a30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x47d244], 0
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
jne 0x409a6d
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409a58
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x409a4a
mov dword [ecx*4 + 0x47d240], eax
inc ecx
cmp ecx, 0x100
jne 0x409a43
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x409a8f
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47d240]
jmp 0x409a77
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x402880
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4045c0
push 0x402b50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4046e8], 0xffffffff
mov dword [0x4046ec], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4046e4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4046e0]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x4046f0], ecx
call fcn.00402b40
mov eax, dword [0x4043bc]
test eax, eax
jne 0x402911
push 0x402b30
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402b10
push 0x4040f0
push 0x4040ec
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x4046dc]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x4046d8]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x4040e8
push 0x4040e4
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x402a1f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402985
cmp al, 0x22
jne 0x402977
cmp byte [esi], 0x22
jne 0x40298e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40299e
cmp al, 0x20
ja 0x40299e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40298e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4029bf
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4029c4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x402a04
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40298e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x402a1f
Function at 0x40f127
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x43c64c
call fcn.0043a940
sub esp, 0x9c
push ebx
push esi
mov esi, ecx
push str.windowinit
mov ecx, dword [ebp + 8]
call dword [sym.imp.FtUiKit_u.dll_public:_bool___thiscall_DuiLib::CDuiString::operator_unsigned_short_int_const__const]
test al, al
je 0x40f263
push edi
lea ecx, [esi + 0xc]
push str.FSTitle
mov dword [ebp - 0x24], ecx
call dword [sym.imp.FtUiKit_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_unsigned_short_int_const__const]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40f23b
lea ecx, [ebp - 0xa8]
call dword [sym.imp.FtUiKit_u.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
mov eax, dword [esi - 0x20]
lea ecx, [esi - 0x20]
lea edx, [ebp - 0xa8]
mov dword [ebp - 4], ebx
push edx
call dword [eax + 0x94]
test eax, eax
je 0x40f1c7
mov ebx, dword [sym.imp.FtUiKit_u.dll_public:_unsigned_short_int_const____thiscall_DuiLib::CDuiString::operator_unsigned_short_int_const__void_const]
lea ecx, [ebp - 0xa8]
call ebx
push eax
push dword [esi - 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [edi]
lea ecx, [ebp - 0xa8]
mov dword [ebp + 8], edx
call ebx
push eax
mov eax, dword [ebp + 8]
mov ecx, edi
call dword [eax + 0x2c]
xor ebx, ebx
jmp 0x40f22b
push dword [esi - 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xb]
push ebx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0042f373
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x11]
inc eax
push ecx
push ebx
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], eax
call fcn.00404986
push dword [ebp - 0x10]
mov byte [ebp - 4], 4
push dword [ebp - 0x20]
push dword [esi - 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
push dword [ebp - 0x20]
mov ecx, edi
call dword [eax + 0x2c]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0040212c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call dword [sym.imp.FtUiKit_u.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
cmp dword [esi + 0x2d4], ebx
pop edi
jne 0x40f26e
mov ecx, dword [ebp - 0x24]
push str.minbtn
call dword [sym.imp.FtUiKit_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_unsigned_short_int_const__const]
cmp eax, ebx
je 0x40f26e
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0xcc]
jmp 0x40f26e
push dword [ebp + 8]
mov ecx, esi
call dword [sym.imp.FtUiKit_u.dll_public_virtual:_void___thiscall_DuiLib::WindowImplBase::Notify_struct_DuiLib::tagTNotifyUI__]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41293c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x412977
cmp dword [ebp - 0x104], 2
jne 0x412977
cmp dword [ebp - 0x110], 6
jb 0x412977
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x41297b
Capabilities:
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x43cb24
call fcn.0043a940
sub esp, 0x428
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push str.India_DownLoadAgent
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, edi
mov dword [ebp - 0x34], eax
je 0x412b3f
push edi
push 0x80000000
push edi
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x412b36
push ebx
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [ebp - 0x2c]
push edi
push ecx
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x2c], 0x200
push ecx
push 0x13
push eax
call esi
test eax, eax
je 0x412a57
lea eax, [ebp - 0x434]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ebx, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x434]
push eax
push 0x4512c4
call ebx
pop ecx
test eax, eax
pop ecx
je 0x412a4b
lea eax, [ebp - 0x434]
push eax
push 0x4512bc
call ebx
pop ecx
test eax, eax
pop ecx
je 0x412b4f
lea eax, [ebp - 0x434]
push eax
push 0x4512b4
call ebx
pop ecx
test eax, eax
pop ecx
je 0x412b4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0043a33a
lea eax, [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
push 0x20000005
push dword [ebp + 8]
call esi
test eax, eax
je 0x412b2b
push 0x4512ac
mov dword [ebp - 0x10], edi
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 0xc], eax
je 0x412b2b
mov esi, 0x2801
push edi
push esi
lea ecx, [ebp - 0x24]
call fcn.0042aba9
push esi
push edi
push dword [ebp - 0x24]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x10], edi
push eax
push 0x2800
push dword [ebp - 0x24]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x412b04
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x412b04
push dword [ebp + 0xc]
add dword [ebp - 0x14], eax
push eax
push 1
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push edi
push dword [ebp - 0x24]
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push 0x2800
push dword [ebp - 0x24]
push dword [ebp + 8]
jmp 0x412ac4
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x28]
jne 0x412b13
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x24], edi
je 0x412b21
push dword [ebp - 0x24]
call sub.MFC42u.DLL_operatordelete
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop ebx
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
pop edi
mov dword fs:[0], ecx
leave
ret
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0043a33a
jmp 0x412b2b
Function at 0x412b5d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
pop esi
lea eax, [ebp - 0x3c]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
leave
ret

Function at 0x412d28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], si
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push 1
push esi
push str.SoftwareFeitianePass2003
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412d9e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412d95
xor al, al
jmp 0x412db2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
leave
ret
Function at 0x422b0e
Capabilities:
Get file version info

Disassembly:
mov eax, 0x43e477
call fcn.0043a940
sub esp, 0x420
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
push 1
lea ecx, [ebp - 0x10]
pop ebx
push 0x456ac0
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_2
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22a]
mov word [ebp - 0x22c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x22c]
push 0x104
push eax
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x22c]
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jg 0x422b8f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_4
mov dword [ebp - 0x14], ebx
jmp 0x422c2c
lea eax, [esi + esi]
push eax
call sub.MFC42u.DLL_operatornew
mov edi, eax
pop ecx
test edi, edi
je 0x422c1d
push edi
push esi
lea eax, [ebp - 0x22c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x422c16
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
push 0
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x42c]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x422c16
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.0043a44e
push edi
call sub.MFC42u.DLL_operatordelete
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_4
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0043a33a
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0043a33a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4277fc
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x43ec74
call fcn.0043a940
sub esp, 0x24
push esi
push edi
push str.Please_select_the_token_to_use
lea eax, [ebp - 0x30]
push 0x8103
mov esi, ecx
push eax
call fcn.00431e3b
and dword [ebp - 4], 0
push str.Please_login
lea eax, [ebp - 0x24]
push 0x8106
push eax
call fcn.00431e3b
push str.Error
lea eax, [ebp - 0x18]
push 0x80eb
push eax
mov byte [ebp - 4], 1
call fcn.00431e3b
add esp, 0x24
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 2
test edi, edi
jne 0x4278ac
mov eax, dword [esi + 0xa8]
mov edi, dword [ebp - 0x30]
test eax, eax
jne 0x427871
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0x10]
test esi, esi
je 0x427878
mov esi, dword [esi + 0x20]
push 0x10040
push eax
push edi
push esi
call fcn.0040ec0e
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040212c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0040212c
mov dword [ebp - 4], 5
jmp 0x42795e
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 8]
cmp edi, dword [eax]
jne 0x4278d2
cmp dword [eax + 0xc], 0
je 0x4278d2
call fcn.00414c4e
push dword [eax + 0x20]
push 0x42630b
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi + 0xb0]
push edi
call fcn.0042b37a
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 8]
cmp dword [eax + 0xc], 0
mov ecx, dword [eax + 0x10]
je 0x42793f
test ecx, ecx
je 0x42791b
mov eax, dword [esi + 0xb8]
push ecx
call dword [eax + 0x4e]
pop ecx
mov ecx, dword [esi + 0xb0]
push dword [ebp + 0xc]
mov eax, dword [ecx + 8]
push eax
call fcn.0042b618
push edi
push 3
mov ecx, esi
call fcn.0041429e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040212c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0040212c
push 1
mov dword [ebp - 4], 8
pop esi
jmp 0x427960
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.0040212c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.0040212c
mov dword [ebp - 4], 0xb
xor esi, esi
lea ecx, [ebp - 0x30]
call fcn.0040212c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x428da9
Capabilities:
Create thread

Disassembly:
mov eax, 0x43ed3c
call fcn.0043a940
sub esp, 0x6c
push ebx
mov bl, byte [ebp + 8]
push edi
mov edi, ecx
test bl, bl
je 0x428dcd
cmp bl, 1
je 0x428dcd
xor eax, eax
jmp 0x428ea2
push esi
call sub.MFC42u.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
push edi
lea ecx, [ebp - 0x78]
call fcn.004074f1
xor eax, eax
lea edi, [ebp - 0x14]
and dword [ebp - 4], 0
mov dword [0x456294], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x456298], eax
mov eax, dword [ebp + 0xc]
test bl, bl
jne 0x428e2d
mov dword [0x456270], eax
mov eax, dword [ebp + 0x10]
mov dword [0x45626c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x456274], eax
mov eax, dword [ebp + 0x18]
mov dword [0x456278], eax
jmp 0x428e4a
mov dword [0x4568c4], eax
mov eax, dword [ebp + 0x10]
mov dword [0x4568c0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4568c8], eax
mov eax, dword [ebp + 0x18]
mov dword [0x4568cc], eax
lea ecx, [ebp + 8]
xor eax, eax
push ecx
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0x428af5
push eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x428e7b
push 2
pop esi
jmp 0x428e93
lea ecx, [ebp - 0x78]
call sub.MFC42u.DLL_CDialog::DoModal
mov esi, dword [0x456268]
test bl, bl
je 0x428e93
mov esi, dword [0x4568bc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42u.DLL_CDialog::CDialog
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x42b33f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea edx, [ebp - 4]
push esi
xor eax, eax
push edx
push eax
push ecx
push 0x42b251
push eax
push eax
mov dword [ebp - 4], eax
mov dword [ecx + 4], 1
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, 0xffffffff
setne al
pop esi
leave
ret
Function at 0x42ce05
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x14
xor edi, edi
call esi
test al, 0xf
je 0x42ce1a
push 1
pop edi
push 0x10
call esi
test ah, 0xf0
je 0x42ce25
inc edi
inc edi
push 0x11
call esi
test ah, 0xf0
je 0x42ce31
add edi, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x42d13b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x43f440
call fcn.0043a940
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
xor edi, edi
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x34]
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call fcn.0042f373
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call fcn.0042f373
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 6
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
call fcn.0042f373
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 8
call fcn.0040bd65
lea eax, [ebp - 0xd]
lea ecx, [esi + 0x5c]
push eax
mov byte [ebp - 4], 0xa
call fcn.0042f33b
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 4], edi
mov dword [esi], 0x4448b0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x42e976
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, ecx
push str.C_GetFunctionList
push eax
mov dword [esi + 8], eax
call edi
test eax, eax
jne 0x42e99b
push 5
pop eax
jmp 0x42ea2e
lea ecx, [esi + 0x10]
push ecx
call eax
test eax, eax
pop ecx
jne 0x42e993
push str.E_GetAuxFunctionList
push dword [esi + 8]
call edi
test eax, eax
je 0x42e993
lea ecx, [esi + 0xc]
push ecx
call eax
test eax, eax
pop ecx
jne 0x42e993
push str.CPAcquireContext
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x42e993
push str.CPImportKey
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x42e993
push str.CPSetKeyParam
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x42e993
push str.CPDestroyKey
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x20], eax
je 0x42e993
push str.CPReleaseContext
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x24], eax
je 0x42e993
push str.CPGetUserKey
push dword [esi + 8]
call edi
mov dword [esi + 0x28], eax
neg eax
sbb eax, eax
and al, 0xfb
add eax, 5
pop edi
pop esi
ret 4
Function at 0x42fa03
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x42fa86
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edi, [esi + 2]
push edi
call sub.MFC42u.DLL_operatornew
mov ebx, eax
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push esi
push ebx
call fcn.0042fb01
push ebx
mov byte [ebp + 0xb], al
call sub.MFC42u.DLL_operatordelete
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop ebx
jmp 0x42fa88
xor al, al
pop esi
leave
ret 4