joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429b60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call fcn.00434630
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x429c30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x429bd4
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x140], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004329c0
push str.Failed_to_start_thread
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + 0x14]
call edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x28]
call eax
xor al, al
jmp 0x429c27
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004329c0
push str.Task_started_in_background_thread.
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [ebp - 4]
push ecx
push str.createThread
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004353e0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + 0x28]
call edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x431a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600f22
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6e8da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.ClsBgTask.0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 8], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 9], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xa], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00438a40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x28], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00418240
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xb8
call fcn.00403900
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xd8], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xe0
call fcn.00434850
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x1a8
call fcn.00477f90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x434640
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c4], 0x190
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1c0]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x434681
mov byte [ebp - 0x1c0], 0
lea edx, [ebp - 0x1c0]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041cdf0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret

Function at 0x4346c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x84], 0x76
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x434701
mov byte [ebp - 0x80], 0
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041cdf0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret
Function at 0x43f030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp dword [ebp + 0xc], 0
je 0x43f054
cmp dword [ebp + 8], 0
jne 0x43f073
cmp dword [ebp + 0x18], 0
je 0x43f06c
push str.NULL_buf_or_bufSize
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x43f16d
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x43f0e9
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f0d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26
jne 0x43f0b9
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x43f16d
cmp dword [ebp + 0x18], 0
je 0x43f0cb
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00435930
xor al, al
jmp 0x43f16d
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x43f0e2
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x43f16d
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0
je 0x43f153
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.005e26e6
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jne 0x43f120
mov al, 1
jmp 0x43f16d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.005e24fb
add esp, 4
test eax, eax
je 0x43f147
cmp dword [ebp + 0x18], 0
je 0x43f141
mov ecx, dword [ebp + 0x18]
call fcn.00435890
xor al, al
jmp 0x43f16d
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x43f16d
cmp dword [ebp + 0x18], 0
je 0x43f16b
push str.No_file_is_open.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
mov esp, ebp
pop ebp
ret 0x14
Function at 0x43f180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.0043e9d0
movzx eax, al
test eax, eax
jne 0x43f1b7
cmp dword [ebp + 0x18], 0
je 0x43f1b0
push str.Failed_to_write_because_file_is_not_open.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x43f310
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
je 0x43f1d3
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [ebp - 8], 0x989680
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x43f30e
mov ecx, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1c]
jl 0x43f20b
jg 0x43f203
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x20]
jbe 0x43f20b
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
jmp 0x43f211
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x43f285
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43f24d
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
je 0x43f283
cmp dword [ebp + 0x18], 0
je 0x43f27c
push 1
push str.WriteFileError
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x24]
call edx
mov ecx, dword [ebp + 0x18]
call fcn.00435890
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x28]
call eax
xor al, al
jmp 0x43f310
jmp 0x43f2ce
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 0
je 0x43f2ce
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.005ddcd3
add esp, 0x10
cmp eax, 1
je 0x43f2c8
cmp dword [ebp + 0x18], 0
je 0x43f2c4
push str.fwrite_failed.
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x43f310
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x43f309
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp + 0x14]
add ecx, dword [eax]
mov eax, dword [eax + 4]
adc eax, edx
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x43f1da
mov al, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x43f320
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602298
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6e8da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 4], 0xffffffff
je 0x43f3c2
push 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x43f3bd
cmp dword [ebp + 8], 0
je 0x43f3bd
lea ecx, [ebp - 0x3c]
call fcn.0041d9d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00420c80
lea ecx, [ebp - 0x3c]
call fcn.004b5930
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
push str.Failed_to_get_file_size__32_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041dda0
mov eax, dword [ebp - 0x10]
jmp 0x43f3ea
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 8], 0
je 0x43f3e7
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
push eax
call fcn.005e725b
add esp, 4
push eax
call fcn.005e2792
add esp, 4
jmp 0x43f3ea
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x43f400
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602a88
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6e8da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
cmp dword [eax + 4], 0xffffffff
je 0x43f4d0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x43f4b2
cmp dword [ebp + 8], 0
je 0x43f4aa
lea ecx, [ebp - 0x4c]
call fcn.0041d9d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00420c80
lea ecx, [ebp - 0x4c]
call fcn.004b5930
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
push str.Failed_to_get_file_size__64_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041dda0
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x43f4fb
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0043f530
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x43f4fb
mov eax, dword [ebp - 0x50]
cmp dword [eax + 8], 0
je 0x43f4f5
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 8]
push edx
call fcn.005e725b
add esp, 4
push eax
call fcn.005e28ab
add esp, 4
jmp 0x43f4fb
or eax, 0xffffffff
or edx, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x493ae0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [0x80204c]
test eax, eax
jne 0x493bce
push 0x400
call fcn.005b9020
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [0x802050], ecx
mov dword [ebp - 4], 0x4c11db7
mov dword [ebp - 8], 0
jmp 0x493b27
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xff
ja 0x493bc7
push 8
mov eax, dword [ebp - 8]
push eax
call fcn.00493c00
add esp, 8
shl eax, 0x18
mov ecx, dword [ebp - 8]
mov edx, dword [0x802050]
mov dword [edx + ecx*4], eax
mov dword [ebp - 0xc], 0
jmp 0x493b63
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jae 0x493ba0
mov ecx, dword [ebp - 8]
mov edx, dword [0x802050]
mov eax, dword [edx + ecx*4]
shl eax, 1
mov ecx, dword [ebp - 8]
mov edx, dword [0x802050]
mov ecx, dword [edx + ecx*4]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 4]
xor eax, ecx
mov edx, dword [ebp - 8]
mov ecx, dword [0x802050]
mov dword [ecx + edx*4], eax
jmp 0x493b5a
push 0x20
mov edx, dword [ebp - 8]
mov eax, dword [0x802050]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00493c00
add esp, 8
mov edx, dword [ebp - 8]
mov ecx, dword [0x802050]
mov dword [ecx + edx*4], eax
jmp 0x493b1e
mov byte [0x80204c], 1
mov esp, ebp
pop ebp
ret

Function at 0x4aecb0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606091
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov dword [eax], vtable.AesCrypt.0
mov ecx, dword [ebp - 0x24]
add ecx, 8
call fcn.0041d9d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
call fcn.00403900
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0x50
call fcn.00403900
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x70], 0x80
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x74], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x78], 0
push 0x10
push 0
lea ecx, [ebp - 0x20]
push ecx
call fcn.005dfe60
add esp, 0xc
push 0x10
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x50
call fcn.00405e30
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
call fcn.00405e30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret
Function at 0x4b4df0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4b4dfe
or eax, 0xffffffff
jmp 0x4b4e3c
cmp dword [ebp + 0x10], 0
jne 0x4b4e09
or eax, 0xffffffff
jmp 0x4b4e3c
mov eax, dword [ebp + 0x10]
push eax
call fcn.005dfc40
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4b4e39
xor eax, eax
jmp 0x4b4e3c
or eax, 0xffffffff
pop ebp
ret
Function at 0x4c3cf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 8]
call fcn.0041b8c0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0xa4], 0xffffffff
je 0x4c3da6
mov dword [ebp - 8], 0x10
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4c3d52
cmp dword [ebp - 4], 0
jge 0x4c3d74
push str.Failed_to_getsockname
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004c35c0
add esp, 4
xor al, al
jmp 0x4c3dba
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, dword [ebp + 8]
call fcn.00420510
movzx ecx, word [ebp - 0x1a]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov al, 1
jmp 0x4c3dba
push 0x669b20
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c3dd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 8]
call fcn.0041b8c0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0xa4], 0xffffffff
je 0x4c3e87
mov dword [ebp - 8], 0x1c
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4c3e32
cmp dword [ebp - 4], 0
jge 0x4c3e54
push str.Failed_to_getsockname_ipv6
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004c35c0
add esp, 4
xor al, al
jmp 0x4c3e9b
mov ecx, dword [ebp + 8]
call fcn.0041b8c0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x17
call fcn.004c1a00
add esp, 0xc
movzx ecx, word [ebp - 0x26]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov al, 1
jmp 0x4c3e9b
push str.Cannot_get_socket_name:_INVALID_SOCKET.
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c8610
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x134], ecx
mov eax, dword [ebp - 0x134]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x4c8648
mov ecx, dword [ebp - 0x134]
mov byte [ecx + 0xa0], 0
mov edx, dword [ebp - 0x134]
movzx eax, byte [edx + 0xa0]
test eax, eax
jne 0x4c8660
xor al, al
jmp 0x4c8818
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x11c], 0
jmp 0x4c8699
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ebp - 0x110]
jae 0x4c86c6
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp + eax*4 - 0x10c]
cmp edx, dword [ecx + 0xa4]
jne 0x4c86c4
jmp 0x4c86c6
jmp 0x4c868a
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x110]
jne 0x4c8705
cmp dword [ebp - 0x110], 0x40
jae 0x4c8705
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0xa4]
mov dword [ebp + ecx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
jne 0x4c867e
mov dword [ebp - 8], 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4c87fe
push 2
push 1
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x4c87b5
push 2
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0xa4], 0xffffffff
mov edx, dword [ebp - 0x134]
mov byte [edx + 0xa0], 0
xor al, al
jmp 0x4c8818
cmp dword [ebp - 0x120], 0xffffffff
jne 0x4c87f8
mov eax, dword [ebp + 8]
push eax
call fcn.004c35c0
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0x2746
je 0x4c87ee
cmp dword [ebp - 0x130], 0x2745
jne 0x4c87f2
xor al, al
jmp 0x4c8818
mov al, 1
jmp 0x4c8818
mov al, 1
jmp 0x4c8818
cmp dword [ebp - 4], 0
jge 0x4c8816
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c35c0
add esp, 4
mov al, 1
jmp 0x4c8818
mov al, 1
mov ecx, dword [ebp - 0x124]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret 4
Function at 0x522040
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xdc]
add ecx, 8
call fcn.004b5930
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x522103
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x52209b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xdc]
mov eax, dword [ecx]
mov dword [edx + 0x64], eax
jmp 0x5220a8
mov ecx, dword [ebp - 0xdc]
mov dword [ecx + 0x64], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 3]
push ecx
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 2]
push eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 1]
push edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
push ecx
push 0x6849b0
lea edx, [ebp - 0xd8]
push edx
call fcn.005dc59d
add esp, 0x18
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0xdc]
add ecx, 0x38
call fcn.00420510
jmp 0x522111
mov ecx, dword [ebp - 0xdc]
add ecx, 0x38
call fcn.0041b8c0
mov ecx, dword [ebp - 0xdc]
mov byte [ecx + 0x60], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret