joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ffd
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x30
push 0x40ce90
call fcn.0040c2d4
mov eax, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov dword [ebp - 0x20], esi
or dword [ebp - 0x24], 0xffffffff
or ebx, 0xffffffff
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], esi
push esi
push 0x100
push 2
push esi
push esi
push 0xc0000000
push eax
call dword [0x410ac0]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x4040cc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40406a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
push esi
push esi
neg eax
sbb eax, eax
lea ecx, [ebp - 0x40]
and eax, ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x410ac8]
test eax, eax
je 0x4040cc
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x4040cc
push esi
push eax
push dword [ebp - 0x30]
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x4040cc
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00404113
test esi, esi
je 0x404100
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4040ee
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4040f7
mov dword [eax], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x404100
mov dword [eax], edi
mov eax, esi
call fcn.0040c319
ret 0xc
Function at 0x405141
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
push 0x40cf30
call fcn.0040c2d4
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x20], ebx
push dword [0x40e030]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x405297
push 0x410b1c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
cmp dword [0x410aa0], esi
jne 0x4051b4
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x410aa0], eax
test eax, eax
je 0x40523c
mov ecx, edi
mov dword [0x410aa4], ecx
mov dword [0x410a94], 1
jmp 0x4051f4
mov ecx, dword [0x410aa4]
mov eax, dword [0x410a94]
cmp ecx, eax
jne 0x4051f4
lea eax, [eax*4 + 4]
push eax
push dword [0x410aa0]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x40523c
mov dword [0x410aa0], eax
inc dword [0x410a94]
mov ecx, dword [0x410aa4]
mov eax, dword [0x410aa0]
mov dword [eax + ecx*4], edi
push 0x8010
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40523c
lea eax, [esi + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x8000
push esi
push dword [0x40e030]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40523c
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040526b
test ebx, ebx
je 0x40526c
mov ecx, dword [0x410aa4]
mov eax, dword [0x410aa0]
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x410aa4], ecx
jmp 0x40528a
push edi
push dword [0x40e030]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, edi
push 0x410b1c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.0040c319
ret

Function at 0x4053e2
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x40e034]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40541b
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40541b
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x40541b
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40541b
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x40541b
mov eax, dword [eax]
test eax, eax
jne 0x405420
mov eax, 0x4013b4
ret
Function at 0x4054b6
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x405528
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x405515
mov ebx, dword [ebp - 0x14]
jmp 0x40551d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x405530
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf76
mov esp, ebp
pop ebp
ret
Function at 0x405fe0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x410afc], 0
jne 0x4061dc
push ebx
xor ebx, ebx
mov dword [0x410afc], 1
mov dword [0x410af8], ebx
cmp dword [0x4105d8], ebx
je 0x406039
mov dword [0x4105d8], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
sbb eax, eax
neg eax
mov dword [0x410ae0], eax
jmp 0x40603e
mov eax, dword [0x410ae0]
mov dword [0x410ad8], 0x4059c9
test eax, eax
je 0x4060c2
push 0x401af4
mov dword [0x410ad4], 0x405e36
mov dword [0x410b00], 0x405e9a
mov dword [0x410af4], 0x405f18
mov dword [0x410adc], 0x405c25
mov dword [0x410ad0], 0x405f7e
mov dword [0x410ac0], 0x405f8f
mov dword [0x410ae4], 0x405fa0
mov dword [0x410acc], 0x405fb1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406112
push 0x401b08
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406112
mov dword [0x410ad8], eax
jmp 0x406112
mov dword [0x410ad4], 0x4059d3
mov dword [0x410b00], 0x405a91
mov dword [0x410af4], 0x405b63
mov dword [0x410adc], 0x405c25
mov dword [0x410ad0], 0x405c36
mov dword [0x410ac0], 0x405caf
mov dword [0x410ae4], 0x405d38
mov dword [0x410acc], 0x405dc2
push 0x103
lea eax, [ebp - 0x107]
mov dword [0x410abc], 0x4058cc
push ebx
push eax
mov dword [0x410af0], 0x4058ed
mov dword [0x410ac4], 0x4058fe
mov dword [0x410b04], 0x40591f
mov dword [0x410b08], 0x405940
mov dword [0x410b0c], 0x405951
mov dword [0x410ae8], 0x40599d
mov dword [0x410aec], 0x405fc2
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0x401b24
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4061d1
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
jne 0x4061be
push ebx
mov dword [0x410ac8], 0x4059bf
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4061db
push 0x401b44
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x410ac8], eax
jmp 0x4061db
mov dword [0x410ac8], 0x4059bf
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0040bf76
mov esp, ebp
pop ebp
ret

Function at 0x40b346
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push eax
mov edi, 0x4010bc
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jbe 0x40b382
xor eax, eax
mov word [ebp - 0xa], ax
jmp 0x40b394
test eax, eax
jne 0x40b394
push edi
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.00403ae0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [0x410b38], eax
cmp eax, 0x50
je 0x40b3b4
cmp eax, 0xb7
jne 0x40b3bb
xor eax, eax
mov dword [0x410b38], eax
test eax, eax
jne 0x40b3cb
lea eax, [ebp - 0x210]
push eax
call fcn.00404414
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040bf76
mov esp, ebp
pop ebp
ret
Function at 0x40b3e0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x210]
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40b447
xor esi, esi
push esi
push esi
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402804
push ecx
push 0x47
push esi
push edi
push 0x402838
push 0x4000000
call fcn.00403765
pop ecx
pop ecx
xor edx, edx
mov ecx, eax
call fcn.00404ebc
xor eax, eax
inc eax
jmp 0x40b4a2
call sub.KERNEL32.dll_GetLastError
xor esi, esi
mov ebx, eax
push esi
push esi
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402804
push ecx
cmp ebx, 0xcb
jne 0x40b480
push 0x4f
push esi
push edi
push 0x402888
push 0x4000000
call fcn.00403765
pop ecx
pop ecx
jmp 0x40b497
push 0x53
push esi
push ebx
push edi
push 0x4028d8
push 0x2000000
call fcn.00403765
add esp, 0xc
xor edx, edx
mov ecx, eax
call fcn.00404ebc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf76
mov esp, ebp
pop ebp
ret

Function at 0x40b4b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x210]
push 0x104
mov ebx, ecx
push eax
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x40b54b
call sub.KERNEL32.dll_GetLastError
xor edi, edi
mov esi, eax
push edi
push edi
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402944
push ecx
cmp esi, 0xcb
jne 0x40b52c
push 0xa6
push edi
push ebx
push 0x402978
push 0x4000000
call fcn.00403765
pop ecx
pop ecx
jmp 0x40b614
push 0xa9
push edi
push esi
push ebx
push 0x4029c8
push 0x2000000
call fcn.00403765
add esp, 0xc
jmp 0x40b614
cmp esi, 0x104
jbe 0x40b5e0
lea eax, [esi + esi]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 0x214], eax
pop ecx
test eax, eax
jne 0x40b592
xor edi, edi
push edi
push edi
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402944
push ecx
push 0xb2
push edi
push ebx
push 0x402a38
push 0x2000000
jmp 0x40b520
push esi
push eax
push ebx
call edi
xor edi, edi
mov esi, eax
push edi
push edi
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402944
push ecx
push 0xb6
push edi
push esi
mov esi, dword [ebp - 0x214]
push esi
push ebx
push 0x402aa0
push 0x4000000
call fcn.00403765
add esp, 0x10
xor edx, edx
mov ecx, eax
call fcn.00404ebc
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x40b61d
xor edi, edi
push edi
push edi
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
lea eax, [ebp - 0x210]
push 0x402944
push ecx
push 0xbc
push edi
push esi
push eax
push ebx
push 0x402aa0
push 0x4000000
call fcn.00403765
add esp, 0x10
xor edx, edx
mov ecx, eax
call fcn.00404ebc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf76
mov esp, ebp
pop ebp
ret
Function at 0x40b633
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push esi
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402af8
push ecx
push 0xc4
push esi
push ebx
push 0x402b18
push 0x4000000
call fcn.00403765
pop ecx
pop ecx
xor edx, edx
mov ecx, eax
call fcn.00404ebc
push esi
push esi
mov edi, esi
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402af8
push ecx
push 0xc8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ecx
call esi
push eax
push 0x402b58
push 0x4000000
call fcn.00403765
add esp, 0xc
xor edx, edx
mov ecx, eax
call fcn.00404ebc
lea eax, [ebp - 4]
push eax
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x40b6fc
xor ebx, ebx
push ebx
push ebx
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402af8
push ecx
push 0xcc
push ebx
push 0x402b8c
push 0x2000000
call fcn.00403765
pop ecx
xor edx, edx
mov ecx, eax
call fcn.00404ebc
xor eax, eax
jmp 0x40b7d1
cmp dword [ebp - 4], 1
jne 0x40b736
xor ebx, ebx
push ebx
push ebx
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402af8
push ecx
push 0xd3
push ebx
push 0x402bc8
push 0x4000000
call fcn.00403765
pop ecx
xor edx, edx
mov ecx, eax
call fcn.00404ebc
jmp 0x40b796
cmp dword [ebp - 4], 2
jne 0x40b7d8
push 0
push 0
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402af8
push ecx
push 0xd7
push 0
push dword [esi + 4]
push 0x402c00
push 0x4000000
call fcn.00403765
pop ecx
pop ecx
xor edx, edx
mov ecx, eax
call fcn.00404ebc
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push dword [esi + 4]
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40b794
xor edi, edi
inc edi
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push ebx
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
push 0x402af8
push ecx
push 0xe4
push ebx
push edi
push 0x402c98
push 0x4000000
call fcn.00403765
pop ecx
pop ecx
xor edx, edx
mov ecx, eax
call fcn.00404ebc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push ebx
push ebx
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp + 4]
mov eax, dword [ebp - 4]
push 0x402af8
push ecx
push 0xdf
push ebx
dec eax
push eax
push 0x402c40
push 0x2000000
call fcn.00403765
pop ecx
jmp 0x40b72a
Function at 0x40b810
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040bb8f
xor ecx, ecx
lea eax, [ebp - 0x24]
push ecx
push eax
mov eax, dword [ebp + 8]
push ecx
or eax, 0xf003f
push eax
push 4
push ecx
push ecx
push 0x402d00
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
je 0x40b874
push esi
push 0x402d00
push 0x402db0
push 1
call fcn.0040bafc
add esp, 0x10
jmp 0x40b8dc
test ebx, ebx
je 0x40b895
test edi, edi
je 0x40b895
push edi
push ebx
push 3
push 0
mov edi, 0x402d60
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x40b8be
mov edi, 0x402d60
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
jne 0x40b8be
push eax
push edi
push 0x402e60
push 0
call fcn.0040bafc
add esp, 0x10
xor esi, esi
test esi, esi
je 0x40b8d3
push esi
push edi
push 0x402ee0
push 1
call fcn.0040bafc
add esp, 0x10
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x20], 0
je 0x40b8f7
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp - 0x1c], 0
je 0x40b906
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf76
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba4a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x58]
mov ebx, 0x403360
push eax
push ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40bae8
push esi
push edi
push 5
pop ecx
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x3c
push eax
lea eax, [ebp - 0x54]
mov esi, 0x4032a4
push eax
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
xor esi, esi
push eax
push esi
mov edi, 0x403284
mov dword [ebp - 0x60], esi
push edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40badd
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x4032b8
push esi
call fcn.0040bafc
add esp, 0x14
push 0x14
pop eax
push eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x18]
push eax
push 1
push esi
push edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040bf76
mov esp, ebp
pop ebp
ret
Function at 0x40bff1
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40d358
call fcn.0040c2d4
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c051
cmp eax, 0xffffffff
je 0x40c051
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40c04a
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40c04a
cmp edx, 0x10000000
jae 0x40c04a
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40c047
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040c319
ret 4

Function at 0x40c0b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40c0ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40c0e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40c0f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40c0d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40c1d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40c1e6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40c201
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x402a80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov ebx, ecx
call fcn.00402a00
add esp, 0x10
test eax, eax
jne 0x402ac1
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0041b5e8
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jns 0x402ae4
call edi
cmp dword [eax], 9
jne 0x402ae4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0041b5e8
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x13]
push 2
push 1
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x402b07
call edi
cmp dword [eax], 4
lea eax, [esp + 0x13]
je 0x402ae8
test esi, esi
mov ecx, dword [esp + 0x14]
setg al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b5e8
mov esp, ebp
pop ebp
ret
Function at 0x402ea0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x40c], eax
push edi
mov edi, edx
movzx eax, word [esi]
cmp eax, 2
je 0x402ed3
cmp eax, 0x17
jne 0x402f52
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
movzx eax, ax
push 0x401
mov dword [ebx], eax
lea eax, [ebp - 0x408]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x402f52
lea edx, [ebp - 0x408]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402f23
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
sub edx, esi
push edx
push eax
call fcn.0040db00
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b5e8
mov esp, ebp
pop ebp
ret

Function at 0x404010
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x1c]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx + 0x20]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea ebx, [eax + 1]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x404089
call edi
cmp dword [eax], 4
je 0x404065
test esi, esi
jle 0x4040b2
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
call fcn.00402a80
test al, al
je 0x4040b2
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0041b5e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b5e8
mov esp, ebp
pop ebp
ret