joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40224c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x402328
cmp dword [ebp + 0x14], ebx
je 0x40229d
push ebx
push ebx
push dword [ebp + 0x14]
push eax
call fcn.00405b92
cmp eax, 0xffffffff
jne 0x40229d
cmp dword [0x40877c], ebx
jl 0x40229d
call fcn.00405b68
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffeb
push 1
push dword [esi]
call fcn.00405b8c
mov edi, eax
cmp edi, 0xffffffff
je 0x40231e
push 1
pop edi
cmp edi, 0xffffffff
je 0x4022f4
push ebx
lea eax, [ebp - 0x400]
push 0x400
push eax
push dword [esi]
call fcn.00405b86
cmp dword [0x408750], ebx
mov edi, eax
je 0x4022f0
cmp edi, ebx
jle 0x4022f2
mov eax, dword [0x407048]
cmp eax, 0xffffffff
je 0x4022f0
lea ecx, [ebp - 0x400]
push edi
push ecx
push eax
call dword [0x4060f8]
cmp edi, ebx
jne 0x4022b0
mov eax, dword [0x417ce4]
cmp dword [eax], ebx
je 0x40231e
lea eax, [ebp + 0x14]
push 4
push eax
push 0x80
push 0xffff
mov word [ebp + 0x14], 1
push dword [esi]
mov word [ebp + 0x16], bx
call fcn.00405b80
push dword [esi]
call fcn.00405b7a
or dword [esi], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40232f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push edi
push 0
push 1
push 2
call fcn.00405ba4
mov edi, eax
cmp edi, 0xffffffff
jne 0x40235a
call fcn.00405b68
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffe9
jmp 0x4023d8
push 0x33
push dword [esp + 0x14]
push dword [esp + 0x14]
push edi
call fcn.00405b92
cmp eax, 0xffffffff
jne 0x402387
call fcn.00405b68
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffe8
jmp 0x4023cf
push esi
mov esi, dword [esp + 0xc]
push dword [esp + 0x18]
mov word [esi], 2
call fcn.00405b9e
push 0x10
push esi
push edi
mov word [esi + 2], ax
call fcn.00405b98
cmp eax, 0xffffffff
pop esi
jne 0x4023d8
call fcn.00405b68
cmp eax, 0x2733
je 0x4023d8
call fcn.00405b68
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffe7
push edi
call fcn.00405b7a
or edi, 0xffffffff
mov eax, edi
pop edi
ret

Function at 0x4023dc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x408780], ebx
push esi
push edi
mov edi, 0x4103e0
je 0x402426
cmp byte [0x4103e0], bl
je 0x402433
push 9
pop esi
cmp dword [section..data], 0xffffffff
je 0x402454
test esi, esi
jle 0x402454
mov eax, esi
push 0
sub eax, ebx
push eax
push edi
push dword [section..data]
call fcn.00405baa
cmp eax, 0xffffffff
je 0x402437
add ebx, eax
cmp ebx, esi
jl 0x402406
jmp 0x402454
push edi
call dword [0x4060d8]
mov esi, eax
test esi, esi
jne 0x4023f9
xor eax, eax
jmp 0x402461
call fcn.00405b68
cmp eax, 0x2733
je 0x402454
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffe6
cmp ebx, esi
jne 0x40245f
and byte [0x4103e0], 0
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x402465
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x4103c4]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
cmp eax, edi
mov ebx, 0x2733
jge 0x4024df
mov ecx, edi
push 0
sub ecx, eax
add eax, ebp
push ecx
push eax
push dword [esp + 0x20]
call fcn.00405b86
mov esi, eax
cmp esi, 0xffffffff
je 0x4024c0
test esi, esi
je 0x4024df
cmp dword [0x408780], 0
jne 0x4024b5
add dword [0x4103c4], esi
push esi
call fcn.00402660
pop ecx
mov eax, dword [0x4103c4]
cmp eax, edi
jl 0x402481
jmp 0x4024df
call fcn.00405b68
cmp eax, ebx
je 0x4024df
call fcn.00405b68
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffe0
cmp dword [0x408780], 0
jne 0x402659
add edi, 0xfffffa4c
cmp dword [0x4103c4], edi
jg 0x402510
cmp esi, 0xffffffff
jne 0x402508
call fcn.00405b68
cmp eax, ebx
jne 0x402510
test esi, esi
jne 0x402659
cmp dword [0x408750], 0
mov esi, ebp
jne 0x40262b
mov dword [0x408750], 1
mov al, byte [ebp]
cmp al, 0x20
je 0x40253a
cmp al, 9
je 0x40253a
mov al, byte [esi + 1]
inc esi
jmp 0x40252c
mov al, byte [esi]
cmp al, 0x20
je 0x402544
cmp al, 9
jne 0x402547
inc esi
jmp 0x40253a
cmp byte [esi], 0x32
je 0x4025f6
mov eax, dword [0x408ba0]
mov dword [0x40877c], 0xfffffffd
test eax, eax
je 0x402623
cmp dword [0x408778], 0
je 0x402586
push str.ServerError
push eax
call dword [0x4060d4]
mov eax, dword [0x408ba0]
add eax, 0xc
jmp 0x40259a
push str._r_n_r_n
push eax
call dword [0x4060d4]
mov eax, dword [0x408ba0]
add eax, 4
mov cl, byte [esi]
mov edx, esi
test cl, cl
je 0x4025c5
cmp cl, 0xd
je 0x4025c5
cmp cl, 0xa
je 0x4025c5
mov edi, eax
sub edi, dword [0x408ba0]
cmp edi, 0xfa
jge 0x4025c5
mov byte [eax], cl
mov cl, byte [edx + 1]
inc eax
inc edx
jmp 0x40259e
and byte [eax], 0
cmp dword [0x408778], 0
je 0x402623
push 0x40743c
push dword [0x408ba0]
call dword [0x4060f4]
push dword [0x408ba0]
call dword [0x4060d8]
add dword [0x408ba0], eax
jmp 0x402623
mov al, byte [esi]
cmp al, 0xd
je 0x402600
cmp al, 0xa
jne 0x402619
mov al, byte [esi]
lea ecx, [esi + 1]
cmp al, byte [ecx]
je 0x40261c
cmp al, byte [esi + 2]
je 0x402620
cmp al, 0xd
jne 0x402614
mov esi, ecx
cmp byte [esi], 0xa
jne 0x4025f6
inc esi
jmp 0x4025f6
inc esi
inc esi
jmp 0x402623
add esi, 4
sub ebp, esi
add dword [0x4103c4], ebp
cmp dword [esp + 0x18], 0xffffffff
je 0x402652
push dword [0x4103c4]
push esi
push dword [esp + 0x20]
call dword [0x4060f8]
cmp eax, 0xffffffff
jne 0x402652
mov dword [0x40877c], 0xfffffffc
and dword [0x4103c4], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4027c9
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
lea eax, [ebp - 0x100]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str._s:_s
push eax
call dword [0x406160]
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
call dword [0x4060d8]
and byte [ebp + eax - 0xff], 0
and byte [ebp + eax - 0xfe], 0
and byte [ebp + eax - 0xfd], 0
mov dl, byte [ebp - 0x100]
mov ecx, dword [ebp + 8]
test dl, dl
je 0x402884
push ebx
push edi
lea edi, [ebp - 0xfe]
movzx esi, dl
mov edx, esi
and esi, 3
shr edx, 2
shl esi, 4
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
movzx edx, byte [edi - 1]
mov ebx, edx
and edx, 0xf
shr ebx, 4
or ebx, esi
movzx esi, byte [edi]
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add edi, 3
mov byte [ecx], bl
mov ebx, esi
shl edx, 2
shr ebx, 6
or edx, ebx
inc ecx
and esi, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
mov dl, byte [edi - 2]
inc ecx
test dl, dl
jne 0x402828
pop edi
pop ebx
push 3
cdq
pop esi
idiv esi
pop esi
cmp edx, 2
jne 0x402894
mov byte [ecx], 0x3d
inc ecx
cmp edx, 1
jne 0x40289d
mov byte [ecx], 0x3d
inc ecx
and byte [ecx], 0
leave
ret

Function at 0x402918
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40292a
or eax, 0xffffffff
mov dword [0x4074c0], eax
jmp 0x402963
mov edx, dword [esp + 8]
mov eax, dword [0x4074c0]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x40295d
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x408734]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x40293d
pop edi
mov dword [0x4074c0], eax
pop esi
not eax
ret 8
Function at 0x404ce7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
cmp dword [0x408728], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
jne 0x404d79
lea eax, [ebp - 0x144]
push 0x100
push eax
push dword [0x408720]
call dword [0x406090]
cmp byte [ebp - 0x144], 0
je 0x404d70
lea eax, [ebp - 0x144]
push eax
call dword [0x4060d8]
lea eax, [ebp + eax - 0x144]
lea ecx, [ebp - 0x144]
cmp eax, ecx
jbe 0x404d68
cmp byte [eax], 0x5c
je 0x404d6d
dec eax
jmp 0x404d56
cmp byte [eax], 0x5c
jne 0x404d70
and byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 1
push eax
call dword [0x40611c]
test eax, eax
je 0x404dea
push ebx
push edi
call fcn.00404efa
cmp dword [ebp + 0x10], esi
je 0x404dd6
mov esi, dword [0x4060a8]
mov ebx, 0x1f4
push ebx
push dword [ebp - 8]
call esi
mov edi, 0x102
cmp eax, edi
jne 0x404dd6
call fcn.00404efa
cmp dword [0x40870c], 0
jne 0x404dca
push ebx
push dword [ebp - 8]
call esi
jmp 0x404db0
push 0
push dword [ebp + 0x14]
call fcn.004053ad
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [0x406108]
call fcn.00404efa
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x404fdd
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 3
jle 0x405007
push ebx
mov ebx, edi
shr ebx, 2
mov eax, ebx
neg eax
lea edi, [edi + eax*4]
call fcn.00405023
xor dword [esi], eax
add esi, 4
dec ebx
jne 0x404ff9
pop ebx
test edi, edi
jle 0x405020
call fcn.00405023
cdq
mov ecx, 0xff
idiv ecx
inc dl
xor byte [esi], dl
inc esi
dec edi
jne 0x40500b
pop edi
pop esi
ret
Function at 0x4053ad
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push 0x80000002
xor edi, edi
call dword [0x40600c]
mov esi, dword [0x406004]
test eax, eax
jne 0x40541d
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.0040524d
pop ecx
lea eax, [ebp + 8]
pop ecx
mov dword [ebp + 8], 0x400
push eax
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
push dword [ebp - 4]
call dword [0x406008]
test eax, eax
jne 0x405414
cmp dword [ebp + 8], 1
jbe 0x405414
push 1
pop edi
push dword [ebp - 4]
call esi
cmp edi, ebx
jne 0x40547c
mov edi, dword [ebp + 0xc]
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
cmp edi, ebx
je 0x40542e
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 4]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push 0x408040
push ebx
push eax
push 0x80000001
call dword [0x406030]
test eax, eax
jne 0x40547c
cmp edi, ebx
jne 0x40545c
call dword [0x406098]
mov edi, eax
push edi
call dword [0x4060d8]
inc eax
push eax
push edi
push 1
push ebx
push str.WiseStubReboot
push dword [ebp - 4]
call dword [0x406024]
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405bb0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebx
xor eax, eax
mov ebx, dword [esp + 8]
push esi
push edi
cmp byte [ebx], al
je 0x405bef
push ebx
call fcn.00405bf4
cmp eax, 0xffffffff
jne 0x405bef
mov edi, str.255.255.255.255
mov ecx, 0x10
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x405bef
push ebx
call fcn.00405bfa
test eax, eax
je 0x405bed
mov eax, dword [eax + 0xc]
pop edi
mov ecx, dword [eax]
pop esi
pop ebx
mov eax, dword [ecx]
ret
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x405140
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x427212
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x42f0f4]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42f0f4]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, dword [esp + 0x234]
mov edi, dword [esp + 0x238]
xor ebx, ebx
mov dword [esp + 0x14], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
lea ebp, [esi + 4]
push 0x4292e8
mov ecx, esi
mov dword [esp + 0x234], ebx
mov dword [esp + 0x20], esi
mov byte [ebp], bl
call fcn.00403d50
push 0x200
lea eax, [esp + 0x21]
push ebx
push eax
mov dword [esp + 0x238], ebx
mov dword [esp + 0x20], 1
mov byte [esp + 0x28], bl
call fcn.0041a470
add esp, 0xc
cmp dword [edi + 0x18], 0x10
jb 0x4051e8
mov edi, dword [edi + 4]
jmp 0x4051eb
add edi, 4
push 0x4292f0
push edi
call fcn.0041b10a
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4052a3
push edi
push 1
lea ecx, [esp + 0x24]
push 0x200
push ecx
call fcn.0041b029
push edi
call fcn.0041ad0d
add esp, 0x14
mov eax, 0x1ff
cmp byte [esp + eax + 0x1c], 0x23
jne 0x405233
sub eax, 1
mov byte [esp + eax + 0x1d], bl
jns 0x405223
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405240
sub eax, edx
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00403d50
mov edi, dword [esi + 0x14]
mov ecx, edi
cmp edi, 3
jb 0x405265
mov ecx, 3
cmp dword [esi + 0x18], 0x10
jb 0x405270
mov eax, dword [ebp]
jmp 0x405272
mov eax, ebp
push ecx
push 0x4292ec
push eax
call fcn.00402800
add esp, 0xc
cmp eax, ebx
jne 0x4052a3
cmp edi, 3
jb 0x4052a3
xor eax, eax
cmp edi, 3
setne al
cmp eax, ebx
jne 0x4052a3
push ebx
push 0x4292e8
mov ecx, esi
call fcn.00403d50
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0041ac87
add esp, 0x21c
ret 8

Function at 0x405450
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x427278
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x42f0f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00403e30
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4054b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00404040
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00403e30
cmp dword [esp + 0x28], 8
jb 0x4054fd
mov eax, dword [esp + 0x14]
push eax
call fcn.0041a65d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x6fd82fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6fd82ffb
cmp byte [esi + ebx - 1], 0xa
je 0x6fd82fcf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6fd880a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x413580
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4752eb
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.00469cc4
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x413602
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046761d
mov eax, dword [eax]
push 0x48d1d0
push eax
call fcn.0045a494
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00469f4f
test bl, bl
je 0x413602
push 0x48d1d0
lea ecx, [esp + 0xc]
call fcn.0046a2df
push 0x490d4c
lea ecx, [esp + 0xc]
call fcn.0046a2df
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 0x41363e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00469f4f
jmp 0x413709
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 0x4136c2
lea edx, [esp + 0x7c]
push 0x490d48
push edx
call fcn.0045a494
add esp, 8
test eax, eax
je 0x4136c2
lea eax, [esp + 0x7c]
push 0x490d44
push eax
call fcn.0045a494
add esp, 8
test eax, eax
je 0x4136c2
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 0x413652
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.00469f4f
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 0x413f00
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 0x413f62
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 0x413f70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47536b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x497288]
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 0x4140a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x413fd6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00469f4f
xor eax, eax
jmp 0x41411f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046a08c
push esi
lea ecx, [esp + 0xc]
call fcn.0046a31b
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 0x4140fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00413f00
test eax, eax
jne 0x4140fd
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.00413f00
test eax, eax
jne 0x4140fd
lea eax, [esp + 0x14]
push 0x490d60
push eax
call fcn.0045b4d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4140dc
lea ecx, [esp + 0x14]
push 0x490d5c
push ecx
call fcn.0045b450
mov esi, eax
add esp, 8
test esi, esi
jne 0x4140dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4140df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046a03c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x413fee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00469f4f
xor eax, eax
jmp 0x41411f
mov byte [esi], 0
push 0x490d58
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.00469f4f
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 0x4260e0
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 0x42614e
cmp si, 0x69
ja 0x42614e
add esi, 0xffd0
cmp si, 0x11
je 0x42611e
push 0x11
call edi
test ax, ax
jge 0x42611e
or esi, 0x2000
cmp si, 0x10
je 0x426133
push 0x10
call edi
test ax, ax
jge 0x426133
or esi, 0x4000
cmp si, 0x12
je 0x426148
push 0x12
call edi
test ax, ax
jge 0x426148
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42615b
mov esi, 0xbd
jmp 0x42610f
cmp si, 0x6e
jne 0x426168
mov esi, 0xbe
jmp 0x42610f
cmp si, 0x6f
jne 0x426109
mov esi, 0xbf
jmp 0x42610f

Function at 0x427890
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a7998]
xor edx, edx
cmp eax, edx
jne 0x4278b6
xor eax, eax
mov byte [eax + 0x4a7898], al
inc eax
cmp eax, 0x100
jl 0x42789e
mov dword [0x4a7998], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a7898
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x427947
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 0x42791a
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 0x4278e8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4279c0
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 0x427a13
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 0x4279fa
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