joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438450
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.0042cf80
mov eax, dword [0x457e80]
mov dword [ebp - 0x20], eax
push esi
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jge 0x43849a
push str.size___0
push 0
push 0x79
push str.chsize.c
push 2
call fcn.004330c0
add esp, 0x14
cmp eax, 1
jne 0x43849a
int3
push 1
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0042eb60
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4384cc
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0042eb60
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4384d4
or eax, 0xffffffff
jmp 0x43861f
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x4385b5
push 0x1000
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0042cf20
add esp, 0xc
push 0x8000
mov eax, dword [ebp + 8]
push eax
call fcn.00440260
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0x1000
jl 0x438523
mov dword [ebp - 0x1024], 0x1000
jmp 0x43852c
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1024], ecx
mov edx, dword [ebp - 0x1024]
mov dword [ebp - 8], edx
cmp dword [ebp - 0xc], 0x1000
jl 0x43854a
mov dword [ebp - 0x1028], 0x1000
jmp 0x438553
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1028], eax
mov ecx, dword [ebp - 0x1028]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042f990
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x438590
call fcn.004380b0
cmp dword [eax], 5
jne 0x438588
call fcn.004380a0
mov dword [eax], 0xd
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x4385a3
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jg 0x43850e
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00440260
add esp, 8
jmp 0x43860a
cmp dword [ebp - 0xc], 0
jge 0x43860a
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042eb60
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00437e70
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43860a
call fcn.004380a0
mov dword [eax], 0xd
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
call fcn.004380b0
mov dword [eax], esi
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042eb60
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
call fcn.0042c800
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x439000
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
cmp dword [0x45a188], 0
jne 0x4390bb
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x439052
push str.MessageBoxA
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x45a188], eax
cmp dword [0x45a188], 0
jne 0x439059
xor eax, eax
jmp 0x43916a
push str.GetActiveWindow
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x45a18c], eax
push str.GetLastActivePopup
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x45a190], eax
cmp dword [0x459f70], 2
jne 0x4390bb
push str.GetUserObjectInformationA
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x45a198], eax
cmp dword [0x45a198], 0
je 0x4390bb
push str.GetProcessWindowStation
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x45a194], eax
cmp dword [0x45a194], 0
je 0x4390fc
call dword [0x45a194]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4390f5
lea edx, [ebp - 0x18]
push edx
push 0xc
lea eax, [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x45a198]
test eax, eax
je 0x4390f5
mov edx, dword [ebp - 4]
and edx, 1
jne 0x4390fc
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x439126
cmp dword [0x459f7c], 4
jb 0x439118
mov eax, dword [ebp + 0x10]
or eax, 0x200000
mov dword [ebp + 0x10], eax
jmp 0x439124
mov ecx, dword [ebp + 0x10]
or ecx, 0x40000
mov dword [ebp + 0x10], ecx
jmp 0x439154
cmp dword [0x45a18c], 0
je 0x439138
call dword [0x45a18c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x439154
cmp dword [0x45a190], 0
je 0x439154
mov edx, dword [ebp - 0x14]
push edx
call dword [0x45a190]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [0x45a188]
mov esp, ebp
pop ebp
ret
Function at 0x43b4e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x457e80]
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 4], 0
jmp 0x43b504
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x13
jae 0x43b51d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx*8 + 0x458828]
jne 0x43b51b
jmp 0x43b51d
jmp 0x43b4fb
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax*8 + 0x458828]
jne 0x43b6db
cmp dword [ebp + 8], 0xfc
je 0x43b563
cmp dword [ebp + 8], 0xff
je 0x43b563
mov edx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x45882c]
push eax
push 0
push 0
push 0
push 1
call fcn.004330c0
add esp, 0x14
cmp eax, 1
jne 0x43b563
int3
cmp dword [0x459fc4], 1
je 0x43b57e
cmp dword [0x459fc4], 0
jne 0x43b5b7
cmp dword [0x457f14], 1
jne 0x43b5b7
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x45882c]
push eax
call fcn.0042dc40
add esp, 4
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*8 + 0x45882c]
push edx
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
jmp 0x43b6db
cmp dword [ebp + 8], 0xfc
je 0x43b6db
mov byte [ebp - 0x1c], 0
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43b5f4
push str._program_name_unknown_
lea ecx, [ebp - 0x120]
push ecx
call fcn.0042c700
add esp, 8
lea edx, [ebp - 0x120]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0042dc40
add esp, 4
add eax, 1
cmp eax, 0x3c
jbe 0x43b63d
lea ecx, [ebp - 0x120]
push ecx
call fcn.0042dc40
add esp, 4
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax - 0x3b]
mov dword [ebp - 0x10], eax
push 3
push 0x450694
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0042fd10
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.0042dc40
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x45882c]
push ecx
call fcn.0042dc40
add esp, 4
lea eax, [esi + eax + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0042cf80
mov dword [ebp - 0x124], esp
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0xc], edx
push str.Runtime_Error__n_nProgram:
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042c700
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0042c710
add esp, 8
push 0x45068c
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042c710
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*8 + 0x45882c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042c710
add esp, 8
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00439000
add esp, 0xc
lea esp, [ebp - 0x128]
mov ecx, dword [ebp - 0x14]
call fcn.0042c800
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4419c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, 4
call fcn.0042cf80
mov dword [ebp - 0x64], esp
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
jne 0x4419f4
xor eax, eax
jmp 0x441b02
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
sub eax, 1
not eax
and eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x459f70]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff1
add ecx, 0x11
imul ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x60]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
jae 0x441a47
xor eax, eax
jmp 0x441b02
cmp dword [0x459f70], 1
je 0x441acd
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
jne 0x441a71
xor eax, eax
jmp 0x441b02
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x48]
and ecx, 0x1000
je 0x441a56
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x44]
and eax, 0x100
je 0x441a9c
mov eax, 1
jmp 0x441b02
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x5c]
jae 0x441aa8
xor eax, eax
jmp 0x441b02
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp - 8]
jae 0x441ab6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
jmp 0x441ad3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [0x459f70]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0x103
add ecx, 1
mov dword [ebp - 4], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x64]
mov esp, ebp
pop ebp
ret

Function at 0x441b10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x457e80]
mov dword [ebp - 8], eax
mov byte [ebp - 0xa], 0
push 6
lea eax, [ebp - 0x10]
push eax
push 0x1004
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
jne 0x441b44
mov dword [ebp - 4], 0xffffffff
jmp 0x441b53
lea edx, [ebp - 0x10]
push edx
call fcn.0042d6b0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0042c800
mov esp, ebp
pop ebp
ret
Function at 0x47a2e4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x47a311
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x47a33c
mov edx, dword [ebp - 8]
add edx, 0xf8
mov eax, dword [ebp + 8]
add eax, 0x10000
cmp edx, eax
ja 0x47a33c
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
jne 0x47a33c
mov eax, dword [ebp - 8]
jmp 0x47a33e
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x47b2af
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x4c], ecx
call fcn.00477280
mov eax, dword [eax + 0x3c]
and eax, 1
je 0x47b324

Function at 0x47b5c1
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret

Function at 0x47c760
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
call fcn.00477280
mov eax, dword [eax + 0x3c]
and eax, 1
je 0x47c7d5
call fcn.0047c77b

Function at 0x47dc4c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call fcn.00477280
mov eax, dword [eax + 0x3c]
and eax, 1
je 0x47dcc1
call fcn.0047dc67

Function at 0x48003d
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x28], ecx
call fcn.00477280
mov eax, dword [eax + 0x3c]
and eax, 1
je 0x4800b2
call fcn.00480058
Function at 0x487d38
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x2c]
jae 0x487e25
mov dword [ebp - 8], 0
push 0x40
mov ecx, dword [ebp - 4]
push ecx
call fcn.004771e0
add esp, 8
test eax, eax
je 0x487db2
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x487db2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 8], edx
push 0xf8
mov eax, dword [ebp - 8]
push eax
call fcn.004771e0
add esp, 8
test eax, eax
je 0x487dab
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
je 0x487db2
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x487e14
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00487930
cmp dword [ebp + 8], 0
je 0x487df2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add ecx, dword [edx + 0xc]
push ecx
call fcn.0047cb9f
add esp, 8
test eax, eax
jne 0x487df0
mov eax, 1
jmp 0x487e27
jmp 0x487e14
cmp dword [ebp + 0xc], 0
je 0x487e14
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00487779
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x487e14
mov eax, 1
jmp 0x487e27
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x30]
mov dword [ebp - 4], ecx
jmp 0x487d4a
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x48f738
Capabilities:
Check for software breakpoints

Disassembly:
call 0x48f73d
pop eax
add eax, 0x1adf
mov eax, dword [eax]
call 0x48f74a
pop ecx
add ecx, 0xfffe69b6
test dword [ecx + 0x30], 8
jne 0x48f75c
jmp eax
cmp byte [eax], 0xcc
je 0x48f779
cmp byte [eax + 1], 0xcc
je 0x48f779
cmp byte [eax + 2], 0xcc
je 0x48f779
cmp byte [eax + 3], 0xcc
je 0x48f779
push eax
ret
call 0x48f77e
pop ecx
add ecx, 0x26c8
call 0x48f78a
pop edx
add edx, 0xffffd635
jmp 0x48cdad
Function at 0x407db0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46471b
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.00459366
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407e32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045727d
mov eax, dword [eax]
push 0x4951c0
push eax
call fcn.0044a0e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004595f1
test bl, bl
je 0x407e32
push 0x4951c0
lea ecx, [esp + 0xc]
call fcn.00459981
push 0x498d34
lea ecx, [esp + 0xc]
call fcn.00459981
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 0x407e6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004595f1
jmp 0x407f39
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 0x407ef2
lea edx, [esp + 0x7c]
push 0x498d30
push edx
call fcn.0044a0e4
add esp, 8
test eax, eax
je 0x407ef2
lea eax, [esp + 0x7c]
push 0x498d2c
push eax
call fcn.0044a0e4
add esp, 8
test eax, eax
je 0x407ef2
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 0x407e82
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.004595f1
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 0x409190
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 0x4091f2
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 0x409200
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46487b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49f1e0]
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 0x409338
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409266
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004595f1
xor eax, eax
jmp 0x4093af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045972e
push esi
lea ecx, [esp + 0xc]
call fcn.004599bd
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 0x40938d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00409190
test eax, eax
jne 0x40938d
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 0x80000000
mov ecx, edi
call fcn.00409190
test eax, eax
jne 0x40938d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0044b120
mov esi, eax
add esp, 8
test esi, esi
jne 0x40936c
lea ecx, [esp + 0x14]
push 0x498d44
push ecx
call fcn.0044b0a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40936c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40936f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004596de
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40927e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004595f1
xor eax, eax
jmp 0x4093af
mov byte [esi], 0
push 0x498d40
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.004595f1
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
Function at 0x41a7a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41a80e
cmp si, 0x69
ja 0x41a80e
add esi, 0xffd0
cmp si, 0x11
je 0x41a7de
push 0x11
call edi
test ax, ax
jge 0x41a7de
or esi, 0x2000
cmp si, 0x10
je 0x41a7f3
push 0x10
call edi
test ax, ax
jge 0x41a7f3
or esi, 0x4000
cmp si, 0x12
je 0x41a808
push 0x12
call edi
test ax, ax
jge 0x41a808
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a81b
mov esi, 0xbd
jmp 0x41a7cf
cmp si, 0x6e
jne 0x41a828
mov esi, 0xbe
jmp 0x41a7cf
cmp si, 0x6f
jne 0x41a7c9
mov esi, 0xbf
jmp 0x41a7cf

Function at 0x41bec0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4af838]
xor edx, edx
cmp eax, edx
jne 0x41bee6
xor eax, eax
mov byte [eax + 0x4af738], al
inc eax
cmp eax, 0x100
jl 0x41bece
mov dword [0x4af838], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4af738
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bf77
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41bf4a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41bf18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41c043
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41c02a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret