joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003fda0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1003fdd3
push esi
call fcn.10042ea0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1003fdcc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x1003fe59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1003fe42
mov eax, dword [esi + 8]
test eax, eax
je 0x1003fdf7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1003fe3e
cmp eax, 2
je 0x1003fe42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003fdea
cmp eax, 3
je 0x1003fe1d
cmp eax, 1
jne 0x1003fdea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1003fdea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1003fdea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1003fe80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1003fe68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1003fe80
add esp, 4
pop esi
ret

Function at 0x10060f45
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10060f7d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1005effc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1005efd4
jmp 0x10060f89
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1006263b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1006267d
call fcn.10068109
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1006267d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10062674
xor eax, eax
jmp 0x10062685
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1006268b
pop edi
pop esi
pop ebx
ret 4
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x407025
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebx + 0x56c18bd8]
mov esi, dword [ebp + 0xc]
and eax, 3
or al, 0x83
loopne 0x406f45
push edi
mov dword [edx], 0xa700
je 0x406f76
add byte [edi + 0x2b740000], ah
test eax, 0x8b1c74f6
push es
adc byte [edi + 0x5915caff], ah
clc
test al, 0xdc
adc dh, dh
rol dword [edx], 0x74
sbb eax, 0x1187b85f
add dword [eax], eax
pop ss
pop ebp
ret 0x18
mov esp, esi
adc byte [ebp - 0x47fab240], al
add al, byte [eax]
add byte [eax], al
mov edi, dword [ebp - 0x63]
or eax, 0x144d8b77
push ecx
push eax
push esi
push edx
call 0x4111a0
in al, 0x8c
sbb byte [edi + 0x5e], bl
cmp edx, eax
add byte [ecx + 0x55909090], dh
mov ebp, esp
sub esp, 0x4c
dec eax
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
push 0xffffffffffffff89
jne 0x406f3e
jne 0x406f50
mov esi, str.0.0.0.0
mov al, byte [esi]
and byte [ebx + 0x39b98c0f], cl
add byte [eax], al
out 0x75, eax
jg 0xe841587d
push 0xedf434
push esi
dec dword [esi + 0xefc11c]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
mov ch, 0xc0
add esp, 8
repne scasb al, byte es:[edi]
sub al, 0xd1
dec ecx
cmc
ror dword [edi], 1
test dword [ecx], ecx
add byte [ebx + 0x5cbaff56], dl
rol dword [eax], 0xcc
inc ebp
clc
cmp dword [ebp - 3], eax
lea ecx, [ebp + 0x22]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x12], 0x89d95d89
dec ebp
call 0xdeb3c59a
inc ebp
or al, 0x8b
dec eax
or al, 0x39
sbb dword [esp + eax*4], esi
test al, 0
add byte [eax], al
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 0x5c]
retf 0x1338
cmp byte [ebx], dl
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x417f85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x417f94
pop dword [ebp - 0x3c]
mov eax, 0x1596608f
sub eax, 0x1554e0fb
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xbe20641a
add dword [ebp - 0x4c], 0x9031e131
mov dword [ebp - 0x48], 0xa77f2621
add dword [ebp - 0x48], 0x8ab42624
mov dword [ebp - 0x44], 0x6bc5ed89
sub dword [ebp - 0x44], 0x1f79a95b
mov dword [ebp - 0x40], 0xc49dd0f
add dword [ebp - 0x40], 0xf3b622f1
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xb9a20828
sub dword [ebp - 0x4c], 0x452f9ed2
mov dword [ebp - 0x48], 0xe4334d84
add dword [ebp - 0x48], 0x5d3913f1
mov dword [ebp - 0x44], 0x32c4812a
add dword [ebp - 0x44], 0x30aaeb42
mov dword [ebp - 0x40], 0x3c8e3fd2
add dword [ebp - 0x40], 0xc371c02e
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x4935e2b9
add eax, 0xb70c4e6b
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b0e6
push 0
call eax
mov ecx, 0xa96b7689
sub ecx, 0xa96b3989
xor esi, esi
add esi, eax
mov edi, 0x38fb06a1
sub edi, 0x38b7c2a1
add edi, dword [ebp - 0x3c]
mov edx, 0x6e28ead6
sub edx, 0x9b5ad21d
mov dword [ebp - 0x24], 0x22b9ca98
mov ebx, dword [edi]
sub dword [ebp - 0x18], 0x1af8077
sub ebx, edx
add dword [ebp - 0x24], 0xd604856d
mov dword [esi], ebx
xor dword [ebp - 0x34], 0x6e7dac56
add esi, 4
add edi, 4
loop 0x4180b3
add eax, 0xda114816
add eax, 0x25ef9ebd
mov ebx, eax
add eax, 0x51243e0
add eax, 0xfaedbc25
mov ecx, 0xb99ffdc2
add ecx, 0x46a0023e
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x402594
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025a2
call dword [0x40b004]
or eax, eax
je 0x4025a3
ret
mov al, 1
jmp fcn.00402614

Function at 0x4025ac
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025ba
call dword [0x40b008]
or eax, eax
jne 0x4025bb
ret
mov al, 2
jmp fcn.00402614

Function at 0x4025c4
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4025fc
test edx, edx
je 0x4025e6
push eax
mov eax, ecx
call dword [0x40b00c]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402614
mov dword [eax], edx
mov eax, ecx
call dword [0x40b008]
or eax, eax
jne 0x4025df
ret
mov al, 1
jmp fcn.00402614
test edx, edx
je 0x402610
push eax
mov eax, edx
call dword [0x40b004]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret

Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x403780
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.00402614
cmp eax, edx
je 0x4037f0
cmp word [eax], 8
jb 0x4037a5
push eax
push edx
cmp word [eax], 0x100
je 0x40379b
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x4037a3
add eax, 8
call fcn.00403198
pop edx
pop eax
cmp word [edx], 8
jae 0x4037bc
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
jne 0x4037dc
mov edx, dword [edx + 8]
or edx, edx
je 0x4037d3
mov ecx, dword [edx - 8]
inc ecx
jle 0x4037d3
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x403744
ret

Function at 0x40515c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405195
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40519e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4051a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4051c9
mov al, byte [esp]
jmp 0x4051cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406918
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406960
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004068b4
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406967
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x406b68
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406bf6
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406bb3
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406be0
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406bc7
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406bd6
lea edx, [ebp - 4]
call fcn.00406a2c
test ebx, ebx
je 0x406bd6
dec ebx
jmp 0x406bb8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bfd
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c04
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d30
add esp, 0x104
pop ebx
ret

Function at 0x406d4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406e6d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406e57
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406da5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406e57
cmp dword [ebp - 0xc], 0
jne 0x406dba
mov eax, dword [ebp - 4]
call fcn.00403198
mov bl, 1
jmp 0x406e57
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00403420
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406d71
test eax, eax
jne 0x406e57
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406e01
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406e57
jmp 0x406e01
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x406e14
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x406dfe
cmp dword [ebp - 8], 7
jne 0x406e23
cmp dword [ebp - 0xc], 0
je 0x406e23
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004034f0
cmp dword [ebp - 8], 7
jne 0x406e4a
cmp dword [ebp - 0xc], 0
je 0x406e4a
lea eax, [ebp - 0x10]
call fcn.00403420
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e74
lea eax, [ebp - 0x10]
call fcn.00403198
ret
Function at 0x4077a8
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4077c4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4077c6
shr eax, 1
dec edx
jne 0x4077b7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4077b0
pop esi
ret

Function at 0x4077f3
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4077ff
call fcn.004077a8
push 1
push 0x40c558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40782a
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407805
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408e14
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408dc8
test al, al
jne 0x408e35
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408e81
xor eax, eax
push ebp
push 0x408e71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e78
lea eax, [ebp - 0xc]
call fcn.00408e04
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e490
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e1ab
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.004707d1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e512
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046e14d
mov eax, dword [eax]
push 0x566210
push eax
call fcn.004601d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00470a5c
test bl, bl
je 0x40e512
push 0x566210
lea ecx, [esp + 0xc]
call fcn.00470e38
push 0x569d8c
lea ecx, [esp + 0xc]
call fcn.00470e38
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 0x40e54e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00470a5c
jmp 0x40e619
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 0x40e5d2
lea edx, [esp + 0x7c]
push 0x569d88
push edx
call fcn.004601d4
add esp, 8
test eax, eax
je 0x40e5d2
lea eax, [esp + 0x7c]
push 0x569d84
push eax
call fcn.004601d4
add esp, 8
test eax, eax
je 0x40e5d2
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 0x40e562
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.00470a5c
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 0x40f870
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 0x40f8d2
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 0x40f8e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e30b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5711b4]
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 0x40fa18
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40f946
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00470a5c
xor eax, eax
jmp 0x40fa8f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00470be5
push esi
lea ecx, [esp + 0xc]
call fcn.00470e74
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 0x40fa6d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040f870
test eax, eax
jne 0x40fa6d
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.0040f870
test eax, eax
jne 0x40fa6d
lea eax, [esp + 0x14]
push 0x569da0
push eax
call fcn.004612b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fa4c
lea ecx, [esp + 0x14]
push 0x569d9c
push ecx
call fcn.00461230
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fa4c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40fa4f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00470b95
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40f95e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00470a5c
xor eax, eax
jmp 0x40fa8f
mov byte [esi], 0
push 0x569d98
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.00470a5c
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 0x423d10
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 0x423d7e
cmp si, 0x69
ja 0x423d7e
add esi, 0xffd0
cmp si, 0x11
je 0x423d4e
push 0x11
call edi
test ax, ax
jge 0x423d4e
or esi, 0x2000
cmp si, 0x10
je 0x423d63
push 0x10
call edi
test ax, ax
jge 0x423d63
or esi, 0x4000
cmp si, 0x12
je 0x423d78
push 0x12
call edi
test ax, ax
jge 0x423d78
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x423d8b
mov esi, 0xbd
jmp 0x423d3f
cmp si, 0x6e
jne 0x423d98
mov esi, 0xbe
jmp 0x423d3f
cmp si, 0x6f
jne 0x423d39
mov esi, 0xbf
jmp 0x423d3f

Function at 0x4254c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x581ff0]
xor edx, edx
cmp eax, edx
jne 0x4254e6
xor eax, eax
mov byte [eax + 0x581ef0], al
inc eax
cmp eax, 0x100
jl 0x4254ce
mov dword [0x581ff0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x581ef0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x425577
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 0x42554a
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 0x425518
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4255f0
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 0x425643
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 0x42562a
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