joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4050f0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.004051b0
mov eax, dword [0x40f824]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x405114
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40f820], 1
mov byte [0x40f81c], bl
jne 0x40516e
mov ecx, dword [0x410e2c]
test ecx, ecx
je 0x40515c
mov esi, dword [0x410e28]
sub esi, 4
cmp esi, ecx
jb 0x40515c
mov eax, dword [esi]
test eax, eax
je 0x405155
call eax
mov ecx, dword [0x410e2c]
sub esi, 4
cmp esi, ecx
jae 0x405147
push 0x40c01c
push 0x40c014
call fcn.004051d0
add esp, 8
push 0x40c024
push 0x40c020
call fcn.004051d0
add esp, 8
test ebx, ebx
je 0x40518d
call fcn.004051c0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x40f824], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405840
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40f930]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x405882
call edi
mov esi, eax
test esi, esi
je 0x40586c
mov eax, 1
jmp 0x40587d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40598f
mov eax, 2
mov dword [0x40f930], eax
cmp eax, 1
jne 0x405922
test esi, esi
jne 0x40589b
call edi
mov esi, eax
test esi, esi
je 0x40598f
cmp word [esi], 0
mov eax, esi
je 0x4058b5
add eax, 2
cmp word [eax], 0
jne 0x4058a3
add eax, 2
cmp word [eax], 0
jne 0x4058a3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x405914
push edi
call fcn.00403700
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405914
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x405906
push ebx
call fcn.00403690
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40598f
test ebx, ebx
jne 0x405933
call ebp
mov ebx, eax
test ebx, ebx
je 0x40598f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40594b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40593b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40593b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403700
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40596d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4060c0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00404790
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x40e59c], eax
je 0x406118
push 0x74
push 1
call fcn.004071c0
mov esi, eax
add esp, 8
test esi, esi
je 0x406118
mov eax, dword [0x40e59c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x406118
push esi
call fcn.00406120
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x406140
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x40e59c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4061ae
push 0x74
push 1
call fcn.004071c0
mov esi, eax
add esp, 8
test esi, esi
je 0x4061a4
mov ecx, dword [0x40e59c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4061a4
push esi
call fcn.00406120
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00403a00
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x4063d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40e5b0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4063f4
add eax, 8
inc ebp
cmp eax, 0x40e640
jb 0x4063e5
cmp ecx, dword [ebp*8 + 0x40e5b0]
jne 0x40659b
mov eax, dword [0x40f774]
cmp eax, 1
je 0x40655d
test eax, eax
jne 0x406420
cmp dword [0x40c2f4], 1
je 0x40655d
cmp ecx, 0xfc
je 0x40659b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40645b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4064a4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40a490
add ebx, ecx
push ebx
call fcn.00403a60
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a470
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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 edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40e5b4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407270
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x410d20]
test eax, eax
je 0x40656e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x406578
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40e5b4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x406730
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40675c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x410d20]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x406797
push 2
push ebp
push ecx
call fcn.00406630
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4068f9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x406841
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4067f2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4067df
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4067c2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4068ea
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40683d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4067be
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4068d9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406895
cmp eax, 5
jne 0x40687e
call fcn.00407380
mov dword [eax], 9
call fcn.00407390
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00407300
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4068b5
cmp byte [ebp], 0x1a
jne 0x4068b5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00407380
mov dword [eax], 0x1c
call fcn.00407390
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40683d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40692a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x406841
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x406841
Function at 0x409280
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x40fce0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4092c8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4092ac
mov eax, 1
jmp 0x4092c3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4093a8
mov eax, 2
mov dword [0x40fce0], eax
cmp eax, 2
jne 0x4092e8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x4093ba
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x409303
mov ecx, dword [0x40fb78]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x409322
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00403700
mov esi, eax
add esp, 4
test esi, esi
jne 0x409339
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40939f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x409380
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40939f
push esi
call fcn.00403690
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4093af
push esi
call fcn.00403690
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00403690
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401ad0
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
push edi
push str..Main_gamex.ini
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.00402fe0
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x100
lea ecx, [esi + 0xd6]
push ecx
push 0
push str.Name
push str.AppName
call edi
test eax, eax
jne 0x401b32
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401b2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 8]
push ecx
push 0x100
lea edx, [esi + 0xa4]
push edx
push 0
push str.Name
push str.Main
call edi
test eax, eax
jne 0x401b6b
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x401b20
mov ecx, dword [esp + 8]
push ecx
push 0x100
add esi, 0x108
push esi
push 0
push str.Name
push str.Params
call edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401baa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x402d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402d99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402dd4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402dd0
lea ebx, [ebx]
cmp esi, eax
jae 0x402dd4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402dc0
cmp esi, eax
jb 0x402dda
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.004083a6

Function at 0x40974e
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x409779
call fcn.00406eca
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x40979c
push eax
push dword [esi + 4]
call fcn.004096d4
push esi
push eax
mov ecx, 0x4392e8
call fcn.00409388
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x410b66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x410bad
call fcn.00406eca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x410bad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x410bc9
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004106e0
mov esi, eax
test edi, edi
je 0x410bc7
test ebx, ebx
je 0x410bc7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x415888
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437c84]
jne 0x415892
repz ret
jmp fcn.0041b28f

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x415ae0
call fcn.00417181
mov dword [eax], esi
call fcn.0041716e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041b83c
add esp, 0x14
push 0x16
pop eax
jmp 0x415b35
test dword [ebp + 0xc], 0xfffffff9
jne 0x415abc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415b0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417194
pop ecx
call fcn.0041716e
mov eax, dword [eax]
jmp 0x415b35
test al, 0x10
jne 0x415b33
test al, 1
je 0x415b33
test byte [ebp + 0xc], 2
je 0x415b33
call fcn.00417181
mov dword [eax], 5
call fcn.0041716e
mov dword [eax], 0xd
jmp 0x415b04
xor eax, eax
pop esi
pop ebp
ret
Function at 0x425f0e
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.0041bc47
and dword [ebp - 4], 0
cmp dword [0x43ba10], 0
mov ebx, eax
jne 0x425fbf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x426070
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43021c
push edi
call esi
test eax, eax
je 0x426070
push eax
call fcn.0041bbd5
mov dword [esp], 0x43020c
push edi
mov dword [0x43ba10], eax
call esi
push eax
call fcn.0041bbd5
mov dword [esp], 0x4301f8
push edi
mov dword [0x43ba14], eax
call esi
push eax
call fcn.0041bbd5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ba18], eax
call esi
push eax
call fcn.0041bbd5
pop ecx
mov dword [0x43ba20], eax
test eax, eax
je 0x425fbf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041bbd5
pop ecx
mov dword [0x43ba1c], eax
mov eax, dword [0x43ba1c]
cmp eax, ebx
je 0x426017
cmp dword [0x43ba20], ebx
je 0x426017
push eax
call fcn.0041bc50
push dword [0x43ba20]
mov esi, eax
call fcn.0041bc50
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x426017
test edi, edi
je 0x426017
call esi
test eax, eax
je 0x42600e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42600e
test byte [ebp - 0xc], 1
jne 0x426017
or dword [ebp + 0x10], 0x200000
jmp 0x426050
mov eax, dword [0x43ba14]
cmp eax, ebx
je 0x426050
push eax
call fcn.0041bc50
pop ecx
test eax, eax
je 0x426050
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x426050
mov eax, dword [0x43ba18]
cmp eax, ebx
je 0x426050
push eax
call fcn.0041bc50
pop ecx
test eax, eax
je 0x426050
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ba10]
call fcn.0041bc50
pop ecx
test eax, eax
je 0x426070
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x426072
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a920
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d879b
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.004c9b54
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42a9a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c74af
mov eax, dword [eax]
push 0xec4e44
push eax
call fcn.004b8b54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c9ddf
test bl, bl
je 0x42a9a2
push 0xec4e44
lea ecx, [esp + 0xc]
call fcn.004ca16f
push 0xec4e50
lea ecx, [esp + 0xc]
call fcn.004ca16f
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 0x42a9de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c9ddf
jmp 0x42aaa9
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 0x42aa62
lea edx, [esp + 0x7c]
push 0xec4e4c
push edx
call fcn.004b8b54
add esp, 8
test eax, eax
je 0x42aa62
lea eax, [esp + 0x7c]
push 0xec4e48
push eax
call fcn.004b8b54
add esp, 8
test eax, eax
je 0x42aa62
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 0x42a9f2
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.004c9ddf
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 0x42b2b0
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 0x42b312
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 0x42b320
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d881b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xed45f4]
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 0x42b458
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42b386
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c9ddf
xor eax, eax
jmp 0x42b4cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004c9f1c
push esi
lea ecx, [esp + 0xc]
call fcn.004ca1ab
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 0x42b4ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0042b2b0
test eax, eax
jne 0x42b4ad
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 accept
mov ecx, edi
call fcn.0042b2b0
test eax, eax
jne 0x42b4ad
lea eax, [esp + 0x14]
push 0xec4e60
push eax
call fcn.004b9ae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b48c
lea ecx, [esp + 0x14]
push 0xec4e5c
push ecx
call fcn.004b9a60
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b48c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42b48f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004c9ecc
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42b39e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c9ddf
xor eax, eax
jmp 0x42b4cf
mov byte [esi], 0
push 0xec4e58
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.004c9ddf
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