joyce8/EMBER2024-capa huggingface dataset:
Function at 0x555ed0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x555ee8
add esp, 0xfffffff0
call fcn.00406a04
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x556002
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.0040458c
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x555fec
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004be820
xor eax, eax
push ebp
push 0x555fd9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004be820
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00408de8
jmp 0x555faa
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00409114
mov eax, dword [ebx + 4]
call fcn.00408534
dec eax
jle 0x555fbe
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x555f98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x555fe0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x556009
lea eax, [ebp - 4]
call fcn.0040808c
ret

Function at 0x557048
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.00556604
test byte [ebx + 0x2ad], 4
jne 0x5570dd
mov edx, esp
mov eax, ebx
call fcn.00495f34
push esp
mov eax, ebx
call fcn.0049f578
push eax
push 0
mov eax, ebx
test eax, eax
je 0x55707d
sub eax, 0xfffffd0c
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x288]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x29c], 0
jne 0x5570ae
mov ecx, dword [0x651fa0]
mov dl, 1
mov eax, dword [0x4be19c]
call fcn.00426b68
call fcn.00407778
mov eax, ebx
call fcn.00557cd8
cmp byte [ebx + 0x61], 0
jne 0x5570e4
mov eax, ebx
call fcn.0049f7e0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5570e4
push 0
mov eax, ebx
call fcn.0049f7e0
push eax
call sub.user32.dll_ShowWindow
jmp 0x5570e4
mov eax, ebx
call fcn.0049b448
add esp, 0x10
pop ebx
ret
Function at 0x57169c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5717c4
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00571588
mov eax, dword [esi]
call fcn.00409f04
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41a69c]
call fcn.0040a0b8
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00404784
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00404784
add ebx, 0x1c
mov eax, dword [esi]
call fcn.00409f04
mov dword [ebp - 0xc], eax
mov eax, dword [0x65255c]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.00560770
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00404f9c
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.00409f04
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.0056074c
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.00560504
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.00560768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5717cb
lea eax, [ebp - 4]
mov edx, dword [0x41a69c]
call fcn.0040a0c4
ret

Function at 0x59d68c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
mov edx, 0x10
call fcn.00408e84
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x59d6b1
sub eax, 4
mov eax, dword [eax]
mov dword [esp], eax
push esp
mov eax, dword [ebx]
call fcn.00408cf0
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x59d6d0
mov eax, ebx
mov edx, dword [esp]
call fcn.00408e84
pop ecx
pop edx
pop ebx
ret
Function at 0x5daa30
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5daa5e
mov eax, ebx
call fcn.005db4ec
cmp dword [ebx + 0x40], 0
je 0x5daa57
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5daacf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5daac1
cmp dword [ebx + 8], 0
je 0x5daa80
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5daa92
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5daac1
cmp dword [ebx + 8], 0
je 0x5daa73
cmp eax, 3
je 0x5daaa5
dec eax
jne 0x5daa73
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5daa73
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5daa73
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5daaed
cmp dword [ebx + 0x14], 0xcc
je 0x5daaed
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005daaf8
pop ebx
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4076a0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4076bc
shr eax, 1
xor eax, 0xedb88320
jmp 0x4076be
shr eax, 1
dec edx
jne 0x4076af
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4076a8
pop esi
ret

Function at 0x4076d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4076f7
call fcn.004076a0
push 1
push 0x40c558
call fcn.004043fc
mov eax, edi
test esi, esi
je 0x407722
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4076fd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x10002970
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 0x100029d1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100029b4
cmp edi, 2
jb 0x100029b4
cmp byte [esi], cl
jne 0x100029b4
cmp byte [esi + 1], cl
jne 0x100029b4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10056fa8]
jmp 0x10002985
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10056fa8]
test edi, edi
jne 0x10002985
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10002a00
cmp cl, 0x23
jne 0x100029e7
cmp byte [esi], cl
jne 0x100029e7
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 + 0x10056fa8]
test cl, cl
jne 0x100029d8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10002bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x10002bd3
push 0x599
push str.C:UsersuserDesktop_testImGui_DirectX_11_Kiero_Hook_masterImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
push str.filename__mode
call fcn.1003cf0a
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x10002be0
mov dword [edi], 0
mov edx, 0x10056c9c
mov ecx, esi
call fcn.10002a10
mov esi, eax
test esi, esi
je 0x10002cbf
push esi
call fcn.10033dd8
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10002cb6
push 2
push 0
push esi
call fcn.100346b1
add esp, 0xc
test eax, eax
jne 0x10002cb6
push esi
call fcn.10033dd8
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x10002cb6
push 0
push dword [ebp + 8]
push esi
call fcn.100346b1
add esp, 0xc
test eax, eax
jne 0x10002cb6
mov eax, dword [0x100626d0]
test eax, eax
je 0x10002c55
inc dword [eax + 0x374]
push ebx
call fcn.1003cf8b
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10002cb6
push esi
push ebx
push 1
push eax
call fcn.10037e11
add esp, 0x10
push esi
cmp eax, ebx
je 0x10002ca0
call fcn.10034371
mov eax, dword [0x100626d0]
add esp, 4
test eax, eax
je 0x10002c8e
dec dword [eax + 0x374]
push dword [ebp + 8]
call fcn.10037c10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.10034371
add esp, 4
test edi, edi
je 0x10002cae
mov dword [edi], ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.10034371
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x10004f20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xbc], 0
jg 0x10004f47
push 0x502
push str.C:UsersuserDesktop_testImGui_DirectX_11_Kiero_Hook_masterImGui_DirectX_11_Kiero_Hookimguiimgui.h
push str.Size___0
call fcn.1003cf0a
add esp, 0xc
mov ecx, dword [esi + 0xbc]
mov edi, 4
mov eax, dword [esi + 0xc4]
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10056fa8]
sub edi, 1
jne 0x10004f61
mov ecx, dword [0x100626d0]
not eax
pop edi
pop esi
cmp dword [ecx + 0x19e4], eax
jne 0x10004f93
mov dword [ecx + 0x19e8], eax
cmp dword [ecx + 0x1a18], eax
jne 0x10004fa2
mov byte [ecx + 0x1a1c], 1
pop ebp
ret 4

Function at 0x10007830
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
jne 0x10007849
cmp byte [edi + 0x2d2c], 0
je 0x10007860
push 0xed0
push str.C:UsersuserDesktop_testImGui_DirectX_11_Kiero_Hook_masterImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
push str._g.Initialized___g.SettingsLoaded
call fcn.1003cf0a
add esp, 0xc
or edx, 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], str.Window
mov al, 0x57
mov esi, 0x10055551
or ebx, 0xffffffff
nop dword [eax + eax]
cmp al, 0x23
jne 0x1000788e
cmp byte [esi], al
jne 0x1000788e
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 + 0x10056fa8]
test al, al
jne 0x10007880
mov esi, dword [edi + 0x2d40]
not edx
mov ecx, dword [edi + 0x2d44]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0x10013bc0
mov dword [ebp - 0x10], 0x10013c20
mov dword [ebp - 0xc], 0x10013cf0
cmp esi, ecx
jne 0x1000795c
inc esi
test ecx, ecx
je 0x100078e5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100078ea
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1000795c
mov eax, dword [0x100626d0]
test eax, eax
je 0x10007902
inc dword [eax + 0x374]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.1003cf8b
mov ebx, dword [edi + 0x2d48]
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10007950
mov ecx, dword [edi + 0x2d40]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push ebx
push eax
call fcn.10033220
mov eax, dword [0x100626d0]
add esp, 0xc
test eax, eax
je 0x10007944
dec dword [eax + 0x374]
push ebx
call fcn.10037c10
mov eax, dword [ebp - 4]
add esp, 4
mov dword [edi + 0x2d48], eax
mov dword [edi + 0x2d44], esi
mov eax, dword [edi + 0x2d40]
movups xmm0, xmmword [ebp - 0x1c]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2d48]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi + 0x2d40]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008ea0
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 0x10008edf
cmp bl, 0x23
jne 0x10008ec1
cmp byte [esi], bl
jne 0x10008ec1
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 + 0x10056fa8]
test bl, bl
jne 0x10008eb2
mov ecx, dword [0x100626d0]
not eax
mov esi, dword [ecx + 0x19a0]
mov edi, dword [ecx + 0x19a8]
lea ebx, [edi + esi*8]
test esi, esi
je 0x10008f1e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10008f18
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x10008f1a
mov esi, edx
test esi, esi
jne 0x10008f00
cmp edi, ebx
je 0x10008f2d
cmp dword [edi], eax
jne 0x10008f2d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10013340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x100626d0]
push edi
cmp byte [esi + 0x2d58], 0
je 0x100133de
cmp dword [esi + 0x2d60], 0
lea edi, [esi + 0x2d64]
je 0x100133d0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10013389
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.100148c0
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.10003160
mov edx, dword [edi]
mov ecx, 0x100626cc
push dword [esi + 0x2d60]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2d6c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call fcn.10034f03
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.10003160
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10013aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x100626d0]
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov dword [esi + 0x2d30], 0
test eax, eax
je 0x10013bac
lea ebx, [esi + 0x2d34]
mov dword [esi + 0x2d30], 0
mov ecx, dword [ebx + 4]
test ecx, ecx
jns 0x10013af5
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, ebx
call fcn.100148c0
mov dword [ebx], 0
cmp dword [ebx + 4], 0
jne 0x10013b0a
push 8
mov ecx, ebx
call fcn.100148c0
mov eax, dword [ebx]
xor edi, edi
mov ecx, dword [ebx + 8]
mov byte [ecx + eax], 0
inc dword [ebx]
mov eax, dword [esi + 0x2d40]
test eax, eax
jle 0x10013b6b
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp edi, eax
jl 0x10013b44
push 0x4f8
push str.C:UsersuserDesktop_testImGui_DirectX_11_Kiero_Hook_masterImGui_DirectX_11_Kiero_Hookimguiimgui.h
push 0x10056da8
call fcn.1003cf0a
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [esi + 0x2d48]
add eax, ecx
push ebx
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 4]
inc edi
mov eax, dword [esi + 0x2d40]
add ecx, 0x18
add esp, 0xc
mov dword [ebp - 4], ecx
cmp edi, eax
jl 0x10013b44
mov edi, dword [ebx]
mov edx, 0x10056d00
mov ecx, dword [ebp - 8]
mov ebx, 0x100626cc
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2d3c]
test eax, eax
cmovne ebx, eax
call fcn.10002a10
mov esi, eax
test esi, esi
je 0x10013bac
push esi
push edi
push 1
push ebx
call fcn.10034f03
push esi
call fcn.10034371
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002d980
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10061008]
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 0x1002da7a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1002da73
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x1002da59
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1002da59
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1002da59
mov edx, dword [esi]
test edx, edx
jne 0x1002da22
push 0x200
push edx
push dword [0x100626d8]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1002da73
jmp 0x1002da4d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1002da4d
shl eax, 3
push eax
push edx
push 0
push dword [0x100626d8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1002da73
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 0x1002d9e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1002dabf
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1002dabf
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 0x1002dab9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1002d810
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1002da86
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10030185
mov esp, ebp
pop ebp
ret
Function at 0x1002dad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10061008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10062820]
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 - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002db31
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10030185
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1002db52
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 0x1002db73
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1002db73
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1002db6d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1002db73
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
and cl, 0xfd
mov al, bl
add al, al
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
mov byte [esi + 0x14], cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10030185
mov esp, ebp
pop ebp
ret
Function at 0x1002dbd0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x10062828]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x1002dcc1
mov eax, dword [0x10062820]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1002dc15
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x1002dbf8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1002dcc1
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.1002d980
mov ecx, dword [0x10062828]
add esp, 4
cmp esi, ecx
jae 0x1002dc75
imul edi, esi, 0x2c
mov eax, dword [0x10062820]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1002dc6a
mov edx, ebx
mov ecx, esi
call fcn.1002dad0
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002dc72
mov ecx, dword [0x10062828]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1002dc41
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1002dcc1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1002dcb2
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1002dca6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1002dc85
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x100626d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002e000
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
mov edx, 1
mov ecx, 0x100626d4
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x1002e055
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
cmp esi, 0x20
jae 0x1002e039
push 0
jmp 0x1002e03b
push 1
call ebx
inc esi
mov ecx, 1
xor eax, eax
mov edx, 0x100626d4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1002e030
mov ebx, dword [ebp - 4]
cmp dword [0x100626d8], 0
je 0x1002e128
test ebx, ebx
jne 0x1002e074
mov ecx, edi
call fcn.1002dbd0
mov edi, eax
jmp 0x1002e12d
mov ecx, dword [0x10062828]
xor esi, esi
test ecx, ecx
je 0x1002e094
mov edx, dword [0x10062820]
mov eax, edx
cmp ebx, dword [eax]
je 0x1002e09e
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x1002e088
mov edi, 4
jmp 0x1002e12d
cmp esi, 0xffffffff
je 0x1002e094
imul eax, esi, 0x2c
movzx eax, byte [eax + edx + 0x14]
shr eax, 1
and eax, 1
cmp eax, edi
je 0x1002e11f
push 1
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.1002d980
add esp, 4
mov edx, edi
mov ecx, esi
call fcn.1002dad0
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], edi
test eax, eax
je 0x1002e12d
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1002e10e
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1002e102
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1002e0e1
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x100626d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1002e12d
neg edi
sbb edi, edi
add edi, 6
jmp 0x1002e12d
mov edi, 2
xor eax, eax
mov ecx, 0x100626d4
xchg dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret