joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40523d
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [eax + 0x100]
push edi
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
xor edi, edi
mov byte [ebp - 2], cl
cmp dword [ebp + 0xc], edi
jbe 0x405298
push ebx
push esi
inc byte [ebp - 1]
movzx ecx, byte [ebp - 1]
lea esi, [ecx + eax]
mov dl, byte [esi]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
movzx esi, byte [esi]
mov ecx, dword [ebp + 8]
movzx edx, dl
add esi, edx
and esi, 0xff
mov dl, byte [esi + eax]
add ecx, edi
xor byte [ecx], dl
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x40525d
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret 8

Function at 0x40549f
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x4054c8
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
xor eax, eax
cmp eax, dword [ebp + 0x10]
lea ecx, [ebp - 8]
sbb eax, eax
and eax, ecx
push eax
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
je 0x4054ff
or eax, 0xffffffff
jmp 0x40550d
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_recv]
pop ebx
leave
ret 0xc

Function at 0x405573
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [esp + 0xc]
sete al
ret 0xc

Function at 0x405591
Capabilities:
Connect socket

Disassembly:
movzx eax, word [edi]
push esi
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4055c1
push dword [esp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4055c1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, esi
pop esi
ret 4
Function at 0x4055c7
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
rol ax, 8
movzx edi, ax
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4055ff
or eax, 0xffffffff
jmp 0x40569c
push esi
mov esi, dword [ebp + 8]
jmp 0x40563a
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x405621
mov eax, dword [esi + 0x10]
push eax
push dword [esi + 0x18]
mov dword [ebp - 8], eax
call fcn.00403e1b
mov dword [ebp - 4], eax
jmp 0x405637
cmp eax, 0x17
jne 0x405637
mov eax, dword [esi + 0x10]
push eax
push dword [esi + 0x18]
mov dword [ebp - 0xc], eax
call fcn.00403e1b
mov ebx, eax
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x405605
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 4]
or esi, 0xffffffff
test eax, eax
je 0x405664
push dword [ebp - 8]
mov word [eax + 2], di
mov edi, eax
call fcn.00405591
mov edi, dword [ebp - 0x10]
mov esi, eax
test ebx, ebx
je 0x40568b
cmp esi, 0xffffffff
jne 0x40568b
cmp word [ebx], 0x17
jne 0x40567b
and dword [ebx + 0x18], 0
and dword [ebx + 4], 0
push dword [ebp - 0xc]
mov word [ebx + 2], di
mov edi, ebx
call fcn.00405591
mov esi, eax
push dword [ebp - 4]
call fcn.00403dc8
push ebx
call fcn.00403dc8
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x405743
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x510
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_select]
xor esi, esi
jmp 0x4057bf
mov dword [ebp + 0x70], esi
cmp dword [ebp - 0x9c], esi
jbe 0x4057bf
mov eax, dword [ebp + 0x70]
mov eax, dword [ebp + eax*4 - 0x98]
cmp eax, ebx
jne 0x40577b
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], ecx
jmp 0x40577e
mov dword [ebp + 0x6c], ebx
push esi
push 0x400
lea ecx, [ebp - 0x49c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
mov dword [ebp + 0x68], eax
jl 0x4057ee
push esi
push eax
lea eax, [ebp - 0x49c]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 0x68]
jne 0x4057ee
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp - 0x9c]
jb 0x405765
mov eax, dword [ebp + 0x7c]
push esi
push esi
mov dword [ebp - 0x94], eax
push esi
lea eax, [ebp - 0x9c]
push eax
push esi
mov dword [ebp - 0x9c], 2
mov dword [ebp - 0x98], ebx
call edi
cmp eax, 1
jge 0x40575a
pop edi
pop esi
add ebp, 0x74
leave
ret 4
Function at 0x4057f7
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x518
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_select]
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x60], 0x186a0
jmp 0x405894
push esi
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4058c9
cmp dword [ebp + 0x6c], esi
jle 0x405894
mov dword [ebp + 0x68], esi
cmp dword [ebp - 0xa8], esi
jbe 0x405894
mov eax, dword [ebp + 0x68]
mov eax, dword [ebp + eax*4 - 0xa4]
cmp eax, ebx
jne 0x405850
mov ecx, dword [ebp + 0x78]
mov dword [ebp + 0x6c], ecx
jmp 0x405853
mov dword [ebp + 0x6c], ebx
push esi
push 0x400
lea ecx, [ebp - 0x4a8]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
mov dword [ebp + 0x64], eax
jl 0x4058c9
push esi
push eax
lea eax, [ebp - 0x4a8]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 0x64]
jne 0x4058c9
inc dword [ebp + 0x68]
mov eax, dword [ebp + 0x68]
cmp eax, dword [ebp - 0xa8]
jb 0x40583a
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x5c]
push eax
push esi
push esi
lea eax, [ebp - 0xa8]
push eax
push esi
mov dword [ebp - 0xa8], 2
mov dword [ebp - 0xa4], ebx
call edi
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
jne 0x405818
pop edi
pop esi
add ebp, 0x70
leave
ret 8

Function at 0x4058d2
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 1]
cmp ecx, 0x40
jae 0x405966
test eax, eax
jbe 0x405909
xor edx, edx
mov ebx, 0x3e8
div ebx
mov ebx, dword [ebp + 8]
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 4
push ebx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], ecx
call fcn.00403e04
test esi, esi
jbe 0x405937
mov eax, esi
shl eax, 2
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call fcn.00403e04
xor eax, eax
cmp eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
sbb eax, eax
and eax, ecx
push eax
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x40596f
push 0x274c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0xffffffff
je 0x405966
xor esi, esi
push dword [ebx + esi*4]
lea eax, [ebp - 0x10c]
call fcn.00405479
test al, al
jne 0x405990
inc esi
cmp esi, 1
jb 0x405976
jmp 0x405966
mov eax, dword [ebx + esi*4]
jmp 0x405969

Function at 0x405a19
Capabilities:
Create udp socket

Disassembly:
movzx eax, word [edi]
push esi
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a49
push dword [esp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x405a49
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, esi
pop esi
ret 4
Function at 0x405bc6
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
cmp dword [ebp + 0xc], 0xffffffff
je 0x405c5e
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x26
je 0x405c00
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x405c08
or eax, 0xffffffff
jmp 0x405cc0
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x405bf4
cmp word [ebp - 0x4c], 2
jne 0x405c33
push 4
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 1
call fcn.00403e04
push 2
lea eax, [ebp - 0x4a]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403e04
jmp 0x405c80
cmp word [ebp - 0x4c], 0x17
jne 0x405bf8
push 0x10
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 4
call fcn.00403e04
push 2
lea eax, [ebp - 0x4a]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403e04
jmp 0x405c73
push 0x1c
lea eax, [ebp - 0x20]
push eax
call fcn.00403e69
test byte [ebp + 0x14], 1
je 0x405c7c
mov byte [ebp + 0xf], 4
mov dword [ebp - 4], 0x12
jmp 0x405c87
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 6
mov al, byte [ebp + 0x10]
mov byte [ebp + 0xd], al
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp + 0xc], 5
mov byte [ebp + 0xe], 0
call fcn.00403e04
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.00405573
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x40652b
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0xffffffff
je 0x406572
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x10
je 0x40655e
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x406566
or eax, 0xffffffff
jmp 0x40659d
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x406555
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x1a]
jmp 0x406578
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0xa], ax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0xb], al
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], 0
call fcn.00405573
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x406f68
Capabilities:
Get common file path

Disassembly:
push edi
xor edi, edi
call fcn.00406e89
test al, al
je 0x407059
push esi
mov eax, 0x950
call fcn.00403db0
mov esi, eax
test esi, esi
je 0x407053
push edi
push dword [esp + 0x10]
lea eax, [esi + 0x53e]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x40704d
lea eax, [esi + 0x746]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
seta al
test al, al
je 0x40704d
mov ecx, 0x7fffffff
mov dword [esi + 0x14], ecx
lea eax, [esi + 0x10]
mov dword [eax], ecx
xor ecx, ecx
inc ecx
push 0xc
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
push 0x401a20
lea ecx, [esi + 0x132]
push ecx
call fcn.00403e04
push 2
push 0x401a0c
lea ecx, [esi + 0x232]
push ecx
call fcn.00403e04
push esi
push eax
push 0x406d77
push 0x406d3f
push 0x406cf3
push fcn.00406cca
push 0x406c82
push 0x406c4a
push fcn.00406c15
push fcn.00406a87
push fcn.00406a74
lea eax, [esi + 4]
push 0x406df4
push eax
call dword [0x4221f0]
add esp, 0x34
mov dword [esi], eax
test eax, eax
je 0x40704d
mov edi, esi
jmp 0x407058
push esi
call fcn.00403dc8
call fcn.00406f47
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x40729f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x218
push ebx
xor ebx, ebx
push esi
push edi
cmp eax, ebx
je 0x4072b6
mov dword [eax], ebx
push 0x12
push 0x401a60
lea eax, [ebp - 0x218]
push eax
call fcn.00403e04
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x206], ax
or eax, 0xffffffff
lea edx, [ebp - 0x206]
call fcn.00404023
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov byte [ebp + 0xb], bl
mov edi, 0xc0000000
jmp 0x40730f
cmp byte [ebp + 0xb], 1
je 0x4073c6
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
inc byte [ebp + 0xb]
push ebx
push ebx
push 3
push ebx
push 3
push edi
lea eax, [ebp - 0x218]
push eax
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4072f3
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x4073bd
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4073bd
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4073bd
cmp dword [ebp - 8], 8
jne 0x4073bd
mov eax, dword [ebp - 0xc]
inc eax
call fcn.00403db0
mov edi, eax
cmp edi, ebx
je 0x4073b7
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
call esi
test eax, eax
je 0x4073b7
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x4073b7
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4073bd
mov dword [eax], edi
jmp 0x4073bd
push edi
call fcn.00403dc8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40753d
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 8], 0x28
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x407575
push 0xe
push 0x401a7c
lea eax, [ebp - 0x60]
push eax
call fcn.00403e04
xor eax, eax
mov word [ebp - 0x52], ax
push ebx
push esi
push edi
mov esi, 0x11c
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x17c]
push eax
call fcn.00403e7b
lea eax, [ebp - 0x17c]
push eax
mov dword [ebp - 0x17c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4075ad
push esi
lea eax, [ebp - 0x17c]
jmp 0x4075b8
push 0x100
lea eax, [ebp - 0x168]
push ebx
push eax
call fcn.00403e7b
push 0x401a8c
push 0x401aa8
push 0x80000002
call fcn.004077d3
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
call fcn.004078ca
cmp eax, 0xffffffff
je 0x4075fb
cmp eax, ebx
jbe 0x4075fb
push eax
push dword [ebp - 4]
call fcn.004051d3
push dword [ebp - 4]
mov ebx, eax
call fcn.00403dc8
push 8
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], ebx
call fcn.004051d3
push eax
push esi
lea eax, [ebp - 0x17c]
push eax
call fcn.004051d3
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x401b28
push 0x3c
pop edx
call fcn.004045cd
add esp, 0x10
cmp eax, 1
mov dword [ebp - 8], eax
jge 0x40764a
push 0x16
push 0x401b40
push edi
call fcn.00403e04
xor eax, eax
mov word [edi + 0x16], ax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x407651
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x407674
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40766b
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x407661
pop edi
pop esi
ret

Function at 0x4076ef
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, eax
mov eax, dword [edi]
lea esi, [edi + 4]
lea eax, [eax*4 + 4]
call fcn.00403d5b
test al, al
jne 0x40770c
xor al, al
jmp 0x40773e
mov eax, dword [edi]
mov ecx, dword [esi]
lea esi, [ecx + eax*4]
inc eax
mov dword [edi], eax
xor edi, edi
cmp dword [esp + 0xc], edi
je 0x40773c
push edi
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x407708
mov dword [esi], eax
cmp ebx, edi
je 0x40773c
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
ret 8
Function at 0x407823
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
or esi, 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x407848
lea eax, [ebp + 8]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407876
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407867
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x407876
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x40787d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x402f50
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4078c3
push 4
push dword [ebp + 0x10]
push 4
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4078ba
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret 0xc

Function at 0x4078ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
or dword [ebp - 0xc], 0xffffffff
push esi
xor esi, esi
mov dword [ecx], esi
lea ecx, [ebp - 8]
push ecx
push 1
push esi
mov eax, 0x80000002
push 0x401aa8
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40796b
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
mov ebx, 0x401b04
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x407960
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x407928
mov dword [ebp - 0xc], esi
jmp 0x407960
add eax, 4
call fcn.00403db0
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x407960
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push esi
push ebx
push dword [ebp - 8]
call edi
test eax, eax
je 0x407952
push dword [ebp - 0x10]
call fcn.00403dc8
jmp 0x407960
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
pop esi
leave
ret 4
Function at 0x407973
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x50]
push ebx
push edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4079a0
xor eax, eax
jmp 0x407a71
push 0x40
push 0x3000
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
test eax, eax
je 0x407a6e
push ebx
push edi
call fcn.00403e1b
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x407a57
lea eax, [esi + 0xa0]
cmp dword [eax + 4], ecx
jbe 0x407a4b
mov eax, dword [eax]
cmp eax, ecx
jbe 0x407a4b
mov esi, dword [esi + 0x34]
mov edx, dword [ebp - 8]
sub edi, esi
sub edx, esi
mov dword [ebp - 0x10], edi
add eax, ebx
jmp 0x407a30
mov esi, dword [eax + 4]
cmp esi, 8
jb 0x407a2b
add esi, 0xfffffff8
shr esi, 1
mov dword [ebp - 0xc], ecx
je 0x407a2b
mov ecx, dword [ebp - 0xc]
movzx ecx, word [eax + ecx*2 + 8]
test cx, cx
jbe 0x407a23
and ecx, 0xfff
add ecx, dword [eax]
mov edi, edx
sub edi, dword [ebp - 0x10]
add ecx, ebx
add dword [ecx], edi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
jb 0x407a05
add eax, dword [eax + 4]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x4079f3
push ecx
push dword [ebp - 0x14]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne byte [ebp - 1]
push ebx
call fcn.00403dc8
cmp byte [ebp - 1], 0
jne 0x407a6e
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407b4d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call fcn.00407b08
cmp eax, 0x1e
jb 0x407c4e
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1e
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x407c4e
push 0x23
push 0xffffffffffffff90
lea eax, [ebp - 0x2c]
push eax
call fcn.00403e7b
push esi
push 0x1e
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x407c3a
push edi
lea edi, [ebp - 0x2c]
push esi
mov eax, edi
push eax
jmp 0x407bdf
add esi, eax
cmp esi, 0x1e
ja 0x407c39
cmp byte [edi], 0xe9
jne 0x407bd3
cmp eax, 5
jne 0x407bd3
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
add dword [edi + 1], eax
push 0
cmp esi, 5
jae 0x407beb
lea edi, [ebp + esi - 0x2c]
push edi
call fcn.00417890
cmp eax, 0xffffffff
jne 0x407bb9
jmp 0x407c39
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
lea edi, [esi + 5]
sub eax, 5
mov dword [ebp + esi - 0x2b], eax
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
mov byte [ebp + esi - 0x2c], 0xe9
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
call esi
test eax, eax
je 0x407c39
sub ebx, dword [ebp + 8]
push 0
push 5
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
sub ebx, 5
push 0xffffffffffffffff
mov byte [ebp - 0x2c], 0xe9
mov dword [ebp - 0x2b], ebx
call esi
test eax, eax
je 0x407c39
mov dword [ebp - 8], edi
pop edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x1e
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 8

Function at 0x407c57
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x407ca5
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x1c
call sub.KERNEL32.dll_Thread32First
jmp 0x407c98
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x407c8e
inc edi
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x407c85
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x407de6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
lea eax, [ebp - 0xa4]
push eax
xor esi, esi
mov dword [ebp - 0xa4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407eb4
push 2
pop eax
cmp dword [ebp - 0x94], eax
jne 0x407eb4
xor ecx, ecx
inc ecx
cmp byte [ebp + 0x76], cl
jne 0x407e74
cmp dword [ebp - 0xa0], 5
jne 0x407e53
cmp dword [ebp - 0x9c], esi
jne 0x407e3f
mov esi, ecx
jmp 0x407eb4
cmp dword [ebp - 0x9c], ecx
je 0x407e4f
cmp dword [ebp - 0x9c], eax
jne 0x407eb4
mov esi, eax
jmp 0x407eb4
cmp dword [ebp - 0xa0], 6
jne 0x407eb4
cmp dword [ebp - 0x9c], esi
jne 0x407e68
push 4
jmp 0x407eb3
cmp dword [ebp - 0x9c], ecx
jne 0x407eb4
push 6
jmp 0x407eb3
cmp byte [ebp + 0x76], al
je 0x407e7f
cmp byte [ebp + 0x76], 3
jne 0x407eb4
cmp dword [ebp - 0xa0], 5
jne 0x407e94
cmp dword [ebp - 0x9c], eax
jne 0x407eb4
push 3
jmp 0x407eb3
cmp dword [ebp - 0xa0], 6
jne 0x407eb4
cmp dword [ebp - 0x9c], esi
jne 0x407ea9
push 5
jmp 0x407eb3
cmp dword [ebp - 0x9c], ecx
jne 0x407eb4
push 7
pop esi
mov eax, esi
pop esi
add ebp, 0x78
leave
ret