joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d3b6
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
je 0x100d436
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x100d40b
push edi
call fcn.0100df8c
test eax, eax
je 0x100d43f
push edi
call fcn.0100e278
add dword [esi], eax
mov eax, dword [ebp + 0x10]
adc dword [esi + 4], 0
inc dword [eax]
jmp 0x100d425
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add dword [esi], eax
push dword [ebp + 8]
adc dword [esi + 4], 0
inc dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
jne 0x100d3cd
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push edi
push 0xc0ff2009
call fcn.0100d30b
call esi
jmp 0x100d438

Function at 0x100d45c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x1018344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 0x1020c]
push eax
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010050b7
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [esi + 0x1041c]
push eax
call fcn.0100e176
push 1
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e19c
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [esi + 0x10624]
push eax
call fcn.010050b7
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1002dac
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [esi + 0x1082c]
push eax
call fcn.010050b7
push edi
lea eax, [ebp - 0x620]
push eax
call fcn.0100c7cb
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
push edi
lea eax, [esi + eax*2 + 0x10624]
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push dword [0x101ceb4]
call fcn.01007d73
cmp eax, edi
jne 0x100d590
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10a34], eax
cmp eax, 0xffffffff
jne 0x100d58e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [ebp - 0x20c]
push eax
push 0xc0ff2009
call fcn.0100d30b
call esi
jmp 0x100d590
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010093a5
leave
ret
Function at 0x100d7ae
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push 0x208
lea eax, [esi + 0x1041c]
push eax
call fcn.010050b7
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
jne 0x100d801
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100d88a
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x100d81c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100d881
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x10a50], eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [esi + 0x10a50]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 0x10a54], edi
mov dword [esi + 0x10a58], edi
mov dword [esi + 0x10a5c], edi
call fcn.010106b8
mov ebx, eax
cmp ebx, edi
jne 0x100d881
push dword [ebp + 8]
mov ecx, esi
push dword [ebp - 4]
call fcn.0100cfaa
mov ebx, eax
cmp ebx, edi
jne 0x100d881
mov ecx, dword [esi + 0x10a50]
lea eax, [esi + 0x10a90]
add dword [eax], ecx
mov ecx, dword [esi + 0x10a54]
adc dword [eax + 4], ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x100de05
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10a34], 0xffffffff
push edi
movzx edi, word [ebp + 0xc]
jne 0x100de5f
mov eax, 0x3f3
jmp 0x100de8b
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x10a34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100de65
mov ecx, dword [ebp + 0xc]
add dword [ebp + 8], ecx
lea eax, [esi + 0x10a48]
xor edx, edx
sub edi, ecx
add dword [eax], ecx
adc dword [eax + 4], edx
lea eax, [esi + 0x10a58]
add dword [eax], ecx
adc dword [eax + 4], edx
test edi, edi
ja 0x100de25
jmp 0x100de6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp + 0x10], 0
je 0x100de89
push 1
mov ecx, esi
test ebx, ebx
jne 0x100de84
call fcn.0100d5a4
mov ebx, eax
jmp 0x100de89
call fcn.0100d5a4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x100debc
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov esi, ecx
xor edi, edi
push eax
push dword [esi + 0x44]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.0100d3b6
mov ebx, eax
cmp ebx, edi
je 0x100defc
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x100df70
cmp dword [ebp - 4], edi
jne 0x100df06
cmp dword [ebp - 8], edi
je 0x100df7b
push dword [ebp + 8]
mov ecx, esi
call fcn.0100e5d9
mov ebx, eax
cmp ebx, edi
jne 0x100df29
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x14]
call fcn.0101008d
mov ebx, eax
cmp ebx, edi
je 0x100df34
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x100df70
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10a40], eax
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x100dea4
push edi
push edi
mov dword [esi + 0x10a44], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x100df69
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100df70
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x100df7b
mov ecx, esi
call fcn.0100c1ae
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
leave
ret 0xc

Function at 0x100df8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100dfa3
xor eax, eax
jmp 0x100dfa6
and eax, 0x10
pop ebp
ret 4

Function at 0x100e19c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1018344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x214], edi
call fcn.0100dfdf
test eax, eax
je 0x100e1d8
push 0x1001e90
push dword [ebp + 0xc]
push esi
call fcn.0100600d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [esi + ebx*2]
push esi
mov dword [ebp - 0x210], eax
call fcn.0100600d
push 0x101ca40
push 0x200
lea eax, [ebp - 0x204]
push eax
call fcn.010050b7
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and dword [ebp - 0x208], 0
push esi
call edi
cmp eax, 0xffffffff
je 0x100e25f
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov dword [ebp - 0x20c], eax
push dword [ebp - 0x214]
inc dword [ebp - 0x208]
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0100e117
add esp, 0x14
push esi
call edi
cmp eax, 0xffffffff
jne 0x100e22a
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.010093a5
leave
ret 0x10
Function at 0x100e278
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc84
mov eax, dword [0x1018344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xc80], 0
push esi
push edi
push eax
mov esi, 0x208
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010050b7
lea eax, [ebp - 0x20c]
push eax
call fcn.0100dfdf
test eax, eax
je 0x100e2ce
push 0x1001e90
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01004458
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x410
push edi
lea eax, [ebp - 0xa2c]
push eax
call fcn.010050b7
push 0x1002dcc
push edi
lea eax, [ebp - 0xa2c]
push eax
call fcn.01004458
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc84], eax
cmp eax, 0xffffffff
je 0x100e3ee
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x61c]
push eax
call fcn.010050b7
lea eax, [ebp - 0xc50]
push eax
push edi
lea eax, [ebp - 0x61c]
push eax
call fcn.01004458
test byte [ebp - 0xc7c], 0x10
je 0x100e38b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1002dc8
lea eax, [ebp - 0xc50]
push eax
call esi
test eax, eax
je 0x100e3c7
push 0x1002dc0
lea eax, [ebp - 0xc50]
push eax
call esi
test eax, eax
je 0x100e3c7
lea eax, [ebp - 0x61c]
push eax
call fcn.0100e278
add dword [ebp - 0xc80], eax
jmp 0x100e3c7
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100e3c7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add dword [ebp - 0xc80], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xc7c]
push eax
push dword [ebp - 0xc84]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100e31c
push dword [ebp - 0xc84]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc80]
pop edi
xor ecx, ebp
pop esi
call fcn.010093a5
leave
ret 4
Function at 0x100e409
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10c], 1
cmp eax, 0xffffffff
jne 0x100e487
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 8], 5
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_select]
cmp dword [esi + 0x30], edi
jne 0x100e480
cmp eax, edi
je 0x100e435
push ebx
push edi
push 0xff40
lea ebx, [esi + 0x264]
push ebx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100e4ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100e4d2
mov eax, 0x3e3
jmp 0x100e4d3
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 8], eax
imul edx, edx, 0x3e8
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 4], edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x100e45c
mov eax, 0x5b4
jmp 0x100e4d3
cmp eax, edi
jne 0x100e4c5
mov eax, 0x2746
jmp 0x100e4d2
push eax
push ebx
push 1
mov ecx, esi
call fcn.0100ef52
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x100e5d9
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1018344]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1a
pop eax
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 8]
push 0x10027ac
mov dword [ebp - 0x22], eax
push 0x19
lea eax, [ebp - 0x1e]
mov esi, ecx
push eax
mov dword [esi + 0x3c], 1
call fcn.0100e571
mov edi, dword [sym.imp.WS2_32.dll_connect]
push 0x20
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x40]
call edi
test eax, eax
jne 0x100e62c
xor eax, eax
jmp 0x100e651
push 0x10027a4
push 0x19
lea eax, [ebp - 0x1e]
push eax
call fcn.0100e571
push 0x20
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x40]
call edi
test eax, eax
je 0x100e628
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010093a5
leave
ret 4
Function at 0x100e666
Capabilities:
Check mutex on windows
Receive data
Receive data on socket

Disassembly:
push 0x30
mov eax, 0x10156e7
call fcn.0100942d
mov esi, ecx
xor ebx, ebx
push 0x1002d1c
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], ebx
call fcn.01014b29
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
jmp 0x100e823
push 2
pop edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x2c]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x10a58], ebx
mov dword [esi + 0x10a5c], ebx
mov dword [ebp - 0x3c], 0x20
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x100e6f1
cmp dword [esi + 0x28], ebx
jne 0x100e82c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xc0ff2006
push edi
lea ecx, [ebp - 0x38]
call fcn.01014be3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100e823
push 0x80000001
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [esi + 0x3c], 3
call fcn.0100da20
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x30], 0
jne 0x100e7bf
lea edi, [esi + 0x10a6c]
push dword [edi]
call fcn.0100eabc
push dword [edi]
mov ebx, eax
call fcn.0100eaa8
push 0
sub ebx, eax
push ebx
lea edi, [esi + 0x264]
push edi
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100e7c8
test ebx, ebx
je 0x100e7f2
push 0x10024f8
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x100e773
push eax
call fcn.0100c0f2
jmp 0x100e77a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [esi + 0x10a58], ebx
push ebx
push edi
adc dword [esi + 0x10a5c], 0
push 0
mov ecx, esi
call fcn.0100ef52
xor edi, edi
jmp 0x100e79b
cmp dword [ebp - 0x34], edi
jne 0x100e7ab
lea eax, [ebp - 0x34]
push eax
push edi
mov ecx, esi
call fcn.0100fd0f
test eax, eax
jne 0x100e796
cmp dword [ebp - 0x34], 0xffffffff
jne 0x100e7b4
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], edi
je 0x100e711
jmp 0x100e7f6
mov dword [ebp - 0x34], 0x4c7
jmp 0x100e7f6
cmp dword [esi + 0x10a70], 1
je 0x100e7f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xc0ff2007
push 2
lea ecx, [ebp - 0x38]
call fcn.01014be3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
jmp 0x100e7f6
and dword [ebp - 0x34], 0
push dword [ebp - 0x34]
mov ecx, esi
call fcn.0100e4de
mov eax, dword [esi + 0x40]
xor ebx, ebx
mov dword [ebp - 0x34], ebx
cmp eax, 0xffffffff
je 0x100e818
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x40], 0xffffffff
push 0x80000000
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
cmp dword [esi + 0x28], ebx
je 0x100e691
mov ecx, esi
call fcn.0100c1ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.01014b4d
xor eax, eax
call fcn.010094bf
ret
Function at 0x100e862
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 0x10ab0
call sub.MFC42u.dll_operatornew
pop ecx
test eax, eax
je 0x100e883
mov ecx, eax
call fcn.0100cce1
mov esi, eax
jmp 0x100e885
xor esi, esi
test esi, esi
jne 0x100e88d
xor eax, eax
jmp 0x100e8d7
push dword [ebp + 8]
mov ecx, esi
push 0
push 1
push 0
push 0
call fcn.0100cd95
test eax, eax
jne 0x100e8ae
push 1
mov ecx, esi
call fcn.0100bf0c
jmp 0x100e889
lea eax, [ebp - 4]
push eax
push 0x10000
push esi
push 0x100e84c
push 0x13880
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100e8a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4

Function at 0x100e8e1
Capabilities:
Initialize winsock library
Print debug messages
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x1018344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x1b4]
push eax
push 2
xor ebx, ebx
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100ea08
push 0x1002e18
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x100e948
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100e95b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002df0
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov esi, edi
cmp edi, ebx
je 0x100e999
push 0x10027a4
push dword [ebp - 0x1b8]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x100e97c
lea esi, [edi + 0x274]
push ebx
push ebx
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_WSASocketW]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp esi, 0xffffffff
jne 0x100ea0c
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
push eax
push 0x1002dd4
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
push ebx
push 1
push 0x1a
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100e9c4
call edi
jmp 0x100ea08
push 0x1a
pop eax
push dword [ebp - 0x1b8]
mov word [ebp - 0x24], ax
push 0x19
lea eax, [ebp - 0x1e]
push eax
mov dword [ebp - 0x22], ebx
call fcn.0100e571
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100e9ff
push 8
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x100ea0c
call edi
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x100ea21
push esi
call fcn.0100e862
mov edi, eax
cmp edi, ebx
jne 0x100ea1f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010093a5
leave
ret 4
Function at 0x100fdbf
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov ebx, ecx
call esi
and dword [ebp - 4], 0
and dword [ebp - 8], 0
mov edi, eax
add edi, dword [ebp + 8]
cmp byte [ebp + 0xc], 0x90
jne 0x100fded
mov dword [ebp - 8], 0x4de
lea eax, [ebp - 4]
push eax
push 1
mov ecx, ebx
call fcn.0100fd0f
cmp eax, 1
jne 0x100fe07
mov eax, dword [ebp - 4]
jmp 0x100fe96
cmp dword [ebp + 8], 0xffffffff
jne 0x100fe41
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0100e409
mov dword [ebp - 4], eax
cmp eax, 0x274c
jne 0x100fe25
xor eax, eax
mov dword [ebp - 4], eax
test eax, eax
jne 0x100fe8c
lea eax, [ebp - 4]
push eax
push 1
mov ecx, ebx
call fcn.0100fd0f
test eax, eax
jne 0x100fe8c
cmp dword [ebp - 4], eax
je 0x100fe0d
jmp 0x100fe8c
call esi
mov ecx, edi
sub ecx, eax
push ecx
mov ecx, ebx
call fcn.0100e409
mov dword [ebp - 4], eax
cmp eax, 0x274c
jne 0x100fe61
mov eax, 0x5b4
mov dword [ebp - 4], eax
test eax, eax
jne 0x100fe8c
lea eax, [ebp - 4]
push eax
push 1
mov ecx, ebx
call fcn.0100fd0f
test eax, eax
jne 0x100fe8c
cmp dword [ebp - 4], eax
jne 0x100fe8c
call esi
mov ecx, edi
sub ecx, eax
test ecx, ecx
jg 0x100fe41
mov dword [ebp - 4], 0x5b4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x100fe96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1010ecd
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x101ced8], eax
cmp eax, esi
jne 0x1010eee
xor eax, eax
jmp 0x1010f67
push ebx
lea eax, [ebp - 4]
push eax
push esi
mov ebx, 0x101ced8
push ebx
push 0x1010d62
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x101cedc], eax
cmp eax, esi
jne 0x1010f26
push dword [0x101ced8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x101ced8], esi
xor eax, eax
jmp 0x1010f66
push edi
push 0xffffffffffffffff
push dword [0x101ced8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x101ced8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov dword [0x101ced8], esi
cmp dword [0x101cee0], esi
je 0x1010f63
push dword [0x101cedc]
call edi
mov dword [0x101cedc], esi
xor eax, eax
jmp 0x1010f65
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1010fbc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1018344]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10110f6
mov eax, dword [0x101f664]
push edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1002c3c
push dword [0x101ce6c]
mov dword [ebp - 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edi, edi
inc edi
cmp dword [ebp - 0x34], esi
je 0x1011035
push 4
lea eax, [ebp - 0x40]
push eax
push 4
push esi
push 0x1002b90
push dword [ebp - 0x34]
mov dword [ebp - 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x34], esi
je 0x1011035
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
push esi
lea eax, [ebp - 0x38]
push eax
mov ebx, 0x400
push ebx
push edi
push dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0xb00
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
call edi
test eax, eax
je 0x10110f4
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x10110f4
jmp 0x1011076
cmp word [eax], 0x20
jb 0x101107d
inc eax
inc eax
cmp word [eax], si
jne 0x101106e
jmp 0x1011082
xor ecx, ecx
mov word [eax], cx
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push 0x1002e84
push 0x14
push eax
mov dword [ebp - 0x44], eax
call fcn.0100e117
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push ebx
push 0xc0ff1003
push dword [ebp - 0x3c]
push 0x2900
call edi
test eax, eax
jne 0x10110c8
cmp dword [ebp - 0x30], esi
je 0x10110f4
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10110f4
push 0x50010
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x30], esi
je 0x10110ea
push dword [ebp - 0x30]
call edi
cmp dword [ebp - 0x38], esi
je 0x10110f4
push dword [ebp - 0x38]
call edi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010093a5
leave
ret 8