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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x58b6f7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x87], 0
je 0x58b558
cmp dword [ebx + 0x5c], 0
je 0x58b558
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1b0]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.005814ec
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x58b6e1
cmp dword [ebx + 0x7c], 0
jne 0x58b57e
mov dl, 1
mov eax, dword [0x441988]
call fcn.00405db4
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x58b6ba
lea eax, [ebp - 8]
mov edx, dword [ebx + 0xc]
call fcn.00408cc0
mov eax, dword [ebp - 8]
push eax
movzx eax, byte [0x58b704]
push eax
movzx eax, byte [0x58b708]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x66a18c]
push eax
push 1
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x565080]
call fcn.00567f40
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x58b6b3
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1b0]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.005814ec
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1b0]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.005814ec
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x41b200]
call fcn.0040a080
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1b
jge 0x58b65a
mov edx, dword [0x66a5dc]
movzx eax, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x58b697
cmp eax, 0x1007
jne 0x58b667
mov byte [ebx + 0x74], 0x18
jmp 0x58b697
cmp eax, 0x24
jne 0x58b672
mov byte [ebx + 0x74], 0x31
jmp 0x58b697
cmp eax, 0x1b
jne 0x58b67d
mov byte [ebx + 0x74], 0x33
jmp 0x58b697
cmp eax, 0x1c
jne 0x58b688
mov byte [ebx + 0x74], 0x2b
jmp 0x58b697
cmp eax, 0x1d
jne 0x58b693
mov byte [ebx + 0x74], 0x2c
jmp 0x58b697
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 0x58b6e1
mov eax, dword [ebp - 4]
call fcn.00405de4
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 + 0x1b0]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.005814ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58b6fe
lea eax, [ebp - 8]
call fcn.00407b78
ret
Function at 0x58ff20
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 0x58ffa9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x670410
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x58ff93
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0042768c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x58ffc4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x66a50c]
mov dl, 1
mov eax, dword [0x58e5a4]
call fcn.004287e0
call fcn.00407228
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58ffb0
lea eax, [ebp - 0x1c]
call fcn.00407b30
ret

Function at 0x5906f0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x59074c]
cmp al, byte [ebx + 0x28]
je 0x590714
mov esi, 0x401
mov eax, ebx
call fcn.0059085c
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x59074c]
cmp al, byte [ebx + 0x28]
jne 0x590744
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5907e4
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.005906f0
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00406140
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x59084c
call fcn.0058fe68
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x59083a
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.00406140
pop esi
pop ebx
ret

Function at 0x590cd4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x590d60
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
mov ecx, 0
call fcn.004086d4
mov eax, dword [ebp - 0xc]
call fcn.0040858c
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.004053d4
test ebx, ebx
je 0x590d44
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [ebp - 8], cl
movzx ecx, byte [edx + 1]
mov byte [ebp - 7], cl
movzx ecx, byte [edx + 2]
mov byte [ebp - 6], cl
movzx eax, byte [edx + 3]
mov byte [ebp - 5], al
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x590d67
lea eax, [ebp - 0xc]
call fcn.00407b54
ret
Function at 0x590fcc
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 0x590ffd
mov ecx, dword [0x66a2a4]
mov dl, 1
mov eax, dword [0x58e5a4]
call fcn.00428710
call fcn.00407228
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 0x59102a
mov ecx, dword [0x66a194]
mov dl, 1
mov eax, dword [0x58e5a4]
call fcn.00428710
call fcn.00407228
xor eax, eax
push ebp
push 0x5910a6
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.00406140
cmp byte [ebp + 8], 0
je 0x591082
mov eax, dword [ebp + 0x10]
push eax
movzx eax, 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.00590de8
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.005907e4
jmp 0x59109c
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00590174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5910c3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5912d4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00590594
xor eax, eax
push ebp
push 0x591447
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 0x591431
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x591320
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x59132a
call fcn.0040731c
jmp 0x59144e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0045255c
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 0x591426
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x5913d9
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x5913c6
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00406140
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.0059128c
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x59145c]
cmp dl, byte [eax + 0x28]
je 0x59142d
call fcn.004285b0
jmp 0x59142d
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0045257c
jmp 0x59142d
cmp edi, ebx
jge 0x5913f5
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0045257c
jmp 0x59132a
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.0045255c
cmp edx, dword [esp + 4]
jne 0x591415
cmp eax, dword [esp]
pop edx
pop eax
jne 0x59132a
push ebp
call fcn.0059128c
pop ecx
jmp 0x59142d
push ebp
call fcn.0059128c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59144e
mov eax, dword [ebp - 4]
call fcn.0059059c
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x591490
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 0x5915b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00590594
xor eax, eax
push ebp
push 0x591595
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 0x5914e0
call fcn.0040731c
jmp 0x59159c
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 0x59157f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x59157f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00406140
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 0x59157f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0042768c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x5915d0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x66a50c]
mov dl, 1
mov eax, dword [0x58e5a4]
call fcn.004287e0
call fcn.00407228
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59159c
mov eax, dword [ebp - 4]
call fcn.0059059c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5915b9
lea eax, [ebp - 0x28]
call fcn.00407b30
ret
Function at 0x591620
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x591791
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00590594
xor eax, eax
push ebp
push 0x591774
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x591685
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x591685
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 0x59175e
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x591698
call fcn.0040731c
jmp 0x59177b
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x5916bf
cmp dword [ebp - 0x10], 0
jle 0x5916bf
cmp ebx, dword [ebp - 0x10]
jle 0x5916bf
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x59175e
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x59175e
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00406140
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 0x59175e
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0042768c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x5917b0
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x66a50c]
mov dl, 1
mov eax, dword [0x58e5a4]
call fcn.004287e0
call fcn.00407228
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59177b
mov eax, dword [ebp - 4]
call fcn.0059059c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x591798
lea eax, [ebp - 0x2c]
call fcn.00407b30
ret
Function at 0x593704
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x593912
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 8]
call fcn.0040b860
push eax
push 0x593920
push 1
push 0
mov eax, dword [0x66a0d4]
push eax
call sub.ole32.dll_CoCreateInstance
test eax, 0x80000000
jne 0x5937c9
lea eax, [ebp - 4]
call fcn.0040b860
push eax
push 0
push 0
mov eax, dword [0x66a350]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.004bdbcc
jmp 0x5937ad
lea edx, [ebp - 0x228]
lea eax, [ebp - 0x24]
call fcn.004bdcc0
mov edx, dword [ebp - 0x228]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x10]
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 0x593792
jmp 0x5938d1
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x593930
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x5938d1
xor eax, eax
push ebp
push 0x5938ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
jmp 0x593895
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x238], eax
mov byte [ebp - 0x234], 0xa
lea edx, [ebp - 0x23c]
mov eax, dword [0x66a350]
call fcn.004bdc38
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], 0x11
lea edx, [ebp - 0x238]
mov ecx, 1
mov eax, 0x593948
call fcn.004239f8
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x224]
mov ecx, pe_nt_image_headers32
call fcn.00408c70
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x238]
call fcn.004bdbdc
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x240]
call fcn.004bdcc0
mov edx, dword [ebp - 0x240]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
push 0x200
lea eax, [ebp - 0x224]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyW
test eax, eax
je 0x593800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5938d1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x593919
lea eax, [ebp - 0x244]
mov edx, 3
call fcn.00407b90
lea eax, [ebp - 0x228]
call fcn.00407b30
lea eax, [ebp - 0xc]
call fcn.00407b30
lea eax, [ebp - 8]
call fcn.0040b860
lea eax, [ebp - 4]
call fcn.0040b860
ret
Function at 0x5939f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0x200
lea eax, [ebp - 0x204]
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumKeyW
test eax, eax
jne 0x593a31
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x204]
mov ecx, pe_nt_image_headers32
call fcn.00408c70
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x593a3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
mov eax, edi
call fcn.00408bc4
push eax
push esi
call sub.advapi32.dll_RegQueryValueW
test eax, eax
jne 0x593a8a
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x208]
mov ecx, pe_nt_image_headers32
call fcn.00408c70
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x598e44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407c14
xor eax, eax
push ebp
push 0x598f03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00407b30
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
push eax
mov eax, dword [ebp + 8]
imul eax, dword [eax - 0x18], 0x8b
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
lea eax, [edx + eax*4 - 0x1bb]
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x598ee5
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0x598f10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x598ee5
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00598d20
pop ecx
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00408c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598f0a
lea eax, [ebp - 8]
call fcn.00407b54
lea eax, [ebp - 4]
call fcn.00407b30
ret
Function at 0x59919c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407c14
xor eax, eax
push ebp
push 0x59925b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00407b30
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
push eax
mov eax, dword [ebp + 8]
imul eax, dword [eax - 0x18], 0x8b
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
lea eax, [edx + eax*4 - 0x1bb]
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x59923d
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0x599268
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x59923d
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00599078
pop ecx
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00408c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x599262
lea eax, [ebp - 8]
call fcn.00407b54
lea eax, [ebp - 4]
call fcn.00407b30
ret

Function at 0x59947c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov esi, eax
push edx
push 0
push 0x100001
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
jne 0x599498
xor ebx, ebx
jmp 0x5994aa
push 0
push edi
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x5994a8
mov bl, 1
jmp 0x5994aa
xor ebx, ebx
push edi
call sub.kernel32.dll_CloseHandle_1
cmp bl, 1
jne 0x5994cd
mov edx, esi
mov eax, esi
call fcn.005988b0
cmp word [esi + 0x47], 0
je 0x5994cd
mov edx, esi
mov eax, dword [esi + 0x49]
call dword [esi + 0x45]
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x599674
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffcc
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x599696
mov eax, 0xfffffffe
jmp 0x59970d
lea eax, [esp + 8]
push eax
push 0x599714
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5996b8
mov eax, 0xfffffffd
jmp 0x59970d
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 2
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
push 0x10
lea eax, [esp + 0x20]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_2
test eax, eax
je 0x59970b
mov eax, 0xfffffffc
jmp 0x59970d
xor eax, eax
add esp, 0x34
ret
Function at 0x59b744
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
mov ebx, edx
mov esi, eax
push 0x1001
lea eax, [esp + 4]
push eax
mov eax, esi
call fcn.00408bc4
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
jbe 0x59b77a
mov edx, ebx
mov eax, esp
call fcn.00423810
jmp 0x59b781
mov eax, ebx
call fcn.00407b30
add esp, 0x1004
pop esi
pop ebx
ret