joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499258
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.00498bac
xor eax, eax
push ebp
push 0x4993c9
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 0x4993b3
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4992a3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4992ad
call fcn.00404010
jmp 0x4993d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00420c18
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 0x4993a8
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 0x49935b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x499348
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403910
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.00499210
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4993dc]
cmp dl, byte [eax + 0x28]
je 0x4993af
call fcn.0040e548
jmp 0x4993af
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00420c38
jmp 0x4993af
cmp ecx, ebx
jge 0x499377
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.00420c38
jmp 0x4992ad
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.00420c18
cmp edx, dword [esp + 4]
jne 0x499397
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4992ad
push ebp
call fcn.00499210
pop ecx
jmp 0x4993af
push ebp
call fcn.00499210
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4993d0
mov eax, dword [ebp - 4]
call fcn.00498bb8
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4993e0
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 0x499502
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00498bac
xor eax, eax
push ebp
push 0x4994e5
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 0x499430
call fcn.00404010
jmp 0x4994ec
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 0x4994cf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4994cf
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403910
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 0x4994cf
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040dd3c
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, 0x49951c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4fb620]
mov dl, 1
mov eax, dword [0x497eb4]
call fcn.0040e660
call fcn.00403f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4994ec
mov eax, dword [ebp - 4]
call fcn.00498bb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499509
lea eax, [ebp - 0x28]
call fcn.00404670
ret
Function at 0x499568
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 0x4996b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00498bac
xor eax, eax
push ebp
push 0x499695
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4995cd
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4995cd
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 0x49967f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4995e0
call fcn.00404010
jmp 0x49969c
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 0x49967f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49967f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403910
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 0x49967f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040dd3c
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, 0x4996cc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4fb620]
mov dl, 1
mov eax, dword [0x497eb4]
call fcn.0040e660
call fcn.00403f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49969c
mov eax, dword [ebp - 4]
call fcn.00498bb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4996b9
lea eax, [ebp - 0x28]
call fcn.00404670
ret
Function at 0x49ac34
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49ae41
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0xc]
call fcn.00406408
push eax
push 0x49ae50
push 1
push 0
mov eax, dword [0x4faf64]
push eax
call sub.ole32.dll_CoCreateInstance
mov esi, eax
mov eax, esi
call fcn.0041b560
test al, al
je 0x49acff
lea eax, [ebp - 4]
call fcn.00406408
push eax
push 0
push 0
mov eax, dword [0x4fb134]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.0046fe30
jmp 0x49ace3
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x24]
call fcn.0046ff2c
mov edx, dword [ebp - 0x128]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x49acc8
jmp 0x49ae00
lea eax, [ebp - 0x10]
push eax
push 0x49ae60
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x49ae00
xor eax, eax
push ebp
push 0x49adf9
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
jmp 0x49adc4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 6
lea edx, [ebp - 0x13c]
mov eax, dword [0x4fb134]
call fcn.0046fea4
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x12c], 0xb
lea edx, [ebp - 0x138]
mov ecx, 1
mov eax, 0x49ae70
call fcn.0040b5b0
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x124]
mov ecx, pe_nt_image_headers32
call fcn.004048e0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x138]
call fcn.0046fe48
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x140]
call fcn.0046ff2c
mov edx, dword [ebp - 0x140]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
push pe_nt_image_headers32
lea eax, [ebp - 0x124]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
je 0x49ad2f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ae00
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ae48
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.00404694
lea eax, [ebp - 0x128]
call fcn.00404670
lea eax, [ebp - 0x14]
call fcn.00404670
lea eax, [ebp - 0xc]
call fcn.00406408
lea eax, [ebp - 4]
call fcn.00406408
ret
Function at 0x49aef8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
jne 0x49af39
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.004048e0
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49af44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
mov eax, edi
call fcn.00404b30
push eax
push esi
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x49af92
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.004048e0
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49f364
Capabilities:
Parse url

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov esi, edx
mov ebx, eax
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebx + 0xd4]
mov edx, esi
call fcn.00404a7c
je 0x49f472
test esi, esi
je 0x49f43f
mov eax, esp
xor ecx, ecx
mov edx, 0x3c
call fcn.004030b0
mov dword [esp], 0x3c
mov dword [esp + 8], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x30], 1
mov eax, esi
call fcn.00404b30
mov edi, eax
push esp
push 0
push 0
push edi
call sub.wininet.dll_InternetCrackUrlA
mov eax, dword [esp + 0xc]
add eax, 0xfffffffd
sub eax, 2
jb 0x49f3f6
mov ecx, dword [0x4fb024]
mov dl, 1
mov eax, dword [0x4094f0]
call fcn.0040e624
call fcn.00403f64
mov eax, dword [esp + 0xc]
mov dword [ebx + 0xe4], eax
movzx eax, word [esp + 0x18]
mov dword [ebx + 0xe0], eax
lea eax, [ebx + 0xd8]
push eax
mov edx, dword [esp + 0x14]
sub edx, edi
inc edx
mov ecx, dword [esp + 0x18]
mov eax, esi
call fcn.00404b90
lea eax, [ebx + 0xdc]
push eax
mov edx, dword [esp + 0x30]
sub edx, edi
inc edx
mov ecx, dword [esp + 0x34]
mov eax, esi
call fcn.00404b90
jmp 0x49f465
xor eax, eax
mov dword [ebx + 0xe0], eax
lea eax, [ebx + 0xd8]
call fcn.00404670
lea eax, [ebx + 0xdc]
call fcn.00404670
xor eax, eax
mov dword [ebx + 0xe4], eax
lea eax, [ebx + 0xd4]
mov edx, esi
call fcn.004046c4
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x4a3340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00429424
cmp ebx, dword [ebp - 8]
jge 0x4a33a3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00429820
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00429820
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042984c
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4a3369
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a33ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00429424
cmp ebx, dword [ebp - 8]
jge 0x4a340f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00429820
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00429820
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042984c
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4a33d5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a6f50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
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 0x4a71b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4a6fb3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004a6bf8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ef6c
cmp al, 1
jne 0x4a6fb3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004a6ec0
test al, al
je 0x4a713f
cmp dword [ebp - 8], 0
jge 0x4a6fd1
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.004a6bf8
mov eax, dword [ebp - 0x210]
call fcn.00404930
cmp ebx, eax
jge 0x4a701b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004a6bf8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4fb7fc]
and eax, 0xff
bt dword [edx], eax
jae 0x4a701b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4a702f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a6f2c
cmp ebx, dword [ebp - 8]
je 0x4a7131
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 0x4a705b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403910
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f9974]
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 + 0x23c], 1
xor eax, eax
push ebp
push 0x4a711e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403910
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f9974]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0046418c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403910
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f9974]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0046418c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7125
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4a7192
cmp dword [ebp - 8], 0
jge 0x4a714a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004a6bf8
mov eax, dword [ebp - 0x218]
call fcn.00404930
cmp eax, dword [ebp - 8]
jg 0x4a7184
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004a6bf8
mov eax, dword [ebp - 0x21c]
call fcn.00404930
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a6f2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a71b7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404694
ret
Function at 0x4c6e0c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4c6e3a
mov eax, ebx
call fcn.004c78c0
cmp dword [ebx + 0x40], 0
je 0x4c6e33
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4c6eab
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4c6e9d
cmp dword [ebx + 8], 0
je 0x4c6e5c
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 0x4c6e6e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c6e9d
cmp dword [ebx + 8], 0
je 0x4c6e4f
cmp eax, 3
je 0x4c6e81
dec eax
jne 0x4c6e4f
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 0x4c6e4f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4c6e4f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4c6ec9
cmp dword [ebx + 0x14], 0xcc
je 0x4c6ec9
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.004c6ed4
pop ebx
ret
Function at 0x4e8cc8
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 0x4e8cd0
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4e8ec2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4e8ed8
mov eax, esi
call fcn.004e68b0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004046c4
lea ecx, [ebp - 0x10]
mov edx, 0x4e8eec
mov eax, esi
call fcn.004e68b0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004046c4
lea ecx, [ebp - 0x14]
mov edx, 0x4e8f04
mov eax, esi
call fcn.004e68b0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004046c4
lea ecx, [ebp - 0x18]
mov edx, 0x4e8f20
mov eax, esi
call fcn.004e68b0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004046c4
lea ecx, [ebp - 0x1c]
mov edx, 0x4e8f3c
mov eax, esi
call fcn.004e68b0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004046c4
lea ecx, [ebp - 0x24]
mov edx, 0x4e8f54
mov eax, esi
call fcn.004e68b0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040a3ec
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040a934
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4e8f6c
mov eax, esi
call fcn.004e68b0
mov eax, dword [ebp - 0x28]
call fcn.004be230
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4e8f7c
mov eax, esi
call fcn.004e68b0
mov eax, dword [ebp - 0x2c]
call fcn.004be230
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4e8f94
mov eax, esi
call fcn.004e68b0
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040a934
inc eax
je 0x4e8e65
lea ecx, [ebp - 0x34]
mov edx, 0x4e8f94
mov eax, esi
call fcn.004e68b0
mov eax, dword [ebp - 0x34]
call fcn.0040a8f8
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.0040c3c0
fstp qword [ebp - 0x3c]
wait
call fcn.0040c724
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4e8e80
lea ecx, [ebp - 0x40]
mov edx, 0x4e8f94
mov eax, esi
call fcn.004e68b0
mov eax, dword [ebp - 0x40]
call fcn.004be230
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4e8fa4
mov eax, esi
call fcn.004e68b0
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004046c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8ec9
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404694
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404694
ret
Function at 0x4f0288
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 0x4f02e2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004f0278
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004bce9c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004bca9c
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 0x4f02e9
lea eax, [ebp - 4]
call fcn.00404670
ret
Function at 0x40f5c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f18b
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.00463bcf
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f642
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004617ad
mov eax, dword [eax]
push 0x4861e0
push eax
call fcn.00454584
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00463e5a
test bl, bl
je 0x40f642
push 0x4861e0
lea ecx, [esp + 0xc]
call fcn.004641ea
push 0x489d68
lea ecx, [esp + 0xc]
call fcn.004641ea
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 0x40f67e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00463e5a
jmp 0x40f749
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 0x40f702
lea edx, [esp + 0x7c]
push 0x489d64
push edx
call fcn.00454584
add esp, 8
test eax, eax
je 0x40f702
lea eax, [esp + 0x7c]
push 0x489d60
push eax
call fcn.00454584
add esp, 8
test eax, eax
je 0x40f702
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 0x40f692
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.00463e5a
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 0x40ff40
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 0x40ffa2
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