joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f65d8
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x4f6613
cmp dword [ebx + 0x5c], 0
je 0x4f6613
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004eecbc
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x4f675e
cmp dword [ebx + 0x7c], 0
jne 0x4f6639
mov dl, 1
mov eax, dword [0x41b5fc]
call fcn.0040345c
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x4f6737
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x4f6764]
push eax
mov al, byte [0x4f6768]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x52a1ec]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x494340]
call fcn.004962d0
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4f6730
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004eecbc
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004eecbc
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x4ec578]
call fcn.00405a10
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x4f6703
mov edx, dword [0x52a564]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x4f6714
cmp eax, 0x1007
jne 0x4f6710
mov byte [ebx + 0x74], 0x18
jmp 0x4f6714
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f675e
mov eax, dword [ebp - 4]
call fcn.0040348c
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004eecbc
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f8a4c
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 0x4f8ad5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52be64
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4f8abf
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c5ac
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, 0x4f8aec
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x52a4d0]
mov dl, 1
mov eax, dword [0x4f8250]
call fcn.0040cedc
call fcn.00403cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8adc
lea eax, [ebp - 0x1c]
call fcn.00404340
ret

Function at 0x4f9188
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004f90ac
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403688
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4f91ec
call fcn.004f8994
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4f91de
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.00403688
pop esi
pop ebx
ret

Function at 0x4f9210
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404800
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402e0c
test ebx, ebx
je 0x4f925b
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 0x4f9338
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 0x4f9369
mov ecx, dword [0x52a2ec]
mov dl, 1
mov eax, dword [0x4f8250]
call fcn.0040cea0
call fcn.00403cdc
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 0x4f9396
mov ecx, dword [0x52a1f4]
mov dl, 1
mov eax, dword [0x4f8250]
call fcn.0040cea0
call fcn.00403cdc
xor eax, eax
push ebp
push 0x4f9412
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.00403688
cmp byte [ebp + 8], 0
je 0x4f93ee
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.004f92a0
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.004f9188
jmp 0x4f9408
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.004f8c80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f942f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f95f4
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.004f8f48
xor eax, eax
push ebp
push 0x4f9765
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 0x4f974f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4f963f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4f9649
call fcn.00403d88
jmp 0x4f976c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00420538
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 0x4f9744
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 0x4f96f7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4f96e4
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403688
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.004f95ac
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4f9778]
cmp dl, byte [eax + 0x28]
je 0x4f974b
call fcn.0040cdb8
jmp 0x4f974b
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00420558
jmp 0x4f974b
cmp ecx, ebx
jge 0x4f9713
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.00420558
jmp 0x4f9649
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.00420538
cmp edx, dword [esp + 4]
jne 0x4f9733
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4f9649
push ebp
call fcn.004f95ac
pop ecx
jmp 0x4f974b
push ebp
call fcn.004f95ac
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f976c
mov eax, dword [ebp - 4]
call fcn.004f8f54
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f977c
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 0x4f989e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004f8f48
xor eax, eax
push ebp
push 0x4f9881
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 0x4f97cc
call fcn.00403d88
jmp 0x4f9888
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 0x4f986b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4f986b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403688
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 0x4f986b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c5ac
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, 0x4f98b8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x52a4d0]
mov dl, 1
mov eax, dword [0x4f8250]
call fcn.0040cedc
call fcn.00403cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9888
mov eax, dword [ebp - 4]
call fcn.004f8f54
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f98a5
lea eax, [ebp - 0x28]
call fcn.00404340
ret
Function at 0x4f9904
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 0x4f9a4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004f8f48
xor eax, eax
push ebp
push 0x4f9a31
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4f9969
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4f9969
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 0x4f9a1b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4f997c
call fcn.00403d88
jmp 0x4f9a38
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 0x4f9a1b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4f9a1b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403688
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 0x4f9a1b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c5ac
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, 0x4f9a68
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x52a4d0]
mov dl, 1
mov eax, dword [0x4f8250]
call fcn.0040cedc
call fcn.00403cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9a38
mov eax, dword [ebp - 4]
call fcn.004f8f54
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9a55
lea eax, [ebp - 0x28]
call fcn.00404340
ret
Function at 0x4face4
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 0x4faef1
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.004061e8
push eax
push 0x4faf00
push 1
push 0
mov eax, dword [0x529d68]
push eax
call sub.ole32.dll_CoCreateInstance
mov esi, eax
mov eax, esi
call fcn.0041adbc
test al, al
je 0x4fadaf
lea eax, [ebp - 4]
call fcn.004061e8
push eax
push 0
push 0
mov eax, dword [0x529f64]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.00471e98
jmp 0x4fad93
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x24]
call fcn.00471f94
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 0x4fad78
jmp 0x4faeb0
lea eax, [ebp - 0x10]
push eax
push 0x4faf10
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x4faeb0
xor eax, eax
push ebp
push 0x4faea9
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
jmp 0x4fae74
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 [0x529f64]
call fcn.00471f0c
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x12c], 0xb
lea edx, [ebp - 0x138]
mov ecx, 1
mov eax, 0x4faf20
call fcn.00409e20
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x124]
mov ecx, pe_nt_image_headers32
call fcn.004045b0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x138]
call fcn.00471eb0
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x140]
call fcn.00471f94
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 0x4faddf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4faeb0
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 0x4faef8
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.00404364
lea eax, [ebp - 0x128]
call fcn.00404340
lea eax, [ebp - 0x14]
call fcn.00404340
lea eax, [ebp - 0xc]
call fcn.004061e8
lea eax, [ebp - 4]
call fcn.004061e8
ret
Function at 0x4fafa8
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 0x4fafe9
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.004045b0
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4faff4
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.00404800
push eax
push esi
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x4fb042
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.004045b0
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ff500
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x52c018
cmp dword [ebx], 0
jne 0x4ff644
push 0x4ff65c
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x4ff644
push 0x4ff66c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c01c], eax
push 0x4ff688
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c020], eax
push 0x4ff698
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c024], eax
push 0x4ff6a8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c028], eax
push 0x4ff6b4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c02c], eax
push 0x4ff6c0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c030], eax
push 0x4ff6dc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c034], eax
push 0x4ff6ec
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c038], eax
push 0x4ff6fc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c03c], eax
push 0x4ff70c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c040], eax
push 0x4ff71c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c044], eax
push 0x4ff72c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c048], eax
push 0x4ff73c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c04c], eax
push 0x4ff74c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c050], eax
push 0x4ff75c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c054], eax
push 0x4ff76c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52c058], eax
cmp dword [ebx], 0
je 0x4ff652
cmp dword [0x52c01c], 0
jne 0x4ff656
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x500da4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x21
mov eax, dword [0x52a380]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409930
add esp, 0x104
pop ebx
ret
Function at 0x500de4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004047f0
xor eax, eax
push ebp
push 0x500e4f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.00402e0c
mov dword [ebp - 0x1e], 3
mov eax, dword [ebp - 4]
call fcn.00404800
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x12], 0x10
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500e56
lea eax, [ebp - 4]
call fcn.00404340
ret

Function at 0x501498
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov edi, eax
xor eax, eax
push ebp
push 0x50158c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov dword [ebp - 0x129], 0x128
xor edx, edx
mov eax, 0xf
call fcn.004ff77c
mov esi, eax
lea edx, [ebp - 0x129]
mov eax, esi
call fcn.004ff79c
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x50156a
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x105]
mov ecx, 0x104
call fcn.004045b0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004095d4
mov edx, dword [ebp - 0x130]
mov eax, edi
call fcn.00408c6c
test al, al
je 0x501557
mov eax, dword [ebp - 0x121]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
push ebx
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x129]
mov eax, esi
call fcn.004ff7bc
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5014f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501593
lea eax, [ebp - 0x134]
mov edx, 2
call fcn.00404364
ret

Function at 0x501638
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
push ecx
push esp
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov cl, 1
mov edx, 0x501670
mov eax, dword [esp]
call fcn.005015a0
mov ebx, eax
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop ebx
ret
Function at 0x512ad8
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 0x512ae0
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x512cd2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x512ce8
mov eax, esi
call fcn.00510964
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404394
lea ecx, [ebp - 0x10]
mov edx, 0x512cfc
mov eax, esi
call fcn.00510964
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404394
lea ecx, [ebp - 0x14]
mov edx, 0x512d14
mov eax, esi
call fcn.00510964
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404394
lea ecx, [ebp - 0x18]
mov edx, 0x512d30
mov eax, esi
call fcn.00510964
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404394
lea ecx, [ebp - 0x1c]
mov edx, 0x512d4c
mov eax, esi
call fcn.00510964
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404394
lea ecx, [ebp - 0x24]
mov edx, 0x512d64
mov eax, esi
call fcn.00510964
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408da0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409180
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x512d7c
mov eax, esi
call fcn.00510964
mov eax, dword [ebp - 0x28]
call fcn.0050a43c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x512d8c
mov eax, esi
call fcn.00510964
mov eax, dword [ebp - 0x2c]
call fcn.0050a43c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x512da4
mov eax, esi
call fcn.00510964
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409180
inc eax
je 0x512c75
lea ecx, [ebp - 0x34]
mov edx, 0x512da4
mov eax, esi
call fcn.00510964
mov eax, dword [ebp - 0x34]
call fcn.00409144
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.0040ac30
fstp qword [ebp - 0x3c]
wait
call fcn.0040af94
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x512c90
lea ecx, [ebp - 0x40]
mov edx, 0x512da4
mov eax, esi
call fcn.00510964
mov eax, dword [ebp - 0x40]
call fcn.0050a43c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x512db4
mov eax, esi
call fcn.00510964
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404394
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512cd9
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404364
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404364
ret