joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004c990
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [0x101a224c]
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [esi + 0x2c5c]
mov ebx, dword [esi + 0x2c60]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0
cmp ecx, ebx
jne 0x1004ca8b
lea edi, [ecx + 1]
test ebx, ebx
je 0x1004c9f3
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
jmp 0x1004c9f8
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ebx
jle 0x1004ca8b
push dword [0x101a2254]
inc dword [esi + 0x36c]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call dword [0x1015c178]
mov ebx, eax
add esp, 8
mov eax, dword [esi + 0x2c64]
test eax, eax
je 0x1004ca79
mov ecx, dword [esi + 0x2c5c]
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
push edx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x2c64]
add esp, 0xc
test ecx, ecx
je 0x1004ca69
mov eax, dword [0x101a224c]
test eax, eax
je 0x1004ca69
dec dword [eax + 0x36c]
push dword [0x101a2254]
push ecx
call dword [0x1015c17c]
add esp, 8
mov ecx, dword [esi + 0x2c5c]
mov dword [esi + 0x2c64], ebx
mov dword [esi + 0x2c60], edi
movups xmm0, xmmword [ebp - 0x1c]
mov eax, dword [ebp - 4]
lea edx, [ecx*8]
mov edi, dword [ebp + 8]
sub edx, ecx
mov ecx, dword [esi + 0x2c64]
movups xmmword [ecx + edx*4], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [ecx + edx*4 + 0x10], xmm0
mov dword [ecx + edx*4 + 0x18], eax
inc dword [esi + 0x2c5c]
mov eax, dword [esi + 0x2c5c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x2c64]
mov esi, edi
lea ebx, [eax + ecx*4]
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1004cae0
mov eax, dword [0x101a224c]
sub esi, ecx
test eax, eax
je 0x1004caf8
inc dword [eax + 0x36c]
push dword [0x101a2254]
inc esi
push esi
call dword [0x1015c178]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov dword [ebx - 0x1c], eax
lea esi, [edi + 1]
mov al, byte [edi]
add esp, 0x14
or edx, 0xffffffff
test al, al
je 0x1004cb4a
or edi, 0xffffffff
cmp al, 0x23
jne 0x1004cb31
cmp byte [esi], al
jne 0x1004cb31
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x100e8778]
test al, al
jne 0x1004cb23
pop edi
not edx
lea eax, [ebx - 0x1c]
pop esi
mov dword [ebx - 0x18], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004e090
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
push ebx
push esi
push edi
mov bl, byte [ecx]
lea esi, [ecx + 1]
or ecx, 0xffffffff
test bl, bl
je 0x1004e0d5
cmp bl, 0x23
jne 0x1004e0b7
cmp byte [esi], bl
jne 0x1004e0b7
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 + 0x100e8778]
test bl, bl
jne 0x1004e0a8
mov ebx, dword [0x101a224c]
not eax
mov esi, dword [ebx + 0x197c]
mov edi, dword [ebx + 0x1984]
mov ecx, edi
test esi, esi
je 0x1004e114
nop
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1004e108
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1004e10a
mov esi, edx
test esi, esi
jne 0x1004e0f0
mov ecx, dword [ebx + 0x1984]
mov edx, dword [ebx + 0x197c]
lea ecx, [ecx + edx*8]
cmp edi, ecx
je 0x1004e12d
cmp dword [edi], eax
jne 0x1004e12d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x1004ec10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x1c0]
mov eax, dword [ecx + 0x1c8]
push esi
push edi
lea esi, [ebp + 8]
mov edi, 4
mov eax, dword [eax + edx*4 - 4]
not eax
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100e8778]
sub edi, 1
jne 0x1004ec30
mov ecx, dword [0x101a224c]
not eax
pop edi
pop esi
cmp dword [ecx + 0x19ac], eax
jne 0x1004ec62
mov dword [ecx + 0x19b4], eax
cmp dword [ecx + 0x19b0], eax
jne 0x1004ec71
mov byte [ecx + 0x19c0], 1
pop ebp
ret 4

Function at 0x1004ec80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movss xmm0, dword [edx]
mov edi, 0x10
subss xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c0]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 8], eax
cvttss2si eax, xmm0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1c8]
lea esi, [ebp - 0x10]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100e8778]
sub edi, 1
jne 0x1004ecf0
mov eax, dword [0x101a224c]
not edx
pop edi
pop esi
cmp dword [eax + 0x19ac], edx
jne 0x1004ed21
mov dword [eax + 0x19b4], edx
cmp dword [eax + 0x19b0], edx
jne 0x1004ed30
mov byte [eax + 0x19c0], 1
mov eax, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x1004f400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1004f412
mov dword [edi], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1004f510
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004f42a
pop edi
pop esi
pop ebp
ret
push ebx
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 0x1004f4f6
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1004f4f6
push 0
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 0x1004f4f6
mov eax, dword [ebp + 0x14]
add eax, ebx
push eax
call fcn.10051290
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1004f4f6
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x1004f4c6
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x101a224c]
add esp, 4
test eax, eax
je 0x1004f4ac
dec dword [eax + 0x36c]
push dword [0x101a2254]
mov eax, dword [ebp + 0x10]
push eax
call dword [0x1015c17c]
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x1004f4de
push eax
mov eax, dword [ebp + 0x10]
add eax, ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x1004f4ee
mov dword [edi], ebx
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10055710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101a224c]
lea edx, [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax + 0x198c]
mov esi, 4
mov ebx, dword [eax + 0x1c8]
lea edi, [eax + 0x1c0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100e8778]
sub esi, 1
jne 0x10055750
mov eax, dword [ebp - 4]
not ebx
mov ecx, dword [ebp - 8]
mov esi, dword [eax + 0x1c4]
cmp ecx, esi
jne 0x100557a3
inc ecx
test esi, esi
je 0x1005578c
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x10055791
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10059be0
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10056bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
mov eax, dword [0x101a224c]
mov dword [eax + 0x2c40], 0
je 0x10056cee
push esi
push edi
mov edi, dword [0x101a224c]
lea esi, [edi + 0x2c44]
mov dword [edi + 0x2c40], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10056c44
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.10059ae0
xor ecx, ecx
mov dword [esi], 0
cmp dword [esi + 4], ecx
jne 0x10056c5c
push 8
mov ecx, esi
call fcn.10059ae0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [esi]
cmp dword [edi + 0x2c50], 0
mov ebx, dword [esi]
jle 0x10056ca7
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [edi + 0x2c58]
add eax, ebx
push esi
push eax
push edi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x2c50]
jl 0x10056c80
mov ebx, dword [esi]
lea eax, [ebx - 1]
neg ebx
push 0x100e8dc8
push dword [ebp + 8]
sbb ebx, ebx
and ebx, eax
mov eax, dword [edi + 0x2c4c]
test eax, eax
mov edi, 0x101a2250
cmovne edi, eax
call fcn.1004f510
mov esi, eax
add esp, 8
test esi, esi
je 0x10056ceb
push esi
push ebx
push 1
push edi
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 ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005d1c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100e0e40
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x4c], ebx
jle 0x1005d213
xor edi, edi
mov eax, dword [esi + 0x54]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x1005d20a
cmp byte [edi + eax + 8], 0
je 0x1005d20a
push ecx
call fcn.100512c0
mov eax, dword [esi + 0x54]
add esp, 4
mov dword [edi + eax], 0
inc ebx
add edi, 0x78
cmp ebx, dword [esi + 0x4c]
jl 0x1005d1e6
xor edx, edx
cmp dword [esi + 0x34], edx
jle 0x1005d259
nop word [eax + eax]
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + edx*4]
mov eax, dword [esi + 0x54]
mov ebx, dword [edi + 0x3c]
cmp ebx, eax
jb 0x1005d253
mov ecx, dword [esi + 0x4c]
shl ecx, 4
sub ecx, dword [esi + 0x4c]
lea eax, [eax + ecx*8]
cmp ebx, eax
jae 0x1005d253
mov dword [edi + 0x3c], 0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + edx*4]
mov word [eax + 0x40], cx
inc edx
cmp edx, dword [esi + 0x34]
jl 0x1005d220
mov eax, dword [esi + 0x54]
test eax, eax
je 0x1005d27e
push eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
call fcn.100512c0
add esp, 4
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1005d2a3
push eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
call fcn.100512c0
add esp, 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x58], 0xffffffff
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1005d2ba
push eax
call fcn.100512c0
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1005d2ca
push eax
call fcn.100512c0
add esp, 4
xor ebx, ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
cmp dword [esi + 0x34], ebx
jle 0x1005d34a
nop
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x1005d344
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.1005d550
mov eax, dword [edi + 0x28]
mov byte [ebp - 4], 1
test eax, eax
je 0x1005d30c
push eax
call fcn.100512c0
add esp, 4
mov eax, dword [edi + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
je 0x1005d320
push eax
call fcn.100512c0
add esp, 4
mov eax, dword [edi + 8]
mov byte [ebp - 4], 3
test eax, eax
je 0x1005d334
push eax
call fcn.100512c0
add esp, 4
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.100512c0
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x34]
jl 0x1005d2e0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1005d36f
push eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
call fcn.100512c0
add esp, 4
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007a360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x1015c358], 0
push esi
jne 0x1007a3c3
mov byte [0x1015c358], 1
xor eax, eax
push ebx
nop word [eax + eax]
xor esi, esi
mov ebx, eax
xor esi, dword [0x1015c3dc]
xor ebx, dword [0x1015c3d8]
xor esi, 0xd28f2c5
xor ebx, 0x1de26cd5
mov edx, esi
mov ecx, ebx
shld edx, ecx, 0xd
shl ecx, 0xd
xor esi, edx
xor ebx, ecx
mov dword [ebp - 4], esi
mov ecx, ebx
shrd ecx, esi, 7
xor cl, bl
xor byte [eax + 0x1015c359], cl
inc eax
cmp eax, 0x7a
jb 0x1007a380
pop ebx
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x79
push 0x1015c359
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.10003440
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1007a400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x1015c3e0], 0
push esi
jne 0x1007a463
mov byte [0x1015c3e0], 1
xor eax, eax
push ebx
nop word [eax + eax]
xor esi, esi
mov ebx, eax
xor esi, dword [0x1015c414]
xor ebx, dword [0x1015c410]
xor esi, 0xd28f2c5
xor ebx, 0x1de26cd5
mov edx, esi
mov ecx, ebx
shld edx, ecx, 0xd
shl ecx, 0xd
xor esi, edx
xor ebx, ecx
mov dword [ebp - 4], esi
mov ecx, ebx
shrd ecx, esi, 7
xor cl, bl
xor byte [eax + 0x1015c3e1], cl
inc eax
cmp eax, 0x29
jb 0x1007a420
pop ebx
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x28
push 0x1015c3e1
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.10003440
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1007a4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x1015c428], 0
push esi
jne 0x1007a503
mov byte [0x1015c428], 1
xor eax, eax
push ebx
nop word [eax + eax]
xor esi, esi
mov ebx, eax
xor esi, dword [0x1015c44c]
xor ebx, dword [0x1015c448]
xor esi, 0xd28f2c5
xor ebx, 0x1de26cd5
mov edx, esi
mov ecx, ebx
shld edx, ecx, 0xd
shl ecx, 0xd
xor esi, edx
xor ebx, ecx
mov dword [ebp - 4], esi
mov ecx, ebx
shrd ecx, esi, 7
xor cl, bl
xor byte [eax + 0x1015c429], cl
inc eax
cmp eax, 0x18
jb 0x1007a4c0
pop ebx
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x17
push 0x1015c429
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.10003440
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1007a660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x1015c328], 0
push esi
jne 0x1007a6c3
mov byte [0x1015c328], 1
xor eax, eax
push ebx
nop word [eax + eax]
xor esi, esi
mov ebx, eax
xor esi, dword [0x1015c354]
xor ebx, dword [0x1015c350]
xor esi, 0xd28f2c5
xor ebx, 0x1de26cd5
mov edx, esi
mov ecx, ebx
shld edx, ecx, 0xd
shl ecx, 0xd
xor esi, edx
xor ebx, ecx
mov dword [ebp - 4], esi
mov ecx, ebx
shrd ecx, esi, 7
xor cl, bl
xor byte [eax + 0x1015c329], cl
inc eax
cmp eax, 0x22
jb 0x1007a680
pop ebx
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x21
push 0x1015c329
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.10003440
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1007af70
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1007b041
sub eax, 1
jne 0x1007b058
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov dword [ebp + 0x10], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp + 0xc], ecx
cmp ecx, edx
je 0x1007b004
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x1007b004
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, edx
mov ecx, dword [ebx - 4]
lea ebx, [ebx - 4]
add ecx, edx
dec edi
mov esi, 0x811c9dc5
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x1007affd
nop word [eax + eax]
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x1007afe0
cmp esi, 0x60ac7e39
je 0x1007b008
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x1007afc5
mov eax, dword [eax]
jmp 0x1007afa0
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push 0
push 0
mov eax, dword [esi + 0x24]
push dword [ebp + 8]
push 0x1007a7f0
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
push 0
push 0
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
jne 0x1007b058
call fcn.10040d50
call fcn.10040470
mov ecx, eax
call fcn.1007f520
mov eax, 1
pop ebp
ret 0xc
Function at 0x100835d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x101a42ac]
test eax, eax
je 0x100835ec
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x10083652
mov eax, dword [eax]
test eax, eax
jne 0x100835e0
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10083656
push esi
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
nop dword [eax + eax]
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x10083620
mov ecx, dword [0x101a42ac]
mov dword [eax], ecx
mov dword [0x101a42ac], eax
pop esi
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
test eax, eax
jne 0x10083644
xor eax, eax
ret
Function at 0x10083fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
push edi
add esi, dword [0x101a42a0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp + 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10084028
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1008404d
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 0x1008406e
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1008406e
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10084068
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1008406e
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop ebx
pop edi
mov byte [esi + 0x14], cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10084150
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1008423b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10084234
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x1c], 0x10
jb 0x1008421b
call ebx
cmp dword [ebp - 0x10], eax
jne 0x1008421b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x14], eax
je 0x1008421b
mov edx, dword [esi]
test edx, edx
jne 0x100841e4
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x101a23ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10084234
jmp 0x1008420f
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1008420f
shl eax, 3
push eax
push edx
push 0
push dword [0x101a23ec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10084234
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 - 0x14]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100841a3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1008427f
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x1008427f
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10084279
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.100844d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10084247
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10084620
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x10084672
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10084662
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10084659
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10084636
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x101a23ec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
pop ebp
ret