joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d0d
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
push 2
mov esi, ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x407d63
call fcn.0040c636
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_Cant_create_socket_nError__d___s_
call fcn.004011d2
add esp, 0xc
or eax, 0xffffffff
jmp 0x407ed4
cmp dword [0x429e88], 0
je 0x407db5
push str.tftp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x407db5
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0xffff
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov eax, str.Port__d_may_be_reused
je 0x407da7
mov eax, 0x4242ec
push dword [0x429bf8]
push eax
call fcn.0040c69d
pop ecx
pop ecx
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.WS2_32.dll_htons]
push 2
pop eax
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
je 0x407dd7
push eax
jmp 0x407dfc
cmp dword [ebp + 0xc], 2
mov eax, 0x422d00
je 0x407de7
mov eax, 0x4242e8
push eax
push esi
call dword [sym.imp.WS2_32.dll_getservbyname]
test eax, eax
je 0x407df9
mov ax, word [eax + 8]
jmp 0x407dfe
push dword [ebp + 0x14]
call edi
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x407e1a
cmp byte [eax], 0
je 0x407e1a
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
jmp 0x407e1e
and dword [ebp - 0x10], 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x407ed0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
sub eax, 0x2726
je 0x407e89
sub eax, 0x1a
je 0x407e89
dec eax
je 0x407e65
call fcn.0040c636
push eax
call esi
push eax
push 0x4242d4
call fcn.004011d2
add esp, 0xc
jmp 0x407ea2
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.0040c636
push eax
call esi
push eax
push str.Error__d_n_s_n_nTftpd32_tried_to_bind_the__s_port_nto_the_interface__s_nwhich_is_not_available_for_this_host_nEither_remove_the__s_service_or_suppress__s_interface_assignation
call fcn.004011d2
add esp, 0x1c
jmp 0x407ea2
push dword [ebp - 0x1c]
call fcn.0040c636
push eax
call esi
push eax
push 0x4241c8
call fcn.004011d2
add esp, 0x10
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x12]
call edi
movzx eax, ax
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x4241a4
call fcn.0040c69d
add esp, 0xc
or eax, 0xffffffff
jmp 0x407ed3
mov eax, dword [ebp - 0x18]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e208
leave
ret
Function at 0x407f1b
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push dword [ebp + 8]
mov esi, ecx
push 2
mov edi, edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x18], eax
push 2
pop eax
cmp dword [ebp + 8], eax
mov word [ebp - 0x14], ax
mov eax, 0x422d00
je 0x407f57
mov eax, 0x4242e8
push eax
push esi
call dword [sym.imp.WS2_32.dll_getservbyname]
test eax, eax
je 0x407f69
mov ax, word [eax + 8]
jmp 0x407f72
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
cmp byte [edi], 0
mov word [ebp - 0x12], ax
jne 0x407f80
mov edi, 0x42434c
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 8
push str.wake_up
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_sendto]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setg al
pop edi
xor ecx, ebp
pop esi
call fcn.0040e208
leave
ret

Function at 0x40802c
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ebp
imul esi, esi, 0x2c
mov eax, dword [esi + 0x424084]
push edi
mov edi, ebp
xor ebx, ebx
shl edi, 4
cmp eax, 1
jl 0x408089
push dword [esi + 0x424094]
mov ecx, dword [esi + 0x42408c]
push dword [esi + 0x424090]
mov dword [edi + 0x440c40], ebx
push dword [ecx]
mov ecx, dword [esi + 0x424088]
push eax
push dword [esi + 0x424070]
call fcn.00407d0d
add esp, 0x14
mov dword [edi + 0x440c4c], eax
cmp eax, 0xffffffff
jne 0x408090
xor eax, eax
jmp 0x4080eb
or dword [edi + 0x440c4c], 0xffffffff
cmp dword [esi + 0x424098], ebx
je 0x4080bb
push ebx
push ebx
push dword [esi + 0x42407c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x440c48], eax
cmp eax, 0xffffffff
jne 0x4080c2
mov eax, ebp
call fcn.00407ee1
jmp 0x408085
or dword [edi + 0x440c48], 0xffffffff
push ebx
push dword [esi + 0x424080]
push dword [esi + 0x424078]
call fcn.0040eb96
add esp, 0xc
mov dword [edi + 0x440c44], eax
cmp eax, 0xffffffff
je 0x4080b2
xor eax, eax
inc eax
mov dword [edi + 0x440c40], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x408443
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40847b
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40847b
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.0040e730
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40856f
Capabilities:
Delete file
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 5
call esi
push 0
mov word [0x432641], ax
call esi
push 0
push 4
push 0x432641
push dword [0x43a668]
mov word [0x432643], ax
call dword [sym.imp.WS2_32.dll_send]
call fcn.00408480
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
push 0x10
push 0x422f98
lea eax, [ebp - 0x204]
push eax
push dword [0x43232c]
call fcn.0040bf58
add esp, 0x10
push 0
push 1
push dword [0x432338]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp byte [0x432340], 1
pop esi
jne 0x408615
cmp dword [0x43a664], 0
je 0x408615
push 0x432341
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040e208
leave
ret
Function at 0x4089eb
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push ebp
push esi
push edi
mov ebp, 0x436647
mov edi, 0x200
cmp byte [ebp], 0
je 0x408b2f
mov eax, ebp
mov ecx, 0x436645
sub eax, ecx
mov esi, ebp
add eax, 0xfffffffe
jmp 0x408a20
cmp byte [esi], 0
je 0x408a24
inc esi
inc eax
cmp eax, edi
jl 0x408a19
inc esi
mov eax, esi
sub eax, ecx
dec eax
dec eax
cmp eax, edi
je 0x408b37
cmp byte [0x432340], 1
jne 0x408a9a
push str.tsize
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408a9a
push esi
call fcn.0040f13b
pop ecx
push 4
mov dword [0x43a690], eax
call ebx
push 0
mov word [0x432641], ax
call ebx
push 0
push dword [0x43a67c]
mov word [0x432643], ax
push 0x659
push dword [0x43232c]
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 4
push 0x432641
push dword [0x43a668]
call dword [sym.imp.WS2_32.dll_send]
push str.blksize
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408ab6
push esi
call fcn.0040f13b
pop ecx
mov dword [0x43a69c], eax
push str.udpport
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408b13
push esi
call fcn.0040f13b
push eax
push str.Port_value_is__d
call fcn.0040c69d
push esi
call fcn.0040f13b
add esp, 0x10
push eax
call ebx
push 0x10
push 0x43a64c
push dword [0x43a668]
mov word [0x43a64e], ax
call dword [sym.imp.WS2_32.dll_connect]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.re_connect_returns__d___d_
call fcn.0040c69d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + esi + 1]
mov eax, ebp
sub eax, 0x436645
dec eax
dec eax
cmp eax, edi
jl 0x4089ff
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret
xor eax, eax
jmp 0x408b32

Function at 0x408b3b
Capabilities:
Connect socket
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov dword [0x43a664], edi
mov dword [ebp - 8], 0x10
mov esi, 0x43a64c
cmp dword [0x43a66c], edi
jne 0x408b7c
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x4004
push 0x436645
push dword [0x43a668]
call dword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x408b93
push edi
push 0x4004
push 0x436645
push dword [0x43a668]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x408b9f
xor eax, eax
jmp 0x408bcb
cmp dword [0x43a66c], edi
jne 0x408bc0
push 0x10
push esi
push dword [0x43a668]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [0x43a66c], 1
mov eax, dword [ebp - 4]
mov dword [0x43a664], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x408bcf
Capabilities:
Get file size

Disassembly:
movzx eax, byte [0x432340]
dec eax
push ebx
push ebp
push esi
push edi
je 0x408c43
dec eax
jne 0x408c32
xor edi, edi
push edi
push 0x8000020
push 3
push edi
push 1
push bind
mov esi, 0x432341
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x43a670], eax
cmp eax, 0xffffffff
jne 0x408c25
call fcn.0040c636
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_opening_file__s_for_reading_nreturn_code_is__d___s_
call fcn.0040856f
add esp, 0x10
jmp 0x408c3e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x43a690], eax
xor eax, eax
cmp dword [0x43a670], 0xffffffff
setne al
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor eax, eax
push eax
mov ebp, 0x8000020
push ebp
push 1
push eax
push eax
mov ebx, 0x40000000
push ebx
mov esi, 0x432341
push esi
call edi
mov dword [0x43a670], eax
cmp eax, 0xffffffff
jne 0x408c32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x408c32
push 3
push 0x422f98
push 0x424544
push dword [0x43232c]
call fcn.0040bf58
add esp, 0x10
cmp eax, 6
jne 0x408c32
xor eax, eax
push eax
push ebp
push 2
push eax
push eax
push ebx
push esi
call edi
mov dword [0x43a670], eax
cmp eax, 0xffffffff
jne 0x408c32
call fcn.0040c636
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_opening_file__s_for_writing_nreturn_code_is__d___s_
jmp 0x408c1b
Function at 0x40a0ad
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x20], 0xffffffff
jne 0x40a0bc
xor eax, eax
pop ebx
ret
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_htons]
push 5
lea esi, [ebx + 0x60]
call edi
push dword [esp + 0x14]
mov word [esi], ax
call edi
mov word [esi + 2], ax
xor eax, eax
cmp dword [0x42a250], eax
mov edi, 0x42a250
jl 0x40a0fa
mov ecx, dword [edi]
cmp ecx, dword [esp + 0x14]
je 0x40a0f6
add edi, 8
cmp dword [edi], eax
jge 0x40a0e7
cmp dword [edi], eax
jge 0x40a111
mov eax, dword [esp + 0x14]
add eax, 0xffffff9c
push eax
call fcn.00410cba
mov dword [edi + 4], eax
xor eax, eax
pop ecx
mov word [esi + 2], ax
push dword [edi + 4]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov byte [edi + esi + 4], 0
push 0
add edi, 5
push edi
push esi
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_send]
sub eax, edi
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
ret

Function at 0x40a1d6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x44a4]
push eax
lea edi, [esi + 0x44fc]
push edi
call fcn.0040de9c
add esi, 0x427a
push esi
lea esi, [ebp - 0x7c]
call fcn.0040a1a3
add esp, 0xc
push str..md5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
push esi
push 0x8000020
push 2
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x80], esi
mov eax, dword [ebp - 0x80]
movzx ecx, byte [edi + eax]
push ecx
lea eax, [ebp + eax*2 + 0x18c]
push str._02x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 0x10
jl 0x40a24a
push esi
lea eax, [ebp - 0x80]
push eax
push 0x20
lea eax, [ebp + 0x18c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x7c]
push eax
push str.MD5_written_into___s_
push 2
call fcn.004010eb
mov ecx, dword [ebp + 0x1b0]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040e208
add ebp, 0x1b4
leave
ret
Function at 0x40a344
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, dword [ebp + 8]
push 2
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
mov byte [ebp - 0x10], al
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, word [0x429e5c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x429e4c
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0x38]
push 0
add eax, 4
push eax
lea eax, [esi + 0x60]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e208
leave
ret

Function at 0x40a3ef
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x108], eax
mov eax, dword [esi + 0x3c]
xor ecx, ecx
push edi
xor edi, edi
inc ecx
sub eax, edi
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], edi
je 0x40a425
dec eax
mov eax, dword [esi + 0x4c]
jne 0x40a42e
inc eax
shr eax, 1
jmp 0x40a42e
mov eax, dword [esi + 0x4c]
add eax, 3
shr eax, 2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x40a457
push str.select
push edi
call fcn.0040a3bb
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x40ab3a
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40ab5a
push 0x24e
push str.._services_tftpd_thread.c
push str.pTftp_NULL
call fcn.0040f6b6
add esp, 0xc
add dword [esi + 0x38], 2
push dword [esi + 0x38]
push str.send_OACK__d_bytes
push 0xa
call fcn.004010eb
mov eax, dword [esi + 0x44]
add esp, 0xc
test eax, eax
je 0x40ab93
push dword [esi + 0x38]
lea ecx, [esi + 0x4064]
push ecx
lea ecx, [esi + 0x4268]
push ecx
push eax
call fcn.0040df19
add esp, 0x10
jmp 0x40aba8
push 0
push dword [esi + 0x38]
lea eax, [esi + 0x4064]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jl 0x40abb6
cmp eax, dword [esi + 0x38]
jne 0x40abb6
xor eax, eax
inc eax
pop esi
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_:_Error__d
push 0
call fcn.004010eb
add esp, 0xc
xor eax, eax
pop esi
ret
Function at 0x40ba45
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x42a43c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push ebp
push esi
or ebp, 0xffffffff
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], 0x10
mov eax, 0x7ca
push 0x429f9c
push 0x423914
mov word [0x429f9c], ax
call fcn.0040ca6a
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
jne 0x40bad7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
jne 0x40bac2
xor eax, eax
push 0x44053c
push eax
mov word [0x44053c], ax
call fcn.0040ca6a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebp
jne 0x40bad7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.can_not_create_listening_socket_nError__d
call fcn.004011d2
pop ecx
pop ecx
jmp 0x40bb4f
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 8
push eax
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [0x440c48]
push ebp
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jne 0x40bb14
push dword [esp + 0x14]
call edi
push esi
call ebx
jmp 0x40bb63
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x40bb40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.accept_error__d
call fcn.004011d2
pop ecx
pop ecx
push dword [esp + 0x14]
call edi
push esi
call ebx
cmp dword [esp + 0x10], ebp
jne 0x40bb72
cmp dword [0x440c40], 0
je 0x40bba9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x440c40], 0
jne 0x40ba72
jmp 0x40bba9
push 4
lea eax, [esp + 0x18]
push eax
push 8
push 0xffff
push dword [esp + 0x20]
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x40bba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_during_setsockopt_n
call fcn.0040c69d
pop ecx
pop ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e208
add esp, 0x24
ret

Function at 0x40bfd8
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x42a2b4
push 0
mov dword [ebp - 8], 0x42a2b0
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c02b
push esi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
movzx eax, word [ebp + 0xc]
push 2
push 0
push eax
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x40c032
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x3dc]
sub esp, 0x45c
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp + 0x3d8], eax
mov eax, dword [ebp + 0x3ec]
or dword [ebp - 0x6c], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x3f8]
push esi
mov esi, dword [ebp + 0x3e4]
push edi
mov edi, dword [ebp + 0x3e8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x3f0]
push 0x5c
push esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], ebx
call fcn.00410190
pop ecx
pop ecx
test eax, eax
je 0x40c092
lea esi, [eax + 1]
push 0x40
push esi
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x68]
push eax
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp + 0x398]
push eax
mov byte [ebp + 0x3d7], 0
call edi
mov esi, eax
test esi, esi
jle 0x40c110
mov eax, dword [ebp + 0x3f4]
dec eax
je 0x40c0f2
sub eax, 3
jne 0x40c1dc
lea eax, [ebp - 0x68]
push eax
call fcn.0040f13b
pop ecx
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
jmp 0x40c1dc
push dword [ebp - 0x74]
mov edi, dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x74]
mov byte [eax + edi - 1], 0
jmp 0x40c1dc
push dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push ebx
push eax
push 0
push 0
lea eax, [ebp + 0x398]
push eax
call edi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
lea ecx, [ebp - 0x68]
jle 0x40c17d
cmp byte [ecx], bl
je 0x40c17d
mov edi, dword [ebp - 0x78]
mov eax, ecx
mov dl, byte [eax]
cmp dl, byte [edi]
jne 0x40c157
test dl, dl
je 0x40c153
mov dl, byte [eax + 1]
cmp dl, byte [edi + 1]
jne 0x40c157
inc eax
inc eax
inc edi
inc edi
test dl, dl
jne 0x40c139
xor eax, eax
jmp 0x40c15c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40c17d
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c165
sub eax, edi
lea ecx, [ecx + eax + 1]
mov eax, ecx
lea edx, [ebp - 0x68]
sub eax, edx
cmp eax, esi
jl 0x40c130
mov eax, ecx
lea edx, [ebp - 0x68]
sub eax, edx
cmp eax, esi
jge 0x40c195
cmp byte [ecx], bl
je 0x40c195
mov eax, dword [ebp - 0x70]
mov byte [eax], bl
xor esi, esi
jmp 0x40c1dc
lea eax, [ebp - 0x6c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x80]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c1dc
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x70]
push ebx
push ebx
push dword [ebp - 0x78]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x6c], 0xffffffff
je 0x40c1dc
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x3d8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e208
add ebp, 0x3dc
leave
ret
Function at 0x40c1f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
mov dword [ebp - 0x488], eax
mov eax, dword [ebp + 0x1c]
push bind
push eax
mov dword [ebp - 0x490], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40c2bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c
push edi
call fcn.00410190
pop ecx
pop ecx
test eax, eax
je 0x40c25a
lea edi, [eax + 1]
push edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x18]
dec eax
je 0x40c29d
sub eax, 3
jne 0x40c323
push dword [ebx]
lea eax, [ebp - 0x484]
push 0x42a2bc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp - 0x490]
lea eax, [ebp - 0x484]
push eax
jmp 0x40c2a4
push dword [ebp - 0x490]
push ebx
push dword [ebp - 0x488]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, eax
jmp 0x40c323
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x48c]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c323
cmp dword [ebp + 0x18], 1
jne 0x40c2f4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
jmp 0x40c2f7
mov eax, dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x18]
push 0
push dword [ebp - 0x488]
push dword [ebp - 0x48c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x48c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e208
leave
ret