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

Disassembly:
push 0xffffffffffffffff
push 0x42cabb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push eax
mov dword [esp + 0x230], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.SoundMAX
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x11c]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4252c3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Path
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x11c]
lea ecx, [esp + 8]
push eax
call fcn.00428fc8
push str._res.skn
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov ecx, esi
call fcn.00424da0
mov eax, dword [esp + 8]
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0xc]
push 0
push eax
call dword [edx + 0x48]
push 0x43828c
mov ecx, esi
mov dword [esi + 4], eax
call fcn.00424df0
mov edi, eax
test edi, edi
jne 0x425317
mov ecx, esi
call fcn.00425350
mov edi, eax
lea ecx, [esp + 8]
mov dword [esp + 0x228], 0xffffffff
call fcn.00428ee4
mov ecx, dword [esp + 0x220]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x4254a0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SoftwareAnalog_DevicesSMax4Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4254eb
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
mov eax, dword [edx - 8]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 8]
push 1
push 0
push str.SkinPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 4
Function at 0x426380
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42cbdc
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
push edi
mov edi, dword [esp + 0x12c]
mov esi, ecx
push edi
push str.OnTray
push 0x4310d8
call sub.MFC42.DLL_CWinApp::WriteProfileInt
test edi, edi
je 0x42657f
push ebx
push ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [esi + 0xe0]
lea ecx, [esp + 0x18]
push eax
push 0x437464
push ecx
mov dword [esp + 0x138], 0
call sub.MFC42.DLL_operator_2
add esi, 0xe4
lea edx, [esp + 0x1c]
push esi
push eax
push edx
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_operator_1
push str.___tray
push eax
lea eax, [esp + 0x28]
mov bl, 2
push eax
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x12c], bl
call fcn.00428ee4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 1
call fcn.00428ee4
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 0
call fcn.00428ee4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea ecx, [esp + 0x14]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x426529
lea edx, [esp + 0x18]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.SoundMax
push edx
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x4264e3
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x18]
push eax
push 1
push 0
push str.SoundMax
push ecx
call esi
mov edi, eax
jmp 0x42651e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x42651e
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x18]
push eax
push 1
push 0
push str.SoundMax
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call ebp
test edi, edi
je 0x426569
lea ecx, [esp + 0x14]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call ebx
test eax, eax
jne 0x426569
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push str.SoundMax
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00428ee4
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 4
Function at 0x4267d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xd8]
test eax, eax
jne 0x4268a6
lea eax, [esp + 0x10]
mov ebx, 1
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
push 0x80000001
mov dword [esi + 0xd8], ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x426855
lea ecx, [esp + 0xc]
lea edx, [esi + 0xec]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push str.SysCaps
push ecx
mov dword [esp + 0x24], 0xdc
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x426846
cmp dword [esp + 0xc], 0xdc
jne 0x426846
mov edi, ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4268a6
mov ecx, 0x37
xor eax, eax
lea edi, [esi + 0xec]
rep stosd dword es:[edi], eax
mov dword [esi + 0x128], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x15c], ebx
lea eax, [esi + 0xec]
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x426a10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xe8
push esi
mov esi, ecx
push edi
push 0
lea edi, [esi + 8]
mov dword [esi], 0x4311cc
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x426a79
push str.DSound.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0xc], eax
je 0x426a79
push str.DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi + 0x10], eax
je 0x426a79
push 0
push edi
push 0
call eax
test eax, eax
jge 0x426a79
mov dword [edi], 0
lea eax, [esp + 8]
mov dword [esi + 4], 0
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x426ae7
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
mov edi, 0xdc
push str.SysCaps
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x426adc
cmp dword [esp + 0xc], edi
jne 0x426adc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x426adc
mov dword [esi + 4], 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0xe8
ret
Function at 0x426b50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
mov esi, ecx
push 0x80000002
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x426bab
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.Speaker_Configuration
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
mov ecx, esi
push eax
call fcn.00426bc0
pop esi
add esp, 0x10
ret

Function at 0x426c90
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
mov esi, ecx
push 0x80000002
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x426cde
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push str.Speaker_Configuration
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x426cd3
mov edi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
test eax, eax
je 0x426cf9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x426cf9
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00426d20
test edi, edi
pop edi
pop esi
je 0x426d15
mov edx, dword [0x43863c]
push 0
push 0
push edx
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
pop ecx
ret 8

Function at 0x4281b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42cd70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], 0x42e110
mov dword [esi + 0x64], eax
mov dword [esi + 0x4c], ecx
mov eax, dword [eax]
mov dword [esp + 0x2c], 0
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0x16
push ecx
push eax
push 0
mov dword [esi + 0x54], ecx
push 0
push 0
mov ecx, esi
mov dword [esi + 0x50], eax
call sub.MFC42.DLL_CWnd::SetWindowPos
mov dword [esp + 4], 0x42e138
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x4017b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push 0x8000
push ebp
call dword [sym.imp.MSVCR71.dll__open]
mov ebx, eax
add esp, 8
test ebx, ebx
jle 0x4017ef
lea eax, [esp + 8]
push eax
push ebx
call dword [sym.imp.MSVCR71.dll__fstat]
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
jg 0x4017f8
push ebx
call dword [sym.imp.MSVCR71.dll__close]
add esp, 4
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
push esi
inc eax
push edi
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
mov ecx, dword [esp + 0x28]
inc ecx
mov esi, eax
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
push esi
push ebx
call dword [sym.imp.MSVCR71.dll__read]
push ebx
call dword [sym.imp.MSVCR71.dll__close]
push esi
call fcn.00401700
mov ebx, dword [sym.imp.MSVCR71.dll_free]
push esi
mov edi, eax
call ebx
mov eax, edi
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401848
mov ecx, dword [esp + 0x40]
sub eax, edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
push eax
push edi
mov eax, ebp
call section..text
push edi
mov esi, eax
call ebx
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x402300
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
mov ecx, dword [0x42ad10]
push ebx
mov ebx, dword [esp + 0x18]
imul eax, ebx
push ebp
mov ebp, dword [esp + 0x20]
add ebp, eax
push edi
mov dword [esp + 0x18], ecx
xor ecx, ecx
lea eax, [ebx - 1]
xor edi, edi
test eax, eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], ecx
jle 0x40240b
mov eax, 1
push esi
mov esi, ebp
sub eax, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
jmp 0x402350
mov dl, byte [esi + 1]
cmp dl, byte [esi]
je 0x4023f5
mov ebp, ecx
sub ebp, edi
inc ebp
cmp ebp, 0xff
jle 0x4023d8
lea ecx, [ebp - 0x100]
mov eax, 0x80808081
mul ecx
mov edi, edx
shr edi, 7
inc edi
mov edx, edi
imul edx, edx, 0xffffff01
add ebp, edx
movzx esi, byte [esi]
mov edx, 4
xor ebx, ebx
or esi, 0x3fc
call fcn.00401880
mov ebx, esi
sar ebx, 8
and ebx, 0xf
mov edx, 4
call fcn.00401880
mov ebx, esi
sar ebx, 4
and ebx, 0xf
mov edx, 4
call fcn.00401880
mov ebx, esi
and ebx, 0xf
mov edx, 4
call fcn.00401880
dec edi
mov esi, dword [esp + 0x10]
jne 0x402385
mov ebx, dword [esp + 0x24]
test ebp, ebp
je 0x4023e6
movzx edx, byte [esi]
mov eax, ebp
call fcn.00402290
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
lea edi, [eax + esi]
inc ecx
inc esi
lea eax, [ebx - 1]
cmp ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
jl 0x402350
pop esi
cmp ebx, edi
je 0x402451
sub ebx, edi
mov eax, ebx
cmp eax, 0x40
jge 0x402423
movzx edx, byte [edi + ebp]
call fcn.00402290
jmp 0x402451
mov edx, 4
xor ebx, ebx
call fcn.00401880
mov edx, 4
call fcn.00401880
mov edx, 4
call fcn.00401880
movzx ebx, byte [edi + ebp]
mov edx, 4
call fcn.00401880
mov edx, dword [0x42ad0c]
cmp edx, 8
je 0x402463
xor ebx, ebx
call fcn.00401880
mov eax, dword [0x42ad10]
mov edx, dword [esp + 0x18]
pop edi
sub eax, edx
cmp eax, 0xb4
pop ebp
pop ebx
jl 0x402498
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
add ecx, 0x40
push str.ERR:_Encoded_row_takes_more_than_1440_bits.__Please_simplify_subtitle._n
push ecx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR71.dll_exit]
add esp, 0x10
ret
Function at 0x4052a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
push edi
mov edi, ecx
jle 0x405327
mov ebp, dword [sym.imp.MSVCR71.dll__read]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
call ebp
add esp, 0xc
cmp eax, 0xffffffff
je 0x4052da
test eax, eax
je 0x40530a
sub esi, eax
add edi, eax
add ebx, eax
test esi, esi
jg 0x4052b4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
call dword [sym.imp.MSVCR71.dll__errno]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCR71.dll_strerror]
mov edx, dword [sym.imp.MSVCR71.dll__iob]
push eax
add edx, 0x40
push str.WARN:__Read_error__s_n
push edx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
lea eax, [ebx + esi]
push eax
push ebx
add ecx, 0x40
push str.WARN:__Read__d__expected__d_n
push ecx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x405330
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [0x42ad90]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
cdq
push edi
mov edi, ecx
mov ecx, dword [0x42ad94]
add ebx, eax
adc ecx, edx
test esi, esi
mov dword [0x42ad90], ebx
mov dword [0x42ad94], ecx
jle 0x405378
mov ebx, dword [sym.imp.MSVCR71.dll__write]
push esi
push edi
push ebp
call ebx
add esp, 0xc
cmp eax, 0xffffffff
je 0x40537d
sub esi, eax
add edi, eax
test esi, esi
jg 0x405363
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.MSVCR71.dll__errno]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR71.dll_strerror]
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
push eax
add ecx, 0x40
push str.ERR:__Write_error__s_n
push ecx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR71.dll_exit]
int3
Function at 0x40af30
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
fld dword [esp + 0x10]
push ebx
xor ebx, ebx
push ebp
push esi
push edi
mov dword [0x42b240], ebx
mov dword [0x42b224], ebx
mov dword [0x42b228], 0xffffffff
mov dword [0x42b248], ebx
mov dword [0x42b21c], 1
mov dword [0x42b234], ebx
mov dword [0x42b220], ebx
mov dword [0x42b22c], ebx
mov dword [0x42b230], ebx
mov dword [0x42b238], ebx
mov dword [0x42a30c], eax
call fcn.0041afe0
fld dword [esp + 0x24]
mov ebp, eax
mov dword [0x42a310], ebp
call fcn.0041afe0
mov dword [esp + 0x10], eax
mov dword [0x42a314], eax
call fcn.0040ae90
mov esi, dword [0x42a2cc]
cmp esi, ebx
je 0x40afcc
mov edi, 0x42447a
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40afcc
mov dword [0x42a2cc], ebx
fld dword [esp + 0x20]
fmul dword [esp + 0x24]
fmul dword [0x4248e4]
call fcn.0041afe0
mov esi, eax
push esi
call dword [sym.imp.MSVCR71.dll_malloc]
mov edi, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov dword [0x42b23c], edi
mov eax, 0x80808080
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x42b23c]
add esp, 4
cmp eax, ebx
jne 0x40b030
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push str.ERR:_Failed_to_allocate_memory_n
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR71.dll_exit]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.00409140
mov dword [0x42b218], eax
mov eax, dword [esp + 0x18]
push eax
push ebp
call fcn.0040a0f0
push 2
call fcn.0040aef0
mov eax, dword [0x42b218]
add esp, 0x14
cmp eax, ebx
je 0x40b06a
mov ecx, dword [eax]
mov dword [0x42b244], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40b300
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, eax
mov eax, 1
push str.POSIXLY_CORRECT
mov dword [0x42a318], eax
mov dword [0x42b1e0], eax
mov dword [0x42b1e8], eax
mov dword [0x42b1f0], 0
call sub.MSVCR71.dll_getenv
mov cl, byte [esi]
add esp, 4
cmp cl, 0x2d
mov dword [0x42b1e4], eax
jne 0x40b349
inc esi
mov eax, esi
mov dword [0x42b1ec], 2
pop esi
ret
cmp cl, 0x2b
jne 0x40b35d
inc esi
mov eax, esi
mov dword [0x42b1ec], 0
pop esi
ret
xor ecx, ecx
test eax, eax
sete cl
mov eax, esi
pop esi
mov dword [0x42b1ec], ecx
ret
Function at 0x41b1b5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x426740
call fcn.0041b448
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x41b1f0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b1f0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41b208
cmp eax, 0x20b
je 0x41b1f5
mov dword [ebp - 0x1c], edi
jmp 0x41b21c
cmp dword [ecx + 0x84], 0xe
jbe 0x41b1f0
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x41b216
cmp dword [ecx + 0x74], 0xe
jbe 0x41b1f0
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x42b260], 0xffffffff
or dword [0x42b264], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x42b208]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x42b204]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42b25c], eax
call fcn.0041b3a4
call fcn.0041b444
cmp dword [0x42a680], edi
jne 0x41b27c
push fcn.0041b444
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0041b432
push 0x42a00c
push 0x42a008
call sub.MSVCR71.dll__initterm
push 0x41b3e8
call fcn.0041b392
mov eax, dword [0x42b200]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x42b1fc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x41b2d0
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x42a004
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00406330
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x41b30c
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x41b341
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041b483
ret
Function at 0x401780
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [esp + 0xc], 0
push esi
mov esi, ecx
jne 0x4017b2
cmp dword [esp + 0x14], 0xd
jne 0x4017b2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4017b2
push esi
call fcn.00401cb0
mov eax, 1
pop esi
ret 0x14
xor eax, eax
pop esi
ret 0x14

Function at 0x403210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403227
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403258
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403254
cmp esi, eax
jae 0x403258
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403244
cmp esi, eax
jb 0x40325e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x20c
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
test eax, eax
je 0x403a35
cmp word [eax], 0
je 0x403a35
push esi
push 0x104
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004282e7
lea ecx, [esp + 0x10]
push 0x2e
push ecx
call fcn.004282bb
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4039c8
xor edx, edx
add esi, 2
mov word [esi - 2], dx
je 0x4039c8
push str.HTML
push esi
call fcn.0043ac1f
add esp, 8
test eax, eax
je 0x4039c8
push esi
lea eax, [esp + 8]
push eax
jmp 0x4039cf
push 0x17
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4039f7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4039f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
test eax, eax
jne 0x403a0f
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042825b
add esp, 0x20c
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebx], eax
setne al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042825b
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov al, 1
call fcn.0042825b
add esp, 0x20c
ret