joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413ca5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4a337c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x413d06
push esi
push dword [0x4a3384]
push 8
push dword [0x4a2a14]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4a337c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4a3380]
jmp 0x413cf6
mov eax, dword [esi + 0xc]
test eax, eax
je 0x413cf4
mov ecx, dword [esi + 8]
add ecx, edi
push ecx
call eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x413ce4
push edi
push 0x413c6a
call fcn.0043d9ed
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x413d10
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
and eax, 3
push esi
push edi
je 0x413d25
push 4
pop ecx
sub ecx, eax
add ebx, ecx
cmp dword [0x4a3384], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
jne 0x413d57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push ebx
push 8
push dword [0x4a2a14]
mov dword [0x4a337c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4a337c]
call esi
mov edi, dword [0x4a3384]
add dword [0x4a3384], ebx
push dword [0x4a3384]
push dword [0x4a337c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x4a2a14]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
push ebx
push dword [0x4a337c]
call esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x413d9d
cmp dword [esp + 0x18], esi
je 0x413dc1
push 0x14
push 0x4a3380
call fcn.00414150
test esi, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
je 0x413dc1
add ebx, edi
push ebx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x414230
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x492648]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x414276
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
push 0
mov edx, dword [0x4a37fc]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x414297
mov edx, dword [ebp - 4]
add edx, 5
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x4a37fc]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00414770
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x414320
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x492648]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x4143e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edx
mov eax, dword [0x492648]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
mov dword [ebp - 4], ecx
pop edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x4144f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x492648]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x414620
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x492648]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x414644
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, 4
cmp dword [ebp - 8], eax
jl 0x414691
mov ecx, dword [ebp - 8]
add ecx, 0x4000
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
add ecx, 5
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x4a37fc]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4146f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x492648]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x41472e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x41472e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x414730
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x43d9ed
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4a33d0], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
jne 0x43da23
push 0x4a33b4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4a33d0], 1
push 0x4a33b4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a33cc]
cmp eax, ebx
mov edi, eax
je 0x43da87
cmp dword [ebp - 4], ebx
jne 0x43dbc7
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x43da5a
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x43da4b
jmp 0x43da78
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.0043d83f
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x43da39
cmp dword [ebp - 4], ebx
jne 0x43dbc7
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x43dbc7
mov edi, dword [0x4a33cc]
jmp 0x43dac7
cmp dword [edi + 0xc], 0x3f
jl 0x43db61
mov edi, dword [edi]
cmp edi, ebx
jne 0x43dabb
push 0x310
push 8
push dword [0x4a2a14]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x43dbbe
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [edi + 8], eax
je 0x43dbb0
push ebx
push ebx
push edi
push 0x43d890
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x43dba7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d83f
mov eax, dword [0x4a33cc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
je 0x43db59
mov dword [eax + 4], edi
mov dword [0x4a33cc], edi
jmp 0x43dbc7
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.0043d83f
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x43dbc7
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x4a2a14]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4a33b4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43eeec
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x154
push 8
push dword [0x4a2a14]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4a3774]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x4a3778], esi
and dword [esi + 0x88], 0
or dword [esi + 0x8c], 0xffffffff
or dword [esi + 0x90], 0xffffffff
push esi
mov dword [esi + 0x84], 0xffffff
mov dword [esi + 0x6c], 2
mov dword [esi + 0x70], 0x3f
call fcn.004442a1
mov dword [esi + 0x58], 0x43ee6b
mov dword [esi + 0x5c], 0x43eeaa
mov dword [esi + 0x10], fcn.0043e039
mov dword [esi + 0x30], 0x43e1b8
mov dword [esi + 0x64], 0x43e2c1
mov dword [esi + 0x60], 0x43e30c
mov dword [esi + 0x34], 0x43ea0a
mov dword [esi + 0x24], 0x43e8a9
mov dword [esi + 0x28], 0x43e8d2
mov dword [esi + 0x2c], 0x43e8fd
mov dword [esi + 0x44], 0x43ecfb
mov eax, esi
pop esi
ret 4

Function at 0x43fbdb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
push esi
mov esi, dword [ecx + 0xb4]
mov dword [ebp - 4], esi
je 0x43fc4e
mov eax, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x43fc3d
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x10]
jne 0x43fc22
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x43fc02
pop edi
pop ebx
pop esi
leave
ret 0x1c

Function at 0x4409da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xb4]
je 0x440a56
push ebx
imul eax, eax, 3
push esi
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 8]
mov esi, edx
imul esi, dword [ebp + 0x10]
add eax, edi
mov edi, eax
mov dword [ebp + 0x18], eax
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x440a3e
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x10]
jne 0x440a24
mov edi, dword [ebp + 0x18]
dec dword [ebp + 0x20]
add edi, dword [ebp + 0xc]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x18], edi
jne 0x440a06
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x401465
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x4030e8
call sub.msvcrt.dll_system
mov dword [esp], 0x4030ec
call sym._puts
call sym._color_back
mov dword [ebp - 0xc], 0
jmp 0x4014bb
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._display_line
mov dword [esp], str.Game_Over
call sym._puts
mov dword [esp], 0xc8
call sym._Sleep_4
sub esp, 4
add dword [ebp - 0xc], 5
cmp dword [ebp - 0xc], 0x31
jle 0x401491
call sym._color_back
mov dword [esp], 0xc8
call sym._Sleep_4
sub esp, 4
leave
ret

Function at 0x401600
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401626
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4016ba
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401675
cmp eax, 0x40
je 0x401675
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401619
cmp eax, 0x40
je 0x401619
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401619
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x11835a79
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x28126685
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0xd4efbc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xd4efc6
add byte [eax], ch
cmp al, byte [eax]
add byte [eax], al
add byte [eax], al
pushal
call 0xd4efcc
pop ebp
sub ebp, 0x10
sub ebp, 0x94efbc
jmp 0xd4efe2
in eax, dx
mov esp, 0xe90094ef
add al, 0
add byte [eax], al
cmp bh, dh
invalid
add byte [eax], al
add byte [eax], bh
test dword [edi], 0xefbcb8b8
xchg esp, eax
add byte [ebx], al
lds eax, [ecx + 0x4cc0]
add byte [ecx + 0x5b7], bh
mov eax, 0x94efbc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b7
add byte [edx + 0x3db59096], bh
mov edx, 0x3db59096
xor byte [eax], dl
inc eax
dec ecx
jne 0xd4eff9
jmp 0xd4f00c
add al, 0
add byte [eax], al
mov ebp, dword [esi + 0x5b1dc307]
sbb eax, 0x9696aa1f
sbb eax, 0xaa1f1d5b
xchg esi, eax
xchg esi, eax
xchg esi, eax
pop ss
push edi
outsb dx, byte [esi]
xchg esi, eax
xchg esi, eax
xchg esi, eax
xchg ebp, eax
pop ebx
nop
xchg esi, eax
xchg esi, eax
xchg esi, eax
sub al, 0xbe
xchg esi, eax
xchg esi, eax
xchg esi, eax
popal
je 0xd4efbe
pop esi
sbb eax, 0x96969a17
xchg esi, eax
xchg ebp, eax
push ebx
mov dh, 0xfe
push ss
sub byte [ecx - 0x5855016a], cl
jecxz 0xd4efd4
xchg edi, eax
mov edx, 0x5cb5feb2
in al, dx
salc
jle 0xd4efdb
xchg esi, eax
xchg esi, eax
xchg esi, eax
jg 0xd4eff3
xchg esi, eax
xchg esi, eax
xchg esi, eax
sbb esi, edx
mov dl, 0x6a
pop ds
mov edx, 0xb2fa1bb2
xchg esi, eax
sbb eax, 0x96969e13
xchg esi, eax
sbb eax, 0x96969a03
xchg esi, eax
sbb eax, 0x9696861b
xchg esi, eax
push edi
jg 0xd4f004
cmpsd dword [esi], dword es:[edi]
xchg esp, eax
adc eax, 0x99df9254
adc esp, dword [edx + 0x69]
imul ebp, dword [ecx - 0x35], 0x1d969a54
sbb dh, byte [edx - 0x6969696e]
invalid
Function at 0x10001150
Capabilities:
Resolve dns

Disassembly:
sub esp, 4
mov dword [esp], 0
push esi
push edi
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x10001197
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x100011a3
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
lea edi, [esp + 8]
mov ecx, edx
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 4
ret 4
xor eax, eax
pop edi
pop esi
add esp, 4
ret 4

Function at 0x10001770
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
test eax, eax
push edi
jne 0x10001786
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
ret 0xc
cmp byte [eax], 0
jne 0x10001796
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
ret 0xc
mov edi, dword [esp + 0x18]
push 0
test edi, edi
je 0x10001834
push 0x8000080
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
jne 0x100017cd
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
ret 0xc
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x40000000
mov edi, eax
mov ebx, dword [esp + 0x10]
jae 0x10001829
push 0
push edi
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0
mov dword [ebx + 0x10], eax
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0xc], edi
mov eax, esi
pop edi
pop esi
pop ebx
ret 0xc
mov eax, esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
mov ebx, dword [esp + 0x10]
mov eax, esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x100018b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push edi
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
push 4
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 1
push ecx
mov dword [eax], esi
push 1
push 6
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [esp + 0xc]
xor eax, eax
mov edx, dword [esp + 0x24]
mov dword [ecx], eax
push edx
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov word [esp + 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0xe], ax
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WSOCK32.dll_htonl]
lea ecx, [esp + 0xc]
push 0x10
mov dword [esp + 0x14], eax
push ecx
push esi
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x1000193d
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret 0x10
mov edi, dword [esp + 0x28]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push esi
call dword [sym.imp.WSOCK32.dll_send]
mov eax, esi
pop edi
pop esi
add esp, 0x14
ret 0x10

Function at 0x10001990
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x284
mov eax, dword [esp + 0x294]
push ebx
lea ecx, [esp + 0x88]
push esi
mov esi, dword [esp + 0x290]
push edi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esi + 8]
push ecx
add edi, dword [esi + 4]
call ebx
test edi, edi
je 0x100019ed
lea eax, [esp + 0x10]
push edi
push str.Range:_bytes_d__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x9c]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ecx
push eax
call edi
jmp 0x100019f3
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x90]
push 0x1000a234
push eax
call edi
mov edi, dword [esi + 0x14]
mov eax, dword [esp + 0x298]
mov ecx, dword [esp + 0x29c]
mov dword [esi], 0
lea edx, [esp + 0x90]
inc dword [esi + 0x18]
mov dword [esi + 0x10], 0xffffffff
push edx
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
lea eax, [edi + 0x14]
push eax
mov dword [edi + 0x10], ecx
call ebx
lea ecx, [esp + 0xc]
push ecx
push 4
push esi
push 0x10001960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
add esp, 0x284
ret 0x10
Function at 0x10001bb0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push ebp
mov edi, dword [esi + 0x14]
mov dword [esi + 0x10], 0xffffffff
test edi, edi
je 0x10001c13
mov eax, dword [edi]
test eax, eax
je 0x10001bd3
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
cmp dword [edi + 4], 0
je 0x10001c13
cmp dword [edi + 8], 0
jne 0x10001c09
xor ebx, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
call ebp
cmp dword [edi + 8], 0
jne 0x10001c09
inc ebx
cmp ebx, 0xa
jl 0x10001be7
cmp dword [edi + 8], 0
jne 0x10001c09
push 0
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
test eax, eax
je 0x10001c20
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10001c2e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ecx, ecx
cmp dword [esp + 0x18], ecx
je 0x10001c53
cmp dword [esi + 8], ecx
jne 0x10001c53
mov dword [esi], ecx
mov dword [esi + 4], ecx
pop ebp
mov dword [esi + 8], ecx
pop edi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
pop esi
pop ebx
ret 8
pop ebp
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
pop edi
pop esi
pop ebx
ret 8
Function at 0x10003766
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003892
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push 0x2458
call fcn.10003f60
mov dword [ebp - 0x10], eax
add esp, 4
mov edi, eax
mov esi, 0
xor eax, eax
test edi, edi
mov dword [ebp - 4], eax
je 0x100037e0
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x2450], eax
mov dword [edi + 0x2454], eax
mov dword [edi + 0x2440], eax
mov dword [edi + 0x243c], eax
mov esi, edi
mov dword [edi + 0x2438], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x2448], eax
mov dword [edi + 0x244c], eax
mov dword [edi + 0x2444], eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x100037ff
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x28
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x2418], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x241c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x2420], edx
mov edx, dword [ebp + 0x1c]
mov dword [esi + 0x2424], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x2428], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esi + 0x242c], edx
mov edx, dword [ebp + 0x28]
mov dword [esi + 0x2430], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x2434], ecx
lea ecx, [ebp - 0x14]
mov dword [esi + 0x2448], edx
push ecx
mov dword [esi + 0x244c], eax
push 4
push esi
push 0x10003700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
mov dword [esi + 0x2438], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0x2438]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
jmp 0x100037ed