joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58118c
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0x9a
shr edx, 0xbf
adc byte ds:[esi - 0x44], ch
pop ebx
int3
sal byte [edx - 0x453c3a20], 1
adc byte [ecx - 0x7a9e9767], bl
aas
push ds
sbb eax, ebp
invalid
rcr bh, 1
invalid
call 0x2548f161
nop
adc eax, 0xc5503299
stosd dword es:[edi], eax
inc ecx
xor byte [edx - 0xf], bl
je 0x58117d
insd dword es:[edi], dx
jmp 0x58112f

Function at 0x60e6c8
Capabilities:
Encode data using xor

Disassembly:
std
sub dword [ecx + 0x6467a73f], ebx
adc eax, 0xdbf72bc2
adc eax, 0xdbf72bc2
neg ebx
xchg esp, eax
jne 0x60e6ed
xor esp, dword [ecx]
fdiv dword [ebx]
jae 0x60e6cd
ret 0x8d6
pushal
jge 0x60e6c3
stosd dword es:[edi], eax
jmp 0x60e725
int1
mov edx, 0x758b6ec9
push ebp
retf

Function at 0x611914
Capabilities:
Encode data using xor

Disassembly:
jecxz 0x61192c
ja 0x611936
pop ebp
arpl cx, cx
jo 0x6118c7
dec ebp
push edi
jle 0x611977
rcl dword [ebx + 0x5e], cl
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0xe0a578a
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x16e5664f
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x1000d6e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1000d6fe
push 0
push 0
push 0
push 0x1000d490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x1001c020
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 0x1001c081
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1001c064
cmp edi, 2
jb 0x1001c064
cmp byte [esi], cl
jne 0x1001c064
cmp byte [esi + 1], cl
jne 0x1001c064
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1016e2f8]
jmp 0x1001c035
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1016e2f8]
test edi, edi
jne 0x1001c035
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1001c0b0
cmp cl, 0x23
jne 0x1001c097
cmp byte [esi], cl
jne 0x1001c097
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 + 0x1016e2f8]
test cl, cl
jne 0x1001c088
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1001c1c0
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 0x1001c1d4
mov dword [ebx], 0
mov edx, 0x1016e1cc
call fcn.1001c0c0
mov esi, eax
test esi, esi
je 0x1001c2c2
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 0x1001c2b8
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 0x1001c2b8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x1001c2b8
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 0x1001c2b8
mov eax, dword [0x10191030]
test eax, eax
je 0x1001c24c
inc dword [eax + 0x374]
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 0x1001c2b8
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 0x1001c29d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x10191030]
add esp, 4
test eax, eax
je 0x1001c28a
dec dword [eax + 0x374]
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 0x1001c2af
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 0x1001fc90
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
or edx, 0xffffffff
mov dword [ebp - 0x18], 0
mov edi, ecx
mov dword [ebp - 0x24], str.Window
mov esi, 0x1017fa5d
mov al, 0x57
or ebx, 0xffffffff
cmp al, 0x23
jne 0x1001fcc4
cmp byte [esi], al
jne 0x1001fcc4
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x1016e2f8]
test al, al
jne 0x1001fcb6
mov esi, dword [edi + 0x2e14]
not edx
mov ecx, dword [edi + 0x2e18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0x1002b390
mov dword [ebp - 0x14], 0x1002b410
mov dword [ebp - 0x10], 0x1002b4a0
mov dword [ebp - 0xc], 0x1002b570
mov dword [ebp - 8], 0x1002b680
cmp esi, ecx
jne 0x1001fda8
inc esi
test ecx, ecx
je 0x1001fd29
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1001fd2e
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1001fda8
mov eax, dword [0x10191030]
test eax, eax
je 0x1001fd46
inc dword [eax + 0x374]
lea eax, [esi + esi*8]
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [edi + 0x2e1c]
test eax, eax
je 0x1001fd9c
mov ecx, dword [edi + 0x2e14]
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2e1c]
add esp, 0xc
test ecx, ecx
je 0x1001fd92
mov eax, dword [0x10191030]
test eax, eax
je 0x1001fd92
dec dword [eax + 0x374]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi + 0x2e1c], ebx
mov dword [edi + 0x2e18], esi
mov eax, dword [edi + 0x2e14]
movups xmm0, xmmword [ebp - 0x24]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x2e1c]
movups xmmword [eax + ecx*4], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x20], 0
inc dword [edi + 0x2e14]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100211b0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x100211ed
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x100211d3
cmp byte [esi], bl
jne 0x100211d3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x1016e2f8]
test bl, bl
jne 0x100211c4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.10021150
Function at 0x10026290
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1018e4ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10191030]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1a08]
mov esi, 4
mov eax, dword [edi + 0xbc]
add edi, 0xbc
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x1016e2f8]
sub esi, 1
jne 0x100262d0
mov esi, dword [edi + 4]
not ebx
mov ecx, dword [edi]
cmp ecx, esi
jne 0x10026317
inc ecx
test esi, esi
je 0x10026305
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1002630a
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1002bee0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013ad45
mov esp, ebp
pop ebp
ret
Function at 0x1002acb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x10191030]
push edi
cmp byte [esi + 0x2e2c], 0
je 0x1002ad4f
cmp dword [esi + 0x2e34], 0
lea edi, [esi + 0x2e38]
je 0x1002ad41
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1002acf9
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, edi
call fcn.1002c860
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.1001c5b0
mov edx, dword [edi]
mov ecx, 0x1018fe8d
push dword [esi + 0x2e34]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2e40]
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
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.1001c5b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002b290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x10191030]
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov dword [esi + 0x2e04], 0
test eax, eax
je 0x1002b37f
lea edi, [esi + 0x2e08]
mov dword [esi + 0x2e04], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1002b2e5
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, edi
call fcn.1002c860
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x1002b2fa
push 8
mov ecx, edi
call fcn.1002c860
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2e14], 0
jle 0x1002b33c
xor ebx, ebx
mov eax, dword [esi + 0x2e1c]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x24
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2e14]
jl 0x1002b317
mov edi, dword [edi]
mov ebx, 0x1018fe8d
mov ecx, dword [ebp - 8]
mov edx, 0x1017fb0c
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2e10]
test eax, eax
cmovne ebx, eax
call fcn.1001c0c0
mov esi, eax
test esi, esi
je 0x1002b37f
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003bf90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x1018e4ac]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [0x10199128], 0
push esi
push edi
jne 0x1003bfbd
cmp dword [0x1019910c], 0
je 0x1003bfbd
call fcn.1003bda0
mov edi, dword [0x10191030]
lea eax, [esp + 0x10]
push eax
push dword [0x10199108]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
movd xmm1, eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 0x10], xmm1
movss dword [edi + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x10199110]
mov edx, dword [esp + 0x24]
sbb edx, dword [0x10199114]
call fcn.1013bd60
mov edx, dword [0x1019911c]
mov ecx, dword [0x10199118]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xc], xmm0
call fcn.1013bd60
movss xmm1, dword [esp + 0xc]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x18], xmm1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [0x10199110], eax
mov dword [0x10199114], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0x100], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0x101], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0x103], 0
mov byte [edi + 0x102], al
call fcn.1003aea0
cmp byte [edi + 0xb0], 0
je 0x1003c0ae
or eax, 0xffffffff
jmp 0x1003c0b9
mov eax, dword [0x10191030]
mov eax, dword [eax + 0x1df4]
cmp dword [0x1018f1e8], eax
je 0x1003c0cb
mov dword [0x1018f1e8], eax
call fcn.1003ad70
call fcn.1003af70
call fcn.1001ef90
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.1013ad45
mov esp, ebp
pop ebp
ret
Function at 0x1004da20
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1018e4ac]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x10184090]
xor ecx, ecx
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x2834616f
mov dword [ebp - 0x10], 0x726762
mov byte [ebp - 0xc], 0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x16
jb 0x1004da56
push 0x10180f34
lea eax, [ebp - 0x23]
mov word [ebp - 0xd], 0x100
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x1004da93
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013ad45
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
push 1
push 0x868
push str._ECC
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov al, 1
call fcn.1013ad45
mov esp, ebp
pop ebp
ret

Function at 0x1004dad0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1018e4ac]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x10183520]
xor ecx, ecx
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x5b47121c
mov dword [ebp - 0x10], 0x11411
mov byte [ebp - 0xc], 0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x16
jb 0x1004db06
push 0x1016e1cc
lea eax, [ebp - 0x23]
mov word [ebp - 0xd], 0x100
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x1004db43
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013ad45
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
push 1
push 0x868
push str._ECC
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov al, 1
call fcn.1013ad45
mov esp, ebp
pop ebp
ret
Function at 0x10052be0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
and ecx, eax
mov eax, dword [esi + 0xc]
lea edx, [eax + ecx*8]
mov eax, dword [edx + 4]
cmp eax, dword [esi + 4]
je 0x10052c4d
mov ecx, dword [edi]
mov edx, dword [edx]
cmp ecx, dword [eax + 8]
je 0x10052c44
cmp eax, edx
je 0x10052c4d
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x10052c38
pop edi
add eax, 0xc
pop esi
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
int3
Function at 0x10053320
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x10053351
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10052d20
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1005345c
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x100533e2
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1005344f
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1005341c
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10053414
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x1005344f
cmp ebx, edx
je 0x1005342c
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10053465
cmp ebx, edx
jne 0x10053420
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0x10]
mov eax, ecx
cmp ecx, esi
jne 0x10053390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1005344f
Function at 0x10053f70
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1018e4ac]
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 0x1005406a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10054063
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10054049
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10054049
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10054049
mov edx, dword [esi]
test edx, edx
jne 0x10054012
push 0x200
push edx
push dword [0x1019103c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10054063
jmp 0x1005403d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1005403d
shl eax, 3
push eax
push edx
push 0
push dword [0x1019103c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10054063
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 0x10053fd1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x100540af
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100540af
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 0x100540a9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10053e00
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10054076
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013ad45
mov esp, ebp
pop ebp
ret
Function at 0x100540c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1018e4ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x11c0ca70]
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 - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1005411c
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013ad45
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 0x10054137
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
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
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013ad45
mov esp, ebp
pop ebp
ret

Function at 0x10054170
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x11c0ca78]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1005424d
mov eax, dword [0x11c0ca70]
add eax, 0x14
test byte [eax], 2
je 0x100541aa
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10054195
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1005424d
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10053f70
mov ecx, dword [0x11c0ca78]
add esp, 4
cmp esi, ecx
jae 0x100541fb
imul edi, esi, 0x2c
mov eax, dword [0x11c0ca70]
test byte [edi + eax + 0x14], 2
jne 0x100541f0
mov ecx, esi
call fcn.100540c0
mov ebx, eax
test ebx, ebx
jne 0x100541f8
mov ecx, dword [0x11c0ca78]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x100541d1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1005424c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1005423d
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 0x10054231
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 0x10054210
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1019103c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret