joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421a80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x78]
mov ecx, 0x1b
push esi
push edi
mov esi, str.sdfksOIAJEFJLKALSDKFjkdhfiehsdKASDJJLKNASDHFUIAkhfu340985LIASDJFOISDLKJFOIESJFDKSMFMLKdLKASDJFOIDJKKfhisdfi
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test eax, eax
jle 0x421adf
mov edi, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x80]
push ebp
sub edi, ebx
mov eax, ecx
mov ebp, 0x28
cdq
idiv ebp
lea esi, [ecx + ebx]
mov al, byte [esp + edx + 0x10]
mov dl, byte [edi + esi]
xor al, dl
inc ecx
mov byte [esi], al
mov eax, dword [esp + 0x88]
cmp ecx, eax
jl 0x421aae
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x6c
ret
pop edi
mov eax, 1
pop esi
add esp, 0x6c
ret

Function at 0x421d30
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x214c
call fcn.004317f0
mov ecx, dword [esp + 0x2150]
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x421d6e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214c
ret
xor ebx, ebx
lea ebp, [esp + 0x21c]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x34], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x421ddb
mov edx, dword [esp + 0x14]
inc edx
push edx
call sub.MFC42.DLL_operatornew
mov edx, eax
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea esi, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [ebp], edx
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
add ebp, 4
jmp 0x421d77
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x421df7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214c
ret
lea edx, [ebx*4 + 4]
push edx
call sub.MFC42.DLL_operatornew
mov ebp, dword [esp + 0x2168]
lea edx, [ebx*4]
mov ecx, edx
mov edi, eax
mov dword [ebp], eax
mov eax, ecx
lea esi, [esp + 0x220]
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
pop edi
pop esi
pop ebp
mov dword [edx + ecx], 0
pop ebx
add esp, 0x214c
ret
Function at 0x422ab0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x422b5d
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x422af3
mov eax, dword [esp + 8]
test eax, eax
je 0x422ae7
cmp eax, 0xa
jne 0x422b0c
mov eax, 1
add esp, 0x94
ret
cmp eax, 5
jne 0x422b33
mov eax, dword [esp + 8]
test eax, eax
jne 0x422b1d
mov eax, 2
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x422b5d
mov eax, 3
add esp, 0x94
ret
cmp eax, 1
je 0x422b27
cmp eax, 2
jne 0x422b5d
mov eax, 4
add esp, 0x94
ret
cmp eax, 6
jne 0x422b5d
mov eax, dword [esp + 8]
test eax, eax
jne 0x422b4c
mov eax, 5
add esp, 0x94
ret
cmp eax, 1
jne 0x422b5d
mov eax, 7
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x423a70
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x43fa6c]
sub esp, 0x104
mov ecx, dword [eax - 8]
push edi
test ecx, ecx
jne 0x423aa7
mov edx, dword [esp + 0x10c]
test edx, edx
je 0x423ab4
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x423ab4
push edx
mov ecx, 0x43fa6c
call fcn.00431552
mov eax, 1
pop edi
add esp, 0x104
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push ecx
push 0
stosw word es:[edi], ax
push 0
push 0x1a
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x423b2e
mov edi, str.Chinatelecom_reg.xml
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x43fa6c
call fcn.00431552
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x104
ret
xor eax, eax
pop edi
add esp, 0x104
ret
Function at 0x423f80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x434eab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push str.SOFTWARECW_MiniGnet_pppoe2_
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
push str.systemset_
lea ecx, [esp + 4]
mov dword [esp + 0x210], 0
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x21c]
test edx, edx
je 0x423fe7
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x423fe7
push edx
lea ecx, [esp + 4]
call fcn.00431552
mov edx, dword [esp]
lea eax, [esp + 8]
lea ecx, [esp + 0x220]
push eax
mov eax, dword [esp + 0x224]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x424043
lea ecx, [esp]
mov dword [esp + 0x20c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
add esp, 0x210
ret
mov eax, dword [esp + 0x214]
lea ecx, [esp + 4]
push esi
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x228]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x224]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x4240b0
lea ecx, [esp]
mov dword [esp + 0x20c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
add esp, 0x210
ret
mov eax, dword [esp + 4]
test eax, eax
jne 0x4240bd
mov byte [esp + 0xc], 0
mov ecx, dword [esp + 0x218]
lea eax, [esp + 0xc]
push eax
call fcn.00431552
lea ecx, [esp]
mov dword [esp + 0x20c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x204]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x210
ret
Function at 0x424100
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x434ecb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push edi
push str.SOFTWARECW_MiniGnet_pppoe2_
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
push str.systemset_
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x12c]
test edx, edx
je 0x424167
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x424167
push edx
lea ecx, [esp + 0xc]
call fcn.00431552
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x130]
push eax
mov eax, dword [esp + 0x134]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4241c5
lea ecx, [esp + 8]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
mov ebx, dword [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
push esi
mov edi, dword [ebx]
lea esi, [esp + 0x18]
mov dword [esp + 0x10], esi
mov edx, dword [edi - 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x12c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x138]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x134]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x42425b
lea ecx, [esp + 8]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.00431552
lea ecx, [esp + 8]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x114]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x4242a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x424323
mov edi, str.Chinatelecom
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x118]
call fcn.00431552
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x104
ret
xor eax, eax
pop edi
add esp, 0x104
ret
Function at 0x424380
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x434ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x2c]
call fcn.0043153a
xor esi, esi
lea ecx, [esp + 4]
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 1
cmp dword [eax - 8], esi
jle 0x424431
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + eax], 0x5c
jne 0x424428
lea ecx, [esi + 1]
lea edx, [esp + 0xc]
push ecx
push 0
push edx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 8]
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0xc
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x4243cb
pop edi
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x425620
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x435108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x98]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x3c], esi
jle 0x425717
lea ebp, [edi + 0x90]
lea eax, [esp + 0x18]
push esi
push eax
mov ecx, ebp
call fcn.00425e10
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x5c]
cmp ecx, edx
lea ecx, [esp + 0x18]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x425692
mov eax, dword [edi + 0x98]
inc esi
cmp esi, eax
jl 0x42565c
jmp 0x425717
mov edi, dword [ebp + 8]
mov ebp, dword [ebp + 4]
lea ebx, [esi*8]
sub edi, esi
sub ebx, esi
dec edi
shl ebx, 2
add ebp, ebx
mov dword [esp + 0x14], 0
mov ecx, ebp
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
add ebp, 0x1c
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x14], eax
jne 0x4256b1
test edi, edi
je 0x425701
mov eax, dword [esp + 0x10]
lea ecx, [edi*8]
sub ecx, edi
add eax, 0x90
shl ecx, 2
mov eax, dword [eax + 4]
inc esi
push ecx
lea edx, [esi*8]
sub edx, esi
lea ecx, [eax + edx*4]
add eax, ebx
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov edi, edx
mov ecx, dword [edx + 0x98]
lea eax, [edx + 0x90]
dec ecx
mov dword [eax + 8], ecx
sub esp, 0x1c
lea eax, [esp + 0x60]
mov esi, esp
mov dword [esp + 0x30], esp
push eax
mov ecx, esi
call fcn.0043153a
mov edx, dword [esp + 0x64]
lea ecx, [esi + 4]
mov dword [esi + 4], edx
mov eax, dword [esp + 0x68]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x6c]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x70]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x74]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x78]
lea ecx, [edi + 0x90]
mov dword [esi + 0x18], edx
call fcn.00425e70
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 0x1c
Function at 0x42b320
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x435729
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x43762c
mov dword [esi + 4], edi
mov dword [esp + 0x16c], edi
mov dword [esi + 0x10], 0x437618
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 0xa
lea ecx, [esi + 0x64]
mov byte [esp + 0x16c], 1
call fcn.00431276
lea eax, [esp + 0x10]
push edi
push eax
push 0x154
push 0x29
mov dword [esi], 0x4375e0
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 4
call ebx
push 0xd
mov dword [esi + 0x30], eax
call ebx
push 0xe
mov dword [esi + 0x34], eax
call ebx
push 7
mov dword [esi + 0x3c], eax
call ebx
push 0x11
mov dword [esi + 0x38], eax
call ebx
mov ecx, dword [esi + 0x30]
push 7
mov dword [esi + 0x40], eax
mov dword [esi + 0x54], ecx
call ebx
push 7
mov dword [esi + 0x44], eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
push edi
push edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 0xc00000
mov dword [esi + 0x50], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x78], 0x18
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov edx, dword [0x43f884]
push edi
push 1
push 0x86
push edx
call ebx
push edi
mov dword [esi + 0x7c], eax
mov eax, dword [esp + 0x178]
push edi
push edi
push 1
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], edi
push 0x87
mov ecx, dword [0x43f884]
push ecx
call ebx
push edi
push edi
mov dword [esi + 0x8c], eax
mov edx, dword [0x43f884]
push edi
push 1
push 0x88
push edx
call ebx
mov ecx, dword [esp + 0x164]
mov dword [esi + 0x90], eax
mov dword [esi + 0x88], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret 4
Function at 0x42fc60
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x435e18
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x18c]
mov esi, dword [esp + 0x1c]
cmp eax, 3
mov dword [esp + 0x14], 0
jne 0x42fc9f
mov eax, dword [esi]
push 0xa2a2a2
mov ecx, esi
call dword [eax + 0x38]
jmp 0x42fcab
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
push 1
mov ecx, esi
mov ebx, eax
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [edi + 0x19c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
lea ecx, [edi + 0x1b8]
call fcn.00430940
test al, al
je 0x42fcf2
lea ecx, [edi + 0x1a4]
call fcn.00430940
test al, al
je 0x42fcf2
mov ecx, dword [edi + 0x1cc]
mov eax, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
lea edi, [esp + 0x20]
push 0x25
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x430990
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x435ee8
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x430aa0
push ebx
push ebp
push edi
lea ecx, [esp + 0x14]
call fcn.00431276
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
mov dword [esp + 0x50], 0
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
test eax, eax
je 0x4309ee
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::Attach
test esi, esi
je 0x430a06
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x18]
push esi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
cmp ebx, ecx
mov dword [esp + 0x10], eax
jge 0x430a71
cmp esi, dword [esp + 0x58]
jge 0x430a63
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x5c]
push ebp
push edi
push ebx
mov ecx, dword [eax + 4]
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x58]
add esi, edi
cmp esi, eax
jl 0x430a2b
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
add ebx, ebp
cmp ebx, eax
jl 0x430a25
mov eax, dword [esp + 0x10]
pop edi
pop ebp
test eax, eax
pop ebx
je 0x430a7b
mov eax, dword [eax + 4]
mov edx, dword [esp + 0xc]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 8]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 0x14

Function at 0x431110
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x435f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x431188
xor edi, edi
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00430e80
test eax, eax
jne 0x431188
inc edi
cmp edi, 4
jl 0x43113f
test eax, eax
jne 0x431188
lea edx, [esp + 0x1c]
lea eax, [esp + 8]
push edx
push 0x43f788
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 8]
push 0
push 0
push ecx
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_AfxMessageBox
push 0
call dword [sym.imp.MSVCRT.dll_exit]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40a4b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x465f5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045ab6b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a532
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00458aba
mov eax, dword [eax]
push 0x5481f0
push eax
call fcn.0044b784
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045adf6
test bl, bl
je 0x40a532
push 0x5481f0
lea ecx, [esp + 0xc]
call fcn.0045b186
push 0x54bd58
lea ecx, [esp + 0xc]
call fcn.0045b186
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a56e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045adf6
jmp 0x40a639
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a5f2
lea edx, [esp + 0x7c]
push 0x54bd54
push edx
call fcn.0044b784
add esp, 8
test eax, eax
je 0x40a5f2
lea eax, [esp + 0x7c]
push 0x54bd50
push eax
call fcn.0044b784
add esp, 8
test eax, eax
je 0x40a5f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a582
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045adf6
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40ae92
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40aea0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x465fdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x552254]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40afd8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40af06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045adf6
xor eax, eax
jmp 0x40b04f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045af33
push esi
lea ecx, [esp + 0xc]
call fcn.0045b1c2
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b02d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040ae30
test eax, eax
jne 0x40b02d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040ae30
test eax, eax
jne 0x40b02d
lea eax, [esp + 0x14]
push 0x54bd6c
push eax
call fcn.0044c7c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b00c
lea ecx, [esp + 0x14]
push 0x54bd68
push ecx
call fcn.0044c740
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b00c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b00f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045aee3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40af1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045adf6
xor eax, eax
jmp 0x40b04f
mov byte [esi], 0
push 0x54bd64
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045adf6
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4