joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084d2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.0040814b
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00408186
faddp st(6)
sub esp, 0xffffff8d
inc ebp
call 0x5128e27c
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00408196
push eax
push esi
push dword [ebp + 8]
call fcn.0040814b
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
cwde
pop ss

Function at 0x408553
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00408196
push eax
push esi
push dword [ebp + 8]
call fcn.0040814b
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
inc ebp
loopne 0x408621
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00408196
push eax
push esi
push dword [ebp + 8]
call fcn.0040814b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00408186
or eax, 0x88019e35
popfd
jl 0x40860b
invalid
invalid

Function at 0x4088a5
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4088c0
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4088c9
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4088d3
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4088b5
Function at 0x408a0a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 0x39bb0001], edi
test dword [ebp + 0x55fffffc], edi
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00408196
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040814b
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
add dh, al
test dword [eax - 4], eax
invalid
jmp dword [ecx]
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
inc dword [edi]

Function at 0x408c8f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dh, byte [eax - 0x26]
and byte gs:[ebp - 0x664], 0
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
Function at 0x40909f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
call fcn.00408164
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00408196
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040814b
out dx, eax
invalid
inc dword [ebx - 0x7a76f33c]
sub al, 0xfc
invalid
invalid
call fcn.00408186
mov dword [edx], ecx
aas
mov al, 0x68
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.00408186
push ecx
salc
clc
in eax, dx
and byte [ebp - 0x20], 0
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.00408196
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040814b
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x409232
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x409252
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
and dword [ebp - 0x338], 0
and dword [ebp - 0x3d0], 0
jmp 0x40926f

Function at 0x409870
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [eax - 0x72000007]
inc esp
add dword [ecx + ecx*4], eax
test dword [esp + edi*8 - 1], edx
jmp [edx + 4]
Function at 0x100022a1
Capabilities:
Create raw socket
Create thread
Send data
Send data on socket

Disassembly:
sub esp, 0x4c
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x10002417
push 1
push 3
push 2
pop ebp
push ebp
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1001f130], eax
cmp eax, 0xffffffff
je 0x10002417
xor eax, eax
push eax
push eax
push 0x1000220f
mov dword [0x10020c24], eax
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1000230a
push str.can_create_thread_for_ping_Range
push 1
call fcn.10001113
pop ecx
pop ecx
jmp 0x10002417
xor eax, eax
mov dword [esp + 0x24], 8
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
push 0xd8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
xor eax, eax
mov word [esp + 0x18], bp
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x28], ax
xor ecx, ecx
lea eax, [ecx + 0x20]
mov byte [esp + ecx + 0x31], al
inc ecx
cmp ecx, 0x20
jl 0x10002340
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
test ebx, ebx
je 0x100023f3
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call ebp
mov dword [esp + 0x2d], eax
xor eax, eax
mov word [esp + 0x26], ax
lea eax, [esp + 0x24]
push 0x2d
push eax
call fcn.10013b1e
pop ecx
pop ecx
push 0x10
mov word [esp + 0x2a], ax
lea eax, [esp + 0x18]
push eax
push 0
push 0x2d
lea eax, [esp + 0x34]
push eax
push dword [0x1001f130]
call dword [sym.imp.WS2_32.dll_sendto]
push 5
call esi
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
push 0x2d
lea eax, [esp + 0x34]
push eax
push dword [0x1001f130]
call dword [sym.imp.WS2_32.dll_sendto]
push dword [esp + 0x18]
call fcn.10009031
pop ecx
push eax
call ebp
push 0x14
mov dword [esp + 0x1c], eax
call esi
inc edi
movzx eax, di
cmp eax, ebx
jb 0x10002363
push 0x1388
call esi
push dword [0x1001f130]
mov dword [0x10020c24], 1
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [0x1001f130], 0xffffffff
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10015a21
add esp, 0x4c
ret
Function at 0x10002463
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x34
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
xor eax, eax
mov ebx, dword [esp + 0x44]
push ebp
mov word [esp + 0x14], ax
mov bp, dx
push esi
push edi
lea edi, [esp + 0x1e]
mov dword [esp + 0x18], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x14], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp dword [esp + 0x54], 0
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], ax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x10002588
push 0
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100024e8
call fcn.10013b71
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_socket_returns__d:___s_
push 0
call fcn.10001113
add esp, 0x10
jmp 0x10002588
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x14]
push 4
push eax
push 0x20
push 0xffff
push edi
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0xffff
push edi
call esi
mov eax, dword [esp + 0x18]
push 2
pop esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 0x10
push eax
push edi
mov word [esp + 0x28], si
mov word [esp + 0x2a], bp
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10002556
call fcn.10013b71
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_bind_returns__d:___s_
push 0
call fcn.10001113
add esp, 0x10
jmp 0x10002581
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
push 0x10
mov word [esp + 0x32], ax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x60]
mov word [esp + 0x3c], si
push ebx
push edi
call dword [sym.imp.WS2_32.dll_sendto]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10015a21
add esp, 0x34
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], edx
lea eax, [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [ebp + 8], eax
push eax
cmove edi, eax
lea eax, [ebp + 0xc]
push 2
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
push 0
push 4
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
test edi, edi
jle 0x10004c8d
push 0
push edi
push dword [ebp + 8]
push ebx
call fcn.10014606
add esp, 0x10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004f57
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
mov edi, ecx
mov ebx, edx
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10004fa4
push esi
movsx esi, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push esi
push dword [eax]
lea eax, [ebx + 0x408]
push eax
call sub.MSVCR120.dll_memcpy
mov ax, word [edi + 0x404]
add esp, 0xc
mov word [ebx + 0x4ae], ax
mov ax, word [edi + 0x402]
mov word [ebx + 0x4ac], ax
xor eax, eax
inc eax
pop esi
jmp 0x10004fac
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop ebx
ret
Function at 0x100084dc
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov eax, dword [0x1001f048]
xor eax, ebp
mov dword [ebp + 0x74], eax
or dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x1c]
push esi
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push str._d__d__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x24]
xor edi, edi
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SOFTWARETFTPD32
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
neg eax
sbb esi, esi
lea eax, [ebp - 0xc]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push str.LastWindowPos
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
and esi, eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x1000857f
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10015a21
lea esp, [ebp + 0x78]
pop ebp
ret
Function at 0x10008592
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xac
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0xa8], eax
or dword [esp], 0xffffffff
lea eax, [esp]
push ebx
push eax
push 0x20019
xor ebx, ebx
mov dword [esp + 0x20], ecx
push ebx
push str.SOFTWARETFTPD32
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], 0x80
push eax
push ebx
push ebx
push str.LastWindowPos
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 4], 0xffffffff
je 0x10008607
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x2c], 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xab], bl
mov ebx, ecx
je 0x100086e1
mov eax, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], eax
cmp byte [ebx], 0x20
jne 0x10008687
mov edx, dword [esp + 0x14]
mov eax, edx
inc edx
mov byte [ebx], 0
mov dword [esp + 0x14], edx
sub eax, 0
je 0x1000867a
dec eax
je 0x1000866f
dec eax
je 0x10008662
dec eax
jne 0x10008684
push ecx
call dword [sym.imp.MSVCR120.dll_atoi]
mov ebp, eax
jmp 0x10008683
push ecx
call dword [sym.imp.MSVCR120.dll_atoi]
mov dword [esp + 0x1c], eax
jmp 0x10008683
push ecx
call dword [sym.imp.MSVCR120.dll_atoi]
mov esi, eax
jmp 0x10008683
push ecx
call dword [sym.imp.MSVCR120.dll_atoi]
mov edi, eax
pop ecx
lea ecx, [ebx + 1]
inc ebx
cmp byte [ebx], 0
jne 0x10008636
cmp dword [esp + 0x14], 4
jne 0x100086de
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
lea ecx, [edi + 0x96]
cmp ecx, eax
jge 0x100086de
push 1
call ebx
lea ecx, [esi + 0x96]
cmp ecx, eax
jge 0x100086de
mov eax, dword [esp + 0x18]
cmp edi, eax
jge 0x100086de
cmp esi, ebp
jge 0x100086de
test edi, edi
js 0x100086de
test esi, esi
js 0x100086de
push 1
sub ebp, esi
sub eax, edi
push ebp
push eax
push esi
push edi
push dword [esp + 0x38]
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x14]
pop ebx
xor ecx, esp
call fcn.10015a21
add esp, 0xac
ret
Function at 0x1000886a
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xec]
sub esp, 0x16c
mov eax, dword [0x1001f048]
xor eax, ebp
mov dword [ebp + 0xe8], eax
push esi
push edi
push str.explorer.exe
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x1f]
call fcn.10006593
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x80], esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0xe8]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10015a21
lea esp, [ebp + 0xec]
pop ebp
ret

Function at 0x10009477
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
xor esi, esi
push esi
push str._uninstall
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100094ab
call fcn.1000ea36
jmp 0x10009509
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100094e7
push 0x10
push 0x100197c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x276c
mov edx, str.Error:_Cant_init_Winsocket
mov ecx, str.Error:_Tftpd32_now_requires_winsock_version_2
cmovne ecx, edx
push ecx
push esi
call fcn.10013740
add esp, 0x10
jmp 0x10009509
push esi
push esi
push 0x1000e867
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x1001a578
call fcn.100072fd
mov ecx, dword [esp + 0x19c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.10015a21
mov esp, ebp
pop ebp
ret 8
Function at 0x10009aec
Capabilities:
Create raw socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1001f048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 3
push 2
pop eax
push eax
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10009b1a
or eax, eax
jmp 0x10009b7f
push 4
lea eax, [ebp - 0x1c]
mov ecx, 0xffff
push eax
push 0x1002
push ecx
push esi
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10009b66
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
jmp 0x10009b7d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x98000001
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015a21
mov esp, ebp
pop ebp
ret

Function at 0x10009b90
Capabilities:
Print debug messages

Disassembly:
push 0x14
mov eax, 0x10016f08
call fcn.10016d30
mov esi, ecx
xor eax, eax
mov dword [0x1001fba8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push str.RecreateSocket
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edi, [esi + 0x1ac]
lea eax, [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10009bdf
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.1000a53e
mov edi, dword [edi]
test edi, edi
jne 0x10009bc2
mov esi, dword [esi]
test esi, esi
jne 0x10009bbc
mov ebx, dword [0x10020f34]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebx]
mov dword [ebp - 0x10], edi
jmp 0x10009c44
mov edx, dword [ebp - 0x1c]
lea eax, [edi + 0x10]
push eax
mov ecx, esi
call fcn.1000acec
pop ecx
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x1c], eax
jne 0x10009c3c
mov dword [0x1001fba8], 1
call fcn.1000a9e2
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.1000a281
mov ebx, dword [0x10020f34]
jmp 0x10009c41
call fcn.1000a9e2
mov edi, dword [ebp - 0x10]
cmp edi, ebx
jne 0x10009bfb
jmp 0x10009c82
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.1000a4e2
cmp ebx, dword [ebp - 0x10]
jne 0x10009c7f
mov ecx, dword [esi]
mov dword [0x1001fba8], 1
call fcn.10009aec
mov edi, eax
cmp edi, 0xffffffff
je 0x10009c79
push esi
call fcn.1000a207
mov dword [eax], edi
mov ebx, dword [0x10020f34]
add esi, 4
cmp esi, dword [ebp - 0x1c]
jne 0x10009c4a
lea ecx, [ebp - 0x20]
call fcn.1000a7e8
xor eax, eax
inc eax
call fcn.10016cfe
ret
Function at 0x10009e9c
Capabilities:
Create thread

Disassembly:
push esi
push 0xffffffffffffffff
push dword [0x10020f3c]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.10009c98
push dword [0x10020f3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
push esi
push esi
push 0x10009e54
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10009eda
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
ret

Function at 0x10009f60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x304
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x2fc], eax
push ebx
push ebp
push esi
push edi
push 0x1e0
mov ebp, ecx
xor esi, esi
push 0xffffffffffffffff
push ebp
call sub.MSVCR120.dll_memset
push 0x1dc
lea eax, [esp + 0x13c]
mov dword [esp + 0x138], esi
push esi
push eax
call sub.MSVCR120.dll_memset
add esp, 0x18
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], esi
push 0xffffffffffffffff
push dword [0x10020f3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x10020f34]
mov edi, esi
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x1000a030
mov ebx, dword [esp + 0x20]
cmp edi, 0x3c
jge 0x1000a030
mov ecx, dword [eax + 0x10]
mov dword [esp + edi*8 + 0x128], ecx
mov ecx, dword [eax + 0x14]
mov eax, esi
mov dword [esp + edi*8 + 0x12c], ecx
test ebx, ebx
je 0x1000a004
cmp dword [esp + eax*4 + 0x24], ecx
je 0x1000a004
inc eax
cmp eax, ebx
jb 0x10009ff9
cmp eax, ebx
jne 0x1000a01a
cmp ebx, 0x40
jae 0x1000a01a
mov dword [esp + eax*4 + 0x24], ecx
mov ebx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x14]
call fcn.1000a9e2
mov eax, dword [esp + 0x14]
inc edi
cmp eax, dword [0x10020f34]
jne 0x10009fda
push dword [0x10020f3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [esp + 0x18]
push eax
push esi
push esi
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1000a087
test edi, edi
jle 0x1000a084
lea esi, [esp + 0x128]
lea eax, [esp + 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1000a07e
mov eax, dword [esi]
mov dword [ebp], eax
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
add ebp, 8
add esi, 8
dec edi
jne 0x1000a05e
xor esi, esi
inc esi
mov ecx, dword [esp + 0x30c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10015a21
add esp, 0x304
ret

Function at 0x1000bcf4
Capabilities:
Create thread

Disassembly:
push esi
mov ecx, 0x10020f40
call fcn.1000bd2b
xor esi, esi
push esi
call dword [sym.imp.MSVCR120.dll__time64]
pop ecx
push esi
push esi
push esi
push 0x1000be3b
push esi
push esi
mov dword [0x10020f58], eax
mov dword [0x10020f5c], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10020f48], eax
pop esi
ret