joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40361a
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4dbca0], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jne 0x403654
push 0x402d04
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x42b6b8]
mov edi, dword [0x42b6bc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], 0x9e3779b9
call fcn.00403613
mov eax, dword [str.QNl]
add dword [ebp - 8], 0x23f
mov ebx, dword [0x42b6c4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x4dbca0], 0xc
mov dword [ebp - 4], ecx
jne 0x4036f8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc44]
push eax
push esi
push 0x402d24
push 0x402d50
push 0x402d74
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push esi
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
add dword [ebp - 4], ecx
mov ecx, dword [0x4dbca0]
cmp ecx, 0xfa9
jne 0x403716
mov dword [0x4db23c], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403724
mov dword [0x4dabec], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x4db238], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4dbca0], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403763
push esi
push 0x402da8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 0x64
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x10], 0x64
cmp dword [0x4dbca0], 0xc
jne 0x403796
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0x444]
push eax
push 0x402de8
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x403690
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4037e4
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4dbca0]
mov ecx, dword [0x4dabf0]
sub esp, 0x42c
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4038d9
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x4dbca0], 0x959
jne 0x4038c5
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402df8
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402e5c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402e70
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.0040361a
add ebx, 8
dec dword [ebp - 4]
jne 0x40380d
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4039ab
Capabilities:
Get common file path

Disassembly:
mov eax, 0x427fe4
call fcn.00427ef0
mov eax, 0x1428
call fcn.00410f30
push ebx
push esi
xor esi, esi
cmp dword [0x4dbca0], 0x5b1
push edi
jne 0x403a57
push esi
lea eax, [ebp - 0x434]
push eax
push esi
push 0x402f64
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
lea eax, [ebp - 0x34]
call fcn.00403cbf
mov dword [ebp - 4], esi
call fcn.00404862
push 0x402f90
lea ecx, [ebp - 0x18]
call fcn.00403440
lea ecx, [ebp - 0x18]
call fcn.0040345c
lea ecx, [ebp - 0x18]
call fcn.004034a2
lea ecx, [ebp - 0x18]
call fcn.004034bb
push esi
push esi
call fcn.00404dc4
push esi
call fcn.00404d95
push esi
call fcn.00404d7e
push esi
call fcn.004050cd
add esp, 0x10
mov dword [esp], esi
call fcn.004035f4
fstp st(0)
push esi
call fcn.00404d7e
pop ecx
call fcn.00404e88
add dword [0x4dbca0], 0x1134b
push dword [0x4dbca0]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4dabf0], eax
call fcn.004038f6
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x403aa0
inc edi
cmp edi, 0x4f6a4
jl 0x403a80
mov eax, dword [0x4dbca0]
xor ecx, ecx
cmp eax, esi
jbe 0x403ac6
mov edx, dword [0x4dbca4]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x4dabf0]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x403aab
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x403b15
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [ebp - 0x434]
push eax
push esi
push 0x402fa0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402fb8
push 0x402fec
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
mov eax, dword [0x4dbca0]
inc edi
cmp edi, 0x39621
jl 0x403ac8
call fcn.004037e4
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x403b31
call fcn.004038dc
inc edi
cmp edi, 0x6753f
jl 0x403b25
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x7b
pop ebx
cmp dword [0x4dbca0], 0x86
jne 0x403b8c
push 0x402ffc
push 0x403038
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x4dbca0], 0xf
jne 0x403bad
push esi
push esi
call edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0x403080
push 0x4030c4
call edi
dec ebx
jne 0x403b43
push 0x4030fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4057cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a7dc]
jne 0x4057d5
repz ret
jmp fcn.0040a5bc
Function at 0x40e9db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407cb2
and dword [ebp - 4], 0
cmp dword [0x42c814], 0
mov ebx, eax
jne 0x40ea8c
push 0x402c6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40eb3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c60
push edi
call esi
test eax, eax
je 0x40eb3d
push eax
call fcn.00407c40
mov dword [esp], 0x402c50
push edi
mov dword [0x42c814], eax
call esi
push eax
call fcn.00407c40
mov dword [esp], 0x402c3c
push edi
mov dword [0x42c818], eax
call esi
push eax
call fcn.00407c40
mov dword [esp], 0x402c20
push edi
mov dword [0x42c81c], eax
call esi
push eax
call fcn.00407c40
pop ecx
mov dword [0x42c824], eax
test eax, eax
je 0x40ea8c
push 0x402c08
push edi
call esi
push eax
call fcn.00407c40
pop ecx
mov dword [0x42c820], eax
mov eax, dword [0x42c820]
cmp eax, ebx
je 0x40eae4
cmp dword [0x42c824], ebx
je 0x40eae4
push eax
call fcn.00407cbb
push dword [0x42c824]
mov esi, eax
call fcn.00407cbb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40eae4
test edi, edi
je 0x40eae4
call esi
test eax, eax
je 0x40eadb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40eadb
test byte [ebp - 0xc], 1
jne 0x40eae4
or dword [ebp + 0x10], 0x200000
jmp 0x40eb1d
mov eax, dword [0x42c818]
cmp eax, ebx
je 0x40eb1d
push eax
call fcn.00407cbb
pop ecx
test eax, eax
je 0x40eb1d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40eb1d
mov eax, dword [0x42c81c]
cmp eax, ebx
je 0x40eb1d
push eax
call fcn.00407cbb
pop ecx
test eax, eax
je 0x40eb1d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c814]
call fcn.00407cbb
pop ecx
test eax, eax
je 0x40eb3d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40eb3f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4057f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405834
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405830
lea ebx, [ebx]
cmp esi, eax
jae 0x405834
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405820
cmp esi, eax
jb 0x40583a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40cfa0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40d00a
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40d00a
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40d00a
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
add esp, 0x18
ret 4
Function at 0x40f7b0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5c1fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov ecx, dword [0x636fb4]
push 3
lea eax, [esp + 0x18]
push eax
add ecx, 0x3c
call fcn.00404c00
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
mov dword [esp + 0x4c], 0
mov ebx, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40f8f8
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push 0
push 0x64
push esi
push edi
call fcn.004ec6f0
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push edx
push eax
call fcn.004f1720
shrd edi, esi, 0x14
mov dword [ebp + 0xf8], eax
shr esi, 0x14
call fcn.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f865
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
push 0x5f0
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x4c], 1
call fcn.0041c990
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 2
call fcn.00404e30
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f8bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push ebx
push str._n_n_s__d_M
add ebp, 0xfc
push ebp
call fcn.00405640
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f8f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x44], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f91c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
Function at 0x410800
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x636fb4]
cmp byte [eax + 0xfc], 0
je 0x410833
cmp dword [0x636fac], 0
jbe 0x410833
push 0
push 0
push 0
push 0x448900
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret 8
Function at 0x41bb60
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
cmp edi, ebp
je 0x41bbd9
cmp byte [edi], 0
je 0x41bbd9
cmp esi, ebp
je 0x41bbd9
push ebx
push esi
mov dword [esp + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x14]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push ebp
push 2
push ebp
push ebp
push ebp
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41bbc2
add ebx, 1
push ebx
push esi
push 1
push eax
mov eax, dword [esp + 0x18]
push 0x5f50ef
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41bbc2
mov ebp, 1
mov eax, dword [esp + 8]
test eax, eax
pop ebx
je 0x41bbd2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop ebp
add esp, 8
ret
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
add esp, 8
ret

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

Disassembly:
sub esp, 0x150
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x14c], eax
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
push str..rec
push closesocket
mov dword [esp + 0x14], 0x41
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x41bc45
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.004e3543
add esp, 0x150
ret
cmp byte [esp + 8], 0
je 0x41bc2d
lea eax, [esp + 8]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x41bc53
mov edx, dword [str.DefaultIcon]
mov ecx, dword [0x5f61e4]
mov dword [eax], edx
mov edx, dword [0x5f61e8]
mov dword [eax + 4], ecx
mov cl, byte [0x5f61ec]
mov dword [eax + 8], edx
lea edx, [esp + 0x4c]
mov byte [eax + 0xc], cl
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41bc88
lea eax, [esp + 0x4c]
add eax, 0xffffffff
jmp 0x41bca0
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x41bca0
mov edx, dword [str.____0]
mov cx, word [0x5f61f4]
mov dword [eax], edx
push 0x105
lea edx, [esp + 0x50]
push edx
mov word [eax + 4], cx
push 1
lea eax, [esp + 0x14]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 0
mov esi, eax
push 0
neg esi
push 0x2000
sbb esi, esi
push 0x8000000
add esi, 1
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [esp + 0x150]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004e3543
add esp, 0x150
ret
Function at 0x4235e0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x10c], eax
push 0
push 0x5f50ef
mov ecx, esi
call fcn.00405140
lea eax, [esp]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.WS2_32.dll_bind
mov dword [esp + 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.ProcessorNameString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
push eax
push 0x5f4e54
push esi
call fcn.00405640
mov ecx, dword [esp + 0x118]
add esp, 0xc
xor ecx, esp
xor eax, eax
call fcn.004e3543
add esp, 0x110
ret

Function at 0x423680
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x5c0c58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0
push 0x5f50ef
mov ecx, esi
call fcn.00405140
call fcn.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4236cc
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
push ecx
mov dword [esp + 0x14], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x24]
shr edx, 0x14
push edx
push 0x5f5034
push esi
call fcn.00405640
add esp, 0xc
push 2
push 0x5f76e4
mov ecx, esi
call fcn.00416f20
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42373f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x34
ret
Function at 0x423760
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x5c0c58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0
push 0x5f50ef
mov ecx, esi
call fcn.00405140
call fcn.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4237ac
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
push ecx
mov dword [esp + 0x14], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x18]
shr edx, 0x14
push edx
push 0x5f5034
push esi
call fcn.00405640
add esp, 0xc
push 2
push 0x5f76e4
mov ecx, esi
call fcn.00416f20
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42381f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x34
ret
Function at 0x42cc40
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bf66b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
call fcn.004c5661
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42cca2
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x202
mov dword [esp + 0x2c8], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, edi
je 0x42cd13
mov ebx, dword [ebx + 0x298]
push 0x5f8c04
push ebx
call fcn.004e5c45
mov dword [esp + 0x2c8], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42cd0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x42ce28
push 0x100
lea ecx, [esp + 0x1b0]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x42cccd
lea ecx, [esp + 0x1ac]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
je 0x42cdf5
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x18]
push 0x5f4e54
push edx
call fcn.00405640
mov eax, dword [ebx + 0x2a4]
add esp, 0xc
add ebx, 0x29c
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.004cd68b
lea ecx, [esp + 0x14]
call fcn.004050e0
movsx edx, word [esi + 0xa]
mov eax, dword [esi + 0xc]
add edx, dword [eax]
cmp edx, dword [esi]
jae 0x42cde1
mov eax, dword [eax + edi*4 + 4]
mov ecx, dword [eax]
add edi, 1
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x18]
push 0x5f4e54
push edx
call fcn.00405640
mov eax, dword [ebx + 8]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.004cd68b
lea ecx, [esp + 0x14]
call fcn.004050e0
movsx edx, word [esi + 0xa]
mov eax, dword [esi + 0xc]
add edx, dword [eax + edi*4]
cmp edx, dword [esi]
jb 0x42cd93
test edi, edi
jne 0x42cdf5
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
add ecx, 0x298
push eax
call fcn.00404e30
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [esp + 0x2c0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ce26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.004e3543
mov esp, ebp
pop ebp
ret