joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40593b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004032d6
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x4059ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405a96
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405a96
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x4059ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405a47
cmp dword [0x40b7e8], ecx
je 0x405a47
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405a47
test ebx, ebx
je 0x405a47
call edi
test eax, eax
je 0x405a3e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405a3e
test byte [ebp - 8], 1
jne 0x405a47
or dword [ebp + 0x10], 0x200000
jmp 0x405a7a
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x405a7a
push eax
call esi
test eax, eax
je 0x405a7a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405a7a
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x405a7a
push eax
call esi
test eax, eax
je 0x405a7a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x405a96
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405a98
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040269a
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x10002e74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.10004524
test esi, esi
jne 0x10002eab
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.10004614
jmp 0x10002ecc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.10002d10
mov dword [esp], eax
test esi, esi
je 0x10002ecc
cmp dword [ebx], 0
je 0x10002ecc
dec esi
jmp 0x10002eb3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x10003074
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x10059008], 0x8088405
inc edx
mov dword [ebx + 0x10059008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x100034cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x10059024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10003564
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x10003544
xor eax, eax
push ebp
push 0x1000353d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10003580
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10003544
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x10059024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x10059024], ax
mov esp, ebp
pop ebp
ret

Function at 0x10004324
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1005d04c], 0
je 0x10004385
cmp word [0x1005d220], 0xd7b2
jne 0x1000434d
cmp dword [0x1005d228], 0
jbe 0x1000434d
mov eax, 0x1005d21c
call dword [0x1005d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x10059070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x100043ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x10059034], 0
jne 0x100043a1
push 0
push 0x10059068
push 0x10059070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x100044e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.10002a8c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x1005d04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x100044a8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x100067ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x10006852
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.10004794
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.10003090
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x1000683c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10006859
lea eax, [ebp - 0x10]
call fcn.10004524
ret

Function at 0x10008a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x10008a3f
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x10008abe
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.100071dc
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x10008a8c
mov cx, word [esp]
sub cx, si
jmp 0x10008a8e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x10008a75
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x10008ab4
mov cx, word [esp]
sub cx, si
jmp 0x10008ab6
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x10008a9d
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x10008b1b
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.100086e4
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x10008b06
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x10008b1b
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x10008a1a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1000fa98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x1000fad1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.10004614
jmp 0x1000fada
mov eax, ebx
mov edx, esi
call fcn.10004578
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000fae4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x1000fb05
mov al, byte [esp]
jmp 0x1000fb07
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x1001019c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x10010004
mov eax, dword [0x1005c5b8]
cmp byte [eax], 0
je 0x10010218
mov eax, dword [0x1005c410]
call fcn.10002f80
call fcn.10002c18
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.1000d3b8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x10010260
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x1001024e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x1005c3c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x1005d668]
call fcn.10005c3c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x10010fa8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x1001100c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.10004794
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.1000ce80
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10011013
lea eax, [ebp - 0xc]
call fcn.10004524
ret
Function at 0x10012324
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffd8
xor ebx, ebx
push 0x100123b4
call sub.kernel32.dll_GetModuleHandleA_2
mov esi, eax
test esi, esi
jne 0x10012348
push 0x100123b4
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x100123a8
push 0x100123c4
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x100123d4
push esi
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
test edi, edi
je 0x100123a8
push esp
call sub.kernel32.dll_GetCurrentProcess
push eax
call edi
cmp dword [esp], 0
je 0x1001237d
test esi, esi
jne 0x10012381
xor ebx, ebx
jmp 0x10012383
mov bl, 1
test bl, bl
je 0x100123a8
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetNativeSystemInfo
mov ax, word [esp + 4]
cmp ax, 9
je 0x100123a6
cmp ax, 6
je 0x100123a6
xor ebx, ebx
jmp 0x100123a8
mov bl, 1
mov eax, ebx
add esp, 0x28
pop edi
pop esi
pop ebx
ret

Function at 0x10012410
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov dword [esp + 4], eax
mov dword [esp], eax
mov ecx, edx
dec ecx
test ecx, ecx
jb 0x1001243a
inc ecx
xor edx, edx
mov ebx, eax
add ebx, edx
mov bl, byte [ebx]
xor bl, 0x10
mov esi, dword [esp]
add esi, edx
mov byte [esi], bl
inc edx
dec ecx
jne 0x10012426
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x1004b67c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1004b6fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.10004524
mov eax, dword [ebp - 4]
call fcn.10004800
test eax, eax
jle 0x1004b6e5
mov eax, dword [ebp - 4]
call fcn.10004800
mov ebx, eax
test ebx, ebx
jbe 0x1004b6e5
mov edi, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, 8
call fcn.1000470c
mov edx, dword [ebp - 8]
mov ecx, dword [esi]
mov eax, esi
call fcn.1000484c
inc edi
dec ebx
jne 0x1004b6c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1004b702
lea eax, [ebp - 8]
call fcn.10004524
ret
Function at 0x1004b70c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
call fcn.10004524
mov eax, ebx
call fcn.10004a00
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x1004b7c1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
mov eax, edi
call fcn.10004a00
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1004b7a3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x1004b78c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x1004b78c
push ebx
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
call fcn.1000471c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1004b7aa
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeResource
ret

Function at 0x1004b7d0
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffe8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x1004b820
lea eax, [esp + 0xc]
push eax
push 0x1004b824
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
add esp, 0x18
ret

Function at 0x1004caf8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 1
call sub.kernel32.dll_SetErrorMode
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x1004cb45
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push esi
push edi
push ebx
call sub.kernel32.dll_GetDiskFreeSpaceExA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1004cb4c
movzx eax, word [ebp - 6]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x1004cb58
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x1004cb60
push ecx
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 3]
xor eax, eax
push ebp
push 0x1004cd40
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x1004cd1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.10004524
mov bl, 0x43
mov byte [edi], bl
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x18]
mov eax, edi
call fcn.1004caf8
test eax, eax
je 0x1004cd07
mov eax, dword [0x1005c2d0]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.10005548
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
jne 0x1004cbd8
cmp dword [ebp - 0x10], 0
je 0x1004cbf4
mov eax, dword [0x1005c2d0]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.10005548
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push edi
call sub.kernel32.dll_GetDriveTypeA
sub eax, 2
je 0x1004cc65
dec eax
je 0x1004cc10
sub eax, 2
je 0x1004ccb7
jmp 0x1004cd07
push dword [esi]
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.1000470c
push dword [ebp - 0x1c]
push 0x1004cd58
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.1004b514
push dword [ebp - 0x20]
push 0x1004cd64
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.1004b514
push dword [ebp - 0x24]
push 0x1004cd70
mov eax, esi
mov edx, 7
call fcn.100048c0
jmp 0x1004cd07
push dword [esi]
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.1000470c
push dword [ebp - 0x28]
push 0x1004cd7c
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.1004b514
push dword [ebp - 0x2c]
push 0x1004cd64
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.1004b514
push dword [ebp - 0x30]
push 0x1004cd70
mov eax, esi
mov edx, 7
call fcn.100048c0
jmp 0x1004cd07
push dword [esi]
lea eax, [ebp - 0x34]
mov edx, ebx
call fcn.1000470c
push dword [ebp - 0x34]
push 0x1004cd88
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.1004b514
push dword [ebp - 0x38]
push 0x1004cd64
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.1004b514
push dword [ebp - 0x3c]
push 0x1004cd70
mov eax, esi
mov edx, 7
call fcn.100048c0
inc ebx
cmp bl, 0x5b
jne 0x1004cb95
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1004cd25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1004cd47
lea eax, [ebp - 0x3c]
mov edx, 9
call fcn.10004548
ret
Function at 0x1004d304
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov edi, ecx
mov esi, edx
mov ebx, eax
mov dword [esp + 4], 0xffffffff
push 4
lea eax, [esp + 8]
push eax
push 8
push 0xffff
push ebx
call sub.ws2_32.dll_setsockopt
inc eax
setne al
xor eax, eax
mov dword [esp], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push 0
push 0
lea eax, [esp + 8]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x20]
push eax
push 0x98000004
push ebx
call sub.ws2_32.dll_WSAIoctl
inc eax
sete al
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x1004d47c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor esi, esi
cmp dword [ebx + 4], 0xffffffff
jne 0x1004d4a2
push 0
push 1
push 2
call sub.ws2_32.dll_socket
mov dword [ebx + 4], eax
cmp dword [ebx + 4], 0xffffffff
je 0x1004d50d
mov word [ebx + 8], 2
push edi
call sub.ws2_32.dll_htons
mov word [ebx + 0xa], ax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004d50d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0xffffffff
je 0x1004d50d
push 0x10
lea eax, [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_connect
test eax, eax
sete al
neg al
sbb esi, esi
mov eax, esi
mov dword [ebx + 0x18], eax
test eax, eax
je 0x1004d50d
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 4]
call fcn.1000471c
mov word [ebx + 0x20], di
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x1004d594
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov edi, eax
xor esi, esi
mov dword [esp], edx
jmp 0x1004d5ec
push 0
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [edi + 4]
push eax
call sub.ws2_32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1004d5da
call sub.ws2_32.dll_WSAGetLastError
call fcn.1004d2cc
test eax, eax
je 0x1004d5ec
or esi, 0xffffffff
mov eax, edi
call fcn.1004d518
jmp 0x1004d5f6
test ebx, ebx
jne 0x1004d5e7
mov eax, edi
call fcn.1004d518
jmp 0x1004d5f6
add dword [esp], ebx
add esi, ebx
cmp esi, ebp
jge 0x1004d5f6
cmp dword [edi + 0x18], 0
jne 0x1004d5a4
mov eax, esi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1004d600
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov edi, eax
xor esi, esi
mov dword [esp], edx
jmp 0x1004d658
push 0
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [edi + 4]
push eax
call sub.ws2_32.dll_send
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1004d646
call sub.ws2_32.dll_WSAGetLastError
call fcn.1004d2cc
test eax, eax
je 0x1004d658
or esi, 0xffffffff
mov eax, edi
call fcn.1004d518
jmp 0x1004d662
test ebx, ebx
jne 0x1004d653
mov eax, edi
call fcn.1004d518
jmp 0x1004d662
add dword [esp], ebx
add esi, ebx
cmp esi, ebp
jge 0x1004d662
cmp dword [edi + 0x18], 0
jne 0x1004d610
mov eax, esi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1004d6f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x148], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x1004d81e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x101
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x1004d7f7
lea eax, [ebp - 0x105]
mov dword [ebp - 4], eax
jmp 0x1004d7eb
push 0x39
lea eax, [ebp - 0x13e]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 4]
call fcn.1000471c
mov eax, dword [ebp - 0x148]
mov ecx, 2
mov edx, 1
call fcn.10004a60
mov eax, dword [ebp - 0x144]
call fcn.10004a00
push eax
call sub.kernel32.dll_QueryDosDeviceA
lea eax, [ebp - 0x13e]
push eax
call sub.kernel32.dll_lstrlenA_1
mov ebx, eax
push ebx
push esi
lea eax, [ebp - 0x13e]
push eax
call sub.shlwapi.dll_StrCmpNIA
test eax, eax
jne 0x1004d7e7
lea eax, [ebp - 0x14c]
lea edx, [esi + ebx + 1]
call fcn.1000471c
mov eax, dword [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 4]
call fcn.1000471c
mov edx, dword [ebp - 0x150]
mov eax, edi
pop ecx
call fcn.1000484c
jmp 0x1004d800
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x1004d74f
mov eax, edi
mov edx, esi
call fcn.1000471c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1004d825
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.10004548
ret

Function at 0x1004d82c
Capabilities:
Get process image filename

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov ebx, edx
mov esi, eax
push 0x104
lea eax, [esp + 4]
push eax
push esi
call sub.PsAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x1004d855
mov eax, ebx
call fcn.10004524
jmp 0x1004d85e
mov edx, ebx
mov eax, esp
call fcn.1004d6f0
add esp, 0x104
pop esi
pop ebx
ret