joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x408]
stosw word es:[edi], ax
lea eax, [esp + 0x40c]
push eax
push ecx
push 0x3ff
push edx
call dword [sym.imp.MSVCRT.dll__vsnwprintf]
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
add esp, 0x400
ret

Function at 0x401060
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push esi
cmp eax, 1
push edi
jne 0x4010b3
mov ebx, dword [esp + 0x1c]
xor esi, esi
test ebx, ebx
jbe 0x4010d7
mov edi, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, esi
xor ecx, ecx
add eax, edx
adc ecx, ebp
push 0
push 0x10
push ecx
push eax
call fcn.004048d0
mov dl, byte [eax + 0x407020]
mov cl, byte [esi + edi]
xor dl, cl
inc esi
not dl
mov byte [esi + edi - 1], dl
cmp esi, ebx
jb 0x40107f
pop ebp
pop edi
pop esi
pop ebx
ret 0x14
cmp eax, 2
jne 0x4010d7
mov edi, dword [esp + 0x1c]
shr edi, 4
je 0x4010d7
mov esi, dword [esp + 0x18]
push esi
push esi
push 0x409830
call fcn.004010e0
add esi, 0x10
dec edi
jne 0x4010c5
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x4030e0
Capabilities:
Get disk size

Disassembly:
mov eax, 0x4008
call fcn.004049d0
mov eax, dword [0x409f84]
mov cx, word [0x409f88]
push esi
push edi
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov ecx, 0xffe
xor eax, eax
lea edi, [esp + 0x16]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x4014]
mov dword [esp + 8], esi
cmp eax, esi
mov dword [esp + 0xc], esi
je 0x403172
mov cx, word [eax]
cmp cx, 0x5c
je 0x403172
cmp word [eax + 2], 0x3a
jne 0x403172
push esi
lea edx, [esp + 0x10]
mov word [esp + 0x14], cx
push esi
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x403165
mov eax, dword [esp + 0xc]
mov dword [0x409c74], eax
imul eax, dword [esp + 8]
mov esi, eax
mov eax, esi
pop edi
pop esi
add esp, 0x4008
ret 4
pop edi
xor eax, eax
pop esi
add esp, 0x4008
ret 4
Function at 0x403740
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x254
push esi
mov esi, dword [esp + 0x25c]
push edi
push esi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.004030e0
push eax
push 0x40a1a0
mov dword [0x409c70], eax
call fcn.00401000
add esp, 8
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4037a7
push str.gb0R
push 0x40f470
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
xor eax, eax
pop esi
add esp, 0x254
ret 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push ecx
push eax
push 0x40a168
call fcn.00401000
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0xe0fc74]
test eax, eax
je 0x40382e
push str.S_MR5u
call fcn.00401000
add esp, 4
push esi
call fcn.00403bc0
test eax, eax
jne 0x40380b
push 0x40a114
call fcn.00401000
mov ecx, dword [esp + 0x268]
add esp, 4
push ecx
push esi
call fcn.00403180
pop edi
pop esi
add esp, 0x254
ret 8
push 0x40a0f0
call fcn.00401000
add esp, 4
lea edx, [esp + 8]
push edx
push esi
call fcn.004033e0
test eax, eax
jne 0x403874
push 0x40a0e0
jmp 0x40384f
push 0x40a0b4
call fcn.00401000
add esp, 4
lea edx, [esp + 8]
push edx
push esi
call fcn.004033e0
test eax, eax
jne 0x403874
push 0x40a0a0
call fcn.00401000
add esp, 4
push 0x40a08c
push 0x40f470
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
xor eax, eax
pop esi
add esp, 0x254
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x264]
push eax
push ecx
push esi
call fcn.004038a0
pop edi
pop esi
add esp, 0x254
ret 8
Function at 0x1000176b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x10001840
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x10001840
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x10001840
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x100017c6
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x10001840
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1000180b
test dl, dl
je 0x10001807
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1000180b
add ecx, 2
add eax, 2
test dl, dl
jne 0x100017eb
xor eax, eax
jmp 0x10001810
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10001822
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x1000182d
inc esi
cmp esi, ebp
jae 0x10001840
mov edx, dword [esp + 0x10]
jmp 0x100017e1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x10001aa4
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x10001aaf
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x10001ac3
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x10001ac7
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x10001b00
cmp dword [edi + ecx], 0x4550
jne 0x10001b00
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x10001b00
test byte [edi + ecx + 0x16], 2
je 0x10001b00
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x10001b05
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x10001b41
xor eax, eax
jmp 0x10001b24
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x10001b4a
inc edx
movzx eax, dx
cmp eax, edi
jl 0x10001b24
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x10001b50
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x10001b88
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x10001b96
add edx, 0x20
cmp eax, edx
jne 0x10001ba7
test bx, bx
je 0x10001bdc
add esi, 2
add edi, 2
jmp 0x10001b78
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10001bb5
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x10001bc3
add edx, 0x20
sub ecx, edx
je 0x10001bdc
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x10001b71
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10001bf5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x10001cce
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x10001cce
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x10001cce
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x10001c54
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x10001cce
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10001c99
test dl, dl
je 0x10001c95
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10001c99
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001c79
xor eax, eax
jmp 0x10001c9e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10001cb0
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x10001cbb
inc esi
cmp esi, ebp
jae 0x10001cce
mov edx, dword [esp + 0x10]
jmp 0x10001c6f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x10001cea
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
push edi
test esi, esi
je 0x10001e12
xor eax, eax
mov word [esp + 0x54], ax
mov byte [esp + 0x38], al
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x65006b
mov dword [esp + 0x44], 0x6e0072
mov dword [esp + 0x48], 0x6c0065
mov dword [esp + 0x4c], 0x320033
mov dword [esp + 0x50], 0x64002e
mov dword [esp + 0x54], 0x6c006c
mov dword [esp + 0x2c], 0x4d746547
mov dword [esp + 0x30], 0x6c75646f
mov dword [esp + 0x34], 0x6e614865
mov dword [esp + 0x38], 0x41656c64
mov dword [esp + 0x14], 0x65657246
mov dword [esp + 0x18], 0x7262694c
mov dword [esp + 0x1c], 0x797261
mov dword [esp + 0x20], 0x74726956
mov dword [esp + 0x24], 0x466c6175
mov dword [esp + 0x28], 0x656572
call fcn.10001f4c
add esp, 4
mov ebx, eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.10001e1e
mov ebp, eax
test ebp, ebp
je 0x10001e12
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.10001e1e
mov edi, eax
test edi, edi
je 0x10001e12
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.10001e1e
mov ebx, eax
test ebx, ebx
je 0x10001e12
mov ecx, dword [esi + 0x3c]
mov eax, 0x2000
test word [ecx + esi + 0x16], ax
je 0x10001dee
mov eax, dword [ecx + esi + 0x28]
test eax, eax
je 0x10001dee
push 0
push 0
push esi
add eax, esi
call eax
push edi
push ebp
push esi
call fcn.10001eff
add esp, 0xc
push 0x8000
push 0
push esi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 4

Function at 0x10001e1e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x10001ef3
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x10001ef3
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x10001ef3
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x10001e79
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x10001ef3
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10001ebe
test dl, dl
je 0x10001eba
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10001ebe
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001e9e
xor eax, eax
jmp 0x10001ec3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10001ed5
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x10001ee0
inc esi
cmp esi, ebp
jae 0x10001ef3
mov edx, dword [esp + 0x10]
jmp 0x10001e94
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x10001f4c
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x10001f84
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x10001f92
add edx, 0x20
cmp eax, edx
jne 0x10001fa3
test bx, bx
je 0x10001fd8
add esi, 2
add edi, 2
jmp 0x10001f74
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10001fb1
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x10001fbf
add edx, 0x20
sub ecx, edx
je 0x10001fd8
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x10001f6d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1000a837
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0xc], 0
je 0x1000a945
cmp dword [ebp + 8], 5
jge 0x1000a865
cmp dword [ebp + 8], 0
jle 0x1000a865
mov eax, 1
jmp 0x1000a86a
mov eax, 0
test eax, eax
je 0x1000a8ba
mov dword [ebp - 4], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 4], esp
je 0x1000a89e
push 0xab
push 0x4019896
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x8000
mov eax, 0
sete al
jmp 0x1000aa45
mov dword [ebp - 4], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 4], esp
je 0x1000a8e6
push 0x107
push 0x4019896
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffff8000
je 0x1000a936
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000a922
push 0x13d
push 0x4019896
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x8000
je 0x1000a936
xor eax, eax
jmp 0x1000a93b
mov eax, 1
jmp 0x1000aa45
cmp dword [ebp + 8], 5
jge 0x1000a960
cmp dword [ebp + 8], 0
jle 0x1000a960
mov eax, 1
jmp 0x1000a965
mov eax, 0
test eax, eax
je 0x1000a9b5
mov dword [ebp - 4], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 4], esp
je 0x1000a999
push 0x20a
push 0x4019896
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x8000
mov eax, 0
setne al
jmp 0x1000aa45
mov dword [ebp - 4], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 4], esp
je 0x1000a9e1
push 0x266
push 0x4019896
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffff8000
jne 0x1000aa31
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000aa1d
push 0x29c
push 0x4019896
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x8000
je 0x1000aa31
xor eax, eax
jmp 0x1000aa36
mov eax, 1
jmp 0x1000aa45
mov esp, ebp
pop ebp
ret 8
Function at 0x1000aa4b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000aa89
push 0x36
push 0x4019893
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000aaa7
cmp dword [ebp + 8], 0x11
je 0x1000aaa7
mov eax, 1
jmp 0x1000aaac
mov eax, 0
test eax, eax
je 0x1000aabb
mov dword [ebp - 4], 1
mov dword [ebp - 8], esp
push 0x10
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000aae9
push 0xd4
push 0x4019893
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000ab07
cmp dword [ebp + 8], 0x10
je 0x1000ab07
mov eax, 1
jmp 0x1000ab0c
mov eax, 0
test eax, eax
je 0x1000ab18
add dword [ebp - 4], 2
mov dword [ebp - 8], esp
push 0x12
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000ab46
push 0x18c
push 0x4019893
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000ab64
cmp dword [ebp + 8], 0x12
je 0x1000ab64
mov eax, 1
jmp 0x1000ab69
mov eax, 0
test eax, eax
je 0x1000ab75
add dword [ebp - 4], 4
mov dword [ebp - 8], esp
push 9
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000aba3
push 0x244
push 0x4019893
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000abc1
cmp dword [ebp + 8], 9
je 0x1000abc1
mov eax, 1
jmp 0x1000abc6
mov eax, 0
test eax, eax
je 0x1000abd2
add dword [ebp - 4], 8
mov dword [ebp - 8], esp
push 0x5b
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000ac00
push 0x2fc
push 0x4019893
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000ac1e
cmp dword [ebp + 8], 0x5b
je 0x1000ac1e
mov eax, 1
jmp 0x1000ac23
mov eax, 0
test eax, eax
je 0x1000ac2f
add dword [ebp - 4], 0x10
mov dword [ebp - 8], esp
push 0x14
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000ac5d
push 0x3b4
push 0x4019893
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000ac7b
cmp dword [ebp + 8], 0x14
je 0x1000ac7b
mov eax, 1
jmp 0x1000ac80
mov eax, 0
test eax, eax
je 0x1000ac8c
add dword [ebp - 4], 0x20
mov eax, dword [ebp - 4]
jmp 0x1000ac94
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
push 0x40
push 7
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000d4da
push 0
push 0x401984e
push 6
call fcn.1001977f
add esp, 0xc
push 0x80000301
push 0
push 7
push 0x80000301
push 0
push dword [ebp + 8]
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x1000d505
mov eax, 0x10049ea8
push eax
push 3
mov ebx, 0x914
call fcn.1001acc0
add esp, 0x28
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 7
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000d550
push 0x5d
push 0x401984e
push 6
call fcn.1001977f
add esp, 0xc
mov esp, ebp
pop ebp
ret 8

Function at 0x10011b2c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esp
push 0
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
cmp dword [ebp - 4], esp
je 0x10011b6a
push 0x47
push 0x4018fb1
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 1
push dword [ebp - 8]
push 4
push 0xffff
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10011bab
push 0x47
push 0x4018fb1
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
mov eax, 0
sete al
jmp 0x10011bbf
mov esp, ebp
pop ebp
ret 8
Function at 0x10011bc5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 8
call fcn.1001978b
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x10011c11
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov word [ebx], 1
jmp 0x10011c1f
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov word [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov word [ebx], 0
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
push eax
push 4
call fcn.1001978b
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10011c8a
push 0xcd
push 0x4018fae
push 6
call fcn.1001977f
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.10019791
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
mov eax, dword [ebp - 4]
push eax
push 4
call fcn.1001978b
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push 0x80
push 0xffff
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10011d1e
push 0x10c
push 0x4018fae
push 6
call fcn.1001977f
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.10019791
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
mov eax, 0
sete al
jmp 0x10011d59
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.10019791
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8

Function at 0x10011d6d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esp
push 0
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
cmp dword [ebp - 4], esp
je 0x10011dab
push 0x47
push 0x4018fbe
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 1
push dword [ebp - 8]
push 1
push 6
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10011dec
push 0x47
push 0x4018fbe
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
mov eax, 0
sete al
jmp 0x10011e00
mov esp, ebp
pop ebp
ret 8