joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005b30
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x34
mov eax, dword [0x10027400]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 4]
call edx
push 0x3e8
push 2
push 6
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005b75
pop edi
mov eax, 0xffffffc4
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x34
ret
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x18], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x10005bb0
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
mov eax, 0xffffffc3
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x34
ret
xor eax, eax
mov dword [esp + 0x10], eax
push 0xce5
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
mov word [esp + 0x14], 6
call dword [sym.imp.WSOCK32.dll_htons]
push 0xe
lea ecx, [esp + 0x14]
push ecx
push esi
mov word [esp + 0x28], ax
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x10005c03
pop edi
mov eax, 0xffffffb2
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push edx
push 0x20
push 0xffff
push esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10005c38
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x34
ret
mov eax, dword [str.00000000FFFFFFFFFFFFF]
mov ecx, dword [0x1001ebf8]
mov edx, dword [0x1001ebfc]
mov dword [esp + 0x20], eax
mov eax, dword [0x1001ec00]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x1001ec04]
mov dword [esp + 0x2c], eax
push 4
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1a]
mov dword [esp + 0x30], edx
mov dx, word [0x1001ec08]
push ecx
mov ecx, edi
mov word [esp + 0x40], dx
call sym.SecSNMPR.dll_private:_void___thiscall_OctetString::AtoH_char___char___unsigned_long_int_
push 6
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1e]
push eax
mov ecx, edi
call sym.SecSNMPR.dll_private:_void___thiscall_OctetString::AtoH_char___char___unsigned_long_int_
push 0x10
lea ecx, [esp + 0x14]
push ecx
push 0
push 9
push str.STATCHECK
push esi
call dword [sym.imp.WSOCK32.dll_sendto]
push esi
mov edi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [esp + 0x38]
xor eax, eax
cmp edi, 0xffffffff
pop edi
setne al
pop esi
xor ecx, esp
call fcn.1000e6bf
add esp, 0x34
ret
Function at 0x10005ce0
Capabilities:
Get socket status
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x244
mov eax, dword [0x10027400]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x248]
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
mov dword [esp + 8], eax
jne 0x10005d25
mov eax, 0xffffffc2
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x244
ret 8
test eax, eax
jne 0x10005d46
mov eax, 0xffffffbe
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x244
ret 8
mov ecx, dword [esi + 0x10]
push 4
lea eax, [esp + 8]
push eax
push 0x20
push 0xffff
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10005d88
mov eax, 0xffffffbc
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1000e6bf
add esp, 0x244
ret 8
push ebx
xor eax, eax
push edi
mov edi, dword [esi + 0xc]
mov dword [esp + 0x224], eax
push 0x900f
xor ebx, ebx
mov dword [esp + 0x22c], eax
mov dword [esp + 0x230], eax
mov word [esp + 0x234], ax
mov word [esp + 0x228], 6
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [str.00000000FFFFFFFFFFFFF]
mov ecx, dword [0x1001ebfc]
mov word [esp + 0x230], ax
mov eax, dword [0x1001ebf8]
mov dword [esp + 0x234], edx
mov edx, dword [0x1001ec00]
mov dword [esp + 0x238], eax
mov eax, dword [0x1001ec04]
mov dword [esp + 0x23c], ecx
mov cx, word [0x1001ec08]
mov dword [esp + 0x240], edx
push 4
lea edx, [esp + 0x238]
mov dword [esp + 0x248], eax
push edx
lea eax, [esp + 0x22e]
mov word [esp + 0x250], cx
push eax
mov ecx, esi
call sym.SecSNMPR.dll_private:_void___thiscall_OctetString::AtoH_char___char___unsigned_long_int_
push 6
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x232]
push edx
mov ecx, esi
call sym.SecSNMPR.dll_private:_void___thiscall_OctetString::AtoH_char___char___unsigned_long_int_
test edi, edi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x124], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x120], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
jl 0x10005ebb
jmp 0x10005e80
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x10005eaf
cmp eax, 1
jne 0x10005eaf
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esi + 0x10]
je 0x10005ed7
sub edi, 1
test edi, edi
mov ebx, 0xffffffbd
jge 0x10005e80
mov eax, ebx
mov ecx, dword [esp + 0x24c]
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.1000e6bf
add esp, 0x244
ret 8
mov eax, dword [esp + 0x258]
mov ecx, dword [esp + 0x10]
push 0x10
lea edx, [esp + 0x228]
push edx
mov edx, dword [esi + 0x10]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_sendto]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0x45
add eax, 0xffffffbb
jmp 0x10005ebd
Function at 0x10005f10
Capabilities:
Get socket status
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x22c
mov eax, dword [0x10027400]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x234]
push ebx
push ebp
mov ebp, dword [esp + 0x238]
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
mov dword [esp + 0x10], eax
jne 0x10005f4c
mov eax, 0xffffffc2
jmp 0x10006063
cmp eax, ebx
je 0x100060af
cmp ebp, ebx
je 0x100060af
mov ecx, dword [esi + 0x10]
push 4
lea eax, [esp + 0x10]
push eax
push 0x20
push 0xffff
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10005f87
mov eax, 0xffffffb8
jmp 0x10006063
xor eax, eax
push edi
mov edi, dword [esi + 0xc]
mov dword [esp + 0x228], eax
push 0x900f
mov dword [esp + 0x230], eax
mov dword [esp + 0x234], eax
mov word [esp + 0x238], ax
mov word [esp + 0x22c], 6
call dword [sym.imp.WSOCK32.dll_htons]
push 4
push ebp
lea edx, [esp + 0x232]
push edx
mov ecx, esi
mov word [esp + 0x240], ax
call sym.SecSNMPR.dll_private:_void___thiscall_OctetString::AtoH_char___char___unsigned_long_int_
push 6
add ebp, 8
push ebp
lea eax, [esp + 0x236]
push eax
mov ecx, esi
call sym.SecSNMPR.dll_private:_void___thiscall_OctetString::AtoH_char___char___unsigned_long_int_
test edi, edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov ebp, 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x124], ebp
mov dword [esp + 0x128], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
jl 0x10006060
jmp 0x10006020
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x10006048
mov ebx, 0xffffffb9
jmp 0x1000605a
cmp eax, ebp
jne 0x10006055
mov edx, dword [esp + 0x24]
cmp edx, dword [esi + 0x10]
je 0x1000607d
mov ebx, 0xffffffb7
sub edi, ebp
test edi, edi
jge 0x10006020
mov eax, ebx
pop edi
mov ecx, dword [esp + 0x234]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000e6bf
add esp, 0x22c
ret 0xc
mov ecx, dword [esp + 0x248]
mov edx, dword [esp + 0x14]
push 0x10
lea eax, [esp + 0x22c]
push eax
mov eax, dword [esi + 0x10]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0x49
add eax, 0xffffffb7
jmp 0x10006062
mov eax, 0xffffffba
jmp 0x10006063

Function at 0x10008390
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub esp, 0x214
mov eax, dword [0x10027400]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.SNMPStartup_n
call edi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x100083eb
push esi
lea ecx, [esp + 0x19c]
push str.SNMP_WSAStartup_MAKEWORD_2_2___failed__Error_d_n
push ecx
call fcn.1000e4d5
add esp, 0xc
lea edx, [esp + 0x198]
push edx
call edi
mov eax, esi
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.1000e6bf
add esp, 0x214
ret
Function at 0x10008430
Capabilities:
Print debug messages

Disassembly:
xor eax, eax
push esi
mov esi, ecx
push str.SNMPManager_Constructor_Called_n
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 4], eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop esi
ret

Function at 0x100084e0
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x100084f2
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
push ebp
push str.TrapServerFileMappingObject
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x10008514
pop ebp
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
push ebx
push 0x620
push 0
push 0
push 0xf001f
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x10008541
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
push edi
push str.TS_SNMPSharedMemAccessMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x10008574
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop ebp
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100085c8
mov eax, dword [esp + 0x18]
sub eax, 0x2329
je 0x1000859d
sub eax, 1
je 0x10008599
or esi, 0xffffffff
jmp 0x100085b0
mov edi, ebx
jmp 0x100085a3
mov edi, dword [esp + 0x1c]
mov esi, ebx
mov ecx, 0x188
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
xor esi, esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100085bf
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x100085cd
mov esi, 0xffffff9e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call edi
pop edi
pop ebx
pop ebp
mov eax, esi
pop esi
pop ecx
ret 0xc

Function at 0x100092e0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x100092ee
call sym.SecSNMPR.dll_public:_int___thiscall_SNMPManager::unregister_void_
mov eax, dword [esi]
test eax, eax
mov dword [esi + 4], 0
je 0x1000930a
push eax
call fcn.1000e73d
add esp, 4
mov dword [esi], 0
push str.SNMPManager_Destructor_Called_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret
Function at 0x1000afa0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x10027400]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
test esi, esi
push edi
mov edi, ecx
je 0x1000b02d
mov eax, dword [edi + 0x30]
test eax, eax
je 0x1000afd3
push eax
call fcn.1000e73d
add esp, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000afd8
sub eax, edx
add eax, 1
push eax
call fcn.1000e861
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x1000aff6
push esi
lea eax, [esp + 0xc]
push str.Setting_agent_address_as:__s_n
push eax
mov dword [edi + 0x34], 0
call fcn.1000e4d5
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x1000b03d
push str.No_agent_address_set____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0xffffffcc
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.1000e6bf
add esp, 0x404
ret 4
Function at 0x1000e6bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10027400]
jne 0x1000e6c9
repz ret
jmp fcn.10011453

Function at 0x1001779e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10010f1a
xor ebx, ebx
cmp dword [0x10029114], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10017873
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x100177de
xor eax, eax
jmp 0x10017937
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100177d7
push eax
call fcn.10010eb7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10029114], eax
call esi
push eax
call fcn.10010eb7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10029118], eax
call esi
push eax
call fcn.10010eb7
mov dword [0x1002911c], eax
lea eax, [ebp - 8]
push eax
call fcn.10013a56
test eax, eax
pop ecx
pop ecx
je 0x10017841
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10010ae2
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10017873
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10010eb7
cmp eax, ebx
pop ecx
mov dword [0x10029124], eax
je 0x10017873
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10010eb7
pop ecx
mov dword [0x10029120], eax
mov eax, dword [0x10029120]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100178ec
cmp dword [0x10029124], esi
je 0x100178ec
push eax
call fcn.10010f23
pop ecx
call eax
cmp eax, ebx
je 0x100178b9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10029124]
call fcn.10010f23
pop ecx
call eax
test eax, eax
je 0x100178b9
test byte [ebp - 0x18], 1
jne 0x100178ec
lea eax, [ebp - 0xc]
push eax
call fcn.10013a8d
test eax, eax
pop ecx
je 0x100178d4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10010ae2
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100178e3
or dword [ebp + 0x10], 0x200000
jmp 0x1001791d
or dword [ebp + 0x10], 0x40000
jmp 0x1001791d
mov eax, dword [0x10029118]
cmp eax, esi
je 0x1001791d
push eax
call fcn.10010f23
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001791d
mov eax, dword [0x1002911c]
cmp eax, esi
je 0x1001791d
push dword [ebp - 4]
push eax
call fcn.10010f23
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10029114]
call fcn.10010f23
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403780
Capabilities:
Get common file path

Disassembly:
sub esp, 0x428
mov eax, dword [esp + 0x42c]
push ebx
mov ebx, dword [0x46574c]
push ebp
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
mov edi, dword [0x465748]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0
call fcn.00403740
add dword [esp + 0x28], 0x23f
cmp dword [0x47577c], 0x14
jne 0x4037d2
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [0x465750]
mov edx, dword [0x465754]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov ebp, 0x20
jmp 0x4037f0
mov dword [esp + 0x18], 2
add dword [esp + 0x18], 3
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [0x47577c]
cmp eax, 0xfa9
jne 0x403822
mov dword [0x475778], 0xedeb2e40
jmp 0x403833
cmp eax, 0x3eb
jne 0x403833
mov dword [0x4756e8], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
mov dword [0x475774], 0xf4ea3dee
mov dword [esp + 0x24], edx
call fcn.00403750
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x47577c], 0x9e6
jne 0x403887
mov eax, dword [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
mov ecx, dword [esp + 0x10]
xor dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], 0x64
sub dword [esp + 0x14], eax
sub dword [esp + 0x14], 0x64
cmp dword [0x47577c], 0xc
jne 0x4038ca
lea edx, [esp + 0x38]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.004036c0
add dword [esp + 0x10], edi
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x28]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
shr edx, cl
mov ecx, ebx
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edx
call fcn.00403760
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004036d0
mov eax, dword [esp + 0x10]
push eax
mov eax, esi
call fcn.00403770
add dword [esp + 0x28], 0x61c88647
sub ebp, 1
mov esi, eax
mov dword [esp + 0x24], esi
jne 0x4037f0
mov eax, dword [esp + 0x43c]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], ecx
pop ebx
add esp, 0x428
ret 4
Function at 0x403980
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x241c
call fcn.004113a0
mov eax, dword [0x47577c]
mov ecx, dword [0x4756ec]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403aa2
mov esi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x47577c], 0x959
jne 0x403a88
push 0
lea eax, [esp + 0x82c]
push eax
push 0
push 0
push 0
push 0
call esi
push 0
lea ecx, [esp + 0x142c]
push ecx
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
lea edx, [esp + 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
lea ecx, [esp + 0xc2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [esp + 0x20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov edx, dword [esp + 0x10]
push edx
call fcn.00403780
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4039c4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x241c
ret
Function at 0x404390
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x461b5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x1830
call fcn.004113a0
push ebx
push ebp
push esi
xor ebp, ebp
cmp dword [0x47577c], 0xc
push edi
jne 0x404492
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleFontSize]
push ebp
push ebp
lea eax, [esp + 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push ebp
push 0x402e38
push 0x402e40
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ebp
lea ecx, [esp + 0xc44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0x402e48
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push ebp
lea edx, [esp + 0x44]
push edx
push 0x402e58
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_HeapSize]
push ebp
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push ebp
push ebp
call fcn.00405a42
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ebp
call fcn.00405ada
fstp st(0)
push ebp
call fcn.00405cb5
add esp, 0xc
push 4
call fcn.00405e80
add esp, 4
cmp eax, ebp
je 0x40446b
lea ecx, [esp + 0x28]
mov dword [eax], ecx
jmp 0x40446d
xor eax, eax
mov dword [esp + 0x28], eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1880], 0xffffffff
call fcn.00404d30
mov edi, dword [sym.imp.USER32.dll_CharLowerBuffW]
mov ebx, dword [sym.imp.USER32.dll_GetSysColorBrush]
xor esi, esi
cmp esi, 0x9458
jge 0x4044b6
push ebp
lea eax, [esp + 0x1044]
push eax
call edi
push ebp
call ebx
inc esi
cmp esi, 0x14ee8
jl 0x4044a0
mov ecx, dword [0x465ac4]
mov edx, dword [0x465a98]
mov dword [0x47577c], ecx
mov dword [0x6fcd54], edx
call fcn.00403bb0
mov ecx, dword [esp + 0x1874]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404fb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x461abb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x402e68
call fcn.004055c0
push 4
mov dword [esp + 0x18], 0
call fcn.00405e80
mov edi, eax
add esp, 4
test edi, edi
je 0x405024
push ebx
call fcn.0040579e
mov dword [edi], eax
call fcn.00405667
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004054a5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405018
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004054cd
pop ebx
jmp 0x405026
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4066ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464ce8]
jne 0x4066b5
repz ret
jmp fcn.0040b17c