joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100229ee
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 [0x101581ac], 0
push esi
push edi
je 0x10022b54
mov eax, dword [0x1011f1fc]
mov ecx, dword [0x101581a8]
dec eax
cmp eax, 3
ja case.default.0x100229c9
jmp dword [eax*4 + 0x10022b60]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
jmp 0x10022a00
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10022a00
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
sete al
jmp 0x10022a00
mov al, byte [ebp - 1]
test al, al
je 0x10022b54
mov edi, dword [0x101227d4]
test edi, edi
je 0x10022b54
mov eax, dword [0x101226d4]
test eax, eax
jne 0x10022a50
call fcn.10003520
mov edx, 0xe80c2f78
mov ecx, 0x101100f5
call fcn.10001980
mov edx, 0xc10bf213
mov ecx, 0x1011000d
mov esi, eax
call fcn.10001980
push esi
push eax
call fcn.1008c3b0
mov dword [0x101226d4], eax
cmp dword [eax + edi], 0
jle 0x10022b54
mov ecx, dword [0x10122698]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x10022b54
mov ecx, dword [0x10122698]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x10022b54
call fcn.1000f990
cmp eax, 9
je 0x10022b54
call fcn.1000f990
cmp eax, 8
je 0x10022b54
mov eax, dword [0x10122680]
mov edi, dword [0x101227d4]
test eax, eax
jne 0x10022ae0
call fcn.10003520
mov edx, 0xe80c2f78
mov ecx, 0x10110001
call fcn.10001980
mov edx, 0xc10bf213
mov ecx, 0x1011000d
mov esi, eax
call fcn.10001980
push esi
push eax
call fcn.1008c3b0
mov dword [0x10122680], eax
test byte [eax + edi], 1
jne 0x10022b54
mov edx, dword [ebx + 8]
lea ecx, [ebp - 8]
movss xmm1, dword [0x1011f22c]
mov eax, 0x1011f22c
xorps xmm1, xmmword [0x10119820]
movss dword [ebp - 8], xmm1
movss xmm0, dword [edx]
comiss xmm1, xmm0
cmovbe ecx, edx
comiss xmm0, dword [0x1011f22c]
cmovbe eax, ecx
lea ecx, [ebp - 8]
mov eax, dword [eax]
mov dword [edx], eax
mov eax, 0x1011f238
mov edx, dword [ebx + 0xc]
movss xmm1, dword [0x1011f238]
xorps xmm1, xmmword [0x10119820]
movss dword [ebp - 8], xmm1
movss xmm0, dword [edx]
comiss xmm1, xmm0
cmovbe ecx, edx
comiss xmm0, dword [0x1011f238]
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 0x100269a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1011f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1010ff6c
push 0x64
mov edi, edx
mov esi, ecx
call fcn.100f1dd2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10026b81
push 0x63
lea ecx, [ebx + 1]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebx], 1
lea eax, [ebx + 4]
push 2
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 0xc
mov dword [0x10143bd0], ebx
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [ebx + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.10025750
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x10122808
mov dword [0x10143bd4], eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x10026a4f
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [0x10122834]
cmp eax, 0x7fffffff
jne 0x10026a69
dec eax
push 6
mov dword [0x10122834], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
test edi, edi
je 0x10026a7e
movups xmm0, xmmword [edi]
movups xmmword [0x10143ab8], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x10026a88
xorps xmm0, xmm0
movups xmmword [0x10143ab8], xmm0
movq qword [0x10143ac8], xmm0
xorps xmm0, xmm0
push 0x10122808
movups xmmword [0x10143cd8], xmm0
movq qword [0x10143ce8], xmm0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
cmp dword [0x10147cf4], 0
jne 0x10026b8b
mov dword [0x10147ef8], 0x1011f514
test esi, esi
je 0x10026af6
cmp byte [esi], 0
mov ecx, 0x10147f08
je 0x10026af3
mov edx, 1
sub edx, esi
nop dword [eax]
lea eax, [esi + edx]
cmp eax, 0x40
jae 0x10026af3
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp byte [esi], 0
jne 0x10026ae0
mov byte [ecx], 0
mov esi, dword [0x10143bd0]
mov al, 1
mov dword [0x10147cf4], 0x10147ef8
mov dword [0x10147f00], 0x10026f70
mov dword [0x10147f04], 0x10026f80
xchg byte [esi], al
push 4
call fcn.100f1942
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10027360
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x10026b72
cmp dword [esi + 0x60], 0
je 0x10026b58
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f1854
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x4c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [0x10143bd0], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f1854
mov esp, ebp
pop ebp
ret
Function at 0x10027b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x10147cf4]
push esi
push dword [ebp + 8]
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x10027c17
mov eax, dword [edi]
test eax, eax
je 0x10027bd0
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10027bd0
test ebx, ebx
je 0x10027bd0
push 0
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10027bd0
cmp dword [ebp + 0xc], esi
je 0x10027c17
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10027bf0
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10027be4
cmp eax, 1
jne 0x10027bf0
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1002d590
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 0x1002d5f1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1002d5d4
cmp edi, 2
jb 0x1002d5d4
cmp byte [esi], cl
jne 0x1002d5d4
cmp byte [esi + 1], cl
jne 0x1002d5d4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10111ce8]
jmp 0x1002d5a5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10111ce8]
test edi, edi
jne 0x1002d5a5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1002d620
cmp cl, 0x23
jne 0x1002d607
cmp byte [esi], cl
jne 0x1002d607
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 + 0x10111ce8]
test cl, cl
jne 0x1002d5f8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1002d730
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 0x1002d744
mov dword [ebx], 0
mov edx, 0x101171a4
call fcn.1002d630
mov esi, eax
test esi, esi
je 0x1002d832
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 0x1002d828
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 0x1002d828
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x1002d828
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 0x1002d828
mov eax, dword [0x1012274c]
test eax, eax
je 0x1002d7bc
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 0x1002d828
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 0x1002d80d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1012274c]
add esp, 4
test eax, eax
je 0x1002d7fa
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 0x1002d81f
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 0x100307f0
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 + 0x10111ce8]
sub esi, 1
jne 0x10030812
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e9c], ebx
jne 0x10030849
push ecx
push dword [ebp + 8]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.10043ca0
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x10030a20
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 [0x1012274c]
mov ebx, ecx
push edi
cmp byte [esi + 0x4827], 0
mov ecx, dword [esi + 0x3e68]
mov dword [ebp - 8], ecx
je 0x10030a86
cmp byte [esi + 0x4826], 0
jne 0x10030a86
test ebx, 0x800
jne 0x10030a86
test byte [esi + 0x46e4], 4
je 0x10030a65
test ebx, 0x400
je 0x10030a7d
mov eax, dword [esi + 0x47f0]
lea edx, [esi + 0x46e0]
cmp eax, dword [edx]
jne 0x10030a7d
test eax, eax
jne 0x10030b44
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x46e8]
test al, 1
je 0x10030a7d
test ebx, 0x800
je 0x10030a9e
or ebx, dword [esi + 0x3bc8]
cmp dword [esi + 0x3e6c], ecx
je 0x10030ab2
test al, al
js 0x10030ab2
test ebx, 0x200
je 0x10030a7d
lea edi, [esi + 0x46e0]
test bl, bl
js 0x10030ad8
mov eax, dword [esi + 0x3eb4]
test eax, eax
je 0x10030ad8
cmp eax, dword [edi]
je 0x10030ad8
cmp byte [esi + 0x3ec1], 0
jne 0x10030ad8
cmp eax, dword [ecx + 0x70]
jne 0x10030a7d
mov edx, ebx
call fcn.100309b0
test al, al
jne 0x10030aef
test dword [esi + 0x46e4], 0x100
je 0x10030a7d
test byte [esi + 0x46e4], 4
je 0x10030b04
test ebx, 0x400
je 0x10030a7d
mov ecx, dword [esi + 0x3e68]
mov eax, dword [edi]
cmp eax, dword [ecx + 0x70]
jne 0x10030b1e
cmp byte [ecx + 0xac], 0
jne 0x10030a7d
test dword [esi + 0x46e4], 0x200
mov edx, edi
je 0x10030b44
test eax, eax
je 0x10030b44
test ebx, 0x100
jne 0x10030b44
cmp dword [esi + 0x3ea4], eax
jne 0x10030a7d
test ebx, 0x4000
je 0x10030b56
movss xmm3, dword [esi + 0x3bc0]
jmp 0x10030b66
test ebx, 0x8000
je 0x10030b7a
movss xmm3, dword [esi + 0x3bc4]
xorps xmm0, xmm0
comiss xmm3, xmm0
jbe 0x10030b7d
mov eax, ebx
and eax, 0x1000
mov dword [ebp - 4], eax
jmp 0x10030b93
xorps xmm3, xmm3
mov eax, ebx
and eax, 0x1000
mov dword [ebp - 4], eax
je 0x10030c75
lea edx, [esi + 0x46e0]
mov edx, dword [edx]
test edx, edx
jne 0x10030c32
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 + 0x10111ce8]
sub esi, 1
jne 0x10030c10
mov esi, dword [0x1012274c]
not edx
test ebx, 0x10000
je 0x10030c4c
cmp dword [esi + 0x4ab0], edx
je 0x10030c4c
mov dword [esi + 0x4ab4], 0
cmp dword [ebp - 4], 0
mov dword [esi + 0x4aac], edx
je 0x10030c64
cmp dword [esi + 0x4abc], edx
jne 0x10030a7d
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 0x10033f20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x1012274c]
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov ebx, dword [esi + 0x3e68]
mov eax, ebx
mov edi, dword [ebx + 0xc]
movss xmm3, dword [ebx + 0x228]
and edi, 4
movss xmm4, dword [ebx + 0x22c]
or edi, 0x1000102
cmp dword [ebx + 0x190], 0
jne 0x10033f6b
cmp dword [esi + 0x4a24], 0
je 0x10033f73
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 [0x10117f48]
mov edx, 1
cvttss2si eax, dword [ecx]
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
cmovnp ecx, edx
ucomiss xmm0, xmm5
lahf
xor edx, edx
test ah, 0x44
mov eax, 2
cmovnp edx, eax
or edx, ecx
comiss xmm5, xmm1
mov dword [ebp - 0x10], edx
jb 0x10033fe0
addss xmm1, xmm3
comiss xmm1, xmm2
jae 0x10033fe0
movaps xmm1, xmm2
comiss xmm5, xmm0
jb 0x10033ff1
addss xmm0, xmm4
comiss xmm0, xmm2
jae 0x10033ff1
movaps xmm0, xmm2
mov ecx, dword [ebp - 8]
xor edx, edx
or dword [esi + 0x471c], eax
movss dword [esi + 0x4740], xmm0
movss xmm0, dword [esi + 0x37b0]
push edi
movss dword [esi + 0x473c], xmm1
mov dword [esi + 0x4724], 1
movss dword [ebp - 0xc], xmm0
mov dword [esi + 0x37b0], 0
call fcn.10036fd0
mov edi, dword [esi + 0x3e68]
add esp, 4
movss xmm0, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
movss dword [esi + 0x37b0], xmm0
cmp word [edi + 0xb6], 1
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [edi + 0x74], edx
mov byte [edi + 0xc6], al
jne 0x1003407a
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, 0x101167d9
mov ebx, edi
cmp al, 0x23
jne 0x10034095
cmp byte [edx], al
jne 0x10034095
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 + 0x10111ce8]
test al, al
jne 0x10034087
mov edi, dword [ebp - 0xc]
not ebx
cmp dword [esi + 0x3eb4], ebx
jne 0x100340c4
xor edx, edx
xor ecx, ecx
call fcn.10030860
mov eax, dword [ebp - 4]
cmp dword [esi + 0x47f8], eax
jne 0x10034109
cmp word [edi + 0x14c], 0
jne 0x100340e2
cmp byte [edi + 0x152], 0
je 0x10034109
xor edx, edx
mov ecx, edi
call fcn.10039970
xor dl, dl
mov ecx, edi
call fcn.1003f720
mov edx, edi
mov ecx, ebx
call fcn.10030860
mov eax, dword [esi + 0x481c]
mov dword [esi + 0x3ed4], eax
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10034380
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 0x100343bf
cmp bl, 0x23
jne 0x100343a1
cmp byte [esi], bl
jne 0x100343a1
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 + 0x10111ce8]
test bl, bl
jne 0x10034392
mov ecx, dword [0x1012274c]
not eax
mov esi, dword [ecx + 0x3e50]
mov edi, dword [ecx + 0x3e58]
lea ebx, [edi + esi*8]
test esi, esi
je 0x100343fe
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x100343f8
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x100343fa
mov esi, edx
test esi, esi
jne 0x100343e0
cmp edi, ebx
je 0x1003440d
cmp dword [edi], eax
jne 0x1003440d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10042920
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 0x100429a2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1004295c
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.10044880
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.1002dd10
mov edx, dword [esi]
mov ecx, 0x10122748
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.1002dd10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10042ca0
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 [0x1012274c]
test bl, bl
je 0x10042ce6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10042cc7
cmp byte [esi], bl
jne 0x10042cc7
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 + 0x10111ce8]
test bl, bl
jne 0x10042cb8
mov edi, dword [0x1012274c]
mov esi, dword [edi + 0x5a8c]
xor ecx, ecx
not eax
test esi, esi
jle 0x10042d0c
mov edi, dword [edi + 0x5a94]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x10042d12
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x10042d00
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 0x1004c530
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 0x1004c56a
mov eax, dword [0x1012274c]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1004c55d
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 0x1004c59b
mov eax, dword [0x1012274c]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1004c58e
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 0x1004c5cc
mov eax, dword [0x1012274c]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1004c5bf
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 0x1004c619
mov eax, dword [0x1012274c]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1004c60c
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 0x1004c64a
mov eax, dword [0x1012274c]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1004c63d
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 0x1004c67b
mov eax, dword [0x1012274c]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1004c66e
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.1004f460
Function at 0x1006ac40
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1011f00c]
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 0x1006ad3a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1006ad33
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x1006ad19
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1006ad19
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1006ad19
mov edx, dword [esi]
test edx, edx
jne 0x1006ace2
push 0x200
push edx
push dword [0x101227a0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1006ad33
jmp 0x1006ad0d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1006ad0d
shl eax, 3
push eax
push edx
push 0
push dword [0x101227a0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1006ad33
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 0x1006aca1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1006ad7f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1006ad7f
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 0x1006ad79
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1006aad0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1006ad46
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f1854
mov esp, ebp
pop ebp
ret