joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b131
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 2
xor edi, edi
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, edi
je 0x48b194
push str.FLAG
push str.VRV_FLAG
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48b18d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x48b18d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [eax], 0x565256
jne 0x48b18d
add eax, 4
push str.UPAGENT.EXE
push eax
call fcn.005470ba
test eax, eax
pop ecx
pop ecx
jne 0x48b18d
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
ret

Function at 0x48b1a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5af710]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, ebp
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], eax
je 0x48b207
cmp ebx, esi
je 0x48b207
cmp dword [ebp + 0xc], esi
jle 0x48b1e6
mov cl, byte [esi + edi]
xor eax, eax
mov dl, byte [eax + 0x5ac878]
xor dl, cl
mov byte [ebp + eax - 0x10], dl
inc eax
cmp eax, 0xc
jb 0x48b1ce
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x48b1c9
xor edx, edx
xor eax, eax
cmp dword [ebp + 0x14], eax
jle 0x48b1fc
mov cl, byte [ebp + edx - 0x10]
xor byte [ebx + eax], cl
inc eax
cmp eax, dword [ebp + 0x14]
jl 0x48b1f3
inc edx
cmp edx, 0xc
jb 0x48b1e8
xor eax, eax
inc eax
jmp 0x48b209
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
leave
ret

Function at 0x48b33c
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [0x5b096c]
push esi
call fcn.00401b00
mov esi, dword [esp + 8]
cmp eax, esi
je 0x48b385
mov ecx, dword [0x5b096c]
call fcn.0048b279
cmp eax, esi
je 0x48b385
push str.127.0.0.1
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, esi
je 0x48b385
cmp dword [esp + 0xc], 0
je 0x48b389
mov ecx, dword [0x5b096c]
push esi
call fcn.004825a0
test eax, eax
je 0x48b389
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x48ba05
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x566c42
call fcn.0053c1d0
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 0x38]
mov dword [ebp - 0x10], esi
call fcn.0040b170
and dword [ebp - 4], 0
lea ecx, [esi + 0x3c]
call fcn.0040b170
lea ecx, [esi + 0x40]
call fcn.0040b170
lea ecx, [esi + 0x44]
call fcn.0040b170
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 3
call fcn.0048b9c0
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and dword [esi + 0x20], 0
and dword [esi + 0x24], 0
or dword [esi + 0x1c], 0xffffffff
mov ecx, dword [ebp - 0xc]
xor eax, eax
inc eax
and dword [esi + 0x2c], 0
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], 2
mov dword [esi + 0x34], 0x40
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4a73c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x568897
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x18], esi
mov dword [esi], 0x57a4f0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.005504da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
mov dword [esp + 0x24], ebx
lea ebp, [esi + 0x10]
call fcn.005504da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x24], 1
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x1f4
call fcn.005504da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov ecx, 0x7a
xor eax, eax
lea edi, [esi + 0x3c]
mov dword [esi + 0x30], 0x57a4d0
rep stosd dword es:[edi], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x224], ebx
mov eax, dword [0x5b096c]
add eax, 0x6c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.004071e0
push 0x579588
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x30], 5
call fcn.0040b420
add esp, 0xc
mov eax, dword [eax]
cmp eax, ebx
mov byte [esp + 0x24], 6
jne 0x4a74a2
xor edi, edi
jmp 0x4a74b0
mov edi, eax
lea edx, [edi + 1]
mov cl, byte [edi]
inc edi
cmp cl, bl
jne 0x4a74a7
sub edi, edx
push edi
push eax
mov ecx, ebp
call fcn.004037b0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x24], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a74dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a74ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4a8bea
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x5af710]
push ebx
push esi
mov esi, dword [ebp + 0x1a8]
push edi
mov edi, dword [ebp + 0x1ac]
xor ebx, ebx
xor eax, ebp
cmp edi, ebx
mov dword [ebp + 0x19c], eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], ebx
je 0x4a8d11
cmp byte [edi], bl
je 0x4a8d11
lea eax, [ebp - 0x6c]
push eax
push 0x104
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x98]
push eax
push ebx
push 0x57a530
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp + 0x98]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ebx
call fcn.00517b60
mov esi, eax
cmp esi, ebx
je 0x4a8cfe
push edi
push 0x2712
push esi
call fcn.00517be0
push 0x4a8ba8
push 0x4e2b
push esi
call fcn.00517be0
lea eax, [ebp - 0x80]
push eax
push 0x2711
push esi
call fcn.00517be0
xor edi, edi
inc edi
push edi
push 0x34
push esi
call fcn.00517be0
push esi
call fcn.00517c10
add esp, 0x34
test eax, eax
jne 0x4a8cec
cmp dword [ebp - 0x7c], ebx
je 0x4a8cc2
push dword [ebp - 0x7c]
call fcn.0053baab
pop ecx
lea eax, [ebp - 0x74]
push eax
push 0x200002
push esi
mov dword [ebp - 0x74], ebx
call fcn.00517cb0
add esp, 0xc
cmp dword [ebp - 0x74], 0x190
jl 0x4a8ce9
cmp dword [ebp - 0x74], 0x1f4
jl 0x4a8cec
mov dword [ebp - 0x70], edi
push esi
call fcn.00517c80
cmp dword [ebp - 0x70], ebx
pop ecx
lea eax, [ebp + 0x98]
jne 0x4a8d03
mov eax, 0x572aed
mov ecx, dword [ebp - 0x78]
push eax
call fcn.00405500
mov eax, dword [ebp - 0x78]
jmp 0x4a8d1f
push 0x572aed
mov ecx, esi
call fcn.00405500
mov eax, esi
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
add ebp, 0x1a0
leave
ret 8
Function at 0x4ae6f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push edi
mov edi, eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push 0x1c
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4ae799
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x10]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4ae798
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
cmp ebp, ebx
lea ecx, [ecx + eax + 0x18]
jbe 0x4ae797
lea eax, [ecx + 0x10]
nop
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x4ae76e
mov ecx, edx
cmp edi, esi
jb 0x4ae778
add ecx, esi
cmp edi, ecx
jbe 0x4ae788
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x4ae760
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
inc ebx
sub edi, esi
mov dword [edx], ebx
mov dword [eax], edi
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x1c
ret

Function at 0x4ae7a0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
mov eax, dword [0x5af710]
xor eax, ebp
mov dword [esp + 0x40c], eax
push esi
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], 0
call fcn.0053c1ef
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x414]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0053aaae
mov esp, ebp
pop ebp
ret
Function at 0x4aeff0
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x568edb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
mov eax, dword [0x5af710]
xor eax, esp
push ebx
mov dword [esp + 0x1a4], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 1
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0xc8
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 8]
call fcn.004071e0
push 1
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1b8], 0
call fcn.00418d32
mov eax, dword [eax]
push 0x572ea0
push eax
call fcn.0053d6bb
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4af0ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
pop ebx
je 0x4af0c2
push 1
push 0x572ea0
lea ecx, [esp + 8]
call fcn.0040b2c0
push 0xf
push str.watchclient.exe
lea ecx, [esp + 8]
call fcn.0040b2c0
lea eax, [esp + 0xd8]
push str.VRVWatchServer
push eax
call fcn.0053bafc
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
add esp, 8
push 0xc9
push ecx
push 1
push 0
lea edx, [esp + 0xe8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add eax, 0xfffffff0
mov dword [esp + 0x1ac], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4af13b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.0053aaae
add esp, 0x1b0
ret

Function at 0x4b00e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x108
mov eax, dword [0x5af710]
xor eax, esp
push esi
push edi
mov edi, dword [esp + 0x114]
mov dword [esp + 0x10c], eax
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b0135
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0053aaae
add esp, 0x108
ret
Function at 0x4c56d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56a388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov dword [esi], fcn.004c5b60
call fcn.005504da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
xor edi, edi
add eax, 0x10
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov eax, 1
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
push edi
mov dword [esp + 0x38], edi
mov dword [esi], 0x57bd88
call fcn.0053cc0f
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x30], edx
call fcn.0053ca01
add esp, 8
or ebx, 0xffffffff
cmp eax, edi
je 0x4c575d
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x4c5761
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x24]
push edx
call fcn.0053ca01
add esp, 4
cmp eax, edi
je 0x4c577b
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
jmp 0x4c577f
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x24]
push ecx
call fcn.0053ca01
add esp, 4
cmp eax, edi
je 0x4c5799
mov edx, dword [eax + 8]
mov dword [esp + 0x18], edx
jmp 0x4c579d
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x24]
push eax
call fcn.0053ca01
add esp, 4
cmp eax, edi
je 0x4c57b3
mov ebp, dword [eax + 0xc]
jmp 0x4c57b5
xor ebp, ebp
lea ecx, [esp + 0x24]
push ecx
call fcn.0053ca01
add esp, 4
cmp eax, edi
je 0x4c57cc
mov ebx, dword [eax + 0x10]
inc ebx
jmp 0x4c57ce
xor ebx, ebx
lea edx, [esp + 0x24]
push edx
call fcn.0053ca01
add esp, 4
cmp eax, edi
je 0x4c57e9
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x4c57eb
xor eax, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
push ebp
inc ebx
push ebx
push eax
lea ecx, [esp + 0x34]
call fcn.0041887a
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
sub edx, eax
mov eax, dword [esp + 0x1c]
push edi
push 0x15180
sbb eax, ebp
push eax
push edx
call fcn.0053e880
imul eax, eax, 0x15180
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x24], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4c6230
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x56a49c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x5af710]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [ecx + 8]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4c626a
xor eax, eax
jmp 0x4c63c2
push esi
add eax, 0xfffffff0
push edi
push eax
call fcn.0040b110
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 8], esi
mov eax, dword [esi - 0xc]
test eax, eax
mov dword [esp + 0x128], 0
jle 0x4c638b
push 0x5c
push esi
call fcn.0053c426
add esp, 8
test eax, eax
je 0x4c638b
sub eax, esi
test eax, eax
jle 0x4c638b
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.004071e0
push 0x572ea0
push eax
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x134], 1
call fcn.0040b420
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x140], 2
call fcn.0040b370
add esp, 0x18
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x12c], 3
call fcn.0040b4e0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x128], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c633b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x128], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c6361
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x128], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c6387
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 8]
push 1
push 0
push 5
push esi
call fcn.00506e62
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x128], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c63be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0053aaae
add esp, 0x124
ret
Function at 0x4c6bf0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.WSOCK32.dll_inet_addr]
push edi
push eax
mov edi, ecx
call esi
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
push eax
call ebx
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [ecx]
push eax
call esi
push eax
call ebx
mov esi, dword [edi + 0x2c]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x14], eax
xor eax, eax
cmp esi, ecx
je 0x4c6c57
lea esp, [esp]
mov edx, dword [esi]
push edx
call ebx
cmp eax, ebp
jb 0x4c6c3f
cmp eax, dword [esp + 0x14]
jbe 0x4c6c52
mov eax, dword [edi + 0x30]
add esi, 4
cmp esi, eax
jne 0x4c6c30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4c71b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56a56b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
mov eax, dword [0x5af710]
xor eax, ebp
mov dword [esp + 0xac], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
call fcn.005504da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0xc8], 0
mov dword [esp + 0x14], 0x9c
call esi
test eax, eax
jne 0x4c7287
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x94
call esi
test eax, eax
jne 0x4c7287
mov esi, dword [esp + 0xc]
push 0x572aed
mov ecx, esi
call fcn.004071e0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0xc4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c7280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
jmp 0x4c73aa
mov eax, dword [esp + 0x20]
sub eax, 0
je 0x4c735f
dec eax
je 0x4c730d
dec eax
jne 0x4c736d
cmp dword [esp + 0x14], 4
ja 0x4c72b3
push 0x57be50
lea ecx, [esp + 0xc]
call fcn.004054c0
mov eax, dword [esp + 0x14]
mov esi, 5
cmp eax, esi
jne 0x4c736d
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4c72e4
push str.2000
lea ecx, [esp + 0xc]
call fcn.004054c0
cmp dword [esp + 0x14], esi
jne 0x4c736d
cmp dword [esp + 0x18], 1
jne 0x4c72ff
push 0x57be44
lea ecx, [esp + 0xc]
call fcn.004054c0
cmp dword [esp + 0x14], esi
jne 0x4c736d
cmp dword [esp + 0x18], 2
jne 0x4c736d
push 0x57be3c
jmp 0x4c7364
mov eax, dword [esp + 0x14]
mov esi, 4
cmp eax, esi
jne 0x4c736d
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4c7336
push 0x57be38
lea ecx, [esp + 0xc]
call fcn.004054c0
cmp dword [esp + 0x14], esi
jne 0x4c736d
cmp dword [esp + 0x18], 0xa
jne 0x4c7351
push 0x57be34
lea ecx, [esp + 0xc]
call fcn.004054c0
cmp dword [esp + 0x14], esi
jne 0x4c736d
cmp dword [esp + 0x18], 0x5a
jne 0x4c736d
push 0x57be30
jmp 0x4c7364
push str.WIN32S
lea ecx, [esp + 0xc]
call fcn.004054c0
mov esi, dword [esp + 8]
add esi, 0xfffffff0
push esi
call fcn.0040b110
mov edi, dword [esp + 0x10]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0xc4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c73a8
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, edi
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xb4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 4
Function at 0x4d8122
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, 0x56b8cf
call fcn.0053c1d0
sub esp, 0x40
mov eax, dword [0x5af710]
and dword [ebp - 0x44], 0
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x4c], esi
call fcn.005504da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
or dword [ebp - 0x38], 0xffffffff
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x34], 2
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], 0x572c04
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00408250
test eax, eax
jne 0x4d81dd
push edi
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x48], 0x10
mov word [ebp - 0x20], 2
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
pop edi
jne 0x4d81dd
cmp dword [ebp - 0x1c], eax
je 0x4d81dd
push dword [ebp - 0x1c]
call dword [sym.imp.WSOCK32.dll_htonl]
cmp eax, 0x7f000001
je 0x4d81dd
push dword [ebp - 0x1c]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x40]
push 0x575618
push eax
call fcn.0040b350
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0040b190
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], bl
call fcn.0040b997
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00401250
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
leave
ret

Function at 0x4e0990
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x56c2d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x573118
xor ebx, ebx
push edi
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x10], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
lea edi, [esi + 0x38]
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi], 0x57d64c
call fcn.00429e05
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
pop edi
mov dword [esi + 0x44], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4edef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x56d298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x573118
xor ebx, ebx
push edi
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x10], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
lea edi, [esi + 0x38]
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi], 0x57dcc0
call fcn.0047b800
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret