joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2068
call fcn.00407110
mov eax, 0x50
mov byte [esp + 3], 0
push ebx
mov bh, byte [esp + 0x2078]
mov word [esp + 0x14], ax
mov eax, 0x2000
push esi
mov word [esp + 0x6c], ax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x2078]
call sym.slink.exe__string_copy_8
lea eax, [esp + 0x18]
push eax
call sym.slink.exe__string_terminate_null_4
mov esi, dword [esp + 0x2080]
lea eax, [esp + 0xc]
push esi
push eax
push 3
call fcn.00404750
push esi
call sym.slink.exe__sys_error_4
test al, al
jne 0x404ccc
movsx eax, word [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegQueryValueExA
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov word [esp + 0x6e], cx
cmp eax, 0xea
jne 0x404bac
push esi
call sym.slink.exe__sys_error_none_4
jmp 0x404bc8
test cx, cx
jle 0x404bc8
movsx eax, cx
mov al, byte [esp + eax + 0x6f]
cmp al, byte [0x43080e]
jne 0x404bc8
lea eax, [ecx - 1]
mov word [esp + 0x6e], ax
mov bl, bh
push esi
and bl, 1
call sym.slink.exe__sys_error_4
test al, al
je 0x404be1
mov dword [esp + 0x10], 1
jmp 0x404c11
mov eax, dword [esp + 0x10]
test bl, bl
je 0x404bee
cmp eax, 1
jne 0x404c11
test bh, 2
je 0x404bf8
cmp eax, 2
jne 0x404c11
push dword [esp + 0x2078]
lea eax, [esp + 0x70]
push eax
call sym.slink.exe__string_equal_8
test al, al
jne 0x404cc3
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x207c]
call sym.slink.exe__string_copy_8
lea eax, [esp + 0x6c]
push eax
call sym.slink.exe__string_terminate_null_4
mov ecx, dword [esp + 0x10]
test bl, bl
mov eax, 1
cmovne ecx, eax
test bh, 2
mov eax, 2
cmovne ecx, eax
movsx eax, word [esp + 0x6e]
inc eax
mov dword [esp + 0x10], ecx
push eax
lea eax, [esp + 0x74]
push eax
push ecx
push dword [0x430810]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegSetValueExA
push esi
mov dword [esi + 0xc], eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x404cab
push dword [esp + 0xc]
mov byte [esp + 0xf], 1
call sub.ADVAPI32.dll_RegFlushKey
push esi
mov dword [esi + 0xc], eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x404cab
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
mov dword [esi + 0xc], eax
mov al, 1
pop esi
pop ebx
add esp, 0x2068
ret 0x10
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
mov al, byte [esp + 0xb]
pop esi
pop ebx
add esp, 0x2068
ret 0x10
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
pop esi
xor al, al
pop ebx
add esp, 0x2068
ret 0x10
Function at 0x404cf0
Capabilities:
Get disk information

Disassembly:
push ecx
cmp byte [0x4309b8], 0
jne 0x404dcf
mov al, byte [0x4309b9]
push ebx
mov ebx, 0x41
mov dword [0x4309bc], 0x30004
mov word [0x4309c1], 0x5c3a
mov byte [0x4309c3], al
mov byte [0x4309b8], 1
mov byte [esp + 7], 0x20
mov byte [esp + 6], 0x20
mov byte [0x4309c0], bl
nop dword [eax + eax]
push 0x4309c0
call sub.KERNEL32.dll_GetDriveTypeA
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x404d52
jmp dword [eax*4 + 0x404de4]
mov al, byte [esp + 7]
mov dl, byte [esp + 6]
cmp al, 0x20
jne 0x404d92
mov al, byte [0x4309c0]
mov byte [esp + 7], al
jmp 0x404d92
cmp byte [esp + 6], 0x20
movzx edx, byte [esp + 6]
movzx eax, byte [0x4309c0]
cmove edx, eax
mov byte [esp + 6], dl
jmp 0x404d8e
mov dl, byte [esp + 6]
mov al, byte [esp + 7]
inc ebx
mov byte [0x4309c0], bl
cmp ebx, 0x5a
jle 0x404d40
cmp al, 0x20
je 0x404dba
pop ebx
push dword [esp + 8]
mov byte [0x4309c0], al
push 0x4309bc
call sym.slink.exe__string_copy_8
pop ecx
ret 4
cmp dl, 0x20
movzx eax, dl
mov ecx, 0x43
cmovne ecx, eax
mov byte [0x4309c0], cl
pop ebx
push dword [esp + 8]
push 0x4309bc
call sym.slink.exe__string_copy_8
pop ecx
ret 4
Function at 0x4053a0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x106c
call fcn.00407110
cmp byte [0x430818], 0
jne 0x4054c9
lea eax, [esp + 4]
push eax
call sym.slink.exe__sys_error_none_4
push 0x43081c
mov word [esp + 4], 0x7f7f
push dword [esp + 4]
mov word [0x43081e], 0
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
call sym.slink.exe__sys_error_4
test al, al
je 0x4054c2
push ebx
mov word [esp + 4], 1
mov ebx, 1
push 0x43081c
push dword [esp + 8]
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x40544f
call sub.WS2_32.dll_WSACleanup
test eax, eax
je 0x40544f
call sub.WS2_32.dll_WSAGetLastError
push 0
push 0x4309c4
push str.err_netclose
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push 0x42ce40
push eax
call sym.slink.exe__sys_error_abort_20
mov al, byte [0x43081e]
test al, al
jne 0x405487
inc ebx
mov byte [esp + 4], bl
cmp ebx, 0x7f
jle 0x405402
push 0
push 0x4309c4
push str.err_netversion
push 0x42ce40
call sym.slink.exe__sys_message_bomb_16
pop ebx
mov byte [0x430818], 1
add esp, 0x106c
ret
mov byte [esp + 4], al
mov al, byte [0x43081f]
push 0x43081c
mov byte [esp + 9], al
push dword [esp + 8]
call sub.WS2_32.dll_WSAStartup
push 0
push 0x4309c4
push str.err_netstart
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push 0x42ce40
push eax
call sym.slink.exe__sys_error_abort_20
pop ebx
mov byte [0x430818], 1
add esp, 0x106c
ret
Function at 0x4058f0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1a14
call fcn.00407110
mov eax, dword [0x430a64]
inc eax
mov dword [0x430a64], eax
push ebx
mov ebx, 0x84
mov word [esp + 4], bx
cmp eax, 1
jle 0x405950
cmp byte [0x42d21c], 0
jne 0x405950
push 0x42d624
call fcn.004044b0
push 1
call fcn.0040a50c
push eax
push 0x35
push 1
push str.Recursive_call_to_message_routine.__Original_message:
call fcn.0040a7a1
push 0x42d750
call fcn.004044b0
add esp, 0x1c
call fcn.00405b90
push 0x42d1c8
push 0x42d220
push dword [esp + 0x1a28]
push dword [esp + 0x1a28]
call sym.slink.exe__sys_message_resolve_16
cmp word [0x42d222], 0
mov byte [0x42d21c], 0
jle 0x405b7f
cmp word [0x42d1ca], 0
jle 0x405b7f
cmp dword [0x430a64], 1
jle 0x4059db
push 0x42d754
call fcn.004044b0
push 1
call fcn.0040a50c
push eax
push 0x3d
push 1
push str.Message_requested_while_attempting_to_print_previous_message:
call fcn.0040a7a1
push 0x42d798
call fcn.004044b0
add esp, 0x1c
call fcn.00405b90
dec dword [0x430a64]
pop ebx
add esp, 0x1a14
ret 0x10
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x10f8]
push eax
push dword [esp + 0x1a30]
push dword [esp + 0x1a30]
push 0x42d1c8
push 0x42d220
call sym.slink.exe__file_open_read_msg_24
lea eax, [esp + 0x8c]
push eax
call sym.slink.exe__file_not_found_4
test al, al
jne 0x4059c6
lea eax, [esp + 0x8c]
push eax
call sym.slink.exe__sys_error_4
test al, al
je 0x405a5d
call fcn.00405b90
push 0
push 0x430a2c
push str.open_msg
push 0x42d628
lea eax, [esp + 0x9c]
push eax
call sym.slink.exe__sys_error_print_20
dec dword [0x430a64]
pop ebx
add esp, 0x1a14
ret 0x10
push edi
call sym.slink.exe__sys_width_stdout_0
lea edi, [eax - 1]
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0xc]
push eax
push edi
lea eax, [esp + 0x1104]
push eax
call sym.slink.exe__file_read_msg_16
lea eax, [esp + 0x90]
push eax
call sym.slink.exe__file_eof_4
test al, al
jne 0x405b6a
push esi
nop word [eax + eax]
lea eax, [esp + 0x94]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x405b46
mov ax, word [esp + 0xe]
cmp ax, bx
jle 0x405add
cwde
push 0x430a30
sub eax, 0x84
push eax
push 0x42d79c
call fcn.004044b0
mov ax, word [esp + 0x1a]
add esp, 0xc
test ax, ax
jle 0x405af0
cmp ax, bx
jge 0x405aec
movsx esi, ax
jmp 0x405af2
mov esi, ebx
jmp 0x405af2
xor esi, esi
push 1
call fcn.0040a50c
push eax
push esi
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0040a7a1
push 0x42d7a0
call fcn.004044b0
add esp, 0x18
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x1108]
push eax
call sym.slink.exe__file_read_msg_16
lea eax, [esp + 0x94]
push eax
call sym.slink.exe__file_eof_4
test al, al
je 0x405aa0
jmp 0x405b69
call fcn.00405b90
push 0
push 0x430a2c
push str.read_msg
push 0x42d628
lea eax, [esp + 0xa4]
push eax
call sym.slink.exe__sys_error_print_20
pop esi
lea eax, [esp + 0x10f8]
mov byte [0x42d21c], 1
push eax
call sym.slink.exe__file_close_4
pop edi
dec dword [0x430a64]
pop ebx
add esp, 0x1a14
ret 0x10
Function at 0x405b90
Capabilities:
Write file on windows

Disassembly:
push 0x42d220
call sym.slink.exe__string_upcase_4
push 0x42d1c8
call sym.slink.exe__string_upcase_4
push 1
call fcn.0040a50c
push eax
push 8
push 1
push str.Status__
call fcn.0040a7a1
mov ax, word [0x42d1ca]
add esp, 0x14
cmp ax, 0x50
jle 0x405be6
cwde
push 0x430a31
sub eax, 0x50
push eax
push 0x42d7b0
call fcn.004044b0
mov ax, word [0x42d1ca]
add esp, 0xc
push esi
test ax, ax
jle 0x405bfe
cmp ax, 0x50
jge 0x405bf7
movsx esi, ax
jmp 0x405c00
mov esi, 0x50
jmp 0x405c00
xor esi, esi
push 1
call fcn.0040a50c
push eax
push esi
push 1
push 0x42d1cc
call fcn.0040a7a1
push 1
call fcn.0040a50c
push eax
push 0x10
push 1
push str.__in_subsystem__
call fcn.0040a7a1
mov ax, word [0x42d222]
mov esi, 0x400
add esp, 0x28
cmp ax, si
jle 0x405c5a
cwde
push 0x430a32
sub eax, esi
push eax
push 0x42d7c8
call fcn.004044b0
mov ax, word [0x42d222]
add esp, 0xc
test ax, ax
jle 0x405c69
cmp ax, si
jge 0x405c6b
movsx esi, ax
jmp 0x405c6b
xor esi, esi
push 1
call fcn.0040a50c
push eax
push esi
push 1
push 0x42d224
call fcn.0040a7a1
push 1
call fcn.0040a50c
push eax
push 2
push 1
push 0x42d7cc
call fcn.0040a7a1
push 0x42d7d0
call fcn.004044b0
add esp, 0x2c
mov byte [0x42d21c], 1
pop esi
ret

Function at 0x405db0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
mov ebx, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x114]
mov word [esi + 2], ax
test ebx, ebx
jne 0x405ddd
pop esi
xor al, al
pop ebx
add esp, 0x104
ret 8
push ebp
push edi
cmp word [esi], ax
jle 0x405ee3
push 0
push dword [0x430a34]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push dword [0x42d828]
push ebx
push 0
push 0x11ff
call sub.KERNEL32.dll_FormatMessageA
test eax, eax
je 0x405e29
push eax
push dword [esp + 0x14]
push esi
call sym.slink.exe__string_vstring_12
push dword [esp + 0x10]
call sub.KERNEL32.dll_LocalFree
jmp 0x405edd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405e37
push eax
call sub.KERNEL32.dll_LocalFree
push str.RASAPI32.DLL
mov ebp, 1
call sub.KERNEL32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x405e7c
push ebp
call fcn.0040a50c
push eax
push 0x1c
push ebp
push str.Could_not_load_RASAIP32.DLL.
call fcn.0040a7a1
push 0x42d864
call fcn.004044b0
add esp, 0x18
mov al, 1
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x104
ret 8
push str.RasGetErrorStringA
push edi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x405eb0
push 1
call fcn.0040a50c
push eax
push 0x2e
push 1
push str.Could_not_find_RasGetErrorStringA_entry_point.
call fcn.0040a7a1
push 0x42d898
call fcn.004044b0
add esp, 0x18
jmp 0x405ec0
push dword [0x42d83c]
lea ecx, [esp + 0x18]
push ecx
push ebx
call eax
mov ebp, eax
push edi
call sub.KERNEL32.dll_FreeLibrary
test ebp, ebp
jne 0x405ee3
movzx eax, word [0x42d840]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call sym.slink.exe__string_vstring_12
push esi
call sym.slink.exe__string_unpad_4
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x104
ret 8
Function at 0x406230
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0x14]
push esi
call sym.slink.exe__sys_error_none_4
cmp byte [0x430a69], 0
jne 0x406255
push 0x433e10
call sub.KERNEL32.dll_InitializeCriticalSection
mov byte [0x430a69], 1
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [0x430a40]
push dword [0x430a3c]
call sub.KERNEL32.dll_CreateThread
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x406287
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
ret 0x10
Function at 0x406880
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x480c
call fcn.00407110
push esi
mov esi, dword [esp + 0x4818]
mov eax, 0x400
push edi
mov edi, dword [esp + 0x4818]
mov word [esp + 0xc], ax
mov eax, 0x2000
mov word [esp + 0x2810], ax
lea eax, [esp + 0xc]
push esi
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push edi
call sym.slink.exe__string_token_16
push esi
call sym.slink.exe__sys_error_4
test al, al
jne 0x4069c9
lea eax, [esp + 0x2810]
push eax
lea eax, [esp + 0x10]
push eax
call sym.slink.exe__string_treename_8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x2814]
push eax
call sym.slink.exe__string_token_make_8
push 0x400
lea eax, [esp + 0x414]
push eax
lea eax, [esp + 0x14]
push eax
call sym.slink.exe__string_t_c_12
xor eax, eax
mov word [esp + 0x2812], ax
lea eax, [esp + 0xc]
push esi
push eax
lea eax, [esp + 0x10]
push eax
push edi
call sym.slink.exe__string_token_16
push esi
call sym.slink.exe__string_eos_4
test al, al
jne 0x406973
push esi
call sym.slink.exe__sys_error_4
test al, al
jne 0x4069c9
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x2814]
push eax
call sym.slink.exe__string_append_token_8
push esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push edi
call sym.slink.exe__string_token_16
push esi
call sym.slink.exe__string_eos_4
test al, al
je 0x406938
push 0x2000
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x2818]
push eax
call sym.slink.exe__string_t_c_12
push dword [0x42d9f8]
lea eax, [esp + 0x814]
push 0x430a58
push eax
lea eax, [esp + 0x41c]
push eax
push 0x430a58
push dword [0x430a54]
call sub.SHELL32.dll_ShellExecuteA
cmp eax, 0x20
ja 0x4069c9
push esi
add eax, 0x64
push eax
push 0xffffffffffffffff
call sym.slink.exe__sys_stat_set_12
pop edi
pop esi
add esp, 0x480c
ret 8

Function at 0x406a10
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
call sym.slink.exe__sys_error_none_4
push dword [0x42d8f4]
push dword [esp + 0xc]
call sub.KERNEL32.dll_TerminateProcess
test al, al
jne 0x406a36
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
ret 8

Function at 0x4199b0
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x91c]
test eax, eax
jne 0x419a1b
test byte [esi], 2
je 0x4199ee
cmp byte [esi + 1], al
jne 0x4199ee
push dword [esi + 0x920]
call sub.KERNEL32.dll_SetEndOfFile
test al, al
jne 0x4199ee
push 0
push 0x431554
push str.truncate
push 0x42e3a0
call sym.slink.exe__sys_sys_error_bomb_16
cmp byte [esi + 1], 6
je 0x419a28
push dword [esi + 0x920]
call fcn.00407a52
test al, al
jne 0x419a28
push 0
push 0x431554
push str.close
push 0x42e3a0
call sym.slink.exe__sys_sys_error_bomb_16
jmp 0x419a28
push esi
call eax
mov dword [esi + 0x91c], 0
add esi, 0x918
cmp dword [esi], 0
je 0x419a39
push esi
call sym.slink.exe__sys_mem_dealloc_4
pop esi
ret 4
Function at 0x419a40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x24]
push esi
call sym.slink.exe__sys_error_none_4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x10
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x920]
call sub.WS2_32.dll_getsockname
test eax, eax
je 0x419a82
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x10
ret 0x10
push 4
lea eax, [esp + 0xc]
push eax
call sym.slink.exe__sys_order_flip_8
push 2
lea eax, [esp + 0xa]
push eax
call sym.slink.exe__sys_order_flip_8
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov ax, word [esp + 2]
mov word [ecx], ax
add esp, 0x10
ret 0x10

Function at 0x419ac0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call sym.slink.exe__sys_error_none_4
call sym.slink.exe__sys_sys_netstart_0
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
jne 0x419af0
call sub.WS2_32.dll_WSAGetLastError
pop edi
mov dword [esi + 0xc], eax
pop esi
ret 0x10
lea eax, [esp + 0x18]
push eax
push 0x10
call sym.slink.exe__sys_mem_alloc_8
mov eax, dword [esp + 0x18]
mov ecx, 2
push 4
mov word [eax], cx
mov ecx, dword [esp + 0x1c]
mov ax, word [esp + 0x14]
mov word [ecx + 2], ax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call sym.slink.exe__sys_order_flip_8
mov eax, dword [esp + 0x18]
push 2
add eax, 2
push eax
call sym.slink.exe__sys_order_flip_8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x920], edi
pop edi
mov word [ecx], 0xa03
mov byte [ecx + 2], 0
mov dword [ecx + 4], 0x400
mov dword [ecx + 0x408], 0x100
mov dword [ecx + 0x50c], 0x400
mov dword [ecx + 0x910], 0
mov dword [ecx + 0x914], 0xfffffffe
mov dword [ecx + 0x918], eax
mov dword [ecx + 0x91c], 0x41a3e0
pop esi
ret 0x10
Function at 0x419e50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x30]
push edi
push esi
call sym.slink.exe__sys_error_none_4
mov edi, dword [esp + 0x30]
test edi, edi
je 0x419ff1
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [ebx + 0x918]
test ebp, ebp
jne 0x419ea3
push 1
call fcn.0040a50c
push eax
push 0x36
push 1
push str.INTERNAL_ERROR:_Data_pointer_NIL_in_FILE_READ_INETSTR.
call fcn.0040a7a1
push 0x42e514
call fcn.004044b0
add esp, 0x18
call sym.slink.exe__sys_bomb_0
push 0x431568
push 0
push 1
push dword [0x431564]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call sub.KERNEL32.dll_CreateEventA
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x3c]
push dword [ebx + 0x920]
call sub.KERNEL32.dll_WriteFile
test al, al
jne 0x419fb8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
jne 0x419f85
movss xmm0, dword [ebp + 4]
or eax, 0xffffffff
comiss xmm0, dword [0x426598]
jbe 0x419f4f
movsd xmm1, qword [0x425bc0]
sub esp, 8
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4265a0]
maxsd xmm1, xmm0
addsd xmm1, qword [0x4263f0]
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp qword [esp]
call fcn.00420490
fstp qword [esp + 0x18]
cvttsd2si eax, qword [esp + 0x18]
add esp, 8
push eax
push dword [esp + 0x2c]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x419f9b
cmp eax, 0xffffffff
je 0x419f80
push 1
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebx + 0x920]
call sub.KERNEL32.dll_GetOverlappedResult
test al, al
jne 0x419fb8
call sub.KERNEL32.dll_GetLastError
push dword [esp + 0x28]
mov dword [esi + 0xc], eax
call fcn.00407a52
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10
push esi
push 0x20
push 0xfffffffffffffffd
call sym.slink.exe__sys_stat_set_12
push dword [esp + 0x28]
call fcn.00407a52
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10
cmp dword [esp + 0x3c], edi
je 0x419fe6
push esi
push 9
push 0xfffffffffffffffd
call sym.slink.exe__sys_stat_set_12
push esi
lea eax, [ebx + 0x50c]
push eax
call sym.slink.exe__sys_stat_parm_vstr_8
push esi
push edi
call sym.slink.exe__sys_stat_parm_int_8
push esi
push dword [esp + 0x40]
call sym.slink.exe__sys_stat_parm_int_8
push dword [esp + 0x28]
call fcn.00407a52
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10

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

Disassembly:
push esi
mov esi, dword [esp + 0x18]
push esi
call sym.slink.exe__sys_error_none_4
mov eax, dword [esp + 0xc]
push 0x10
push dword [eax + 0x918]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [eax + 0x920]
call sub.WS2_32.dll_sendto
mov ecx, eax
mov eax, dword [esp + 0x14]
test ecx, ecx
jns 0x41a048
mov dword [eax], 0
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0xc], eax
pop esi
ret 0x14
mov dword [eax], ecx
cmp ecx, dword [esp + 0x10]
je 0x41a05a
push esi
push 0x1c
push 0xfffffffffffffffd
call sym.slink.exe__sys_stat_set_12
pop esi
ret 0x14
Function at 0x41a0c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x400
push ebx
mov ebx, dword [esp + 0x40c]
push esi
mov esi, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x410]
push esi
push ebx
push edi
call sym.slink.exe__string_t_inetadr_12
push esi
call sym.slink.exe__sys_error_4
test al, al
je 0x41a15c
push ebp
push esi
call sym.slink.exe__sys_error_none_4
call sym.slink.exe__sys_sys_netstart_0
movsx ebp, word [edi + 2]
cmp dword [0x42e490], ebp
cmovl ebp, dword [0x42e490]
cmp ebp, 1
jl 0x41a124
lea eax, [edi + 4]
push ebp
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00407b30
add esp, 0xc
mov al, byte [0x431558]
mov byte [esp + ebp + 0x10], al
lea eax, [esp + 0x10]
push eax
call sub.WS2_32.dll_gethostbyname
pop ebp
test eax, eax
jne 0x41a168
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0xc], eax
cmp eax, 0x2af9
jne 0x41a15c
push esi
push 0xf
push 0xfffffffffffffffd
call sym.slink.exe__sys_stat_set_12
push esi
push edi
call sym.slink.exe__sys_stat_parm_vstr_8
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41a14b
mov eax, dword [eax]
test eax, eax
je 0x41a14b
mov eax, dword [eax]
push 4
push ebx
mov dword [ebx], eax
call sym.slink.exe__sys_order_flip_8
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc

Function at 0x41a230
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call sym.slink.exe__sys_error_none_4
call sym.slink.exe__sys_sys_netstart_0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, dword [esp + 0x24]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x41a26b
call sub.WS2_32.dll_WSAGetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x10
ret 0x10
lea eax, [esp + 8]
push eax
call sym.slink.exe__file_inet_sockaddr_init_4
mov ax, word [esp + 0x20]
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 4
push eax
call sym.slink.exe__sys_order_flip_8
push 2
lea eax, [esp + 0xe]
push eax
call sym.slink.exe__sys_order_flip_8
push dword [0x42e494]
lea eax, [esp + 0xc]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_bind
test eax, eax
jne 0x41a302
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x10
push eax
lea eax, [esp + 0xc]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x41a302
push 4
lea eax, [esp + 0x10]
push eax
call sym.slink.exe__sys_order_flip_8
push 2
lea eax, [esp + 0xe]
push eax
call sym.slink.exe__sys_order_flip_8
mov ax, word [esp + 0xa]
push 8
push dword [esi + 4]
mov word [esi], ax
call sub.WS2_32.dll_listen
test eax, eax
je 0x41a312
call sub.WS2_32.dll_WSAGetLastError
mov dword [edi + 0xc], eax
push dword [esi + 4]
call sub.WS2_32.dll_closesocket
pop edi
pop esi
add esp, 0x10
ret 0x10