joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489fa4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48a203
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x48a006
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00489a6c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d030
cmp al, 1
jne 0x48a006
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00489d84
test al, al
je 0x48a192
cmp dword [ebp - 8], 0
jge 0x48a024
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00489a6c
mov eax, dword [ebp - 0x210]
call fcn.00403f90
cmp ebx, eax
jge 0x48a06e
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00489a6c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x51f4d0]
and eax, 0xff
bt dword [edx], eax
jae 0x48a06e
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x48a082
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00489f80
cmp ebx, dword [ebp - 8]
je 0x48a184
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x48a0ae
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403208
and eax, 0x7f
movzx eax, word [eax*2 + 0x51cfb0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x48a171
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403208
and eax, 0x7f
movzx eax, word [eax*2 + 0x51cfb0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0043a94c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403208
and eax, 0x7f
movzx eax, word [eax*2 + 0x51cfb0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0043a94c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a178
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x48a1e5
cmp dword [ebp - 8], 0
jge 0x48a19d
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00489a6c
mov eax, dword [ebp - 0x218]
call fcn.00403f90
cmp eax, dword [ebp - 8]
jg 0x48a1d7
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00489a6c
mov eax, dword [ebp - 0x21c]
call fcn.00403f90
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00489f80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a20a
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403d34
ret
Function at 0x4a67d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x51ddc2
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a682b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x51dde3
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a6821
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4a682f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4c7764
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x34]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4c779f
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x34]
call fcn.00411d40
mov al, byte [eax + 0x288]
xor al, 1
push eax
mov edx, ebx
mov eax, dword [esi + 0x34]
call fcn.00411d40
pop edx
mov byte [eax + 0x288], dl
inc ebx
dec edi
jne 0x4c7777
pop edi
pop esi
pop ebx
ret

Function at 0x4dda30
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x4dda74
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.00409b54
add esp, 0x200
pop ebx
ret
Function at 0x4efd0c
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4efd23
add esp, 0xfffffff0
call fcn.0040336c
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4efea9
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0041887c
mov dword [ebx + 0x90], 0xffffffff
xor eax, eax
mov dword [ebx + 0xe4], eax
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x84], 1
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x94], 0
xor eax, eax
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x4ea04c]
call fcn.00402ffc
mov dword [ebx + 0x74], eax
lea edx, [ebp - 8]
mov eax, dword [0x51f294]
call fcn.00406330
mov eax, dword [ebp - 8]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4e86d0]
call fcn.004ee750
mov esi, eax
mov dword [ebx + 0x78], esi
mov byte [esi + 4], 0
mov byte [esi + 0x2c], 1
lea edx, [ebp - 0xc]
mov eax, dword [0x51f1cc]
call fcn.00406330
mov eax, dword [ebp - 0xc]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4e86d0]
call fcn.004ee750
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x410174]
call fcn.00402ffc
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x410174]
call fcn.00402ffc
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x28], 0x80000000
mov byte [ebx + 0x64], 1
mov word [ebx + 0x38], 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4e9bc4]
call fcn.004eee84
mov dword [ebx + 0x58], eax
lea edx, [ebx + 0x70]
mov eax, dword [0x51f2f8]
call fcn.00406330
lea edx, [ebx + 0x60]
mov eax, dword [0x51f270]
call fcn.00406330
mov dl, 1
mov eax, dword [0x410174]
call fcn.00402ffc
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x410174]
call fcn.00402ffc
mov dword [ebx + 0x54], eax
mov al, byte [0x4efed0]
mov byte [ebx + 0x95], al
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x50], 0xffffffff
mov byte [ebx + 0xea], 1
mov byte [ebx + 0xe8], 1
mov byte [ebx + 0xeb], 0
lea eax, [ebx + 0xe0]
call fcn.00403d10
mov al, byte [0x4efed4]
mov byte [ebx + 0x9c], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efeb0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403d34
ret

Function at 0x516798
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 0x516821
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x521308
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x51680b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bedc
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, 0x516838
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x51f2c0]
mov dl, 1
mov eax, dword [0x516054]
call fcn.0040c814
call fcn.004037c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516828
lea eax, [ebp - 0x1c]
call fcn.00403d10
ret
Function at 0x516e90
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00516db4
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00403208
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x516ef4
call fcn.005166e0
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x516ee6
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00403208
pop esi
pop ebx
ret

Function at 0x516f18
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404154
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402c34
test ebx, ebx
je 0x516f63
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 0x517040
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 esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x517071
mov ecx, dword [0x51f0ec]
mov dl, 1
mov eax, dword [0x516054]
call fcn.0040c7d8
call fcn.004037c4
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 0x51709e
mov ecx, dword [0x51f01c]
mov dl, 1
mov eax, dword [0x516054]
call fcn.0040c7d8
call fcn.004037c4
xor eax, eax
push ebp
push 0x51711d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.00403208
cmp byte [ebp + 8], 0
je 0x5170f9
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, esi
mov eax, dword [ebp - 4]
call fcn.00516fa8
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00516e90
jmp 0x517113
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, esi
mov eax, dword [ebp - 4]
call fcn.005169cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51713a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51731c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00516c4c
xor edx, edx
push ebp
push 0x51747c
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x517466
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x517366
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x517370
call fcn.00403864
jmp 0x517483
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041405c
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 + 4]
mov ebx, eax
test ebx, ebx
jle 0x51745b
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
cmp eax, 0xffffffff
jne 0x517419
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x517409
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403208
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.005172d4
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x51748c]
cmp dl, byte [eax + 0x28]
je 0x517462
call fcn.0040c6c0
jmp 0x517462
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.0041406c
jmp 0x517462
cmp eax, ebx
jge 0x517432
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041406c
jmp 0x517370
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041405c
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00414078
cmp ebx, eax
jne 0x517370
push ebp
call fcn.005172d4
pop ecx
jmp 0x517462
push ebp
call fcn.005172d4
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517483
mov eax, dword [ebp - 4]
call fcn.00516c58
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x517490
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 0x5175b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00516c4c
xor eax, eax
push ebp
push 0x517595
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 0x5174e0
call fcn.00403864
jmp 0x51759c
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 0x51757f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x51757f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403208
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 0x51757f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bedc
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, 0x5175cc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x51f2c0]
mov dl, 1
mov eax, dword [0x516054]
call fcn.0040c814
call fcn.004037c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51759c
mov eax, dword [ebp - 4]
call fcn.00516c58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5175b9
lea eax, [ebp - 0x28]
call fcn.00403d10
ret
Function at 0x517618
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 0x517762
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00516c4c
xor eax, eax
push ebp
push 0x517745
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x51767d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x51767d
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 0x51772f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x517690
call fcn.00403864
jmp 0x51774c
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 0x51772f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x51772f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403208
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 0x51772f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bedc
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, 0x51777c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x51f2c0]
mov dl, 1
mov eax, dword [0x516054]
call fcn.0040c814
call fcn.004037c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51774c
mov eax, dword [ebp - 4]
call fcn.00516c58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517769
lea eax, [ebp - 0x28]
call fcn.00403d10
ret
Function at 0x517f84
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], edx
mov esi, eax
mov edi, 0x51ea94
cmp dword [esp], 0
je 0x518076
mov ebx, esi
mov eax, dword [esp]
mov ebp, 3
xor edx, edx
div ebp
lea eax, [eax + eax*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add esi, eax
cmp esi, ebx
je 0x51800d
xor eax, eax
mov al, byte [ebx]
shl eax, 8
inc ebx
xor edx, edx
mov dl, byte [ebx]
or eax, edx
shl eax, 8
inc ebx
xor edx, edx
mov dl, byte [ebx]
or eax, edx
inc ebx
mov edx, eax
and edx, 0x3f
mov dl, byte [edi + edx]
mov byte [ecx + 3], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
mov dl, byte [edi + edx]
mov byte [ecx + 2], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
mov dl, byte [edi + edx]
mov byte [ecx + 1], dl
shr eax, 6
mov al, byte [edi + eax]
mov byte [ecx], al
add ecx, 4
cmp esi, ebx
jne 0x517fbe
mov eax, dword [esp]
sub eax, dword [esp + 4]
dec eax
je 0x51801c
dec eax
je 0x518040
jmp 0x518076
xor eax, eax
mov al, byte [ebx]
shl eax, 4
mov edx, eax
and edx, 0x3f
mov dl, byte [edi + edx]
mov byte [ecx + 1], dl
shr eax, 6
mov al, byte [edi + eax]
mov byte [ecx], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x518076
xor eax, eax
mov al, byte [ebx]
inc ebx
shl eax, 8
xor edx, edx
mov dl, byte [ebx]
or eax, edx
shl eax, 2
mov edx, eax
and edx, 0x3f
mov dl, byte [edi + edx]
mov byte [ecx + 2], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
mov dl, byte [edi + edx]
mov byte [ecx + 1], dl
shr eax, 6
mov al, byte [edi + eax]
mov byte [ecx], al
mov byte [ecx + 3], 0x3d
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x435530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ca660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.004bfa51
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.00438f80
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x435584
jmp dword [ecx*4 + 0x4356ec]
mov al, byte [esi]
test al, al
je 0x4355b2
cmp al, 0x20
je 0x43559e
cmp al, 0xa1
jne 0x4355b2
cmp byte [esi + 1], al
jne 0x4355b2
test al, 0x80
je 0x4355aa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4355b2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x435591
test ecx, ecx
je case.default.0x435584
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x435584
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x4355f8
cmp dl, 0xa1
jne 0x4355ec
cmp byte [eax + 1], 0xa1
jne 0x4355ec
test ecx, ecx
jne 0x4355e4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x43560c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x435626
jmp 0x43560c
cmp dl, 0x20
jne 0x43560a
test ecx, ecx
jne 0x435603
mov edi, eax
mov ecx, 1
jmp 0x43560c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x4355cc
cmp ecx, 1
jne case.default.0x435584
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x435584
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x435584
mov al, byte [esi]
test al, al
je 0x43567e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x435664
mov cl, byte [esi + 1]
test cl, cl
je 0x43567e
cmp al, 0xa1
jne 0x435654
cmp cl, al
je 0x435661
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00439250
inc esi
jmp 0x435676
cmp al, 0x20
je 0x435676
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00439290
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x43563d
push 0
lea ecx, [esp + 0x14]
call fcn.00439290
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00446570
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x4356b1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x845d38
call fcn.00439180
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004bf9e3
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x43f780
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cad9b
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.004bf758
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x43f802
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004bd632
mov eax, dword [eax]
push 0x85dcc4
push eax
call fcn.004af7d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004bf9e3
test bl, bl
je 0x43f802
push 0x85dcc4
lea ecx, [esp + 0xc]
call fcn.004bfd73
push 0x85dcd0
lea ecx, [esp + 0xc]
call fcn.004bfd73
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 0x43f83e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004bf9e3
jmp 0x43f909
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 0x43f8c2
lea edx, [esp + 0x7c]
push 0x85dccc
push edx
call fcn.004af7d4
add esp, 8
test eax, eax
je 0x43f8c2
lea eax, [esp + 0x7c]
push 0x85dcc8
push eax
call fcn.004af7d4
add esp, 8
test eax, eax
je 0x43f8c2
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 0x43f852
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.004bf9e3
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 0x440120
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 0x440182
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