joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404900
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], ecx
test ebx, ebx
jne 0x40491b
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, ebx
push edi
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404922
sub esi, edx
mov dword [ebp - 0x10], 0
sar esi, 1
je 0x404950
cmp word [ebx + esi*2 - 2], 0x5c
jne 0x404950
dec esi
mov dword [ebp - 0x10], 1
xor eax, eax
mov word [ebx + esi*2], ax
lea eax, [ecx + 4]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0xc], edx
lea edi, [edx + 0x5c]
cmp dword [eax + 0x20], edx
jbe 0x404aa5
xor ecx, ecx
mov dword [ebp - 4], ecx
nop word [eax + eax]
mov eax, dword [eax + 0x2c]
cmp dword [eax + ecx + 0x10], 0
je 0x404a87
test byte [eax + ecx + 0x14], 1
jne 0x404a87
mov eax, dword [eax + ecx + 0xc]
add eax, esi
lea eax, [eax*2 + 4]
push eax
call fcn.004d9a7e
lea edi, [esi + esi]
mov ebx, eax
push edi
push dword [ebp + 8]
push ebx
call fcn.004d6950
mov ecx, dword [ebp - 4]
add edi, ebx
mov eax, 0x5c
mov word [edi], ax
add edi, 2
mov eax, dword [ebp - 8]
add ecx, dword [eax + 0x2c]
mov eax, dword [ecx + 0xc]
add eax, eax
push eax
push dword [ecx + 0x10]
push edi
call fcn.004d6950
mov eax, dword [ebp - 8]
add esp, 0x1c
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push ebx
mov eax, dword [ecx + eax + 0xc]
xor ecx, ecx
mov word [edi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404a78
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404a48
push ebx
call fcn.00404d60
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404a78
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x18]
push 0
push ecx
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push dword [ecx + eax + 0x1c]
push dword [ecx + eax + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.004d9a63
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404a81
push ebx
call fcn.004d9a63
add esp, 4
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edx
add ecx, 0x24
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
cmp edx, dword [eax + 0x20]
jb 0x404980
mov ebx, dword [ebp + 8]
mov edi, 0x5c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x10], 0
je 0x404ab8
mov word [ebx + esi*2], di
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
xor esi, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404ae2
sub edx, ecx
sar edx, 1
je 0x404b07
movzx eax, word [edi]
lea edi, [edi + 2]
mov ecx, esi
shl ecx, 4
xor ecx, eax
xor esi, ecx
sub edx, 1
jne 0x404af3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x24]
mov edi, dword [ebp + 0x10]
and ecx, esi
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov dword [edi], 0
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x404b71
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x404b6f
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x404b56
test dx, dx
je 0x404b52
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x404b56
add ecx, 4
add eax, 4
test dx, dx
jne 0x404b30
xor eax, eax
jmp 0x404b5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x404b6f
mov esi, dword [esi + 4]
test esi, esi
jne 0x404b24
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov dword [edi], esi
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc

Function at 0x404d60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
movzx eax, word [esi]
cmp eax, 0x5c
jne 0x404d9c
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404d8f
push 0
push edi
call ebx
mov eax, 0x5c
mov word [esi], ax
add esi, 2
jmp 0x404d71
test ax, ax
je 0x404da6
add esi, 2
jmp 0x404d71
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x4088a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [eax], 0
test bl, 3
jne 0x4089d8
cmp ebx, 0x48
ja 0x4089d8
mov edx, dword [ebp + 8]
mov ecx, ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
shr ecx, 2
push edi
lea edi, [esi + ecx*4]
xor esi, esi
cmp eax, edi
cmova ecx, esi
test ecx, ecx
je 0x408928
cmp ecx, 8
jb 0x408928
and ecx, 0xfffffff8
xorps xmm2, xmm2
xorps xmm1, xmm1
movups xmm0, xmmword [eax]
add esi, 8
xorps xmm2, xmm0
movups xmm0, xmmword [eax + 0x10]
add eax, 0x20
xorps xmm1, xmm0
cmp esi, ecx
jne 0x4088f1
xorps xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
xorps xmm1, xmm0
movd edx, xmm1
xor edx, dword [ebp + 8]
cmp eax, edi
je 0x408939
nop dword [eax]
xor edx, dword [eax]
add eax, 4
cmp eax, edi
jne 0x408930
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x20]
and ecx, edx
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4089cd
mov eax, dword [ebp + 8]
cmp dword [edi + 0x14], eax
jne 0x4089b6
mov eax, dword [edi + 0x18]
cmp eax, ebx
jne 0x4089b3
mov esi, dword [ebp + 0x10]
lea edx, [edi + 0x1c]
sub eax, 4
jb 0x408981
nop
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x408986
add edx, 4
add esi, 4
sub eax, 4
jae 0x408970
cmp eax, 0xfffffffc
je 0x4089c8
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x4089b3
cmp eax, 0xfffffffd
je 0x4089c8
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x4089b3
cmp eax, 0xfffffffe
je 0x4089c8
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x4089b3
cmp eax, 0xffffffff
je 0x4089c8
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x4089c8
mov eax, dword [ebp + 8]
mov edi, dword [edi + 4]
test edi, edi
jne 0x408957
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x409ee0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x9c0]
cmp eax, 0x270
jl 0x409fb0
cmp eax, 0x271
jne 0x409f05
push 0x1571
call fcn.004b4290
xor edx, edx
nop word [eax + eax]
mov ecx, dword [esi + edx*4 + 4]
xor ecx, dword [esi + edx*4]
and ecx, 0x7fffffff
xor ecx, dword [esi + edx*4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x503e54]
xor eax, dword [esi + edx*4 + 0x634]
xor eax, ecx
mov dword [esi + edx*4], eax
inc edx
cmp edx, 0xe3
jl 0x409f10
mov ecx, dword [esi + edx*4 + 4]
xor ecx, dword [esi + edx*4]
and ecx, 0x7fffffff
xor ecx, dword [esi + edx*4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x503e54]
xor eax, dword [esi + edx*4 - 0x38c]
xor eax, ecx
mov dword [esi + edx*4], eax
inc edx
cmp edx, 0x26f
jl 0x409f43
mov eax, dword [esi + 0x9bc]
mov ecx, dword [esi]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x503e54]
xor eax, dword [esi + 0x630]
xor eax, ecx
mov dword [esi + 0x9bc], eax
xor eax, eax
mov dword [esi + 0x9c0], 0
mov ecx, dword [esi + eax*4]
inc eax
mov dword [esi + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
ret
Function at 0x40aaa0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5480
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x22c], eax
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
or ebx, 0x2001f
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
lea edx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push edx
push ebx
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x21c]
test esi, esi
jne 0x40ac52
xor esi, esi
test eax, eax
je 0x40ab44
push eax
call edi
mov esi, eax
mov eax, dword [ebp - 0x224]
and ebx, 0x300
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
test esi, esi
jne 0x40ac52
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x234]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x100
push ecx
lea ecx, [ebp - 0x210]
push ecx
push esi
push eax
call ebx
test eax, eax
jne 0x40abeb
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040aaa0
mov esi, eax
test esi, esi
jne 0x40ac4c
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x21c]
call ebx
test eax, eax
je 0x40aba0
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40ac02
push eax
call edi
mov dword [ebp - 0x21c], 0
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x218], 0
call fcn.0040a970
mov ecx, dword [ebp - 0x21c]
mov esi, eax
test ecx, ecx
je 0x40ac2c
push ecx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40ac2c
push eax
jmp 0x40ac2a
Function at 0x40b0f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f555b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40b19c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40b19c
call fcn.0040a680
mov edi, eax
jmp 0x40b2b9
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40b1bf
call fcn.0040a680
jmp 0x40b2ac
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40b1dd
call fcn.0040a680
jmp 0x40b2ac
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40b1fe
mov edi, 0x8007000e
jmp 0x40b2ae
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
jne 0x40b2f2
cmp eax, 0xffffffff
ja 0x40b2f2
cmp eax, 0x400
jbe 0x40b22f
push eax
lea ecx, [ebp - 0x418]
call fcn.00414860
jmp 0x40b255
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40b255
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40b26c
mov edi, 0x8007000e
jmp 0x40b2ae
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40b28c
call fcn.0040a680
jmp 0x40b2ac
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040bed0
mov edi, eax
test esi, esi
je 0x40b2b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40b2d2
lea ecx, [ebp - 0x418]
call fcn.004147c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00408840
int3
Function at 0x413d10
Capabilities:
Check for time delay via queryperformancecounter
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [0x5223f0]
lea eax, [ebp - 0x18]
push edi
push eax
movss dword [ebp - 8], xmm1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 3
push accept
push esi
call edi
cmp eax, 0xffffffff
je 0x413dc1
push eax
call ebx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x413dc1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
sbb edx, dword [ebp - 0x14]
call fcn.004f3bf0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
movss dword [ebp - 4], xmm0
call fcn.004f3bf0
movss xmm1, dword [ebp - 4]
divss xmm1, xmm0
movss xmm0, dword [ebp - 8]
comiss xmm0, xmm1
ja 0x413d44
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
xor esi, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4155a2
sub edx, ecx
sar edx, 1
je 0x4155c7
movzx eax, word [edi]
lea edi, [edi + 2]
mov ecx, esi
shl ecx, 4
xor ecx, eax
xor esi, ecx
sub edx, 1
jne 0x4155b3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x18]
mov edi, dword [ebp + 0x10]
and ecx, esi
mov dword [eax], ecx
mov eax, dword [ebx + 0x24]
mov dword [edi], 0
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x415631
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x41562f
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x415616
test dx, dx
je 0x415612
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x415616
add ecx, 4
add eax, 4
test dx, dx
jne 0x4155f0
xor eax, eax
jmp 0x41561b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41562f
mov esi, dword [esi + 4]
test esi, esi
jne 0x4155e4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov dword [edi], esi
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x430cd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f60bd
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x51e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esi], vtable.guf.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x430d5d
mov dword [ecx + 0x30], esi
jmp 0x430d60
mov dword [eax + 0x28], esi
mov dword [esi + 0x28], 0
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x2c], eax
inc dword [ecx + 0x28]
mov dword [ecx + 0x2c], esi
push 0
push 0x51fa6c
push 0x51fbac
push 0
mov dword [ebp - 4], 0
push edx
mov dword [esi], vtable.pd_guf.0
call fcn.004f4046
add esp, 0x14
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x34], eax
mov eax, dword [eax + 0x478]
mov dword [esi + 0x38], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x431120
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x407]
push edi
push 0x400
mov edi, ecx
mov dword [ebp - 0x824], edx
push 0
push eax
mov dword [ebp - 0x820], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x408], 0
call fcn.004d6ed0
push 0x400
lea eax, [ebp - 0x80b]
mov byte [ebp - 0x80c], 0
push 0
push eax
call fcn.004d6ed0
push 0x400
push edi
lea eax, [ebp - 0x408]
push 0x401
lea ebx, [ebp - 0x80c]
mov dword [ebp - 0x81c], eax
push eax
mov dword [ebp - 0x810], ebx
call fcn.004e3160
add esp, 0x28
nop word [eax + eax]
push dword [ebp - 0x820]
mov edi, esi
mov dword [esi], 0
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x431316
cmp word [ebx + 8], 2
jne 0x431221
cmp word [ebx + 0xa], 4
jne 0x431221
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x431221
push dword [eax]
mov edx, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x824]
call fcn.004310a0
mov dword [edi], eax
test eax, eax
je 0x43130f
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x4311f8
push 0x400
push dword [ebx]
mov ebx, dword [ebp - 0x810]
push 0x401
push ebx
call fcn.004e3160
mov eax, dword [ebp - 0x814]
xor esi, esi
add esp, 0x10
cmp dword [eax], esi
jne 0x4312c2
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431250
sub ecx, edx
je case.0x431326.11003
mov edi, dword [ebp - 0x81c]
mov eax, ebx
mov ecx, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x431285
test dl, dl
je 0x431281
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x431285
add ecx, 2
add eax, 2
test dl, dl
jne 0x431265
xor eax, eax
jmp 0x43128a
sbb eax, eax
or eax, 1
test eax, eax
je case.0x431326.11003
mov esi, dword [ebp - 0x818]
inc esi
mov dword [ebp - 0x818], esi
cmp esi, 0x10
je case.0x431326.11003
mov esi, dword [ebp - 0x814]
mov eax, edi
mov dword [ebp - 0x81c], ebx
mov ebx, eax
mov dword [ebp - 0x810], ebx
jmp 0x4311c0
mov esi, 0x2afb
jmp 0x431339
cmp dword [ebp + 0x10], esi
je 0x431339
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4312d0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.004e309e
mov edi, eax
add esp, 8
test edi, edi
je 0x4312fd
push dword [ebp - 0x810]
push ebx
push edi
call fcn.004e316b
add esp, 0xc
mov ecx, dword [ebp - 0x814]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x431339
mov esi, 8
jmp 0x431339
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x431326.11001
jmp dword [eax*4 + 0x431350]
mov esi, 0x2afa
jmp 0x431339
mov esi, 0x2af9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4319a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5224bc], 0
mov ax, cx
push ebx
push esi
push edi
mov word [ebp - 0x23a], ax
mov dword [ebp - 0x238], str.getaddrinfo
mov dword [ebp - 0x234], 0x4313b0
mov dword [ebp - 0x230], str.getnameinfo
mov dword [ebp - 0x22c], 0x431760
mov dword [ebp - 0x228], str.freeaddrinfo
mov dword [ebp - 0x224], 0x431360
je 0x431a0d
movzx eax, ax
jmp 0x431b39
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x431b28
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push 0x10c
push eax
call fcn.004e316b
add esp, 0xc
lea eax, [ebp - 0x118]
push str.ws2_32
push 0x10c
push eax
call fcn.004e31c5
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x431a89
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x431ae1
push edi
call esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push 0x10c
push eax
call fcn.004e316b
add esp, 0xc
lea eax, [ebp - 0x118]
push str.wship6
push 0x10c
push eax
call fcn.004e31c5
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x431b28
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x431ae1
push edi
call esi
jmp 0x431b28
xor esi, esi
push dword [ebp + esi*8 - 0x238]
push edi
call ebx
mov dword [ebp + esi*8 - 0x234], eax
test eax, eax
je 0x431b21
inc esi
cmp esi, 3
jl 0x431ae3
mov eax, dword [ebp - 0x234]
mov dword [0x51f8e4], eax
mov eax, dword [ebp - 0x22c]
mov dword [0x51f8ec], eax
mov eax, dword [ebp - 0x224]
mov dword [0x51f8f4], eax
jmp 0x431b28
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0x23a]
mov dword [0x5224bc], 1
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x51f8e4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret