joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021759
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x10120584], 0
push ebx
push esi
push edi
je 0x100218dc
mov eax, dword [0x1011e20c]
mov ecx, dword [0x10120594]
dec eax
cmp eax, 3
ja case.default.0x10021734
jmp dword [eax*4 + 0x100218e4]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
jmp 0x1002176b
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x1002176b
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
sete al
jmp 0x1002176b
mov al, byte [ebp + 0xb]
test al, al
je 0x100218dc
mov ecx, dword [0x101202f8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x100218dc
mov ecx, dword [0x101202f8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x100218dc
mov edi, dword [0x10120420]
test edi, edi
je 0x100218dc
mov eax, dword [0x10120334]
test eax, eax
jne 0x100217e5
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x10110195
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100ad
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov dword [0x10120334], eax
cmp dword [eax + edi], 0
jle 0x100218dc
call fcn.1000f8e0
cmp eax, 9
je 0x100218dc
call fcn.1000f8e0
cmp eax, 8
je 0x100218dc
mov ecx, dword [0x101202e0]
mov edi, dword [0x10120420]
mov ebx, edi
test ecx, ecx
jne 0x10021857
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x101100a1
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100ad
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov edi, dword [0x10120420]
mov ecx, eax
mov dword [0x101202e0], ecx
test byte [ecx + ebx], 1
mov eax, dword [0x101202ec]
je 0x1002187d
cmp byte [0x101208a0], 0
jne 0x1002187d
mov edx, dword [eax + 0x1c]
mov dword [0x101209ec], edx
mov byte [0x101208a0], 1
jmp 0x10021883
mov edx, dword [0x101209ec]
mov eax, dword [eax + 0x1c]
sub eax, edx
cmp eax, dword [0x1011e24c]
jle 0x100218dc
test ecx, ecx
jne 0x100218c8
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x101100a1
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100ad
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov ecx, eax
mov dword [0x101202e0], ecx
test byte [ecx + edi], 1
je 0x100218dc
mov eax, dword [ebp + 8]
mov byte [0x101208a0], 0
or dword [eax + 0x30], 2
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10021900
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 8
cmp byte [0x101205c0], 0
push esi
push edi
je 0x10021ac4
mov eax, dword [0x1011e204]
mov ecx, dword [0x101205bc]
dec eax
cmp eax, 3
ja case.default.0x10021939
jmp dword [eax*4 + 0x10021ad0]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
jmp 0x10021970
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10021970
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
sete al
jmp 0x10021970
mov al, byte [ebp - 1]
test al, al
je 0x10021ac4
mov edi, dword [0x10120420]
test edi, edi
je 0x10021ac4
mov eax, dword [0x10120334]
test eax, eax
jne 0x100219c0
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x10110195
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100ad
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov dword [0x10120334], eax
cmp dword [eax + edi], 0
jle 0x10021ac4
mov ecx, dword [0x101202f8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x10021ac4
mov ecx, dword [0x101202f8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x10021ac4
call fcn.1000f8e0
cmp eax, 9
je 0x10021ac4
call fcn.1000f8e0
cmp eax, 8
je 0x10021ac4
mov eax, dword [0x101202e0]
mov edi, dword [0x10120420]
test eax, eax
jne 0x10021a50
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x101100a1
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100ad
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov dword [0x101202e0], eax
test byte [eax + edi], 1
jne 0x10021ac4
mov edx, dword [ebx + 8]
lea ecx, [ebp - 8]
movss xmm1, dword [0x1011e238]
mov eax, 0x1011e238
xorps xmm1, xmmword [0x10118a80]
movss dword [ebp - 8], xmm1
movss xmm0, dword [edx]
comiss xmm1, xmm0
cmovbe ecx, edx
comiss xmm0, dword [0x1011e238]
cmovbe eax, ecx
lea ecx, [ebp - 8]
mov eax, dword [eax]
mov dword [edx], eax
mov eax, 0x1011e248
mov edx, dword [ebx + 0xc]
movss xmm1, dword [0x1011e248]
xorps xmm1, xmmword [0x10118a80]
movss dword [ebp - 8], xmm1
movss xmm0, dword [edx]
comiss xmm1, xmm0
cmovbe ecx, edx
comiss xmm0, dword [0x1011e248]
cmovbe eax, ecx
mov eax, dword [eax]
mov dword [edx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x10028240
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x100282a1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10028284
cmp edi, 2
jb 0x10028284
cmp byte [esi], cl
jne 0x10028284
cmp byte [esi + 1], cl
jne 0x10028284
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10111b70]
jmp 0x10028255
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10111b70]
test edi, edi
jne 0x10028255
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x100282d0
cmp cl, 0x23
jne 0x100282b7
cmp byte [esi], cl
jne 0x100282b7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10111b70]
test cl, cl
jne 0x100282a8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x100283e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100283f4
mov dword [ebx], 0
mov edx, 0x10111784
call fcn.100282e0
mov esi, eax
test esi, esi
je 0x100284e2
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x100284d8
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100284d8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x100284d8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100284d8
mov eax, dword [0x101203a8]
test eax, eax
je 0x1002846c
inc dword [eax + 0xac]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x100284d8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x100284bd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x101203a8]
add esp, 4
test eax, eax
je 0x100284aa
dec dword [eax + 0xac]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x100284cf
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002b4c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
lea edx, [ebp + 8]
mov esi, 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [edi + 0xec]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10111b70]
sub esi, 1
jne 0x1002b4e2
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e9c], ebx
jne 0x1002b519
push ecx
push dword [ebp + 8]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.1003ea10
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x1002b6f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [0x101203a8]
mov ebx, ecx
push edi
cmp byte [esi + 0x4827], 0
mov ecx, dword [esi + 0x3e68]
mov dword [ebp - 8], ecx
je 0x1002b756
cmp byte [esi + 0x4826], 0
jne 0x1002b756
test ebx, 0x800
jne 0x1002b756
test byte [esi + 0x46e4], 4
je 0x1002b735
test ebx, 0x400
je 0x1002b74d
mov eax, dword [esi + 0x47f0]
lea edx, [esi + 0x46e0]
cmp eax, dword [edx]
jne 0x1002b74d
test eax, eax
jne 0x1002b814
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x46e8]
test al, 1
je 0x1002b74d
test ebx, 0x800
je 0x1002b76e
or ebx, dword [esi + 0x3bc8]
cmp dword [esi + 0x3e6c], ecx
je 0x1002b782
test al, al
js 0x1002b782
test ebx, 0x200
je 0x1002b74d
lea edi, [esi + 0x46e0]
test bl, bl
js 0x1002b7a8
mov eax, dword [esi + 0x3eb4]
test eax, eax
je 0x1002b7a8
cmp eax, dword [edi]
je 0x1002b7a8
cmp byte [esi + 0x3ec1], 0
jne 0x1002b7a8
cmp eax, dword [ecx + 0x70]
jne 0x1002b74d
mov edx, ebx
call fcn.1002b680
test al, al
jne 0x1002b7bf
test dword [esi + 0x46e4], 0x100
je 0x1002b74d
test byte [esi + 0x46e4], 4
je 0x1002b7d4
test ebx, 0x400
je 0x1002b74d
mov ecx, dword [esi + 0x3e68]
mov eax, dword [edi]
cmp eax, dword [ecx + 0x70]
jne 0x1002b7ee
cmp byte [ecx + 0xac], 0
jne 0x1002b74d
test dword [esi + 0x46e4], 0x200
mov edx, edi
je 0x1002b814
test eax, eax
je 0x1002b814
test ebx, 0x100
jne 0x1002b814
cmp dword [esi + 0x3ea4], eax
jne 0x1002b74d
test ebx, 0x4000
je 0x1002b826
movss xmm3, dword [esi + 0x3bc0]
jmp 0x1002b836
test ebx, 0x8000
je 0x1002b84a
movss xmm3, dword [esi + 0x3bc4]
xorps xmm0, xmm0
comiss xmm3, xmm0
jbe 0x1002b84d
mov eax, ebx
and eax, 0x1000
mov dword [ebp - 4], eax
jmp 0x1002b863
xorps xmm3, xmm3
mov eax, ebx
and eax, 0x1000
mov dword [ebp - 4], eax
je 0x1002b945
lea edx, [esi + 0x46e0]
mov edx, dword [edx]
test edx, edx
jne 0x1002b902
movss xmm1, dword [ecx + 0x100]
lea edi, [ebp - 0x18]
movss xmm0, dword [esi + 0x46ec]
movss xmm2, dword [ecx + 0x104]
subss xmm0, xmm1
mov eax, dword [ebp - 8]
mov ecx, dword [ecx + 0xe4]
mov eax, dword [eax + 0xec]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [esi + 0x46f0]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
not edx
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [esi + 0x46f4]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [esi + 0x46f8]
mov esi, 0x10
subss xmm0, xmm2
movss dword [ebp - 0xc], xmm0
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10111b70]
sub esi, 1
jne 0x1002b8e0
mov esi, dword [0x101203a8]
not edx
test ebx, 0x10000
je 0x1002b91c
cmp dword [esi + 0x4ab0], edx
je 0x1002b91c
mov dword [esi + 0x4ab4], 0
cmp dword [ebp - 4], 0
mov dword [esi + 0x4aac], edx
je 0x1002b934
cmp dword [esi + 0x4abc], edx
jne 0x1002b74d
comiss xmm3, dword [esi + 0x4ab4]
setbe al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002ec80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x101203a8]
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0x10]
push edi
mov ebx, dword [esi + 0x3e68]
mov edi, ecx
mov eax, dword [ebx + 0xc]
movss xmm3, dword [ebx + 0x228]
and eax, 4
movss xmm4, dword [ebx + 0x22c]
or eax, 0x1000102
or edx, eax
cmp dword [ebx + 0x190], 0
mov dword [ebp + 0x10], edx
mov eax, ebx
jne 0x1002ecd1
cmp dword [esi + 0x4a24], 0
je 0x1002ecd9
movss xmm3, dword [ebx + 0x1f8]
mov ecx, dword [ebp + 8]
xorps xmm5, xmm5
subss xmm3, dword [eax + 0xf0]
subss xmm4, dword [eax + 0xf4]
movss xmm2, dword [0x10117028]
cvttss2si eax, dword [ecx]
mov dword [ebp + 8], 0
mov dword [ebp - 8], 2
movd xmm1, eax
cvttss2si eax, dword [ecx + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm5
cvtdq2ps xmm0, xmm0
lahf
xor ecx, ecx
test ah, 0x44
mov eax, 1
cmovnp ecx, eax
ucomiss xmm0, xmm5
lahf
test ah, 0x44
mov eax, dword [ebp + 8]
cmovnp eax, dword [ebp - 8]
or eax, ecx
comiss xmm5, xmm1
mov dword [ebp + 8], eax
jb 0x1002ed51
addss xmm1, xmm3
comiss xmm1, xmm2
jae 0x1002ed51
movaps xmm1, xmm2
comiss xmm5, xmm0
jb 0x1002ed62
addss xmm0, xmm4
comiss xmm0, xmm2
jae 0x1002ed62
movaps xmm0, xmm2
or dword [esi + 0x471c], 2
cmp byte [ebp + 0xc], 0
movss dword [esi + 0x4740], xmm0
movss xmm0, dword [esi + 0x37b0]
movss dword [esi + 0x473c], xmm1
mov dword [esi + 0x4724], 1
movss dword [ebp - 8], xmm0
jne 0x1002eda0
mov dword [esi + 0x37b0], 0
push edx
xor edx, edx
mov ecx, edi
call fcn.10031c90
mov edi, dword [esi + 0x3e68]
add esp, 4
movss xmm0, dword [ebp - 8]
mov edx, dword [ebp - 4]
movss dword [esi + 0x37b0], xmm0
cmp word [edi + 0xb6], 1
mov byte [ebp + 0xf], al
mov eax, dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [edi + 0x74], edx
mov byte [edi + 0xc6], al
jne 0x1002edf1
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [ebx + 0xf0], ecx
mov dword [ebx + 0xf4], eax
mov edi, edx
mov al, 0x23
not edi
mov edx, 0x10110db9
mov ebx, edi
nop
cmp al, 0x23
jne 0x1002ee0e
cmp byte [edx], al
jne 0x1002ee0e
cmp byte [edx + 1], al
cmove ebx, edi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x10111b70]
test al, al
jne 0x1002ee00
mov edi, dword [ebp - 8]
not ebx
cmp dword [esi + 0x3eb4], ebx
jne 0x1002ee3d
xor edx, edx
xor ecx, ecx
call fcn.1002b530
mov eax, dword [ebp - 4]
cmp dword [esi + 0x47f8], eax
jne 0x1002ee8b
test dword [ebp + 0x10], 0x800000
jne 0x1002ee8b
cmp word [edi + 0x14c], 0
jne 0x1002ee64
cmp byte [edi + 0x152], 0
je 0x1002ee8b
xor edx, edx
mov ecx, edi
call fcn.10034630
xor dl, dl
mov ecx, edi
call fcn.1003a440
mov edx, edi
mov ecx, ebx
call fcn.1002b530
mov eax, dword [esi + 0x481c]
mov dword [esi + 0x3ed4], eax
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002f100
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1002f13f
cmp bl, 0x23
jne 0x1002f121
cmp byte [esi], bl
jne 0x1002f121
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x10111b70]
test bl, bl
jne 0x1002f112
mov ecx, dword [0x101203a8]
not eax
mov esi, dword [ecx + 0x3e50]
mov edi, dword [ecx + 0x3e58]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1002f17e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1002f178
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1002f17a
mov esi, edx
test esi, esi
jne 0x1002f160
cmp edi, ebx
je 0x1002f18d
cmp dword [edi], eax
jne 0x1002f18d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1003d690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5ae8], 0
lea esi, [edi + 0x5aec]
je 0x1003d712
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1003d6cc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1003f5f0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10028b40
mov edx, dword [esi]
mov ecx, 0x101203a4
push dword [edi + 0x5ae8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5af4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10028b40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003da10
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x101203a8]
test bl, bl
je 0x1003da56
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1003da37
cmp byte [esi], bl
jne 0x1003da37
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10111b70]
test bl, bl
jne 0x1003da28
mov edi, dword [0x101203a8]
mov esi, dword [edi + 0x5a8c]
xor ecx, ecx
not eax
test esi, esi
jle 0x1003da7c
mov edi, dword [edi + 0x5a94]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x1003da82
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x1003da70
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x10047110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1004714a
mov eax, dword [0x101203a8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1004713d
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1004717b
mov eax, dword [0x101203a8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1004716e
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100471ac
mov eax, dword [0x101203a8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1004719f
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100471f9
mov eax, dword [0x101203a8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100471ec
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1004722a
mov eax, dword [0x101203a8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1004721d
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1004725b
mov eax, dword [0x101203a8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1004724e
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1004a040
Function at 0x1006e290
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1011e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1006e38a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1006e383
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x1006e369
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1006e369
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1006e369
mov edx, dword [esi]
test edx, edx
jne 0x1006e332
push 0x200
push edx
push dword [0x101203f0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1006e383
jmp 0x1006e35d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1006e35d
shl eax, 3
push eax
push edx
push 0
push dword [0x101203f0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1006e383
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1006e2f1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1006e3cf
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1006e3cf
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1006e3c9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1006e120
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1006e396
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f238c
mov esp, ebp
pop ebp
ret
Function at 0x1006e3e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x10120d10]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1006e426
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1006e441
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006e470
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x10120d18]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1006e54d
mov eax, dword [0x10120d10]
add eax, 0x14
test byte [eax], 2
je 0x1006e4aa
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x1006e495
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1006e54d
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1006e290
mov ecx, dword [0x10120d18]
add esp, 4
cmp esi, ecx
jae 0x1006e4fb
imul edi, esi, 0x2c
mov eax, dword [0x10120d10]
test byte [edi + eax + 0x14], 2
jne 0x1006e4f0
mov ecx, esi
call fcn.1006e3e0
mov ebx, eax
test ebx, ebx
jne 0x1006e4f8
mov ecx, dword [0x10120d18]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1006e4d1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1006e54c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1006e53d
mov ebx, eax
nop dword [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1006e531
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1006e510
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x101203f0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret