joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4c0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [0xb084b8]
sub esp, 0x10
test ecx, ecx
jne 0x40b4fa
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov ecx, dword [0xb084b8]
add esp, 0xc
test ecx, ecx
jne 0x40b4fa
call fcn.0052ff20
mov ecx, dword [0xb084b8]
mov eax, dword [ecx + 0xd0]
push ebp
push esi
push edi
push eax
call fcn.00533cd0
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00538680
mov esi, eax
mov eax, dword [0xb084b8]
add esp, 4
test eax, eax
jne 0x40b548
mov ecx, dword [str.Null_Pointer]
push ecx
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
test eax, eax
jne 0x40b548
call fcn.0052ff20
mov ecx, dword [0xb084b8]
call fcn.00533d40
mov edx, dword [esp + 0x24]
push edx
push esi
push ebp
call fcn.0040fd60
mov eax, dword [0x5c69f0]
add esp, 0xc
inc eax
cmp eax, 0x1f
mov dword [0x5c69f0], eax
jbe 0x40b627
mov dword [0x5c69f0], 0
call fcn.00574f80
cdq
mov ecx, 0xa
mov esi, dword [0x59a75c]
idiv ecx
xor eax, eax
mov edi, edx
lea edx, [esp + 0xc]
add edi, 0x11
sub esi, edx
lea ecx, [esp + eax + 0xc]
inc eax
cmp eax, 0xf
mov dl, byte [esi + ecx]
not dl
mov byte [ecx], dl
jb 0x40b5a0
mov eax, dword [0x5b720c]
push 0
push 0x20000080
push 3
mov ecx, dword [eax]
lea eax, [edi + 1]
push 0
push 1
mov dl, byte [ecx]
mov ecx, 0xa
mov byte [esp + 0x20], dl
xor edx, edx
div ecx
push closesocket
add dl, 0x30
add al, 0x30
mov byte [esp + 0x2d], dl
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x30], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b609
call fcn.00574f80
mov dword [edi*4 + 0x5b7270], eax
jmp 0x40b627
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
not eax
sub eax, 0x12d687
push esi
mov dword [edi*4 + 0x5b7270], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00538800
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
je 0x40b63d
call fcn.0040fc80
mov eax, 0xaab48c
sub eax, 0x214
mov dword [0xab55a8], eax
mov eax, dword [0x59a788]
mov esi, dword [eax]
add esi, 0x21a4
mov dword [eax], esi
mov eax, dword [0x59a788]
mov dword [0xab55b8], 0x214
mov ecx, dword [eax]
cmp ecx, 0x12fcd1ed
jb 0x40b67c
cmp ecx, 0x142dfeed
jbe 0x40b69b
mov ecx, dword [0xab55a8]
push str.fail_5_n
mov byte [ecx + 0x214], 1
call fcn.00535ef0
mov eax, dword [0x59a788]
add esp, 4
mov esi, dword [eax]
push 0
add esi, 0xffffde5c
mov dword [eax], esi
call fcn.00419570
mov edi, eax
add esp, 4
test edi, edi
je 0x40b707
test byte [edi], 1
je 0x40b6f8
cmp byte [edi + 1], 7
jne 0x40b6f8
push 0
call fcn.00410970
mov esi, eax
add esp, 4
test esi, esi
je 0x40b6f5
mov edx, dword [edi + 4]
mov ecx, esi
push edx
call fcn.00412fa0
test al, al
je 0x40b6e6
mov ecx, esi
call fcn.00411380
push esi
call fcn.00410970
mov esi, eax
add esp, 4
test esi, esi
jne 0x40b6d0
and byte [edi], 0xfe
push edi
call fcn.00419570
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b6b5
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x4261b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x581713
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x5896b0
push 0
push 0x425b50
mov dword [esp + 0x18], 1
call fcn.004263b0
push 0
push 0x425b30
mov ecx, esi
call fcn.004263b0
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x426214
mov eax, dword [str.Null_Pointer]
push eax
push 0xde
push str.D:Skate4GelObjectobjman.cpp
call fcn.00401090
add esp, 0xc
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x426222
mov edx, dword [ecx]
push 1
call dword [edx + 8]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
lea eax, [esi + 0x20]
mov dword [eax], 0x58962c
mov dword [ecx + 0xc], edx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
lea eax, [esi + 4]
mov dword [esi], 0x589688
pop esi
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov dword [eax], 0x58962c
mov dword [ecx + 0xc], edx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov ecx, dword [esp + 4]
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x429d30
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov dword [ebp], 0x5896f4
mov eax, dword [0x5cd298]
inc eax
cmp eax, 0x29
mov dword [0x5cd298], eax
jbe 0x429e00
mov dword [0x5cd298], ebx
call fcn.00574f80
cdq
mov ecx, 0x14
mov edi, dword [0x59a75c]
idiv ecx
xor eax, eax
mov esi, edx
lea edx, [esp + 0x10]
add esi, 7
sub edi, edx
lea ecx, [esp + eax + 0x10]
inc eax
cmp eax, 0xf
mov dl, byte [edi + ecx]
not dl
mov byte [ecx], dl
jb 0x429d7c
mov eax, dword [0x5b720c]
push ebx
push 0x20000080
push 3
mov ecx, dword [eax]
lea eax, [esi + 1]
push ebx
push 1
mov dl, byte [ecx]
mov ecx, 0xa
mov byte [esp + 0x24], dl
xor edx, edx
div ecx
push closesocket
add dl, 0x30
add al, 0x30
mov byte [esp + 0x31], dl
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x34], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x429de3
call fcn.00574f80
mov dword [esi*4 + 0x5b7270], eax
jmp 0x429e00
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
not eax
sub eax, 0x12d687
push edi
mov dword [esi*4 + 0x5b7270], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x14
mov dword [ebp + 4], ebx
mov byte [ebp + 0xc], bl
call fcn.00401290
add esp, 4
cmp eax, ebx
je 0x429e28
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
mov dword [eax], 0x5896ec
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
jmp 0x429e2a
xor eax, eax
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x429e46
mov eax, dword [str.Null_Pointer]
push eax
push 0x69
push str.D:Skate4GelModulemodule.cpp
call fcn.00401090
add esp, 0xc
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x42d2b0
Capabilities:
Print debug messages
Set socket configuration

Disassembly:
sub esp, 0x404
push esi
mov esi, ecx
mov dword [esp + 4], 1
test byte [esi + 0x1f54], 8
jne 0x42d38e
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x1428], eax
je 0x42d2fb
lea edx, [esp + 4]
push edx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x42d330
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esi, 0x1f88
push eax
push esi
lea eax, [esp + 0x10]
push str._s:_Error__d_n
push eax
call fcn.0057492c
add esp, 0x10
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop esi
add esp, 0x404
ret
test byte [esi + 0x1f54], 1
je 0x42d38e
mov eax, dword [esi + 0x1428]
lea edx, [esp + 4]
push 4
push edx
push 0x20
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x42d38e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esi, 0x1f88
push eax
push esi
lea ecx, [esp + 0x10]
push str._s:_Error__d_n
push ecx
call fcn.0057492c
add esp, 0x10
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop esi
add esp, 0x404
ret
push edi
xor edi, edi
mov dword [esi + 0x1450], edi
mov dword [esi + 0x1400], edi
mov dword [esi + 0x13fc], edi
mov dword [esi + 0x1404], edi
mov dword [esi + 0x1408], edi
mov dword [esi + 0x140c], edi
mov dword [esi + 0x1410], edi
add esi, 0xc
mov ecx, esi
call fcn.00431760
push 0x80
push edi
push 3
push 0x431c20
push 8
mov ecx, esi
call fcn.00431620
push 0x80
push edi
push 2
push 0x4324a0
push 7
mov ecx, esi
call fcn.00431620
push 0x80
push edi
push 2
push 0x431f00
push 0x10
mov ecx, esi
call fcn.00431620
push 0x80
push edi
push 2
push 0x431f00
push 0x11
mov ecx, esi
call fcn.00431620
push 0x80
push edi
push 2
push 0x432990
push 1
mov ecx, esi
call fcn.00431620
push 0x80
push edi
push 2
push 0x4329d0
push 2
mov ecx, esi
call fcn.00431620
pop edi
mov al, 1
pop esi
add esp, 0x404
ret
Function at 0x42d2b6
Capabilities:
Create udp socket
Print debug messages
Set socket configuration

Disassembly:
sub esp, 0x404
push esi
mov esi, ecx
mov dword [esp + 4], 1
test byte [esi + 0x1f54], 8
jne 0x42d38e
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x1428], eax
je 0x42d2fb
lea edx, [esp + 4]
push edx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x42d330
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esi, 0x1f88
push eax
push esi
lea eax, [esp + 0x10]
push str._s:_Error__d_n
push eax
call fcn.0057492c
add esp, 0x10
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop esi
add esp, 0x404
ret
test byte [esi + 0x1f54], 1
je 0x42d38e
mov eax, dword [esi + 0x1428]
lea edx, [esp + 4]
push 4
push edx
push 0x20
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x42d38e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esi, 0x1f88
push eax
push esi
lea ecx, [esp + 0x10]
push str._s:_Error__d_n
push ecx
call fcn.0057492c
add esp, 0x10
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop esi
add esp, 0x404
ret
push edi
xor edi, edi
mov dword [esi + 0x1450], edi
mov dword [esi + 0x1400], edi
mov dword [esi + 0x13fc], edi
mov dword [esi + 0x1404], edi
mov dword [esi + 0x1408], edi
mov dword [esi + 0x140c], edi
mov dword [esi + 0x1410], edi
add esi, 0xc
mov ecx, esi
call fcn.00431760
push 0x80
push edi
push 3
push 0x431c20
push 8
mov ecx, esi
call fcn.00431620
push 0x80
push edi
push 2
push 0x4324a0
push 7
mov ecx, esi
call fcn.00431620
push 0x80
push edi
push 2
push 0x431f00
push 0x10
mov ecx, esi
call fcn.00431620
push 0x80
push edi
push 2
push 0x431f00
push 0x11
mov ecx, esi
call fcn.00431620
push 0x80
push edi
push 2
push 0x432990
push 1
mov ecx, esi
call fcn.00431620
push 0x80
push edi
push 2
push 0x4329d0
push 2
mov ecx, esi
call fcn.00431620
pop edi
mov al, 1
pop esi
add esp, 0x404
ret
Function at 0x42d460
Capabilities:
Get local ipv4 addresses
Get socket information
Print debug messages

Disassembly:
sub esp, 0x414
xor eax, eax
push ebx
push ebp
mov dword [esp + 8], eax
push esi
mov esi, ecx
mov ecx, dword [esp + 0x428]
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x1440]
mov word [esp + 0x12], ax
call fcn.00433df0
cmp eax, 1
je 0x42d4b3
mov edx, dword [esp + 0x428]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x1428]
mov ebp, dword [sym.imp.WS2_32.dll_bind]
xor eax, eax
lea ecx, [esp + 0x10]
push 0x10
mov dword [esp + 0x1c], eax
push ecx
push edx
mov dword [esp + 0x28], eax
call ebp
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x42d59a
call ebx
cmp eax, 0x2740
jne 0x42d564
lea edi, [esi + 0x1f88]
call ebx
push eax
push edi
lea eax, [esp + 0x2c]
push str._s:_Error__d_n
push eax
call fcn.0057492c
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [esi + 0x1428]
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x42d59a
call ebx
push eax
push edi
lea ecx, [esp + 0x2c]
push str._s:_Error__d_n
push ecx
call fcn.0057492c
add esp, 0x10
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret 8
call ebx
add esi, 0x1f88
push eax
push esi
lea eax, [esp + 0x2c]
push str._s:_Error__d_n
push eax
call fcn.0057492c
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret 8
mov ecx, dword [esi + 0x1428]
lea edx, [esp + 0x20]
lea eax, [esi + 0x142c]
push edx
push eax
push ecx
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x42d5f6
call ebx
add esi, 0x1f88
push eax
push esi
lea edx, [esp + 0x2c]
push str._s:_Error__d_n
push edx
call fcn.0057492c
add esp, 0x10
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret 8
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x414
ret 8
Function at 0x42dbe0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x580
push ebp
mov ebp, dword [esp + 0x590]
push esi
cmp ebp, 3
push edi
jge 0x42dc03
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x580
ret 0xc
test byte [ecx + 0x1f54], 0x20
jne 0x42dc38
mov esi, dword [esp + 0x590]
mov edi, dword [esp + 0x594]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0x580
ret 0xc
mov eax, dword [esp + 0x590]
add ebp, 0xfffffffe
mov ecx, ebp
lea edi, [esp + 0xc]
mov edx, ecx
lea esi, [eax + 2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
mov bx, word [eax]
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
jle 0x42dc71
mov ecx, ebp
mov dl, byte [eax]
xor dl, bl
mov byte [eax], dl
inc eax
dec ecx
jne 0x42dc67
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.004068f0
mov ecx, eax
add esp, 8
shr ecx, 0x10
add ecx, eax
cmp cx, bx
pop ebx
je 0x42dc9a
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x580
ret 0xc
mov edi, dword [esp + 0x594]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0x580
ret 0xc

Function at 0x430360
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
sub esp, 0x14
xor eax, eax
push ebx
mov dword [esp + 8], eax
mov ebx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 8], ebx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x1c]
mov word [esp + 0xa], ax
mov al, byte [ebx + 0x1f54]
mov dword [esp + 0xc], edx
test al, 0x20
je 0x430412
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x30]
push edi
push esi
push ebp
lea edi, [ebx + 0x1458]
call fcn.004068f0
mov ecx, eax
add esp, 8
shr ecx, 0x10
add ecx, eax
lea eax, [edi + 2]
test esi, esi
mov word [edi], cx
jle 0x4303e4
sub ebp, eax
mov edx, esi
mov bl, byte [eax + ebp]
xor bl, cl
mov byte [eax], bl
inc eax
dec edx
jne 0x4303d5
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx + 0x1428]
lea eax, [esp + 0x14]
push 0x10
push eax
add esi, 2
push ecx
push esi
push edi
push edx
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
cmp eax, 0xffffffff
pop ebp
setne al
pop ebx
add esp, 0x14
ret 0x14
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 8]
push 0x10
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [ebx + 0x1428]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
pop ebx
setne al
add esp, 0x14
ret 0x14
Function at 0x430640
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push esi
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esi, 0x1f88
push eax
push esi
lea eax, [esp + 0xc]
push str._s:_Error__d_n
push eax
call fcn.0057492c
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
add esp, 0x400
ret

Function at 0x431020
Capabilities:
Connect socket

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor eax, eax
lea edi, [esi + 0x1fd8]
mov edx, dword [esp + 0x18]
mov ecx, edi
push edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x1fda], ax
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x1fe0]
xor ecx, ecx
mov dword [esi + 0x1fdc], eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0042e420
push eax
push str._s_Connecting_to_server_n
call fcn.00405b60
mov ebx, dword [sym.imp.WS2_32.dll_connect]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 8
mov eax, dword [esi + 0x1428]
push 0x10
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4310b4
call ebp
cmp eax, 0x2733
je 0x43108a
mov ecx, esi
call fcn.00430640
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
mov ecx, dword [esp + 0x14]
mov al, 1
test ecx, ecx
jne 0x4310cc
mov byte [esi + 0x143c], 0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov byte [esi + 0x143c], al
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x433880
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x581ebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], ebx
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], esi
mov dword [esi], 0x5897c0
lea edi, [esi + 0x14]
push ebx
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x1b0], ebx
call fcn.00434220
lea eax, [esp + 0x10]
mov dword [edi], 0x5897c0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4339a4
mov ax, word [esp + 0x10]
cmp al, 2
jne 0x4339a4
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x4339a4
xor eax, eax
mov edx, eax
and edx, 0xff
inc eax
cmp eax, 0xff
mov byte [edx + esi + 0x28], bl
jl 0x433909
mov al, 1
push str._Unknown_
mov byte [esi + 0x33], al
mov byte [esi + 0x30], al
lea eax, [esi + 0x130]
push eax
call fcn.0057492c
lea ecx, [esi + 0x170]
push str.192.168.0.1
push ecx
call fcn.0057492c
lea edx, [esi + 0x180]
push str.255.255.255.0
push edx
call fcn.0057492c
add esp, 0x18
mov dword [esi + 0x290], ebx
mov dword [esi + 0x128], ebx
mov byte [esi + 0x299], bl
mov byte [esi + 0x298], bl
mov byte [esi + 0x29a], bl
mov dword [esi + 0x294], ebx
mov dword [esi + 0x29c], 5
mov dword [esi + 0x2a0], ebx
lea eax, [esi + 0x140]
mov ecx, 3
mov byte [eax], bl
add eax, 0x10
dec ecx
jne 0x43399a
jmp 0x4339aa
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1a0]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret
Function at 0x433da0
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_gethostbyname]
push str.localhost
call edi
mov esi, eax
test esi, esi
je 0x433de0
mov eax, dword [esi]
push eax
call edi
test eax, eax
je 0x433dcf
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
pop edi
pop esi
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
pop edi
pop esi
ret
pop edi
mov eax, str._Unknown_
pop esi
ret
Function at 0x43c6f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
lea edx, [esp + 8]
push ebx
mov ebx, ecx
push esi
push 0x10
mov eax, dword [ebx + 0x34]
push edx
push 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x43c7a0
push ebp
push edi
lea ebp, [ebx + 0x38]
mov dword [esp + 0x10], esi
lea edx, [esp + 0x14]
xor esi, esi
mov si, word [ebx + 6]
push edx
xor edx, edx
mov eax, dword [0xaab478]
mov dx, word [ebx + 8]
push 1
imul edx, esi
mov ecx, dword [eax]
push 0
push 0
push edx
push eax
call dword [ecx + 0x5c]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [ebp], eax
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x2c]
xor ecx, ecx
xor eax, eax
mov cx, word [ebx + 8]
mov ax, word [ebx + 6]
imul ecx, eax
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x43c720
mov esi, dword [esp + 0x24]
pop edi
pop ebp
mov eax, dword [ebx + 0x34]
push eax
mov edx, dword [eax]
call dword [edx + 0x30]
inc esi
mov word [ebx + 0xc], si
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x440d70
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x440dd0
mov eax, dword [0xa72aec]
push esi
mov esi, dword [esp + 0xc]
cmp eax, esi
je 0x440d9d
mov eax, dword [0xaab478]
push esi
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf4]
mov dword [0xa72aec], esi
mov ecx, dword [esp + 0x10]
pop esi
test ecx, ecx
je 0x440dd0
mov eax, dword [0xaab478]
push ecx
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x108]
test eax, eax
push 0
je 0x440dc2
call fcn.005755ef
mov eax, dword [0xaab478]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x110]
ret

Function at 0x446740
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0xb084b8]
sub esp, 0x100
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, 0x5f5e100
test eax, eax
jne 0x446780
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
test eax, eax
jne 0x446780
call fcn.0052ff20
mov ebp, dword [0xb084b8]
mov ecx, ebp
call fcn.005341e0
mov esi, eax
test esi, esi
je 0x4467c3
mov ecx, dword [esp + 0x114]
push ecx
mov ecx, esi
call fcn.00532f20
test eax, eax
je 0x4467b1
mov ecx, dword [eax + 4]
cmp ecx, ebx
jae 0x4467b1
mov ebx, ecx
mov edi, eax
push esi
mov ecx, ebp
call fcn.005341f0
mov esi, eax
test esi, esi
jne 0x446793
test edi, edi
jne 0x4467d9
push str.Block_Not_Found_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov eax, dword [0x58bb28]
mov edx, dword [edi + 4]
push eax
add eax, edi
push edx
push eax
lea eax, [esp + 0x1c]
push str.Block_found__addr___p__size___d__Header___d__n
push eax
call fcn.0057492c
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [edi + 0x18]
test ebx, ebx
je 0x4468c8
mov ebp, dword [ebx + 0x20]
mov edi, 0x1a
mov eax, dword [ebp]
dec edi
and eax, 0xff000000
add ebp, 4
cmp eax, 0xc000000
jne 0x446867
mov al, byte [0x5a0114]
mov esi, 0x5a0114
test al, al
je 0x44683f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x446837
cmp byte [esi - 1], 0x3a
je 0x446855
cmp esi, 0x5a0114
jbe 0x446855
mov al, byte [esi - 2]
dec esi
cmp al, 0x3a
jne 0x446845
push esi
push 0x5a0114
call fcn.00574fa0
add esp, 8
cmp eax, esi
jne 0x44686d
test edi, edi
jne 0x446816
jmp 0x44688f
push 0x5a0114
lea edx, [esp + 0x14]
push str.CLASS:__s_n
push edx
call fcn.0057492c
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebx + 0x18]
lea esi, [ebx + 0x14]
test eax, eax
je 0x4468c8
mov ecx, dword [esi]
push 0x5a0114
push ecx
lea edx, [esp + 0x18]
push str._p:__s_n
push edx
call fcn.0057492c
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 8]
add esi, 4
test eax, eax
jne 0x446899
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x448180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5824e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00463d30
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], edi
call fcn.00401d20
mov ecx, dword [esp + 0xc]
mov eax, 0x3f800000
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], 0xdeadbeef
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], eax
mov dword [esi], 0x589938
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov byte [esi + 0x40], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret