joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417320
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x41735b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x2c4
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41736d
pop edi
mov eax, 0x11174
pop esi
mov esp, ebp
pop ebp
ret
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x417383
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4173a2
call esi
test eax, eax
je 0x41737b
call esi
pop edi
add eax, 0x1d4c0
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4173b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [ebp - 1]
mov esi, ebx
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp ebx, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x4173eb
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x26f
cmp dword [ebp + 8], 0
mov eax, 0x564320
pop esi
cmovne eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4175a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [ebp - 1]
mov esi, ebx
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp ebx, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x4175db
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x2a7
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4175ed
pop esi
mov eax, 0x11174
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
jne 0x417608
pop esi
mov eax, 0x1117e
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00418190
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x417624
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x102
jne 0x417636
pop esi
mov eax, 0x11179
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x417655
call esi
test eax, eax
je 0x41761c
call esi
pop esi
add eax, 0x1d4c0
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417660
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x417673
mov eax, 0x11174
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
jne 0x4176a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41769a
call esi
test eax, eax
je 0x4176a2
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4176b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x4176eb
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x3b3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TlsFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417710
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x417727
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x417747
call esi
test eax, eax
jne 0x41773d
pop esi
pop ebp
ret
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x417750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.0041cd60
add esp, 4
mov esi, edx
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 0xc]
push 0x44
push 0
push edi
call fcn.00502bf0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [edi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0x24], eax
lea ecx, [ebp + 0xb]
mov dword [edi + 0x38], ecx
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0
test ebx, ebx
je 0x4177b6
cmp esi, 0x1f
jae 0x4177b6
push eax
push ebx
jmp 0x4177bc
push eax
push str.thr_p
push 0x20
push edi
call fcn.00403590
add esp, 0x10
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4177f3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x417801
call esi
test eax, eax
je 0x4177f3
call esi
add eax, 0x1d4c0
jne 0x4177fa
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x41793b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x2d2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x419800
Capabilities:
Get hostname

Disassembly:
push 0x1e2
push 0x56dce4
call fcn.00417190
add esp, 8
cmp dword [0x5b8668], 0
jne 0x41986f
push 0xfe
push 0x5b8568
mov dword [0x5b8668], 0x5b8568
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x419851
mov eax, dword [0x5b8668]
mov byte [eax], 0
mov eax, 0x5b8668
mov dword [0x5b866c], 0
ret
mov ecx, 0x5b8568
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419860
sub ecx, edx
mov dword [0x5b866c], ecx
mov eax, 0x5b8668
ret

Function at 0x419de0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0x36e
push 0x56dce4
call fcn.00417190
add esp, 8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x419e2e
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x419e28
call esi
test eax, eax
jne 0x419e1e
pop esi
pop ebp
ret
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0x2b1
push 0x56dce4
call fcn.00417190
add esp, 8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x419eee
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x419ee8
call esi
test eax, eax
jne 0x419ede
pop esi
pop ebp
ret
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x2f8
push 0x56dce4
call fcn.00417190
mov eax, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x41a020
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41a020
push dword [ebp + 0x14]
push dword [esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esi], eax
test eax, eax
jns 0x41a01b
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x41a015
call esi
test eax, eax
je 0x41a01b
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
mov eax, 0x11174
pop esi
pop ebp
ret
Function at 0x41a030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x30d
push 0x56dce4
call fcn.00417190
mov eax, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x41a096
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41a096
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [esi], eax
test eax, eax
jns 0x41a091
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x41a08b
call esi
test eax, eax
je 0x41a091
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
mov eax, 0x11174
pop esi
pop ebp
ret

Function at 0x41a0a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x2c2
push 0x56dce4
call fcn.00417190
mov esi, dword [ebp + 0x10]
add esp, 8
test esi, esi
jne 0x41a0c5
mov eax, 0x11174
pop esi
pop ebp
ret
push dword [ebp + 0x14]
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi], eax
test eax, eax
jns 0x41a0fe
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x41a0f8
call esi
test eax, eax
je 0x41a0fe
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x41a110
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x2dd
push 0x56dce4
call fcn.00417190
mov esi, dword [ebp + 0x10]
add esp, 8
test esi, esi
jne 0x41a135
mov eax, 0x11174
pop esi
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], eax
test eax, eax
jns 0x41a174
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x41a16e
call esi
test eax, eax
je 0x41a174
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x41a180
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0x339
push 0x56dce4
call fcn.00417190
mov ecx, dword [ebp + 0x10]
add esp, 8
movzx edx, cx
and ecx, 0xff00
mov eax, edx
or eax, 0xffff0000
cmp ecx, 0xff00
push dword [ebp + 0x18]
cmovne eax, edx
push dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x41a1f0
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x41a1ea
call esi
test eax, eax
jne 0x41a1e0
pop esi
pop ebp
ret
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41a200
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0x353
xor ebx, ebx
xor esi, esi
push 0x56dce4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
call fcn.00417190
mov eax, dword [ebp + 0xc]
add esp, 8
test eax, eax
jne 0x41a236
pop esi
mov eax, 0x11174
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [eax], ebx
jbe 0x41a2d9
add eax, 0xc
mov dword [ebp - 8], eax
push edi
cmp ebx, 4
jae 0x41a2d8
mov esi, dword [eax + 4]
mov edi, dword [eax]
movzx ebx, word [eax - 4]
movzx eax, word [eax - 8]
push 0x339
push 0x56dce4
mov dword [ebp - 0x10], eax
call fcn.00417190
add esp, 8
mov ecx, ebx
mov eax, ebx
and ebx, 0xff00
or eax, 0xffff0000
cmp ebx, 0xff00
push esi
push edi
cmovne eax, ecx
push eax
mov eax, dword [ebp - 0x10]
movzx eax, ax
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x41a2ba
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x41a2e1
call esi
test eax, eax
je 0x41a2ba
call esi
add eax, 0x1d4c0
jne 0x41a2e4
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
inc ebx
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
cmp ebx, dword [ecx]
jb 0x41a245
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
mov esi, eax
mov dword [ebp - 4], esi
push dword [ecx - 4]
push str.Warning:_error_applying_sock_opt__d
push eax
push str.sock_bsd.c
call fcn.00415570
add esp, 0x10
jmp 0x41a2bd
Function at 0x41af20
Capabilities:
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5b66c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x35
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
push 0
push eax
push esi
call fcn.0041ba60
mov cx, word [ebp - 0x60]
add esp, 0x10
mov dx, word [0x56dc5c]
cmp cx, word [0x56dc58]
je 0x41af70
cmp cx, dx
je 0x41af70
xor eax, eax
jmp 0x41af7c
cmp cx, dx
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x5c]
cmovne eax, ecx
push eax
push edi
push esi
call fcn.00419a60
add esp, 0xc
test eax, eax
je 0x41afe0
cmp dword [ebp + 0x14], 0
je 0x41afa3
push 0x35
push edi
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.0041ba60
add esp, 0x10
jmp 0x41afd8
movzx eax, word [0x56dc58]
mov edx, str.1.1.1.1
cmp esi, eax
mov ecx, str.1::1
cmove ecx, edx
push ecx
call fcn.0041cd60
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push 0x35
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x70], edx
push eax
push esi
call fcn.0041ba60
add esp, 0x14
test eax, eax
jne 0x41b126
lea eax, [ebp - 0x64]
push eax
movzx eax, word [0x56dc6c]
push 0
push eax
push esi
call fcn.0041a360
add esp, 0x10
test eax, eax
jne 0x41b126
mov cx, word [ebp - 0x60]
mov dx, word [0x56dc5c]
cmp cx, word [0x56dc58]
je 0x41b018
cmp cx, dx
jne 0x41b028
cmp cx, dx
mov eax, 0x10
mov esi, 0x1c
cmove eax, esi
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
call fcn.00419de0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41b05c
push dword [ebp - 0x64]
call fcn.00419d90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0x1c
call fcn.00419ea0
add esp, 0xc
mov esi, eax
push dword [ebp - 0x64]
call fcn.00419d90
test esi, esi
jne 0x41b046
push 0x40
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00502bf0
push edi
call fcn.0041b710
push edi
mov esi, eax
call fcn.0041b750
mov edi, eax
lea edx, [ebp - 0x44]
add esp, 0x18
sub edi, 4
jb 0x41b0c1
nop dword [eax + eax]
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x41b0c6
add esi, 4
add edx, 4
sub edi, 4
jae 0x41b0b0
cmp edi, 0xfffffffc
je 0x41b121
mov al, byte [esi]
cmp al, byte [edx]
jne 0x41b0f3
cmp edi, 0xfffffffd
je 0x41b121
mov al, byte [esi + 1]
cmp al, byte [edx + 1]
jne 0x41b0f3
cmp edi, 0xfffffffe
je 0x41b121
mov al, byte [esi + 2]
cmp al, byte [edx + 2]
jne 0x41b0f3
cmp edi, 0xffffffff
je 0x41b121
mov al, byte [esi + 3]
cmp al, byte [edx + 3]
je 0x41b121
test ebx, ebx
je 0x41b10e
movups xmm0, xmmword [ebp - 0x60]
mov eax, dword [ebp - 0x48]
movups xmmword [ebx], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [ebx + 0x10], xmm0
mov dword [ebx + 0x18], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
mov eax, 0x11176
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050101b
mov esp, ebp
pop ebp
ret
Function at 0x41ee00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ee4c
mov dword [esi], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41ee44
call esi
test eax, eax
je 0x41ee51
call esi
add eax, 0x1d4c0
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [esi], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41eef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41ef3c
mov dword [esi], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41ef34
call esi
test eax, eax
je 0x41ef41
call esi
add eax, 0x1d4c0
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [esi], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ef60
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5b66c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5b873c], 0
jne 0x41f197
lea eax, [ebp - 0x124]
mov dword [0x5b8730], 0x564320
push eax
mov dword [0x5b8724], 0x564320
mov dword [0x5b8718], 0x564320
mov dword [0x5b8710], 0x564320
mov dword [ebp - 0x124], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41f034
mov eax, dword [ebp - 0x120]
shl eax, 8
or eax, dword [ebp - 0x11c]
shl eax, 0x10
push str.win32
mov dword [0x5b8720], eax
call fcn.0041cd60
add esp, 4
mov dword [0x5b8718], eax
lea eax, [ebp - 0x50]
mov dword [0x5b871c], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x50]
test eax, eax
je 0x41f01c
cmp eax, 6
je 0x41f015
cmp eax, 9
jne 0x41f034
push str.x86_64
jmp 0x41f021
push str.ia64
jmp 0x41f021
push str.i386
call fcn.0041cd60
add esp, 4
mov dword [0x5b8710], eax
mov dword [0x5b8714], edx
push ebx
push str.msvc
mov dword [0x5b872c], 0x13030900
call fcn.0041cd60
mov ebx, dword [0x5b872c]
add esp, 4
mov dword [0x5b8724], eax
mov dword [0x5b8728], edx
test ebx, ebx
jne 0x41f066
mov byte [ebp - 0x18], bl
jmp 0x41f0e2
mov eax, ebx
shr eax, 0x10
movzx eax, al
push eax
mov eax, ebx
shr eax, 0x18
push eax
push str.__u._u
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.00403590
add esp, 0x14
test bx, bx
je 0x41f0e2
mov eax, ebx
shr eax, 8
movzx eax, al
push eax
push 0x56e008
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.00403590
push 0x14
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041cad0
add esp, 0x1c
movzx eax, bl
test bl, bl
je 0x41f0e2
push eax
push 0x56e008
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.00403590
push 0x14
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041cad0
add esp, 0x1c
cmp dword [0x5b8728], 0
lea eax, [ebp - 0x18]
push eax
push dword [0x5b8724]
mov ecx, 0x56e01c
mov edx, 0x564320
mov eax, ecx
cmove eax, edx
cmp dword [0x5b8714], 0
push eax
push dword [0x5b8710]
cmove ecx, edx
lea eax, [ebp - 0x40]
push ecx
push 0x14
push eax
push dword [0x5b8720]
call fcn.0041f1b0
add esp, 0xc
push eax
push dword [0x5b8718]
lea eax, [ebp - 0x90]
push str._s_s_s_s_s_s_s
push 0x40
push eax
call fcn.00403590
add esp, 0x28
dec eax
pop ebx
cmp eax, 0x3e
ja 0x41f18d
lea ecx, [ebp - 0x90]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f155
sub ecx, edx
je 0x41f18d
lea eax, [ecx + 1]
cmp eax, 0x40
ja 0x41f18d
push eax
lea eax, [ebp - 0x90]
mov dword [0x5b8730], 0x5b86d0
push eax
push 0x5b86d0
mov dword [0x5b8734], ecx
call fcn.00502d50
add esp, 0xc
mov dword [0x5b873c], 1
mov ecx, dword [ebp - 4]
mov eax, 0x5b8710
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
Function at 0x420f80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4210f9
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4210f9
mov ebx, dword [ebp + 0x10]
cmp ebx, 0xffffffff
je 0x4210f9
cmp dword [ebp + 0x1c], edi
je 0x4210f9
cmp dword [ebp + 0x20], edi
je 0x4210f9
push dword [esi]
call fcn.00423630
mov eax, dword [esi + 0x14]
add esp, 4
cmp eax, dword [esi + 0x10]
jb 0x420fd7
mov ebx, 0x1117a
jmp 0x4210e1
push esi
call fcn.00421690
lea eax, [esi + 0x4c8]
add esp, 4
cmp dword [eax + 4], eax
je 0x420fcd
mov edi, dword [esi + 0x4cc]
push edi
call fcn.00418830
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 8]
mov dword [edi + 0x28], eax
lea eax, [edi + 0x40]
mov dword [eax], eax
mov dword [eax + 4], eax
lea eax, [edi + 0x60]
mov dword [eax], eax
mov dword [eax + 4], eax
lea eax, [edi + 0x90]
mov dword [eax], eax
mov dword [eax + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 8], esi
mov dword [edi + 0x20], ebx
mov dword [edi + 0x3c], 0
movups xmm0, xmmword [eax]
push ecx
mov dword [ebp + 8], 4
movups xmmword [edi + 0x2c], xmm0
inc dword [edi + 0xac]
mov dword [edi + 0xb0], 0
mov eax, dword [esi + 0xc]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x24]
push eax
movzx eax, word [0x56dca8]
push eax
movzx eax, word [0x56dc7c]
push eax
push ebx
call fcn.00419f00
add esp, 0x18
test eax, eax
je 0x42107b
movzx eax, word [0x56dc68]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0xc], eax
test eax, eax
je 0x42108e
push eax
call fcn.004230c0
add esp, 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x8004667e
push dword [ebp + 0x10]
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x4210ca
call fcn.00422700
mov ebx, eax
test ebx, ebx
je 0x4210e1
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4210e1
push eax
call fcn.00423450
add esp, 4
jmp 0x4210e1
lea eax, [esi + 0x1c]
push edi
push eax
call fcn.004188a0
add esp, 8
mov dword [esi + 0x18], 0x3f
inc dword [esi + 0x14]
mov eax, dword [ebp + 0x20]
mov dword [eax], edi
push dword [esi]
call fcn.004237f0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x11174
pop ebx
mov esp, ebp
pop ebp
ret