joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439d20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004654a3
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004396c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004653d1
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00461c95
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00461c95
push 1
push 0
push 0
mov ecx, esi
call fcn.00461c3d
push 1
push 0
push 1
mov ecx, esi
call fcn.00461c3d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00465515
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x439ea0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c5a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004654a3
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004396c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004653d1
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x439f64
cmp dword [esp + 0x40], 1
jne 0x439f62
cmp ecx, eax
jge 0x439f64
mov eax, ecx
cmp eax, 0xc8
jge 0x439f70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00439d20
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00465515
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43a6e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c613
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004600b3
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046574b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00466c67
test eax, eax
je 0x43a7fc
mov ecx, dword [esp + 0x3c]
call fcn.00465778
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43a7c0
push edi
mov ecx, esi
call fcn.00462de3
mov ecx, esi
call fcn.0043a960
cmp dword [esp + 0x38], 1
jne 0x43a7f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00462f1e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d220
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d253
push esi
call fcn.00440310
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d24c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43d2d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d2c2
mov eax, dword [esi + 8]
test eax, eax
je 0x43d277
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d2be
cmp eax, 2
je 0x43d2c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d26a
cmp eax, 3
je 0x43d29d
cmp eax, 1
jne 0x43d26a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d26a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d26a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d300
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d2e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d300
add esp, 4
pop esi
ret
Function at 0x449f10
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x449f5a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x449f89
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x449fcb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x460ea8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x460ee0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045ef5f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045ef37
jmp 0x460eec
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46259d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4625df
call fcn.00468057
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4625df
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4625d6
xor eax, eax
jmp 0x4625e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004625ed
pop edi
pop esi
pop ebx
ret 4

Function at 0x468587
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4685b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4685d3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004684ed
jmp 0x4685d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4685d3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004684ed
test edi, edi
mov eax, edi
jne 0x4685bd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x44fc2e
Capabilities:
Terminate process

Disassembly:
jmp 0x4a24fe
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4a250f
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004525a5
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x44fdb9
Capabilities:
Query environment variable

Disassembly:
jmp 0x4e084f
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4e0863
xor edi, edi
jmp 0x4e089a
push ebx
push esi
call fcn.004e0759
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00450827
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e088a
push ebx
push esi
push edi
call fcn.0045231b
add esp, 0xc
push 0
call fcn.004530cc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x452401
Capabilities:
Parse pe header

Disassembly:
jmp 0x491410
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49144f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49144f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49144f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49144f
cmp dword [ecx + 0x74], 0xe
jbe 0x49144f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

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

Disassembly:
jmp 0x4683e0
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x54b188], eax
pop edi
pop esi
ret
Function at 0x401000
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, eax
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x40101f
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x401127
jmp 0x401030
mov eax, ebx
cmp ebx, 0x15b0
jb 0x40103f
mov eax, 0x15b0
sub ebx, eax
mov dword [ebp + 8], ebx
cmp eax, 0x10
jl 0x4010ec
mov edx, eax
shr edx, 4
mov ebx, edx
neg ebx
shl ebx, 4
add eax, ebx
jmp 0x401060
movzx ebx, byte [esi]
add ecx, ebx
movzx ebx, byte [esi + 1]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 2]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 3]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 4]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 5]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 6]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 7]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 8]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 9]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xa]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xb]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xc]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xd]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xe]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xf]
add edi, ecx
add ecx, ebx
add edi, ecx
add esi, 0x10
dec edx
jne 0x401060
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4010fb
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
dec eax
jne 0x4010f0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
jne 0x401030
mov eax, edi
pop edi
shl eax, 0x10
pop esi
or eax, ecx
pop ebx
pop ebp
ret

Function at 0x401140
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x40114b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.00401160
Function at 0x401670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x401683
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x34]
sub ebx, dword [esi + 0x6c]
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x24]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x4016fd
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0041ae40
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x4016d1
sub eax, edi
jmp 0x4016d3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4016c2
mov ecx, dword [esi + 0x38]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x4016f0
sub eax, edi
jmp 0x4016f2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4016e1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4017b4
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x64]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x30]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x401723
mov ebx, ecx
test ebx, ebx
je 0x401778
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x401747
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call entry0
add esp, 4
jmp 0x401760
cmp eax, 2
jne 0x401766
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x401759
xor eax, eax
jmp 0x401763
mov edx, ebx
call fcn.00401160
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0041ae40
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x6c], ebx
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x4017a0
mov edx, dword [esi + 0x64]
add edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x4017b4
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x401680
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c80
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x42e2a4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [ebp - 0x118]
push ecx
push eax
push eax
lea edx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
push edx
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x405cfd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call fcn.004059e0
push eax
push str.select
push str._s:__s
call fcn.00414284
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041369d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x110]
push ecx
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.0041369d
mov esp, ebp
pop ebp
ret

Function at 0x405e70
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
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x42e2a4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
lea esi, [edi + 0x98]
mov ebx, 0x10
mov dword [esp + 0xc], 0
cmp dword [esi + 0x14], ebx
jb 0x405ea2
mov eax, dword [esi]
jmp 0x405ea4
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x405eba
lea esi, [esp + 0x10]
jmp 0x405ee9
cmp dword [esi + 0x14], ebx
jb 0x405ec1
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x405f78
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
test eax, eax
je 0x405f78
mov esi, dword [eax]
test esi, esi
je 0x405f78
mov ebx, dword [esp + 0xc]
lea ecx, [ecx]
movzx ecx, word [edi + 0xb4]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, 2
push ecx
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x1a], ax
mov edx, dword [esi]
push 1
push 2
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xb8], eax
test eax, eax
js 0x405f63
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
push esi
push str.connect___rtc_d
call fcn.00414284
add esp, 8
test esi, esi
jns 0x405f8b
push edi
call fcn.00405fb0
cmp dword [esp + 0xc], 0
je 0x405f78
mov esi, dword [ebx + 4]
add ebx, 4
test esi, esi
jne 0x405ef0
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041369d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041369d
mov esp, ebp
pop ebp
ret
Function at 0x4066c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
cmp dword [edi + 0xb8], 0
mov esi, eax
mov ebx, ecx
jge 0x4066f5
call fcn.00405e70
movzx eax, ax
push eax
push str.send___connect_rtc_d
mov dword [ebp - 4], eax
call fcn.00414284
add esp, 8
cmp dword [ebp - 4], 0
je 0x406740
test esi, esi
jle 0x406716
mov eax, dword [edi + 0xb8]
push 0
push esi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x406722
sub esi, eax
add ebx, eax
test esi, esi
jg 0x4066f9
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call fcn.004059e0
push eax
push str.send__
push str._s:__s
call fcn.00414284
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x42e2a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0xdc], 0
push esi
push edi
mov dword [ebp - 0x814], ebx
je 0x4067cd
mov esi, dword [ebx + 0xb8]
call fcn.00405c80
test al, al
je 0x4068f4
mov ecx, dword [ebx + 0xb8]
push 0
push 0x800
lea eax, [ebp - 0x808]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x80c], eax
test eax, eax
jns 0x4067e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call fcn.004059e0
push eax
push str.recv__
push str._s:__s
call fcn.00414284
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041369d
mov esp, ebp
pop ebp
ret
jne 0x40681e
lea ecx, [ebx + 0xcc]
call fcn.004076e0
mov esi, dword [eax]
push esi
call fcn.00406b60
test esi, esi
je 0x406808
push esi
call fcn.00406090
push esi
call fcn.0041440a
add esp, 4
lea eax, [ebx + 0xcc]
call fcn.00407720
push ebx
call fcn.00405fb0
jmp 0x4068f4
xor ebx, ebx
test eax, eax
jle 0x4068f4
mov edi, dword [ebp - 0x814]
cmp dword [edi + 0xdc], 0
je 0x4068f4
lea eax, [ebp - 0x820]
lea ecx, [edi + 0xcc]
call fcn.00407c70
mov ecx, dword [eax]
test ecx, ecx
jne 0x406856
xor edx, edx
jmp 0x406858
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x40686c
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov esi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x80c]
sub ecx, ebx
push ecx
lea edx, [ebp + ebx - 0x808]
push edx
push esi
call fcn.00406be0
cmp dword [esi + 8], 6
mov dword [ebp - 0x810], eax
jne 0x4068e2
push esi
call fcn.00406090
push esi
call fcn.0041440a
mov eax, dword [edi + 0xdc]
xor edx, edx
add esp, 4
cmp eax, edx
je 0x4068e2
mov esi, dword [edi + 0xd4]
inc dword [edi + 0xd8]
add esi, esi
add esi, esi
cmp esi, dword [edi + 0xd8]
ja 0x4068d1
mov dword [edi + 0xd8], edx
dec eax
mov dword [edi + 0xdc], eax
cmp eax, edx
jne 0x4068e2
mov dword [edi + 0xd8], edx
add ebx, dword [ebp - 0x810]
cmp ebx, dword [ebp - 0x80c]
jl 0x406828
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041369d
mov esp, ebp
pop ebp
ret
Function at 0x409b00
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x288
call fcn.004136e6
push 0x80
push 0
push 0xc30ef0
mov esi, eax
mov dword [ebp - 4], 0x288
call fcn.0041d2d0
mov edi, dword [section..rdata]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
call edi
cmp eax, 0x6f
jne 0x409b53
push esi
call fcn.004136ac
mov ecx, dword [ebp - 4]
push ecx
call fcn.004136e6
add esp, 8
mov esi, eax
lea edx, [ebp - 4]
push edx
push esi
call edi
test eax, eax
jne 0x409bb9
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push edx
add esi, 0x1b0
push esi
push str._s:_02x_02x_02x_02x_02x_02x
push 0x7f
push 0x80
push 0xc30ef0
call fcn.004137fe
add esp, 0x2c
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409bd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push 0x8302d0
mov dword [ebp - 4], 0
call dword [0x423160]
mov edi, eax
test edi, edi
jne 0x409c10
push str.1.0.1.0
push 0x3ff
push 0x400
push ebx
call fcn.004137fe
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.004146ab
mov ecx, dword [ebp - 4]
add esp, 4
mov esi, eax
push esi
push edi
push ecx
push 0x8302d0
call dword [0x423164]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0x4299bc
push esi
call dword [0x42315c]
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
movzx edx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 0x10]
push edx
movzx edx, word [eax + 0x12]
push ecx
push edx
push str._d._d._d._d
push 0x3ff
push 0x400
push ebx
call fcn.004137fe
add esp, 0x20
test esi, esi
je 0x409c7d
push esi
call fcn.00414de1
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret