joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4094d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4404fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45166c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.Y8o01_9__xil0_Ede__U__8S1T_O_o_Qf.0
call fcn.004234f2
push 4
mov dword [ebp - 4], 0
call fcn.00423e4d
mov edi, eax
add esp, 4
test edi, edi
je 0x40954c
call fcn.004233ca
mov dword [edi], eax
call fcn.00423189
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004234b3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409542
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call int.004234db
jmp 0x40954e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0xd08544
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf0cf7520
jmp 0xd08563
mov word [esp + 1], sp
mov dword [esp + 0x24], ebp
call fcn.00d08520
jmp 0xd08579
jmp 0xd085a3
push bp
lea esp, [esp + 1]
mov dword [esp + 0x24], edi
lea esp, [esp + 0x24]
pushfd
jmp 0xd07b76
lea esi, [esi*4]
mov edx, 0xf133f88e
jmp 0xd085d5
sub esp, 0xa
jle 0xd0858d
lea esi, [esi*4]
mov edx, 0xf133f88e
xchg di, bp
jmp 0xd08a01
lea esp, [esp + 2]
jmp 0xd089eb

Function at 0xd08aae
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg byte [esp + 5], ch
jmp 0xd08b20
lea esp, [esp + 0xc]
add esi, 0x192d1692
mov ch, byte [esp]
setb ch
xchg dh, dl
jmp 0xd08b4d
mov dl, cl
lea eax, [edx + edx]
rdtsc
jmp 0xd08b97
xchg dl, dh
not edx
rdtsc
sub esi, 0x69335aea
cmp dx, di
jmp 0xd08bc2
rdtsc
jmp 0xd08b97
dec esi
bsr dx, sp
jnp 0xd08b81
mov ecx, eax
jmp 0xd08be5
ja 0xd08b34
mov dl, cl
lea eax, [edx + edx]
jmp 0xd08b5e
sub esp, 0x1c
rcr dx, 1
inc ax
jmp 0xd08bcf

Function at 0xd30040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc ebx
movzx edx, byte [eax + 1]
sub bh, 0x25
jmp 0xd30179
pushfd
clc
jmp 0xd3006d
stc
lea esp, [esp + 0xc]
add dword [esi + 4], ecx
jmp 0xd30016
push ecx
mov ecx, esi
mov dword [ecx], edx
pop ecx
jmp 0xd3015b
push sp
call fcn.00d300b3
shl edx, 8
stc
jmp 0xd30184
mov ebx, dword [esp]
mov bh, 0xdb
movzx ebx, byte [eax]
cmc
jmp 0xd30162
or edx, ebx
movzx ebx, byte [eax - 1]
shl edx, 8
jmp 0xd30193
stc
or edx, ebx
movzx ebx, byte [eax - 2]
pushal
call fcn.00d301cd
xor eax, 0xa05136a0
adc al, byte [ebp - 0x23]
dec ebp
adc al, 0xe7
and byte [edi + edi*4 + 0x1a468d86], ch
jmp 0xd2ff46

Function at 0xe369bf
Capabilities:
Parse pe header

Disassembly:
mov eax, dword fs:[0x30]
jmp 0xe369f3
lea esp, [esp + 2]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
lea esp, [esp + 0x20]
jmp 0xe369a9
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0xe369dd
Function at 0xe36a11
Capabilities:
Parse pe header

Disassembly:
call fcn.00e302ec
push eax
jmp 0xe302e7
movzx ebx, word [eax + 0x3c]
jmp 0xe36a1f
call 0xe3609a
jmp 0xe36a35
push dx
call fcn.00e369bf
mov eax, dword [eax + 8]
jmp 0xe36a54
mov byte [esp + 1], bh
mov word [esp], bx
mov dword [esp + 0x24], ebp
jmp 0xe369d6
add ebx, eax
jmp 0xe36a5a
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
je 0xe3602c
sub eax, 0x10000
jmp 0xe36a39
push eax
jmp 0xe36095
cmp word [ebx], 0x4550
jmp 0xe36adf
push dword [esp + 3]
lea esp, [esp + 2]
mov dword [esp], eax
call fcn.00e3699a
adc edx, dword [ebp + reloc.KERNEL32.dll_HeapSize]
add dword [esi], reloc.KERNEL32.dll_HeapSize
push cs
out 0x3f, eax
mov ebx, 0x59bd4e2b
pop ss
pushfd
xor dl, byte [ebp - 0x5c]
add esp, dword [ebx - 0x17]
jns 0xe36acb
jmp 0xe36af2
xchg dword [esi - 0x3d], ebp
dec esi
fdivr qword [ebx - 0x1cb04aaa]
jae 0xe36aed
in eax, 1
cmpsb byte [esi], byte es:[edi]
rcl dword [eax - 0x2d]
dec edx
in eax, 0xf
test byte [ebp - 0x68], al
invalid
je 0xe3032a
jne 0xe36a44
add eax, 0x9e630496
add al, 0x63
sahf
ja 0xe36a87
or ebx, dword [ebx + reloc.KERNEL32.dll_HeapSize]
lodsb al, byte [esi]
and al, byte [ebp - 0x4c]
inc ebp
sub eax, 0xbb4829b9
or al, 0xd
lcall 0xff6d, 0x339a6f08
outsd dx, dword [esi]
or bh, cl
mov bl, 0x45
rol byte [esi + 0x21], 1
sar byte [ecx - 0x2b], 1
dec ebp
frstor dword [edi + edx*2 + reloc.KERNEL32.dll_HeapSize]
sub esp, esi
dec edi
mov ch, 0x33
mov dword [reloc.KERNEL32.dll_HeapSize], eax
xor al, 0xaa
int 0x3c
mov ebx, 0xd0b121bd
and esp, dword [esi - reloc.KERNEL32.dll_HeapSize]
bound esi, qword [esi + 0x5237a722]
mov eax, dword [reloc.KERNEL32.dll_HeapSize]
sub eax, ebx
cmp dword [esi + reloc.KERNEL32.dll_HeapSize], esi
fbld tbyte [eax + 0x2ed3b426]
invalid
Function at 0x6a908640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
sub esp, 0x34
test byte [0x6a9143c0], 8
jne 0x6a9086b0
mov eax, dword [ebx + 8]
test eax, eax
jne 0x6a9086e3
mov edx, dword [ebx + 0x28]
cmp edx, dword [ebx + 0x2c]
jb 0x6a9086a3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp eax, 0xffffffff
je 0x6a908710
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
sub eax, edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x6a908710
mov edx, dword [ebx + 0x10]
add eax, edx
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x2c], eax
movzx eax, byte [edx]
add esp, 0x34
pop ebx
pop ebp
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.filebuf_underflow
mov dword [esp + 4], 0x6a9143c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebx + 8]
test eax, eax
je 0x6a90865d
lea eax, [ebp - 9]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x6a908710
movzx eax, byte [ebp - 9]
add esp, 0x34
pop ebx
pop ebp
ret
mov eax, 0xffffffff
jmp 0x6a9086a6
Function at 0x6a9094c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov esi, dword [ebp + 8]
test byte [0x6a9143c0], 8
jne 0x6a909568
mov edx, dword [ebx + 8]
test edx, edx
je 0x6a909520
cmp esi, 0xffffffff
jne 0x6a909500
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx + 0x4c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_fputc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ecx, ebx
call sym.msvcirt.dll_protected:_int___thiscall_streambuf::allocate_void_
cmp eax, 0xffffffff
je 0x6a9095f9
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x6a9095d0
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
cmp edx, eax
ja 0x6a9095a0
cmp esi, 0xffffffff
je 0x6a9094e7
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x18], eax
jae 0x6a909500
mov eax, dword [ebx + 0x1c]
lea edx, [eax + 1]
mov dword [ebx + 0x1c], edx
mov edx, esi
mov byte [eax], dl
jmp 0x6a9094e7
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p__d__n
mov dword [esp + 8], str.stdiobuf_overflow
mov dword [esp + 4], 0x6a9143c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6a9094db
mov edi, edx
mov edx, dword [ebx + 0x4c]
mov dword [esp + 4], 1
sub edi, eax
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
call dword [sym.imp.msvcrt.dll_fwrite]
cmp edi, eax
jne 0x6a9095f9
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
jmp 0x6a909545
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov dword [esp + 4], eax
sub eax, edx
mov ecx, eax
shr eax, 0x1f
add eax, ecx
mov ecx, ebx
sar eax, 1
add eax, edx
mov dword [esp], eax
call sym.msvcirt.dll_protected:_void___thiscall_streambuf::setp_char___char__
sub esp, 8
jmp 0x6a909545
mov eax, 0xffffffff
jmp 0x6a9094ec
Function at 0x6a909b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
test byte [0x6a9143c0], 8
jne 0x6a909bf0
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x6a909c50
mov edx, dword [ebx + 8]
test edx, edx
jne 0x6a909bd8
mov ecx, ebx
call sym.msvcirt.dll_protected:_int___thiscall_streambuf::allocate_void_
cmp eax, 0xffffffff
je 0x6a909c50
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x6a909c20
mov eax, dword [ebx + 0x28]
cmp eax, edx
jb 0x6a909bc2
mov eax, dword [ebx + 0x24]
sub edx, eax
test eax, eax
je 0x6a909c50
mov ecx, dword [ebx + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fread]
test eax, eax
jle 0x6a909c50
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x24]
mov esi, eax
mov dword [esp + 8], eax
neg esi
sub ecx, eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebx + 0x2c]
add eax, esi
lea edx, [eax + 1]
mov dword [ebx + 0x28], edx
movzx eax, byte [eax]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fgetc]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.stdiobuf_underflow
mov dword [esp + 4], 0x6a9143c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6a909b37
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
sub ecx, edx
mov dword [esp], edx
mov eax, ecx
shr eax, 0x1f
add eax, ecx
mov ecx, ebx
sar eax, 1
add eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], eax
call sym.msvcirt.dll_protected:_void___thiscall_streambuf::setg_char___char___char__
mov edx, dword [ebx + 0x2c]
sub esp, 0xc
jmp 0x6a909b68
mov eax, 0xffffffff
jmp 0x6a909bcb

Function at 0x6a9112d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6a911328
cmp byte [esi + ebx - 1], 0xa
je 0x6a9112fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6a91e284], eax
mov dword [esp], 2
call dword [0x6a914418]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x408d77
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00411bd7
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00411bd7
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
push 0x10
call fcn.00411bd7
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x414570
call fcn.00411bdd
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x408e37
mov eax, 0
jmp 0x408fa3
cmp dword [ebp + 0xc], 0
jne 0x408e63
mov dword [ebp - 0x1c], esp
mov eax, 0x22
call fcn.00411c01
cmp dword [ebp - 0x1c], esp
je 0x408e60
push 6
call fcn.00411bf5
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x408e8b
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408e85
push ebx
call fcn.00411bd1
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x23
call fcn.00411c01
cmp dword [ebp - 0x1c], esp
je 0x408eb6
push 6
call fcn.00411bf5
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x490af0
mov eax, 0x24
call fcn.00411c01
cmp dword [ebp - 0x1c], esp
je 0x408ee2
push 6
call fcn.00411bf5
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x25
call fcn.00411c01
cmp dword [ebp - 0x1c], esp
je 0x408f76
push 6
call fcn.00411bf5
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 3
call fcn.00411c01
cmp dword [ebp - 0x1c], esp
je 0x408f9b
push 6
call fcn.00411bf5
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x408fa3
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00411bd1
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00411bd1
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.00411bd1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41d930
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x487f1b
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.0047c241
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41d9b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00479ec0
mov eax, dword [eax]
push 0x4b2230
push eax
call fcn.0046b964
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047c4cc
test bl, bl
je 0x41d9b2
push 0x4b2230
lea ecx, [esp + 0xc]
call fcn.0047c85c
push 0x4b5dac
lea ecx, [esp + 0xc]
call fcn.0047c85c
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 0x41d9ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047c4cc
jmp 0x41dab9
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 0x41da72
lea edx, [esp + 0x7c]
push 0x4b5da8
push edx
call fcn.0046b964
add esp, 8
test eax, eax
je 0x41da72
lea eax, [esp + 0x7c]
push 0x4b5da4
push eax
call fcn.0046b964
add esp, 8
test eax, eax
je 0x41da72
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 0x41da02
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.0047c4cc
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 0x41e2d0
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 0x41e332
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 0x41e340
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x487f9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4be310]
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 0x41e478
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41e3a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047c4cc
xor eax, eax
jmp 0x41e4ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047c609
push esi
lea ecx, [esp + 0xc]
call fcn.0047c898
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4b5de4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41e4cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0041e2d0
test eax, eax
jne 0x41e4cd
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.0041e2d0
test eax, eax
jne 0x41e4cd
lea eax, [esp + 0x14]
push 0x4b5dc0
push eax
call fcn.0046c9a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41e4ac
lea ecx, [esp + 0x14]
push 0x4b5dbc
push ecx
call fcn.0046c920
mov esi, eax
add esp, 8
test esi, esi
jne 0x41e4ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41e4af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047c5b9
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41e3be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047c4cc
xor eax, eax
jmp 0x41e4ef
mov byte [esi], 0
push 0x4b5db8
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.0047c4cc
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 0x433660
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 0x4336ce
cmp si, 0x69
ja 0x4336ce
add esi, 0xffd0
cmp si, 0x11
je 0x43369e
push 0x11
call edi
test ax, ax
jge 0x43369e
or esi, 0x2000
cmp si, 0x10
je 0x4336b3
push 0x10
call edi
test ax, ax
jge 0x4336b3
or esi, 0x4000
cmp si, 0x12
je 0x4336c8
push 0x12
call edi
test ax, ax
jge 0x4336c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4336db
mov esi, 0xbd
jmp 0x43368f
cmp si, 0x6e
jne 0x4336e8
mov esi, 0xbe
jmp 0x43368f
cmp si, 0x6f
jne 0x433689
mov esi, 0xbf
jmp 0x43368f

Function at 0x434f20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4cebb8]
xor edx, edx
cmp eax, edx
jne 0x434f46
xor eax, eax
mov byte [eax + 0x4ceab8], al
inc eax
cmp eax, 0x100
jl 0x434f2e
mov dword [0x4cebb8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4ceab8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x434fd7
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 0x434faa
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 0x434f78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x435050
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 0x4350a3
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 0x43508a
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
Function at 0x43bae0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x43bc78
cmp ebp, ebx
jle 0x43bc78
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x43bb3e
dec eax
or eax, 0xfffffff8
inc eax
je 0x43bb45
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x43bb54
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x43bb5b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0047c20d
add esp, 4
cmp eax, ebx
je 0x43bb7c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0047c20d
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x43bc6e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x43bc55
mov al, byte [edx]
cmp al, 0xc0
jbe 0x43bc41
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x43bc36
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x43bc44
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x43bc44
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x43bbe0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x43bbd1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret