joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f8cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x45f8fa
mov ecx, 4
mov dl, 1
mov eax, dword [0x45e2e8]
call fcn.00462fe4
call fcn.00403e40
mov eax, dword [ebx]
mov byte [eax + 0x14], 1
mov eax, dword [ebx]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x45f929
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x45f929
xor eax, eax
jmp 0x45f92b
mov al, 1
test al, al
jne 0x45f94b
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 3
mov dl, 1
mov eax, dword [0x45e2e8]
call fcn.00462ee4
call fcn.00403e40
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x465050
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4650d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x46bc80
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4650c3
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040b1f0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4650f0
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x46a2f8]
mov dl, 1
mov eax, dword [0x46407c]
call fcn.0040bb14
call fcn.00403e40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4650e0
lea eax, [ebp - 0x1c]
call fcn.00404488
ret

Function at 0x4657a4
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004656c8
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004038c8
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x465808
call fcn.00464f98
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4657fa
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004038c8
pop esi
pop ebx
ret

Function at 0x46582c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404948
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402f8c
test ebx, ebx
je 0x465877
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x465954
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 0x465985
mov ecx, dword [0x46a3d8]
mov dl, 1
mov eax, dword [0x46407c]
call fcn.0040bad8
call fcn.00403e40
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 0x4659b2
mov ecx, dword [0x46a1e0]
mov dl, 1
mov eax, dword [0x46407c]
call fcn.0040bad8
call fcn.00403e40
xor eax, eax
push ebp
push 0x465a33
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.004038c8
cmp byte [ebp + 8], 0
je 0x465a0d
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004658bc
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 edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00465724
jmp 0x465a29
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00465284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x465a50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x465a5c
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 0x465a8d
mov ecx, dword [0x46a23c]
mov dl, 1
mov eax, dword [0x46407c]
call fcn.0040bad8
call fcn.00403e40
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 0x465aba
mov ecx, dword [0x46a1e0]
mov dl, 1
mov eax, dword [0x46407c]
call fcn.0040bad8
call fcn.00403e40
xor eax, eax
push ebp
push 0x465b36
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.004038c8
cmp byte [ebp + 8], 0
je 0x465b12
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.004658bc
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.004657a4
jmp 0x465b2c
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.00465284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x465b53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x465d34
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
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0046554c
xor eax, eax
push ebp
push 0x465ea5
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 0x465e8f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x465d7f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x465d89
call fcn.00403eec
jmp 0x465eac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041629c
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 0x465e84
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 ecx, eax
cmp ecx, 0xffffffff
jne 0x465e37
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x465e24
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004038c8
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.00465cec
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x465eb8]
cmp dl, byte [eax + 0x28]
je 0x465e8b
call fcn.0040b9fc
jmp 0x465e8b
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004162bc
jmp 0x465e8b
cmp ecx, ebx
jge 0x465e53
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004162bc
jmp 0x465d89
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.0041629c
cmp edx, dword [esp + 4]
jne 0x465e73
cmp eax, dword [esp]
pop edx
pop eax
jne 0x465d89
push ebp
call fcn.00465cec
pop ecx
jmp 0x465e8b
push ebp
call fcn.00465cec
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465eac
mov eax, dword [ebp - 4]
call fcn.00465558
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465ebc
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 0x465fde
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046554c
xor eax, eax
push ebp
push 0x465fc1
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 0x465f0c
call fcn.00403eec
jmp 0x465fc8
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 0x465fab
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x465fab
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004038c8
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 0x465fab
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040b1f0
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, 0x465ff8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x46a2f8]
mov dl, 1
mov eax, dword [0x46407c]
call fcn.0040bb14
call fcn.00403e40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465fc8
mov eax, dword [ebp - 4]
call fcn.00465558
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465fe5
lea eax, [ebp - 0x28]
call fcn.00404488
ret
Function at 0x466044
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46618e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046554c
xor eax, eax
push ebp
push 0x466171
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4660a9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4660a9
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 0x46615b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4660bc
call fcn.00403eec
jmp 0x466178
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 0x46615b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x46615b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004038c8
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 0x46615b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040b1f0
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, 0x4661a8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x46a2f8]
mov dl, 1
mov eax, dword [0x46407c]
call fcn.0040bb14
call fcn.00403e40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466178
mov eax, dword [ebp - 4]
call fcn.00465558
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466195
lea eax, [ebp - 0x28]
call fcn.00404488
ret
Function at 0x525b30
Capabilities:
Encode data using xor

Disassembly:
test esi, edi
jne 0x525b39
imul edx, ebx
mov bh, dh
mov ebx, 0x73a40719
mov al, ah
mov ebx, ebp
mov edx, 0x3fcb69ba
mov ebx, 0x37c4f1e
mov bh, ch
dec al
xchg esi, ebp
imul ebx, ebp, 0xe1c65c9f
call 0x525b5f
lea esi, [0x321f657d]
sbb dl, ch
imul ecx, edi
add dh, bl
dec ebp
mov bh, 0x9b
mov cl, 0x78
dec dh
xor eax, 0x8d31
test edx, 0xbac7f65a
mov edi, 0
mov ebp, 0xe299a13e
lea eax, [0xb27c31c0]
imul ebp, ebp, 0x4bc1da95
add eax, 0x770433a4
lea ebp, [0xdf22d83c]
sub esi, eax
add edi, 0xfffffa25
dec esi
mov dh, 0x68
add edi, 0x5dc
lea ebx, [0x8adac3a4]
lea edx, [0xfca97313]
xchg ebx, eax
xchg dl, ah
xor cl, ch
cmp edi, 0x1e0
jb 0x525b83
pop edx
movsx ebp, dx
inc esi
mov eax, 0x86499d5b
imul ebp, edx
inc ebp
lea ebx, [0x367d39a6]
imul ebp, ebx
dec bl
imul ebp, edx
sub ebx, ecx
xor ebp, 0x99af0fdb
mov al, cl
cmp esi, edx
test dh, 0x17
imul ecx, eax
mov bl, bh
mov ebx, 0
xchg edi, edi
je 0x525c12
movsx ebp, al
mov ah, 0xca
mov ah, bl
adc al, 0xf9
add ebx, 1
mov edi, 0x811f5233
dec eax
movzx eax, al
mov ebp, ecx
xchg ah, cl
xchg ch, ch
dec ch
mov edi, ecx
mov ah, bl
lea esi, [0xc58299f4]
cmp ebx, 0x4ee
jb 0x525c08
xchg eax, esi
mov ah, al
test edi, 0x85a68d66
mov eax, 0xbac6b26
imul edi, eax, 0xa8c88944
dec ebp
test eax, 0x454793cd
sbb ebx, 0xd38c4bcb
test dh, bh
dec ebp
movsx ebp, al
add edx, 0x74ab
test bh, bh
movsx edi, di
mov cl, 0x4a
jae 0x525c82
xor esi, edx
inc cl
inc ah
inc esi
test bh, al
mov ah, ch
xor edi, 0xdea1
lea ebp, [0xb275ff59]
mov ah, cl
dec ecx
lea ebp, [0x26a4e533]
adc al, 0x5c
imul edi, edx
inc ebx
test edi, 0x6c72c681
or ah, al
push eax
mov cl, 0x75
test bl, 0x97
push edx
mov edi, 0
test ch, 0xdf
xor eax, 0x4bbd1bd7
inc eax
inc eax
movsx esi, si
adc eax, 0xc5dc4ae6
add edi, 0xfffff094
sub ecx, 0x19e8c341
add edi, 0xf6d
sub eax, eax
sbb eax, 0xdaa654b7
cmp al, 0xb
add eax, 0x92e79664
add ebx, esi
and al, 0x3d
mov al, al
cmp edi, 0x1d5
jl 0x525cbb
xchg ebp, edi
repz ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402709
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004028b9
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x402807
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4027aa
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4027ed
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4027c1
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4027dc
test al, 0x40
je 0x4027d3
mov ecx, dword [edi + 0x20]
jmp 0x4027da
test al, 0x80
je 0x4027ed
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4027ed
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x402779
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x41dee0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ad37b
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.004a1a80
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41df62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049f6f6
mov eax, dword [eax]
push 0x510cec
push eax
call fcn.00490f94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a1d0b
test bl, bl
je 0x41df62
push 0x510cec
lea ecx, [esp + 0xc]
call fcn.004a209b
push 0x510cf8
lea ecx, [esp + 0xc]
call fcn.004a209b
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 0x41df9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a1d0b
jmp 0x41e069
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 0x41e022
lea edx, [esp + 0x7c]
push 0x510cf4
push edx
call fcn.00490f94
add esp, 8
test eax, eax
je 0x41e022
lea eax, [esp + 0x7c]
push 0x510cf0
push eax
call fcn.00490f94
add esp, 8
test eax, eax
je 0x41e022
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 0x41dfb2
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.004a1d0b
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 0x41e860
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 0x41e8c2
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 0x41e8d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ad3fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x520348]
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 0x41ea08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41e936
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a1d0b
xor eax, eax
jmp 0x41ea7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a1e48
push esi
lea ecx, [esp + 0xc]
call fcn.004a20d7
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 0x41ea5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0041e860
test eax, eax
jne 0x41ea5d
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.0041e860
test eax, eax
jne 0x41ea5d
lea eax, [esp + 0x14]
push 0x510d08
push eax
call fcn.00492100
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ea3c
lea ecx, [esp + 0x14]
push 0x510d04
push ecx
call fcn.00492080
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ea3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41ea3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a1df8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41e94e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a1d0b
xor eax, eax
jmp 0x41ea7f
mov byte [esi], 0
push 0x510d00
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.004a1d0b
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 0x42f5f0
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 0x42f65e
cmp si, 0x69
ja 0x42f65e
add esi, 0xffd0
cmp si, 0x11
je 0x42f62e
push 0x11
call edi
test ax, ax
jge 0x42f62e
or esi, 0x2000
cmp si, 0x10
je 0x42f643
push 0x10
call edi
test ax, ax
jge 0x42f643
or esi, 0x4000
cmp si, 0x12
je 0x42f658
push 0x12
call edi
test ax, ax
jge 0x42f658
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42f66b
mov esi, 0xbd
jmp 0x42f61f
cmp si, 0x6e
jne 0x42f678
mov esi, 0xbe
jmp 0x42f61f
cmp si, 0x6f
jne 0x42f619
mov esi, 0xbf
jmp 0x42f61f

Function at 0x431000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x530bc8]
xor edx, edx
cmp eax, edx
jne 0x431026
xor eax, eax
mov byte [eax + 0x530ac8], al
inc eax
cmp eax, 0x100
jl 0x43100e
mov dword [0x530bc8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x530ac8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4310b7
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 0x43108a
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 0x431058
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x431130
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 0x431183
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 0x43116a
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