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

Disassembly:
push ebx
push esi
mov eax, 0x42a794
push edi
mov edi, 0x11b29719
mov ebx, 0x7f7
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401695
sub eax, edx
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x4016c8
jmp 0x4016b0
movsx eax, byte [ecx + 0x42a794]
or eax, 0x80
cdq
add ecx, 1
xor edi, eax
xor ebx, edx
cmp ecx, esi
jl 0x4016b0
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
ret

Function at 0x401710
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push eax
push ecx
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x401739
xor eax, eax
pop ebx
pop ecx
ret 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401732
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40175a
pop edi
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x18]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401788
pop esi
pop edi
xor eax, eax
pop ebx
pop ecx
ret 0xc
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret 0xc

Function at 0x401910
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.00401220
add esp, 4
call fcn.00414700
mov ebx, eax
test ebx, ebx
jne 0x401931
pop edi
xor al, al
pop ebx
pop ecx
ret
push esi
push ebx
call fcn.00405193
push ebx
mov esi, eax
push 0
push esi
call fcn.00413f90
push 0x42a79c
push edi
call fcn.00413f7d
mov edi, eax
push edi
push ebx
push 1
push esi
call fcn.004146db
add esp, 0x28
xor ecx, ecx
test eax, eax
jle 0x40196e
add byte [ecx + esi], 5
add ecx, 1
cmp ecx, eax
jl 0x401963
push edi
call fcn.00413813
push 0
call fcn.004140bb
push eax
call fcn.0041444f
add esp, 0xc
xor edi, edi
call fcn.0041445c
cdq
mov ecx, 0x7f
idiv ecx
add edi, 1
cmp edi, 4
mov byte [esp + edi + 0xb], dl
jl 0x401986
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push 0x42a798
push eax
mov dword [esi + 0x1c], edx
call fcn.00413f7d
mov edi, eax
add esp, 8
test edi, edi
je 0x4019d1
push edi
push ebx
push 1
push esi
call fcn.004139a9
push edi
call fcn.00413813
add esp, 0x14
push esi
call fcn.0040518e
add esp, 4
pop esi
pop edi
mov al, 1
pop ebx
pop ecx
ret
Function at 0x4019f0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x42829a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x461850]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461850]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
mov esi, ecx
push 0x10
mov dword [esp + 0x1c], esi
call fcn.00405163
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x30], 0
je 0x401a51
mov ecx, eax
call fcn.0040e308
mov ebp, eax
jmp 0x401a53
xor ebp, ebp
mov eax, dword [ebp]
mov edx, dword [eax + 0x20]
push 0
push 0x42
push edi
mov ecx, ebp
mov dword [esp + 0x3c], 0xffffffff
call edx
test eax, eax
jne 0x401a75
xor eax, eax
jmp 0x401b73
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
mov ecx, ebp
call edx
mov ebx, eax
push ebx
call fcn.00405193
add esp, 4
push 2
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x28]
push 0xffffffffffffffff
push 0xfffffffffffffffb
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x34]
push 5
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call edx
mov ecx, esi
call fcn.00401680
xor byte [esp + 0x1c], al
xor byte [esp + 0x1d], al
xor byte [esp + 0x1e], al
xor byte [esp + 0x1f], al
xor byte [esp + 0x20], al
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edx
mov edi, str.love
lea esi, [esp + 0x1c]
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401a6e
mov edx, dword [ebp]
push eax
push eax
push eax
mov eax, dword [edx + 0x28]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov edi, dword [esp + 0x14]
mov eax, dword [edx + 0x34]
push ebx
push edi
mov ecx, ebp
call eax
xor esi, esi
test ebx, ebx
jle 0x401b23
mov al, bl
sub al, 5
jmp 0x401b10
mov ecx, dword [esp + 0x18]
mov dl, byte [ecx + 0x78]
xor dl, al
xor byte [esi + edi], dl
add esi, 1
cmp esi, ebx
jl 0x401b10
mov eax, dword [ebp]
mov edx, dword [eax + 0x28]
push 0
push 0
push 0
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x38]
push ebx
push edi
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x2c]
push 0
add ebx, 0xfffffffb
push ebx
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x4c]
mov ecx, ebp
call edx
push edi
call fcn.0040518e
mov eax, dword [ebp]
mov edx, dword [eax + 4]
add esp, 4
push 1
mov ecx, ebp
call edx
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00413667
add esp, 0x20
ret 4
Function at 0x401f80
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x42831b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x461850]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
push edi
mov eax, dword [0x461850]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040deaa
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401fd6
push 0x80004005
call fcn.004017c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0
push 0x26
lea ecx, [esp + 0x1c]
push ecx
push 0
mov dword [esp + 0x238], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x10]
call fcn.00401da0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push str._smir2.exe
push eax
call fcn.00401f60
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
push str.RES_DATA
push 0x84
mov ecx, esi
call fcn.00401710
push edi
mov ecx, esi
call fcn.004019f0
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
push 0
push 0
push edi
push str.open
push 0
call ebx
cmp eax, 0x20
jl 0x40208c
lea eax, [edi - 0x10]
mov dword [esp + 0x228], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x402116
lea ecx, [esp + 0x118]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x10]
call fcn.00401da0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push str._smir2.exe
push eax
call fcn.00401f60
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
push str.RES_DATA
push 0x84
mov ecx, esi
call fcn.00401710
push edi
mov ecx, esi
call fcn.004019f0
push 1
push 0
push 0
push edi
push str.open
push 0
call ebx
lea eax, [edi - 0x10]
mov dword [esp + 0x228], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402114
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00413667
add esp, 0x21c
ret
Function at 0x404fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
mov dword [esp + 8], ecx
call fcn.00408d41
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x405097
call fcn.00408d41
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x405097
push edi
call fcn.00408d41
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40503d
pop edi
pop esi
pop ebp
pop ecx
ret 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x405086
test ebx, ebx
je 0x405086
push edi
push eax
push ebx
call fcn.00414a80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.00404c00
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8

Function at 0x40de45
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40de88
call fcn.00408d41
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40de88
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40dea3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040d9fc
test ebx, ebx
mov esi, eax
je 0x40dea1
test edi, edi
je 0x40dea1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40fde8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40fe16
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40fe34
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040fd52
jmp 0x40fe34
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40fe34
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040fd52
test edi, edi
mov eax, edi
jne 0x40fe1e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x464810]
test ecx, ecx
je 0x40fef7
jmp 0x40fde7
ret 8

Function at 0x413667
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x461850]
jne 0x413671
repz ret
jmp fcn.0041931c
Function at 0x4228b5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418d65
xor ebx, ebx
cmp dword [0x46556c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42298a
push 0x42d704
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4228f5
xor eax, eax
jmp 0x422a4e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42d6f8
push edi
call esi
cmp eax, ebx
je 0x4228ee
push eax
call fcn.00418d02
mov dword [esp], 0x42d6e8
push edi
mov dword [0x46556c], eax
call esi
push eax
call fcn.00418d02
mov dword [esp], 0x42d6d4
push edi
mov dword [0x465570], eax
call esi
push eax
call fcn.00418d02
mov dword [0x465574], eax
lea eax, [ebp - 8]
push eax
call fcn.00413b95
test eax, eax
pop ecx
pop ecx
je 0x422958
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414906
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42298a
push 0x42d6b8
push edi
call esi
push eax
call fcn.00418d02
cmp eax, ebx
pop ecx
mov dword [0x46557c], eax
je 0x42298a
push 0x42d6a0
push edi
call esi
push eax
call fcn.00418d02
pop ecx
mov dword [0x465578], eax
mov eax, dword [0x465578]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x422a03
cmp dword [0x46557c], esi
je 0x422a03
push eax
call fcn.00418d6e
pop ecx
call eax
cmp eax, ebx
je 0x4229d0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x46557c]
call fcn.00418d6e
pop ecx
call eax
test eax, eax
je 0x4229d0
test byte [ebp - 0x18], 1
jne 0x422a03
lea eax, [ebp - 0xc]
push eax
call fcn.00413bcc
test eax, eax
pop ecx
je 0x4229eb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414906
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4229fa
or dword [ebp + 0x10], 0x200000
jmp 0x422a34
or dword [ebp + 0x10], 0x40000
jmp 0x422a34
mov eax, dword [0x465570]
cmp eax, esi
je 0x422a34
push eax
call fcn.00418d6e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x422a34
mov eax, dword [0x465574]
cmp eax, esi
je 0x422a34
push dword [ebp - 4]
push eax
call fcn.00418d6e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x46556c]
call fcn.00418d6e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427e57
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x461850]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00427dec
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00413f90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x427ea6
cmp dword [ebp - 0x1c], 5
jb 0x427ebe
jmp 0x427eba
cmp dword [ebp - 0x10], 1
jne 0x427ebe
cmp dword [ebp - 0x1c], 4
ja 0x427eba
jne 0x427ebe
cmp dword [ebp - 0x18], 0
jbe 0x427ebe
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42e0e8
call fcn.00427cc0
test eax, eax
jge 0x427edf
mov byte [0x462ce4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413667
add ebp, 0x78
leave
ret

Function at 0x222249b
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
sub edi, eax
jmp 0x2191359
sub esp, 0x10c
stc
cmp dh, 0xbd
push ebx
test ecx, edi
push esi
push edi
shrd di, bx, 0xab
mov edi, eax
sar al, cl
lea eax, [ebp - 0x10c]
test ah, 0x1f
clc
sub edx, edx
test edx, ebx
jmp 0x19634a1
jmp fcn.021259cc
xor cl, bl
pop eax
not cl
lea eax, [eax + eax*4 + 0x52a0449e]
inc eax
dec cl
call fcn.02c909ed
inc ecx
movzx esi, sp
inc eax
movzx edx, ch
inc ebx
mov dword [esi - 0xb622], ecx
inc ecx
movsx ebx, dx
inc dx
add dword [esp - 0x5b09], 0x415e9806
pop edi
pop edi
jbe fcn.021827a8
sub esi, 4
mov edx, 0x15084b93
movsx eax, dl
mov ecx, dword [edx + esi - 0x15084b93]
call fcn.02c01839
sub ecx, ecx
lea edi, [edi + ecx + 4]
push ecx
sub dword [esp + ecx*8], 0xbb6da5
dec ecx
sub esi, 1
rol ecx, cl
movzx ecx, byte [esi]
jb 0x21d9a74
push ebp
mov ebp, esp
jmp 0x216a5f4
lea esi, [esi + eax*4 - 0x3fff8]
xor ecx, ebx
neg ecx
lea eax, [eax + 0x5d3f6729]
ror eax, 0xb3
dec ecx
push eax
mov dword [esp + eax*2 - 0x19ca174c], eax
sub dword [esp + eax - 0xce50ba6], eax
bswap ecx
lea ecx, [ecx + eax - 0x268bc94c]
lea edx, [eax*8 - 0x25743955]
xor ebx, ecx
pop edx
call fcn.02c6d6e9
mov edx, dword [edi]
mov ecx, 0xc2af02ab
jmp 0x222247b
Function at 0x4144e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x489fbb
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.0047e7a8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x414562
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047c4ea
mov eax, dword [eax]
push 0x4c8c90
push eax
call fcn.0046f054
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047ea33
test bl, bl
je 0x414562
push 0x4c8c90
lea ecx, [esp + 0xc]
call fcn.0047edc3
push 0x4c8c9c
lea ecx, [esp + 0xc]
call fcn.0047edc3
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 0x41459e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047ea33
jmp 0x414669
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 0x414622
lea edx, [esp + 0x7c]
push 0x4c8c98
push edx
call fcn.0046f054
add esp, 8
test eax, eax
je 0x414622
lea eax, [esp + 0x7c]
push 0x4c8c94
push eax
call fcn.0046f054
add esp, 8
test eax, eax
je 0x414622
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 0x4145b2
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.0047ea33
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 0x414e70
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 0x414ed2
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 0x414ee0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48a03b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d2580]
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 0x415018
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x414f46
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047ea33
xor eax, eax
jmp 0x41508f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047eb70
push esi
lea ecx, [esp + 0xc]
call fcn.0047edff
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 0x41506d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00414e70
test eax, eax
jne 0x41506d
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 SysReAllocString
mov ecx, edi
call fcn.00414e70
test eax, eax
jne 0x41506d
lea eax, [esp + 0x14]
push 0x4c8cac
push eax
call fcn.004701a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41504c
lea ecx, [esp + 0x14]
push 0x4c8ca8
push ecx
call fcn.00470120
mov esi, eax
add esp, 8
test esi, esi
jne 0x41504c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41504f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047eb20
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x414f5e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047ea33
xor eax, eax
jmp 0x41508f
mov byte [esi], 0
push 0x4c8ca4
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.0047ea33
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 0x4257b0
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 0x42581e
cmp si, 0x69
ja 0x42581e
add esi, 0xffd0
cmp si, 0x11
je 0x4257ee
push 0x11
call edi
test ax, ax
jge 0x4257ee
or esi, 0x2000
cmp si, 0x10
je 0x425803
push 0x10
call edi
test ax, ax
jge 0x425803
or esi, 0x4000
cmp si, 0x12
je 0x425818
push 0x12
call edi
test ax, ax
jge 0x425818
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42582b
mov esi, 0xbd
jmp 0x4257df
cmp si, 0x6e
jne 0x425838
mov esi, 0xbe
jmp 0x4257df
cmp si, 0x6f
jne 0x4257d9
mov esi, 0xbf
jmp 0x4257df

Function at 0x427160
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e2d18]
xor edx, edx
cmp eax, edx
jne 0x427186
xor eax, eax
mov byte [eax + 0x4e2c18], al
inc eax
cmp eax, 0x100
jl 0x42716e
mov dword [0x4e2d18], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e2c18
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x427217
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 0x4271ea
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 0x4271b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x427290
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 0x4272e3
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 0x4272ca
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