joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46137d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4613b5
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.0045f434
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045f40c
jmp 0x4613c1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x462a72
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 0x462ab4
call fcn.0046856a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x462ab4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x462aab
xor eax, eax
jmp 0x462abc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00462ac2
pop edi
pop esi
pop ebx
ret 4

Function at 0x468a9a
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 0x468ac8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x468ae6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00468a00
jmp 0x468ae6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x468ae6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00468a00
test edi, edi
mov eax, edi
jne 0x468ad0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4020a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov eax, 0x400
mov ebp, esp
push esi
mov edx, 0xa
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
movzx ecx, si
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [0x411680]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40213b
mov dword [esp + 4], eax
mov edx, dword [0x411680]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x402150
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x402150
xor edx, edx
mov esi, esi
lea edi, [edi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x402110
mov ecx, dword [0x409028]
test ecx, ecx
je 0x40212f
mov eax, dword [0x409090]
test eax, eax
jne 0x402159
mov eax, 1
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebx], 0
sub esp, 4
lea esi, [esi]
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0xc], ebx
mov ebx, str.Resource__d:_t_s_n
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 1
jmp 0x402134

Function at 0x402180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
cld
mov ecx, 5
push esi
lea edi, [ebp - 0x38]
push ebx
sub esp, 0x4c
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
mov ecx, 0x400
mov edi, 0xa
mov dword [esp + 0xc], ecx
lea ebx, [ebp - 0x38]
mov dword [esp + 4], edi
movzx edx, si
mov dword [esp + 8], edx
mov eax, dword [0x411680]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40225d
mov dword [esp + 4], eax
mov edx, dword [0x411680]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x402240
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x402240
xor edx, edx
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x402200
mov ecx, dword [0x409028]
test ecx, ecx
je 0x402240
mov eax, dword [0x409090]
test eax, eax
je 0x402240
mov dword [esp + 8], esi
mov esi, str.Resource__d:_t_s_n
mov dword [esp + 0xc], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
nop
lea esi, [esi]
cld
mov esi, ebx
mov edi, 0x40815c
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
sete bl
lea esp, [ebp - 0xc]
movzx eax, bl
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
mov esi, ebx
mov edi, 0x40815c
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x38], 0
cld
mov ecx, 5
sub esp, 4
repe cmpsb byte [esi], byte es:[edi]
sete bl
lea esp, [ebp - 0xc]
movzx eax, bl
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404da8
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x404db6
and edx, 0x3fff
jmp fcn.00404d1a

Function at 0x404dbb
Capabilities:
Delete directory

Disassembly:
mov eax, 0x434464
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x404dea
push edi
call esi
test eax, eax
je 0x404dea
mov al, 1
jmp 0x404e2e
test ebx, ebx
je 0x404e2c
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x404e26
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
test esi, esi
pop ecx
setne al
jmp 0x404e2e
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404e3d
Capabilities:
Move file

Disassembly:
mov eax, 0x434480
call fcn.004339e0
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00407553
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00407553
mov edi, dword [sym.imp.kernel32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x404e86
cmp eax, ebx
je 0x404e86
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x404e86
mov al, bl
jmp 0x404efd
test esi, esi
jne 0x404e8f
cmp dword [ebp - 0x14], esi
je 0x404efb
lea ecx, [ebp - 0x30]
call fcn.004028e9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004028e9
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x404eaf
cmp dword [ebp - 0x14], ebx
jne 0x404eb1
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040dd71
test al, al
push dword [ebp - 0x24]
je 0x404eec
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00401abd
push dword [ebp - 0x30]
call fcn.00401abd
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x404efd
call fcn.00401abd
push dword [ebp - 0x30]
call fcn.00401abd
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405008
Capabilities:
Create directory

Disassembly:
mov eax, 0x4344b0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405046
push 0
push edi
call esi
test eax, eax
je 0x405039
mov al, 1
jmp 0x40508f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x40508d
test ebx, ebx
je 0x40508d
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
je 0x405084
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
test esi, esi
pop ecx
setne al
jmp 0x40508f
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040dd71
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040dd71
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40cc7b
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x434ad7
call fcn.004339e0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004028e9
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.004028e9
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028e9
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004028e9
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.004028e9
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.004028e9
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.004028e9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40d3e4
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x434bff
call fcn.004339e0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004029bc
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.004029bc
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004029bc
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.004029bc
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.004029bc
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.004029bc
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.004029bc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40dd71
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40dd80
pop dword [ebp - 0x30]
mov eax, 0x40dd80
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x375fb
push 0
mov eax, 0x7ecd54ec
add eax, 0x81762b44
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x3ad7
xor edx, edx
add edx, eax
mov ebx, 0x9dbb9a86
add ebx, 0x62892b7a
add ebx, dword [ebp - 0x30]
mov esi, 0x35fa4912
sub esi, 0xd06e2f4b
xor dword [ebp - 0x24], esi
mov edi, dword [ebx]
mov dword [ebp - 0x10], 0x82d42c38
add edi, esi
mov dword [ebp - 4], 0x89e0cd8b
mov dword [edx], edi
mov dword [ebp - 4], 0x7e47874c
add edx, 4
add ebx, 0x2f21e809
sub ebx, 0x2f21e805
loop 0x40ddd6
add eax, 0x71dbd16a
sub eax, 0x71daf33b
mov ebx, eax
add eax, 0xe8cae355
add eax, 0x17351cb0
mov ecx, 0x15d6c800
add ecx, 0xea693800
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x412d32
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x412d5f
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x444740]
xor eax, edi
inc esi
cmp esi, edx
jb 0x412d3e
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x401d39
Capabilities:
Encode data using xor

Disassembly:
pop edi
pop esi
pop ebx
pop ebp
ret
scasd eax, dword es:[edi]
inc ebp
or al, 0x5d
ret
dec edi
pop ebx
loopne 0x401d18
fistp dword [ecx - 0x7b]
xor byte [esi], ah
cmp al, 0x21
pop ecx
test dword [eax], esi
cmp al, 0x21
call 0x91e182
or esp, edi
push esi
dec eax
js 0x401d3c
mov ebp, 0x7d3de463
xchg ebx, eax
push edi
les ecx, [edx + 0x567cccaf]
js 0x401d3d
insb byte es:[edi], dx
cmova ebx, dword [ecx]
loop 0x401db1
stc
call 0x5cafd0a3
jecxz 0x401dbf
cmpsd dword [esi], dword es:[edi]
shr dword [ecx - 0xddfd833], 0xa5
inc edx
push esp
fisttp word [ebp - 0xd]
jmp 0x401de5
add dword [esi - 0x29b3b135], 0x12
jbe 0x401d34
wait
dec eax
scasb al, byte es:[edi]
cmpsb byte [esi], byte es:[edi]
or ebp, dword [ebx - 0x426aa47]
invalid
jg 0x401d3a
dec esi
out dx, al
mov ebp, 0xc942572e
and al, 0xd2
fdivr dword [edi]
push ebp
jb 0x401d8f
invalid
sub byte [eax + 0x5949cc79], ch
mul dword [edi]
push ds
adc eax, 0x3f15a4ab
mov esp, 0xc9ea8fa1
adc dl, byte [edx - 0x15]
pop eax
pop ebx
mov eax, dword [0x674b404a]
xchg dword [esp + edx*4], ecx
push edx
inc ebp
aad 0xfe
mov dl, 0x5c
and eax, 0x703697a4
sbb dword [edi - 0x454a8cc2], 0xffffffac
cmp dword [esi + 0x5295843a], edi
lahf
mov dword [edx + ecx*8], ebx
push cs
mov ecx, dword [eax]
loopne 0x401e57
xchg edx, eax
jmp 0x401e0c
push esi
jae 0x401e07
push ds
les edi, [esp + 0x780cbba9]
je 0x401edc
dec ebp
sub eax, 0x39490f29
std
pushfd
pop edx
popfd
pop esp
imul ecx, ebx, 0xffffffe1
sub eax, 0xec2e370a
mov dword [esi - 0xc6d69db], edx
xor bl, byte [0x81ae3374]
mov byte [edx + 0x7c], cl
int 0x57
bound eax, qword [ecx + 7]
aaa
mov ecx, 0x3eef5d24
adc byte [esi + 0x48], bh
lcall 0x5f09, 0xf584d447
mov esp, 0x7add9bcb
test al, 0x95
sti
retf
pop ss
cmp ebp, dword [edx - 4]
mov edi, 0xfefca0e9
jle 0x401f27
pop ebp
movsd dword es:[edi], dword [esi]
out 7, al
cmp dword [ecx], esi
loop 0x401f67
stc
xchg esp, eax
pop esp
mov ch, 0x64
popfd
les eax, [edx + 0x34700d1f]
std
out dx, eax
adc bl, byte [ebx + 0x31]
mov byte [0x8aee1d45], al
add ebp, dword [ebp + 0x65]
jmp 0x9adcf349
sub bl, cl
invalid
inc eax
add bl, al
Function at 0x41c3e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a450b
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.00498bdf
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41c462
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049696d
mov eax, dword [eax]
push 0x5a2210
push eax
call fcn.0047e0f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00498e6a
test bl, bl
je 0x41c462
push 0x5a2210
lea ecx, [esp + 0xc]
call fcn.004991fa
push 0x5a5d98
lea ecx, [esp + 0xc]
call fcn.004991fa
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 0x41c49e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00498e6a
jmp 0x41c569
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 0x41c522
lea edx, [esp + 0x7c]
push 0x5a5d94
push edx
call fcn.0047e0f4
add esp, 8
test eax, eax
je 0x41c522
lea eax, [esp + 0x7c]
push 0x5a5d90
push eax
call fcn.0047e0f4
add esp, 8
test eax, eax
je 0x41c522
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 0x41c4b2
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.00498e6a
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 0x41cd60
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 0x41cdc2
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 0x41cdd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a458b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5b4008]
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 0x41cf08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41ce36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00498e6a
xor eax, eax
jmp 0x41cf7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00498fa7
push esi
lea ecx, [esp + 0xc]
call fcn.00499236
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 0x41cf5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0041cd60
test eax, eax
jne 0x41cf5d
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.0041cd60
test eax, eax
jne 0x41cf5d
lea eax, [esp + 0x14]
push 0x5a5dac
push eax
call fcn.0047f170
mov esi, eax
add esp, 8
test esi, esi
jne 0x41cf3c
lea ecx, [esp + 0x14]
push 0x5a5da8
push ecx
call fcn.0047f0f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41cf3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41cf3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00498f57
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41ce4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00498e6a
xor eax, eax
jmp 0x41cf7f
mov byte [esi], 0
push 0x5a5da4
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.00498e6a
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 0x432170
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 0x4321de
cmp si, 0x69
ja 0x4321de
add esi, 0xffd0
cmp si, 0x11
je 0x4321ae
push 0x11
call edi
test ax, ax
jge 0x4321ae
or esi, 0x2000
cmp si, 0x10
je 0x4321c3
push 0x10
call edi
test ax, ax
jge 0x4321c3
or esi, 0x4000
cmp si, 0x12
je 0x4321d8
push 0x12
call edi
test ax, ax
jge 0x4321d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4321eb
mov esi, 0xbd
jmp 0x43219f
cmp si, 0x6e
jne 0x4321f8
mov esi, 0xbe
jmp 0x43219f
cmp si, 0x6f
jne 0x432199
mov esi, 0xbf
jmp 0x43219f

Function at 0x433850
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5c4740]
xor edx, edx
cmp eax, edx
jne 0x433876
xor eax, eax
mov byte [eax + 0x5c4640], al
inc eax
cmp eax, 0x100
jl 0x43385e
mov dword [0x5c4740], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5c4640
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x433907
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 0x4338da
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 0x4338a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x433980
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 0x4339d3
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 0x4339ba
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