joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d14a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52ef3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
lea edi, [esi + 0xc]
push ebp
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.004ea4f7
lea eax, [edi + 8]
mov dword [edi], vtable.CCriticalSection.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x30]
mov dword [esp + 0x20], ebp
call fcn.00404a80
lea ecx, [esi + 0x248]
mov byte [esp + 0x20], 1
call fcn.00405ac0
lea ecx, [esi + 0x2a8]
call fcn.00405ac0
lea ecx, [esi + 0x308]
call fcn.00405ff0
lea ecx, [esi + 0x324]
mov byte [esp + 0x20], 2
call fcn.00406210
push ebp
lea ecx, [esi + 0x340]
mov byte [esp + 0x24], 3
call fcn.00458870
mov ebx, 4
lea ecx, [esi + 0x368]
mov byte [esp + 0x20], bl
call fcn.00462bc0
mov ecx, dword [0x569c90]
mov dword [esi + 0x3b4], ecx
lea edx, [esp + 0x14]
mov byte [esp + 0x20], 6
push edx
mov dword [esi], 0x537274
mov dword [esi + 8], ebp
mov dword [esi + 0x3a4], ebp
mov dword [esi + 0x338], ebp
mov dword [esi + 0x37c], ebp
mov dword [esi + 0x380], ebp
mov dword [esi + 0x394], ebp
mov dword [esi + 0x33c], ebp
mov dword [esi + 0x378], ebx
mov dword [esi + 0x384], 2
mov dword [esi + 0x38c], ebp
call fcn.005057fa
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov dword [esi + 0x388], eax
call fcn.005057fa
mov edx, dword [eax]
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x390], edx
call fcn.005057fa
mov ecx, dword [eax]
or eax, 0xffffffff
mov dword [esi + 0x39c], ecx
mov dword [esi + 0x398], ebp
mov dword [esi + 0x3a0], ebp
mov dword [esi + 0x3a8], ebp
mov dword [esi + 0x3bc], ebp
mov dword [esi + 0x3c0], ebp
mov dword [esi + 0x3c4], ebp
mov dword [esi + 0x3c8], eax
mov dword [esi + 0x3cc], eax
mov ecx, esi
mov dword [esi + 8], 0x1234567
call fcn.004d4560
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [edi + 8]
push edx
call ebx
mov eax, dword [esi + 0x3a4]
mov ecx, edi
or ah, 2
mov dword [esi + 0x3a4], eax
mov eax, dword [edi]
call dword [eax + 0x14]
lea ecx, [edi + 8]
push ecx
call ebx
mov eax, dword [esi + 0x3a4]
mov ecx, edi
or ah, 4
mov dword [esi + 0x3a4], eax
mov edx, dword [edi]
call dword [edx + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x3ac], ebp
mov dword [esi + 0x3b0], ebp
mov dword [esi + 0x3b8], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4d16a0
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x52f07e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x537274
mov dword [esp + 0x24], 0
lea ebp, [esi + 0xc]
mov edi, ebp
mov dword [esp + 0x10], edi
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esi + 0x340]
mov byte [esp + 0x24], 6
mov ecx, ebx
call fcn.00458890
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], 5
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
push eax
call fcn.00459fb0
mov eax, dword [esi + 0x398]
push eax
call fcn.0050c4cc
mov eax, dword [esi + 0x3a0]
add esp, 8
test eax, eax
je 0x4d1745
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.00507d3a
push ecx
push 4
push eax
call fcn.004f32b8
push edi
call fcn.0050c4cc
add esp, 4
lea ecx, [esi + 0x3b4]
mov dword [esi + 8], 0xffffffff
mov byte [esp + 0x24], 4
call fcn.00507d3a
mov ecx, ebx
mov byte [esp + 0x24], 3
call fcn.004638b0
lea ecx, [esi + 0x324]
mov byte [esp + 0x24], 2
call fcn.00506a46
lea ecx, [esi + 0x310]
mov byte [esp + 0x24], 1
call fcn.0040bec0
add esi, 0x30
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x1f4]
mov byte [esp + 0x24], 0xd
call fcn.00507d3a
lea ecx, [esi + 0x1e8]
mov byte [esp + 0x24], 0xc
call fcn.00507d3a
lea ecx, [esi + 0x1e4]
mov byte [esp + 0x24], 0xb
call fcn.00507d3a
lea ecx, [esi + 0x1e0]
mov byte [esp + 0x24], 0xa
call fcn.00507d3a
lea ecx, [esi + 0x1dc]
mov byte [esp + 0x24], 9
call fcn.00507d3a
lea edi, [esi + 0x13c]
mov dword [esp + 0x18], edi
lea ecx, [edi + 0x7c]
mov byte [esp + 0x24], 0x13
call fcn.00507d3a
lea ecx, [edi + 0x78]
mov byte [esp + 0x24], 0x12
call fcn.00507d3a
lea ecx, [edi + 0x74]
mov byte [esp + 0x24], 0x11
call fcn.00507d3a
lea ecx, [edi + 0x70]
mov byte [esp + 0x24], 0x10
call fcn.00507d3a
lea ecx, [edi + 0x6c]
mov byte [esp + 0x24], 0xf
call fcn.00507d3a
lea ecx, [edi + 0x68]
mov byte [esp + 0x24], 0xe
call fcn.00507d3a
lea ecx, [edi + 4]
mov byte [esp + 0x24], 8
call fcn.00404c30
lea edi, [esi + 0xa0]
mov dword [esp + 0x18], edi
lea ecx, [edi + 0x64]
mov byte [esp + 0x24], 0x18
call fcn.00406c60
lea ecx, [edi + 0x60]
mov byte [esp + 0x24], 0x17
call fcn.00507d3a
mov byte [esp + 0x24], 0x16
lea ecx, [edi + 0x5c]
call fcn.00507d3a
lea ecx, [edi + 0x58]
mov byte [esp + 0x24], 0x15
call fcn.00507d3a
lea ecx, [edi + 0x3c]
mov byte [esp + 0x24], 0x14
call fcn.00404e10
lea ecx, [edi + 4]
mov byte [esp + 0x24], 7
call fcn.00404d90
lea ecx, [esi + 4]
mov byte [esp + 0x24], 0
call fcn.00404c90
lea edx, [ebp + 8]
mov dword [esp + 0x24], 0xffffffff
push edx
mov dword [ebp], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, ebp
call fcn.004ea522
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4d19b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x52f0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0xc]
mov dword [esp + 0xc], ebx
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x20]
lea ecx, [esi + 0x30]
push ecx
mov dword [esp + 0x1c], 0
lea ecx, [edi + 8]
call fcn.00405250
lea edx, [esi + 0x248]
lea ecx, [edi + 0x220]
push edx
call fcn.00405b50
lea eax, [esi + 0x308]
lea ecx, [edi + 0x280]
push eax
call fcn.00406010
lea ecx, [esi + 0x324]
push ecx
lea ecx, [edi + 0x29c]
call fcn.00406220
lea ecx, [esi + 0x340]
call fcn.00458890
push eax
mov ecx, edi
call fcn.004071e0
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x18], 0xffffffff
call dword [edx + 0x14]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4d4260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52f668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x28], 0
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0xc]
mov dword [esp + 0x1c], edi
lea eax, [edi + 8]
push eax
call ebp
mov eax, dword [0x569c90]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
xor ecx, ecx
cmp word [esi + 0x21e], 1
lea edx, [edi + 8]
mov byte [esp + 0x28], 4
sete cl
push edx
mov dword [esp + 0x1c], ecx
call ebp
mov eax, dword [edi]
mov ebx, dword [esi + 0x37c]
mov ecx, edi
call dword [eax + 0x14]
cmp dword [esp + 0x30], ebx
jne 0x4d43b6
lea ebx, [esi + 0x34]
lea ecx, [esp + 0x14]
push ebx
call fcn.004d1040
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x94]
call fcn.00507e73
lea edx, [esp + 0x38]
lea ecx, [esi + 0x90]
push edx
call fcn.00507e73
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4d4317
push eax
mov ecx, ebx
call fcn.004609c0
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
je 0x4d4328
push eax
mov ecx, ebx
call fcn.00460a10
push ebx
lea ecx, [esp + 0x14]
call fcn.004d1040
mov eax, dword [esp + 0x18]
push 1
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x5726d0
call fcn.004a0a20
push 0
push 0
push 4
mov ecx, esi
call fcn.004d1c70
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.00507d3a
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00507d3a
mov eax, dword [edi]
mov ecx, edi
mov byte [esp + 0x28], 1
call dword [eax + 0x14]
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call fcn.00507d3a
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call fcn.00507d3a
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14
lea ecx, [edi + 8]
push ecx
call ebp
mov edx, dword [edi]
mov ebx, dword [esi + 0x380]
mov ecx, edi
call dword [edx + 0x14]
cmp dword [esp + 0x30], ebx
jne 0x4d435a
lea ebx, [esi + 0xd0]
lea ecx, [esp + 0x14]
push ebx
call fcn.004d1040
lea eax, [esp + 0x34]
lea ecx, [esi + 0x130]
push eax
call fcn.00507e73
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esi + 0x12c]
call fcn.00507e73
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4d4410
push eax
mov ecx, ebx
call fcn.004609c0
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
je 0x4d4421
push eax
mov ecx, ebx
call fcn.00460a10
push ebx
lea ecx, [esp + 0x14]
call fcn.004d1040
mov edx, dword [esp + 0x18]
push 1
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, 0x5726d0
call fcn.004a0a20
push 0
push 0
push 4
mov ecx, esi
call fcn.004d1c70
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.00507d3a
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00507d3a
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x28], 1
call dword [edx + 0x14]
jmp 0x4d4382
Function at 0x4db9f0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x318
push ebx
push ebp
mov ebp, dword [esp + 0x324]
push esi
push edi
lea eax, [esp + 0x1c]
xor esi, esi
push 0x104
push eax
mov byte [ebp], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x120]
push 0x104
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x238]
push 0x104
lea eax, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x3f], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [esp + 0x20]
push 0x566acc
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, ebp
xor ecx, ecx
mov byte [ebp], 0
mov edi, ebp
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov byte [edx + 8], cl
xor eax, eax
mov al, byte [esp + esi + 0x10]
push eax
push str._02x
push edi
call ebx
add esp, 0xc
inc esi
add edi, 2
cmp esi, 4
jl 0x4dba94
pop edi
mov byte [ebp + 8], 0
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
Function at 0x4dbac0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x340
push ebx
mov ebx, dword [esp + 0x348]
push esi
lea eax, [esp + 0x1b8]
push edi
push eax
push 0x101
mov byte [ebx], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov cl, byte [0x56e1f4]
xor eax, eax
mov byte [esp + 0x38], cl
mov ecx, 0x40
lea edi, [esp + 0x39]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push edx
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x24], 0
stosb byte es:[edi], al
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
je 0x4dbc19
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
call fcn.00507da8
mov ecx, dword [eax]
lea edx, [esp + 0x13c]
push ecx
push str.Local_Host_Name:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00507d3a
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4dbb73
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4dbbe0
push 0
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4dbc19
push 7
mov word [esp + 0x2c], 2
call dword [sym.imp.WSOCK32.dll_htons]
push str.128.127.50.1
mov word [esp + 0x2e], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea ecx, [esp + 0x28]
push 0x10
push ecx
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
je 0x4dbbd9
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x10]
call fcn.00507da8
mov edx, dword [esp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xc]
call fcn.00507d3a
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x340
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x340
ret
Function at 0x4dca30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.00515239
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
and eax, 0xffff
push 0x17
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4dcab7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov ebp, eax
test ebp, ebp
je 0x4dcaa6
push ebp
call fcn.005081e1
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4dcac0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4dcac0
mov ecx, ebp
mov esi, eax
mov edx, ecx
mov eax, 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret 8
call fcn.00507cc5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x4dd720
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fe10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
je 0x4dd749
mov dword [eax], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push eax
call fcn.00507da8
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x4dd787
add eax, 3
and al, 0xfc
call fcn.004f33a0
mov edx, dword [ebp + 8]
mov edi, esp
push edi
push esi
push ebx
push edx
mov dword [ebp - 0x18], edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4dd7a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00507d3a
mov eax, esi
jmp 0x4dd8cb
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push ecx
push 0x55cfa4
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4dd7db
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00507d3a
mov eax, 0x80004005
jmp 0x4dd8cb
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov ax, word [eax + 0x16]
cmp cx, 8
mov word [ebp - 0x24], ax
jne 0x4dd7f8
xor eax, eax
jmp 0x4dd7fc
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x4dd805
mov dword [ecx], eax
or edi, 0xffffffff
cmp eax, ebx
je 0x4dd882
mov eax, dword [ebp + 0xc]
dec eax
je 0x4dd882
dec eax
je 0x4dd7c2
mov ecx, dword [0x569c90]
mov dword [ebp + 0x10], ecx
mov byte [ebp - 4], 1
call fcn.00515239
mov esi, dword [eax + 8]
push 0x100
push 0x100
lea ecx, [ebp + 0x10]
call fcn.0050816a
push eax
push 2
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
push edi
lea ecx, [ebp + 0x10]
call fcn.005081b9
mov edx, dword [ebp + 0x10]
push ebx
push 4
push edx
call fcn.00512358
cmp eax, 6
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
je 0x4dd87d
call fcn.00507d3a
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00507d3a
mov eax, 0x80030105
jmp 0x4dd8cb
call fcn.00507d3a
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push eax
push ecx
push str.VarFileInfoTranslation
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
jne 0x4dd8ae
call fcn.00507d3a
mov eax, 0x80004005
jmp 0x4dd8cb
mov eax, dword [ebp - 0x1c]
and al, 0xfc
cmp eax, 4
je 0x4dd8c4
call fcn.00507d3a
mov eax, 0x80004005
jmp 0x4dd8cb
call fcn.00507d3a
xor eax, eax
lea esp, [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e1c60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
mov eax, dword [0x572c10]
mov dword [esp], str.getaddrinfo
test eax, eax
mov dword [esp + 4], 0x4e1e30
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4e24f0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x4e1de0
je 0x4e1cbb
mov eax, dword [esp + 0x230]
and eax, 0xffff
mov eax, dword [eax*8 + 0x567220]
add esp, 0x22c
ret 4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x134]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4e1db0
xor eax, eax
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x4e1cdc
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [str.ws2_32]
repne scasb al, byte es:[edi]
mov eax, dword [0x567218]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
dec edi
lea ecx, [esp + 0x28]
push ecx
mov dword [edi], edx
mov dword [edi + 4], eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4e1d34
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4e1d84
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x4e1d36
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [str.wship6]
repne scasb al, byte es:[edi]
mov eax, dword [0x567210]
dec edi
lea ecx, [esp + 0x28]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call ebp
mov esi, eax
test esi, esi
je 0x4e1db0
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4e1d84
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4e1db0
xor edi, edi
mov edx, dword [esp + edi*8 + 0x10]
push edx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x4e1d7b
inc edi
cmp edi, 3
jl 0x4e1d86
xor eax, eax
mov ecx, dword [esp + eax + 0x14]
mov dword [eax + 0x567220], ecx
add eax, 8
cmp eax, 0x18
jl 0x4e1d9e
mov edx, dword [esp + 0x240]
pop edi
and edx, 0xffff
pop esi
pop ebp
mov dword [0x572c10], 1
mov eax, dword [edx*8 + 0x567220]
pop ebx
add esp, 0x22c
ret 4
Function at 0x4e5550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x531148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
mov dword [esp + 0x14], ebx
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x30]
xor edi, edi
neg eax
sbb eax, eax
mov dword [esp + 0x20], edi
cmp eax, edi
mov dword [esp + 0xc], eax
je 0x4e55ce
push ebp
mov ebp, dword [esp + 0x2c]
add esi, 0x24
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edi
call fcn.00507368
mov ecx, dword [esp + 0x2c]
cmp ecx, edi
je 0x4e55c7
push ebp
call fcn.004e2e00
cmp dword [esp + 0x10], edi
jne 0x4e559b
pop ebp
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x20], 0xffffffff
call dword [edx + 0x14]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x4e65c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x531290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
call fcn.004e6290
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], esi
call fcn.004e5f60
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x10]
mov byte [esp + 0x28], 1
mov ecx, dword [esi]
mov edx, dword [edi]
push eax
push ecx
mov ecx, dword [esp + 0x10]
push edx
call fcn.004e5fc0
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
mov esi, dword [esp + 0x30]
xor eax, ecx
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
push ecx
mov ecx, esi
call fcn.004e62d0
lea ecx, [esp + 0x10]
call fcn.004e5990
lea ecx, [esp + 8]
call fcn.004e6340
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x4e6660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5312b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
xor esi, esi
push esi
lea ecx, [esp + 8]
mov dword [esp + 8], esi
call fcn.004e6290
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], esi
call fcn.004e5f60
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x30]
push eax
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
mov eax, dword [esi]
push edx
push eax
mov byte [esp + 0x30], 1
call fcn.004e5fc0
mov ecx, dword [esi + 4]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 4]
mov dword [esp + 8], ecx
push edx
mov ecx, esi
call fcn.004e62d0
lea ecx, [esp + 0xc]
call fcn.004e5990
lea ecx, [esp + 4]
call fcn.004e6340
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret