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

Disassembly:
push ecx
mov ecx, dword [0x1018a250]
mov eax, dword [0x10188744]
push ebx
push esi
cmp dword [eax + ecx], 0
je 0x10037bf3
call fcn.10036010
test al, al
je 0x10037bf3
push 0xffffffffffffffff
mov eax, 0x56e210
call eax
add esp, 4
test eax, eax
je 0x10037ae9
cmp byte [0x1018a245], 0
je 0x10037acf
mov ecx, dword [eax + 0x474]
and ecx, 0xefffffff
mov byte [0x1018ab6c], 1
or ecx, 0x8000000
mov dword [eax + 0x474], ecx
jmp 0x10037ae9
cmp byte [0x1018ab6c], 0
je 0x10037ae9
and dword [eax + 0x474], 0xe7ffffff
mov byte [0x1018ab6c], 0
push 0
push 0xffffffffffffffff
mov ebx, 0x56e0d0
call ebx
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10037b4f
cmp byte [0x1018a246], 0
je 0x10037b27
and byte [ecx + 0x42a], 0xdf
or dword [ecx + 0x40], 0xec0000
mov byte [0x1018ab6d], 1
mov dword [ecx + 0x4c0], 0x47c35000
jmp 0x10037b4f
cmp byte [0x1018ab6d], 0
je 0x10037b4f
or byte [ecx + 0x42a], 0x20
and dword [ecx + 0x40], 0xff13ffff
mov dword [ecx + 0x4c0], 0x447a0000
mov byte [0x1018ab6d], 0
push 0
push 0xffffffffffffffff
call ebx
add esp, 8
test eax, eax
je 0x10037b6c
cmp byte [0x1018a244], 0
je 0x10037b6c
or byte [eax + 0x428], 0x10
push 0
push 0xffffffffffffffff
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x10037ba6
cmp byte [0x1018a248], 0
je 0x10037ba6
push 0x53
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10037ba6
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push 0
push 0xffffffffffffffff
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x10037bf3
cmp byte [0x1018a247], 0
je 0x10037bf3
push dword [0x1018873c]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10037bf3
movss xmm0, dword [esi + 0x44]
mulss xmm0, dword [0x10188740]
movss dword [esi + 0x44], xmm0
movss xmm0, dword [esi + 0x48]
mulss xmm0, dword [0x10188740]
movss dword [esi + 0x48], xmm0
pop esi
pop ebx
pop ecx
ret
Function at 0x1003b4d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100f9080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.d3d9.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.100b396a
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [eax + 0x128000]
cmp eax, ecx
jae 0x1003b54f
mov edi, 0x6c7
mov edx, 0x8689
inc eax
cmp word [eax], di
jne 0x1003b545
cmp word [eax + 6], dx
jne 0x1003b545
cmp word [eax + 0xc], dx
je 0x1003b565
lea ecx, [eax + 0x128000]
cmp eax, ecx
jb 0x1003b533
mov eax, dword [eax + 1]
pop edi
mov eax, dword [eax + esi*4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a137a
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 2]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, dword [eax + esi*4]
pop esi
call fcn.100a137a
mov esp, ebp
pop ebp
ret

Function at 0x100406d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cdf30
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100f9080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0x2c
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.100a3630
lea edi, [esi + 0x3c]
add esp, 0xc
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], edi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x100407c8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x10]
call fcn.1005f8f0
lea eax, [edi + 0x10]
mov dword [eax], 0
xorps xmm0, xmm0
mov dword [edi + 0x2c], 0
mov eax, esi
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x84], 0
movups xmmword [esi + 0x74], xmm0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10043270
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 0x100432d1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100432b4
cmp edi, 2
jb 0x100432b4
cmp byte [esi], cl
jne 0x100432b4
cmp byte [esi + 1], cl
jne 0x100432b4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100dd568]
jmp 0x10043285
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100dd568]
test edi, edi
jne 0x10043285
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10043300
cmp cl, 0x23
jne 0x100432e7
cmp byte [esi], cl
jne 0x100432e7
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 + 0x100dd568]
test cl, cl
jne 0x100432d8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10043490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x100434b3
push 0x87d
push str.C:UsersMohammadDesktop2C_Menu_v6imguiimgui.cpp
push str.filename__mode
call fcn.100b4d0c
add esp, 0xc
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100434c0
mov dword [ebx], 0
mov edx, 0x100e7f38
mov ecx, esi
call fcn.10043310
mov esi, eax
test esi, esi
je 0x100435da
push esi
call fcn.100b40b7
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x100435d1
push 2
push 0
push esi
call fcn.100b33cd
add esp, 0xc
test eax, eax
jne 0x100435d1
push esi
call fcn.100b40b7
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x100435d1
push 0
push dword [ebp + 8]
push esi
call fcn.100b33cd
add esp, 0xc
test eax, eax
jne 0x100435d1
mov ecx, edi
call fcn.100479a0
mov dword [ebp + 8], eax
test eax, eax
je 0x100435d1
push esi
push edi
push 1
push eax
call fcn.100b124e
add esp, 0x10
push esi
cmp eax, edi
je 0x100435bb
call fcn.100aa54d
mov ecx, dword [0x1018a2a0]
add esp, 4
test ecx, ecx
je 0x100435a9
movsx edx, word [ecx + 0x5f04]
lea eax, [ecx + 0x5f08]
mov esi, dword [ecx + 0x3f10]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x1004359f
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x5f04], ax
cwde
add eax, 0xbe1
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5f00]
push dword [ebp + 8]
call fcn.100b0dbe
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.100aa54d
add esp, 4
test ebx, ebx
je 0x100435c9
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.100aa54d
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x100526c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xf4], 0
jg 0x100526e8
push 0x7d7
push str.C:UsersMohammadDesktop2C_Menu_v6imguiimgui.h
push str.Size___0
call fcn.100b4d0c
add esp, 0xc
mov eax, dword [edi + 0xf4]
lea edx, [ebp + 8]
mov ebx, dword [edi + 0xfc]
mov esi, 4
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 + 0x100dd568]
sub esi, 1
jne 0x10052702
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fcc], ebx
jne 0x10052739
push ecx
push dword [ebp + 8]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.1005ecb0
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xf4], 0
jg 0x1005277a
push 0x7d7
push str.C:UsersMohammadDesktop2C_Menu_v6imguiimgui.h
push str.Size___0
call fcn.100b4d0c
add esp, 0xc
mov eax, dword [ebp + 8]
mov edi, 0x10
movss xmm1, dword [esi + 0x110]
movss xmm2, dword [esi + 0x114]
mov ecx, dword [esi + 0xf4]
movss xmm0, dword [eax]
subss xmm0, xmm1
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [esi + 0xfc]
subss xmm0, xmm2
lea esi, [ebp - 0x14]
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 8], xmm0
not edx
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100dd568]
sub edi, 1
jne 0x100527e0
not edx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10060f30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10060f61
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10060f50
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x10077c40
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, dword [0x1018a2a0]
mov edx, 0x210
push esi
push edi
call fcn.100528d0
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [eax], 0
je 0x10077cd6
mov ecx, dword [0x1018a2a0]
mov edx, 0x210
call fcn.10042060
cmp byte [eax + 8], 0
jne 0x10077cd6
push 0xa0
call edi
shr eax, 0xf
test al, 1
jne 0x10077cd6
cmp dword [0x1018a2a0], 0
jne 0x10077ca1
push 0x10fd
push str.C:UsersMohammadDesktop2C_Menu_v6imguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.100b4d0c
add esp, 0xc
mov esi, dword [0x1018a2a0]
cmp byte [esi + 0x2b51], 0
je 0x10077cc2
push 0
push 0x210
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100426d0
mov dword [esi + 0x2de4], 0x210
mov dword [esi + 0x33a4], 0xa0
mov ecx, dword [0x1018a2a0]
mov edx, 0x214
call fcn.100528d0
cmp byte [eax], 0
je 0x10077d64
mov ecx, dword [0x1018a2a0]
mov edx, 0x214
call fcn.10042060
cmp byte [eax + 8], 0
jne 0x10077d64
push 0xa1
call edi
shr eax, 0xf
test al, 1
jne 0x10077d64
cmp dword [0x1018a2a0], 0
jne 0x10077d2f
push 0x10fd
push str.C:UsersMohammadDesktop2C_Menu_v6imguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.100b4d0c
add esp, 0xc
mov esi, dword [0x1018a2a0]
cmp byte [esi + 0x2b51], 0
je 0x10077d50
push 0
push 0x214
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100426d0
mov dword [esi + 0x2de8], 0x214
mov dword [esi + 0x33b4], 0xa1
mov ecx, dword [0x1018a2a0]
mov edx, 0x212
call fcn.100528d0
cmp byte [eax], 0
je 0x10077def
mov ecx, dword [0x1018a2a0]
mov edx, 0x212
call fcn.10042060
cmp byte [eax + 8], 0
jne 0x10077def
push 0x5b
call edi
shr eax, 0xf
test al, 1
jne 0x10077def
cmp dword [0x1018a2a0], 0
jne 0x10077dba
push 0x10fd
push str.C:UsersMohammadDesktop2C_Menu_v6imguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.100b4d0c
add esp, 0xc
mov esi, dword [0x1018a2a0]
cmp byte [esi + 0x2b51], 0
je 0x10077ddb
push 0
push 0x212
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100426d0
mov dword [esi + 0x2cd0], 0x212
mov dword [esi + 0x33ac], 0x5b
mov ecx, dword [0x1018a2a0]
mov edx, 0x216
call fcn.100528d0
cmp byte [eax], 0
je 0x10077e7b
mov ecx, dword [0x1018a2a0]
mov edx, 0x216
call fcn.10042060
cmp byte [eax + 8], 0
jne 0x10077e7b
push 0x5c
call edi
shr eax, 0xf
test al, 1
jne 0x10077e7b
mov esi, dword [0x1018a2a0]
test esi, esi
jne 0x10077e4c
push 0x10fd
push str.C:UsersMohammadDesktop2C_Menu_v6imguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.100b4d0c
mov esi, dword [0x1018a2a0]
add esp, 0xc
cmp byte [esi + 0x2b51], 0
je 0x10077e67
push 0
push 0x216
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100426d0
mov dword [esi + 0x2cd4], 0x216
mov dword [esi + 0x33bc], 0x5c
pop edi
pop esi
ret
Function at 0x10087310
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
push esi
push edi
mov edi, ecx
mov esi, 1
bsr ecx, eax
mov eax, esi
mov dword [ebp - 4], edi
shl eax, cl
cmp edx, eax
ja 0x1008745c
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.1002dd10
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x10087437
mov eax, ecx
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
movzx edx, byte [eax + 0xa]
imul esi, esi, 0x1000193
xor esi, edx
movzx edx, byte [eax + 0xb]
imul esi, esi, 0x1000193
xor esi, edx
mov edx, dword [edi + 0xc]
imul esi, esi, 0x1000193
and esi, dword [edi + 0x18]
lea ebx, [edx + esi*8]
mov esi, dword [ebx]
mov dword [ebp + 8], ebx
cmp esi, dword [ebp - 8]
jne 0x100873c2
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x1008742c
mov edx, dword [ebx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x100873f9
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x100873f4
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0xc]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x10087429
cmp esi, edx
je 0x1008740c
nop dword [eax]
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10087440
cmp esi, edx
jne 0x10087400
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov edi, dword [ebp - 4]
mov eax, ecx
cmp ecx, dword [ebp - 8]
jne 0x10087372
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x10087429
push str.invalid_hash_bucket_count
call fcn.1009fb1e
int3
Function at 0x10087470
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
cmp edx, eax
je 0x100875c6
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push esi
push edi
mov edi, dword [ebx + 0xc]
mov esi, edx
xor ecx, eax
mov dword [ebp - 0x18], edi
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0xc], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.100a16d2
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x14]
je 0x10087529
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x100874e7
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x100875bc
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
pop edi
mov dword [edx], esi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jne 0x1008753d
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [edx], eax
jmp 0x10087540
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], ecx
cmp esi, eax
je 0x100875bc
nop word [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.100a16d2
dec dword [ebx + 8]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp - 0x14]
je 0x100875cd
cmp esi, eax
jne 0x10087597
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x10087550
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1009e690
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.1009e3a0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1009e6f0
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1009e6e9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1009e9c2
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100f9080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x1009eacd
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1009eac6
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x1009ea8a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1009ea8a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1009ea8a
mov edx, dword [esi]
test edx, edx
jne 0x1009ea53
push 0x200
push edx
push dword [0x1018a2ac]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1009eaaf
lea ebx, [esi + 8]
jmp 0x1009ea7d
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x1009ea7d
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1018a2ac]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1009eade
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1009ea0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1009eac6
xor edi, edi
cmp dword [esi], edi
je 0x1009eac6
push dword [esi]
push edi
push dword [0x1018a2ac]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a137a
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x1009eaaf
Function at 0x1009eae3
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.1009e9c2
test eax, eax
jne 0x1009eb08
push 9
pop esi
jmp 0x1009eb5d
cmp dword [edi], esi
je 0x1009eb5d
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x1009eb5c
mov ecx, esi
mov dword [ebp - 8], esi
mov eax, dword [edi]
push dword [eax + ecx]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x1009eb4d
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
call fcn.1009e86d
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
inc ebx
add ecx, 4
mov dword [ebp - 8], ecx
cmp ebx, dword [edi + 8]
jb 0x1009eb19
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1009eb63
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x1009ebc1
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1009ebb0
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1009eba0
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc edi
add ecx, 4
mov dword [ebp - 4], ecx
cmp edi, dword [esi + 8]
jb 0x1009eb7d
pop ebx
push dword [esi]
push 0
push dword [0x1018a2ac]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
leave
ret