joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4244d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x45e084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4246ad
mov eax, dword [edi]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427228
xor ebx, ebx
mov dword [edi + 4], eax
add esp, 4
cmp dword [edi], ebx
jle 0x424678
nop
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov edx, dword [eax + ebx*4]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x48], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424592
sub eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.0040b0c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00415390
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
mov eax, dword [edi + 0xc]
push ecx
cmp dword [edi + 0x10], eax
je 0x4245dd
mov ecx, eax
call fcn.00409eb0
add dword [edi + 0xc], 0x18
jmp 0x4245e6
push eax
lea ecx, [edi + 8]
call fcn.0040ea00
mov ecx, dword [edi + 0xc]
add ecx, 0xffffffe8
cmp dword [ecx + 0x14], 0x10
jb 0x4245f4
mov ecx, dword [ecx]
mov eax, dword [edi + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov dword [eax + ebx*4], ecx
cmp edx, 0x10
jb 0x424632
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424628
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246a8
push edx
push ecx
call fcn.00426dff
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42466c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424662
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246a8
push edx
push ecx
call fcn.00426dff
add esp, 8
inc ebx
cmp ebx, dword [edi]
jl 0x424570
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push dword [ebp - 0x44]
mov dword [eax + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret
call fcn.0042bce9
push str.Failed_to_parse_command_line_arguments
lea ecx, [ebp - 0x1c]
call fcn.00401270
push 0x45ce8c
lea eax, [ebp - 0x1c]
push eax
call fcn.00428275
int3
Function at 0x426710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45e084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x14], 0x480078
mov dword [ebp - 0x10], 0x4e0042
mov dword [ebp - 0xc], 0x5e005d
mov dword [ebp - 8], 0x33005c
nop dword [eax]
lea ecx, [eax + 0x2c]
xor word [ebp + eax*2 - 0x14], cx
inc eax
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x426750
xor eax, eax
mov word [ebp + ecx*2 - 0x14], ax
lea ecx, [ebp - 0x14]
mov dword [esi + 0x10], eax
lea edx, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426780
sub ecx, edx
lea eax, [ebp - 0x14]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040b0c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004267b1
mov esp, ebp
pop ebp
ret

Function at 0x436ab7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043692d
Function at 0x404420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x34], edx
mov dword [ebp - 8], 0
jmp 0x40449d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x18]
jae 0x40450a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.00404320
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040f490
add esp, 8
test eax, eax
jne 0x404508
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x40450c
jmp 0x404494
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x409eb5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409ef4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409ef4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409ef4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409ef4
cmp dword [ecx + 0x74], 0xe
jbe 0x409ef4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419d18
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4269b0
push 0x4269a8
push str.FlsAlloc
push 0x1f
call fcn.00419bd7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419d4c
push dword [ebp + 8]
mov ecx, esi
call dword [0x424130]
call esi
jmp 0x419d52
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x419d96
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4269c0
push 0x4269b8
push str.FlsGetValue
push 0x21
call fcn.00419bd7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419dcd
push dword [ebp + 8]
mov ecx, esi
call dword [0x424130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419dd5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4269c8
push 0x4269c0
push str.FlsSetValue
push 0x22
call fcn.00419bd7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419e0f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x424130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41b7c6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41b863
push ebx
push esi
call fcn.0041b78f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b723
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b810
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b862
push edi
push eax
call fcn.00416f9e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b830
call fcn.00416f64
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b861
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b723
add esp, 0x20
test eax, eax
jne 0x41b84f
push edi
call fcn.00416f64
jmp 0x41b857
push ebx
call fcn.00416f64
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41b866
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41b877
pop esi
ret
push ebx
push edi
push esi
call fcn.0041b78f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00416f9e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41b89f
push ebx
push esi
push edi
call fcn.0040a020
add esp, 0xc
push 0
call fcn.00416f64
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41bc6f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b8b4
Function at 0x422f50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x422f7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422f7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10126130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021c4a0
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x1c]
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x1025fd80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov cl, byte [0x102233dc]
mov byte [eax], cl
xor eax, eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov word [ecx + 0x18], ax
mov byte [ecx + 0x1a], al
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call fcn.100b20f5
mov dword [ebp - 4], 0
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov word [ecx + 0x30], ax
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x32], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x33], 1
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x34], 0x80
mov eax, dword [ebp - 0x14]
add eax, 0x38
mov dword [ebp - 0xdc], eax
push ecx
movss xmm0, dword [0x10242ba8]
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
mov ecx, dword [ebp - 0xdc]
call fcn.100b3946
nop
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xdc
cmp ebp, esp
call fcn.100b3cbb
mov esp, ebp
pop ebp
ret
Function at 0x10198a80
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
lea edi, [ebp - 0x24]
mov ecx, 9
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1026b230
call fcn.100b4986
nop
mov eax, dword [ebp + 8]
push eax
call fcn.101961b0
add esp, 4
mov dword [ebp - 8], eax
mov esi, esp
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp esi, esp
call fcn.100b3cbb
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x20], ecx
mov esi, esp
push 4
mov eax, dword [ebp - 8]
add eax, 0x24
push eax
push 0x20001004
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp esi, esp
call fcn.100b3cbb
test eax, eax
jne 0x10198b09
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 0
pop edi
pop esi
pop ebx
add esp, 0xe4
cmp ebp, esp
call fcn.100b3cbb
mov esp, ebp
pop ebp
ret

Function at 0x10199ee0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
lea edi, [ebp - 4]
mov ecx, 1
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1026b230
call fcn.100b4986
nop
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.100b3cbb
movsx ecx, ax
and ecx, 0x8000
je 0x10199f30
mov dword [ebp - 0xc4], 1
jmp 0x10199f3a
mov dword [ebp - 0xc4], 0
movzx eax, byte [ebp - 0xc4]
pop edi
pop esi
pop ebx
add esp, 0xc4
cmp ebp, esp
call fcn.100b3cbb
mov esp, ebp
pop ebp
ret

Function at 0x1020a550
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1026b34c
call fcn.100b4986
nop
mov eax, dword [0x10268b18]
mov dword [ebp - 8], eax
jmp 0x1020a588
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1020a5a1
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x1020a59f
mov eax, dword [ebp - 8]
jmp 0x1020a624
jmp 0x1020a580
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.100b3cbb
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1020a621
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
add eax, 0x20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
cmp eax, 0xfe0
jbe 0x1020a5e4
mov eax, dword [ebp - 8]
mov ecx, dword [0x10268b18]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov dword [0x10268b18], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.100b3cbb
mov esp, ebp
pop ebp
ret
Function at 0x1020c130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1025fd80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x1026b4d4
call fcn.100b4986
nop
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x10268b00]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1020c19e
mov eax, dword [ebp - 0x30]
sub eax, 5
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
mov esi, esp
lea eax, [ebp - 0x18]
push eax
push 0x40
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100b3cbb
test eax, eax
jne 0x1020c1c9
mov eax, 0xa
jmp 0x1020c2cd
cmp dword [ebp + 0xc], 0
je 0x1020c216
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov byte [eax], 0xe9
mov eax, dword [ebp - 0x30]
add eax, 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
sub edx, eax
mov eax, dword [ebp - 0x3c]
mov dword [eax + 1], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1020c214
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov byte [eax], 0xeb
mov eax, dword [ebp - 0x48]
mov byte [eax + 1], 0xf9
jmp 0x1020c252
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1020c23d
push 7
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.100b4756
add esp, 0xc
jmp 0x1020c252
push 5
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.100b4756
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100b3cbb
nop
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.100b3cbb
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.100b3cbb
nop
mov al, byte [ebp + 0xc]
and al, 1
shl al, 1
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 0xfd
or dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], dl
mov al, byte [ebp + 0xc]
and al, 1
shl al, 2
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 0xfb
or dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], dl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x1020c2fc]
call fcn.100b37fc
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b31a3
add esp, 0x10c
cmp ebp, esp
call fcn.100b3cbb
mov esp, ebp
pop ebp
ret
Function at 0x1020c950
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1026b4d4
call fcn.100b4986
nop
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.1020c450
add esp, 4
test eax, eax
jne 0x1020c9b6
mov dword [ebp - 8], 9
jmp 0x1020ca77
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1020ca77
mov dword [ebp - 0x14], 0
jmp 0x1020c9d4
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 8]
jae 0x1020ca77
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.100b3cbb
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x20], 0
je 0x1020ca5d
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.100b3cbb
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
je 0x1020ca49
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.1020d7b0
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100b3cbb
nop
cmp dword [ebp - 0x2c], 0
jne 0x1020ca72
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov dword [ecx + edx*4], 0
jmp 0x1020c9cb
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.100b3cbb
mov esp, ebp
pop ebp
ret
Function at 0x1020db60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
lea edi, [ebp - 0x24]
mov ecx, 9
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1026b4d4
call fcn.100b4986
nop
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1020dc2c
mov dword [ebp - 8], 0
jmp 0x1020dba4
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x1020dc0d
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1020dc0b
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.100b3cbb
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1020dc0b
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.100b3cbb
nop
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100b3cbb
nop
jmp 0x1020db9b
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x1026866c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.100b3cbb
nop
pop edi
pop esi
pop ebx
add esp, 0xe4
cmp ebp, esp
call fcn.100b3cbb
mov esp, ebp
pop ebp
ret

Function at 0x1020e360
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xc]
mov ecx, 3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1026b5a8
call fcn.100b4986
nop
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x1020e3c9
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x90
je 0x1020e3c9
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xcc
je 0x1020e3c9
xor eax, eax
jmp 0x1020e40a
mov dword [ebp - 8], 1
jmp 0x1020e3db
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x1020e405
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
cmp ecx, eax
je 0x1020e403
xor eax, eax
jmp 0x1020e40a
jmp 0x1020e3d2
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.100b3cbb
mov esp, ebp
pop ebp
ret
Function at 0x10001017
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, fcn.10001017
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 0
jmp 0x10001052
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
jae 0x100010e4
mov dword [ebp - 0x1c], 0x2000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x28
add ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0xf8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
je 0x100010df
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0xc]
jbe 0x100010ac
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 8]
cmp dword [ebp - 4], edx
jb 0x100010df
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0x2000
jbe 0x100010c5
mov dword [ebp - 0x20], 0x2000
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call fcn.100010f7
add esp, 0xc
jmp 0x10001049
mov esp, ebp
pop ebp
ret

Function at 0x10001231
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x108b1110]
jne 0x1000123b
repz ret
jmp fcn.100014bd