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

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
push 0x20019
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4149d7
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], 4
jne 0x4149c6
push dword [esi]
push 0x403648
push esi
call fcn.0040c280
add esp, 0xc
mov dword [ebp + 0x14], 1
test edi, edi
pop edi
pop esi
jne 0x4149d7
cmp dword [ebp + 0x14], 1
jne 0x4149d7
xor eax, eax
inc eax
jmp 0x4149d9
xor eax, eax
pop ebp
ret 0x14

Function at 0x4149dd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x414a05
xor eax, eax
jmp 0x414a3c
mov eax, dword [ebp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x414a0b
push esi
sub eax, edx
inc eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x414a41
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x414a9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x414afa
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x414afa
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x414afa
mov eax, dword [ebp - 8]
add eax, 3
and eax, 0xfffffffc
call fcn.0040c030
mov esi, esp
cmp esi, ebx
je 0x414afa
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x414afa
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x414afe
xor eax, eax
jmp 0x414b3f
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x414b2a
lea ebx, [esi + 4]
push dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x414b23
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x414b0a
jmp 0x414b2a
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414c11
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x414cb8
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x308]
push 0x40369c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x403614
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x414cb8
lea eax, [ebp - 0x308]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414c77
push esi
push 0x5c
push dword [ebp + 8]
sub eax, edx
mov esi, eax
call fcn.0040c360
pop ecx
pop ecx
inc eax
inc esi
push esi
lea ecx, [ebp - 0x308]
push ecx
push 1
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x414caf
xor edi, edi
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret 4
Function at 0x414d04
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x104
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040c883
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret

Function at 0x414d4e
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x414db2
lea eax, [ebp - 0x10]
push eax
push 0x4036b8
xor esi, esi
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x414db2
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x414db2
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x414db4
xor eax, eax
pop esi
leave
ret 4

Function at 0x415658
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x424210], 0
jne 0x415678
push 0x424080
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [0x424210], eax
ret

Function at 0x415679
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
mov dword [0x424320], esi
jne 0x415717
cmp byte [0x424220], 0
je 0x4156a7
mov eax, 0x2db0000
jmp 0x415790
lea eax, [ebp + 8]
push eax
push 1
push esi
push 0x4036f0
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4156cc
mov eax, 0x82db0108
jmp 0x415790
lea eax, [ebp - 4]
push eax
push 0x424220
lea eax, [ebp - 8]
push eax
push esi
push 0x4036e4
push dword [ebp + 8]
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415700
cmp dword [ebp - 8], 1
jne 0x415700
mov esi, 0x2db0000
jmp 0x41570c
mov byte [0x424220], 0
mov esi, 0x82db0108
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41578e
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41571c
sub eax, edx
mov ebx, eax
cmp ebx, 0x100
jb 0x415736
mov eax, 0x80070057
jmp 0x415790
mov esi, 0x424220
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x415741
xor edi, edi
push edi
lea eax, [ebp + 8]
push eax
push edi
push 2
push edi
push edi
push edi
push 0x4036f0
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x415789
inc ebx
push ebx
push esi
push 1
push edi
push 0x4036e4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x2db0000
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x415a1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x32c
push ebx
lea eax, [ebp + 0x60]
push eax
push 1
xor ebx, ebx
push ebx
push 0x4036f0
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x415a4c
xor eax, eax
jmp 0x415b7c
push esi
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp + 0x5c]
push eax
push ebx
push 0x40370c
push dword [ebp + 0x60]
mov esi, 0x110
mov dword [ebp + 0x64], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415a87
cmp dword [ebp + 0x5c], 3
jne 0x415a87
cmp dword [ebp + 0x64], esi
jne 0x415a87
xor esi, esi
inc esi
jmp 0x415a89
xor esi, esi
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x415b79
lea eax, [ebp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0xb4]
sub dword [ebp + 0x68], eax
mov eax, dword [ebp - 0xb0]
sbb dword [ebp + 0x6c], eax
jne 0x415b79
cmp dword [ebp + 0x68], 0xb2d05e00
jae 0x415b79
movzx eax, byte [ebp - 0xa8]
mov esi, dword [ebp + 0x78]
push eax
lea eax, [ebp - 0xa7]
push eax
push esi
call fcn.0041e4c4
add esp, 0xc
test eax, eax
jne 0x415b79
mov cl, byte [ebp - 0xa8]
movzx eax, cl
cmp byte [eax + esi], bl
jne 0x415b79
mov eax, dword [ebp + 0x7c]
mov edx, dword [ebp - 0xac]
push edi
push 0x3f
mov byte [ebp - 0x1b7], cl
pop ecx
mov byte [ebp - 0x1b8], 3
lea esi, [ebp - 0xa7]
lea edi, [ebp - 0x1b6]
rep movsd dword es:[edi], dword [esi]
push ebx
push eax
mov dword [eax + 4], edx
lea eax, [ebp - 0x2bc]
movsw word es:[edi], word [esi]
push eax
lea eax, [ebp - 0x1b8]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0041581b
test eax, eax
pop edi
je 0x415b79
movzx eax, byte [ebp - 0x2bb]
push eax
lea eax, [ebp - 0xa7]
push eax
lea eax, [ebp - 0x2ba]
push eax
call fcn.0041e4c4
add esp, 0xc
test eax, eax
jne 0x415b79
movzx eax, byte [ebp - 0x2bb]
cmp byte [ebp + eax - 0xa7], bl
jne 0x415b79
xor eax, eax
inc eax
jmp 0x415b7b
xor eax, eax
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x415b84
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x44
pop ecx
lea edi, [ebp - 0x110]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x108], eax
mov eax, esi
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415bb3
sub eax, edx
movzx ecx, al
mov byte [ebp - 0x104], al
mov eax, ecx
shr ecx, 2
lea edi, [ebp - 0x103]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x4036f0
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x415c2b
push 0x110
lea eax, [ebp - 0x110]
push eax
push 3
push ebx
push 0x40370c
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x415d56
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push edi
mov edi, dword [ebp + 8]
cmp edi, 0x424220
jne 0x415d7d
push 0
call fcn.00415679
test eax, eax
mov dword [ebp + 8], eax
jl 0x415f0b
mov eax, dword [edi + 0x100]
test eax, eax
je 0x415d95
test byte [edi + 0x12c], 0x10
je 0x415d95
mov dword [ebp - 0x18], eax
jmp 0x415db3
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00415ce3
test eax, eax
mov dword [ebp + 8], eax
jl 0x415f0b
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x100], eax
push esi
push 0xffffffffffffffff
call fcn.00415d12
mov esi, eax
test esi, esi
jne 0x415dcb
mov eax, 0x8007000e
jmp 0x415f0a
push ebx
push 6
xor ebx, ebx
inc ebx
push ebx
push 2
mov dword [esi + 0x410], edi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x400], eax
je 0x415eb3
cmp dword [edi + 0x104], 0
je 0x415e18
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov dword [ebp - 4], ebx
push dword [esi + 0x400]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x415ee1
push 0x2db
mov word [ebp - 0x1c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x400]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x415ebc
cmp dword [edi + 0x104], 0
je 0x415ead
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x415ead
mov eax, dword [edi + 0x104]
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 8], edx
mov ecx, dword [esi + 0x400]
mov dword [ebp - 0x11c], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x120]
push ecx
push eax
push eax
mov dword [ebp - 0x120], ebx
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setle cl
mov eax, ecx
jmp 0x415eaf
mov eax, ebx
test eax, eax
je 0x415ebc
mov dword [ebp + 8], 0x82db0100
jmp 0x415ee1
cmp dword [edi + 0x104], 0
jne 0x415eff
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov dword [ebp - 4], ebx
push dword [esi + 0x400]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x415eff
mov eax, dword [esi + 0x400]
cmp eax, 0xffffffff
je 0x415ef3
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
jmp 0x415f09
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, 0x2db0000
pop ebx
pop esi
pop edi
leave
ret 8
Function at 0x415f2a
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x415fdc
cmp dword [ebp + 0xc], edi
je 0x415fdc
cmp dword [esi + 0x400], 0xffffffff
je 0x415fce
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x415fd5
push edi
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x400]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
jg 0x415fb2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x415fb7
cmp eax, 0x2733
jne 0x415fbb
mov eax, dword [esi + 0x400]
push edi
push edi
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x104]
push eax
push edi
push edi
mov dword [ebp - 0x104], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x415fbb
jmp 0x415fb7
add dword [ebp + 0xc], eax
sub ebx, eax
cmp ebx, edi
jne 0x415f5c
cmp ebx, edi
je 0x415fd5
cmp dword [esi + 0x400], 0xffffffff
je 0x415fce
push esi
call fcn.00415f10
mov eax, 0x82db0101
jmp 0x415fe1
mov eax, 0x2db0000
jmp 0x415fe1
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x415fe8
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 0x400]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jg 0x4160ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x41609e
cmp eax, 0x2733
jne 0x4160a2
mov eax, dword [edi + 0x400]
mov dword [ebp - 0x108], eax
lea eax, [edi + 0x410]
mov ecx, dword [eax]
cmp ecx, esi
mov dword [ebp - 0x10c], 1
je 0x416084
cmp dword [ecx + 0x108], esi
je 0x416084
mov eax, dword [eax]
lea ecx, [ebp - 8]
xor edx, edx
mov esi, 0x3e8
mov dword [ebp + 8], ecx
lea ecx, [eax + 0x108]
mov eax, dword [ecx]
push ebx
mov ebx, esi
div ebx
xor edx, edx
pop ebx
mov dword [ebp - 8], eax
mov eax, dword [ecx]
div esi
imul edx, edx, 0x3e8
mov dword [ebp - 4], edx
xor esi, esi
jmp 0x416087
mov dword [ebp + 8], esi
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push esi
push esi
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4160a2
xor eax, eax
jmp 0x4160ab
push edi
call fcn.00415f10
or eax, 0xffffffff
pop edi
pop esi
leave
ret 0xc

Function at 0x416adc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0x400
push esi
mov esi, dword [eax]
or dword [eax], 0xffffffff
cmp esi, 0xffffffff
je 0x416b33
and word [ebp + 0xa], 0
push 4
lea eax, [ebp + 8]
push eax
push 0x80
push 0xffff
push esi
mov word [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [0x421b34]
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push dword [0x421b34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
pop ebp
ret 4
Function at 0x416dab
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x420740], 0xffffffff
je 0x416dc4
mov eax, 0x2db0000
leave
ret
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x424220
mov dword [ebp - 4], ebx
call fcn.004166ee
cmp eax, ebx
mov dword [ebp - 8], eax
jge 0x416eac
xor esi, esi
or eax, 0xffffffff
cmp esi, ebx
mov dword [0x420740], eax
je 0x416e86
push 0x10
pop edi
push edi
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov word [ebp - 0x1c], 2
mov word [ebp - 0x1a], bx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x416e81
push 2
push dword [0x420740]
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x416e81
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x420740]
mov dword [ebp - 0xc], edi
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x1a]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, ebx
mov word [0x421b30], ax
je 0x416e81
push 8
push dword [0x421b3c]
push dword [0x420740]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x416e99
mov eax, dword [0x420740]
cmp eax, 0xffffffff
je 0x416e99
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [0x420740], 0xffffffff
mov edi, 0x421b5c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x421b08]
jmp 0x416ede
push 6
push 1
push 2
mov dword [ebp - 8], 0x8000ffff
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
jmp 0x416dea
mov ecx, dword [eax + 8]
test ecx, 0x10000
jne 0x416edb
or ebx, ecx
mov eax, dword [eax + 4]
test eax, eax
jne 0x416ece
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
cmp esi, edi
je 0x416f2f
test bl, 2
mov eax, 0x403780
jne 0x416efe
mov eax, 0x401c49
push eax
movzx eax, word [0x421b30]
push eax
lea eax, [ebp - 0x11c]
push 0x40376c
push eax
call fcn.0040c280
add esp, 0x10
push edi
push edi
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 4]
call fcn.00416819
mov dword [ebp - 8], eax
cmp dword [ebp - 4], edi
pop edi
pop esi
pop ebx
je 0x416f44
push dword [ebp - 4]
push 0x424220
call fcn.004167ad
mov eax, dword [ebp - 8]
leave
ret
Function at 0x416f49
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ecx
mov eax, dword [0x421b3c]
push ebx
push ebp
push esi
mov dword [esp + 0xc], eax
mov eax, dword [0x421b38]
push edi
mov dword [esp + 0x14], eax
call fcn.00416dab
test eax, eax
jl 0x41706e
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
mov esi, 0xea60
call ebp
mov edi, eax
jmp 0x417023
mov ecx, edi
sub ecx, eax
add ecx, esi
push ecx
push 0
lea eax, [esp + 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x416fff
push eax
push eax
push dword [0x420740]
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x417033
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x417023
cmp eax, 0x2733
je 0x417023
push dword [0x420740]
call ebx
or dword [0x420740], 0xffffffff
cmp dword [0x421b78], 0
jne 0x417069
push dword [0x420740]
call ebx
or dword [0x420740], 0xffffffff
call fcn.00416dab
test eax, eax
jge 0x416f7f
jmp 0x41706e
cmp eax, 1
jne 0x417023
push 0x421b44
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x421afc], 0
je 0x417047
push 0x421b44
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebp
mov ecx, eax
sub ecx, edi
cmp ecx, esi
jb 0x416f88
jmp 0x416fd8
push eax
call fcn.00415d12
push 1
mov dword [0x421b78], eax
call fcn.00416a93
jmp 0x416fd8
push dword [0x420740]
call ebx
or dword [0x420740], 0xffffffff
push 0x421b44
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov eax, 0x2db0000
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x417c9f
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x417cc5
push 0x14
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [esi], 2
mov dword [esi + 8], edi
jmp 0x417cd8
push edi
push edi
push edi
push edi
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp + 8], edi
mov ebx, 0x421b44
setne al
push ebx
xor eax, dword [esi]
and eax, 1
xor dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x421b74], edi
mov eax, dword [0x421afc]
mov dword [esi + 0x10], eax
mov dword [0x421afc], esi
jne 0x417d48
push dword [0x421b38]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push 4
push edi
push 0x41795f
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x421b74], eax
je 0x417d3e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x417d48
push 0x8000ffff
call fcn.00416d2c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x421b00]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp + 0xc], edi
pop edi
pop esi
pop ebx
je 0x417d6a
mov eax, 0x2db0000
jmp 0x417d81
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x41801a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x418115
cmp dword [ebp + 0x10], ebx
je 0x418115
mov eax, dword [ebp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418040
sub eax, edx
cmp eax, 0x3de
ja 0x418115
push ebx
push 0x8000000
push 3
push ebx
push 1
push bind
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x41807f
mov eax, 0x82db0103
jmp 0x41811a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x418097
mov dword [ebp + 0x10], 0x82db0103
jmp 0x4180f0
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x400]
push 0x403918
push eax
call fcn.0040c280
mov esi, dword [ebp + 8]
add esp, 0x10
push ebx
push ebx
lea eax, [ebp - 0x400]
push eax
push esi
call fcn.00416819
cmp eax, ebx
mov dword [ebp + 0x10], eax
jl 0x4180f0
push ebx
push ebx
push ebx
push 0x1000
push edi
push dword [ebp + 0xc]
push dword [esi + 0x400]
call sub.MSWSOCK.dll_TransmitFile
test eax, eax
jne 0x4180fe
push esi
call fcn.00415f10
mov dword [ebp + 0x10], 0x82db0101
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
jmp 0x41811a
push ebx
push ebx
push esi
call fcn.00416572
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41811a
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0xc