joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce8b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ce8db
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
jne 0x4ce8ff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4ce91a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4d27c2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d27fa
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d5643
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d561b
jmp 0x4d2806
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x10001910
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015b30
push 0x10011544
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov esi, ecx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp + 8], eax
push 4
push esi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
call edi
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10001993
push 4
lea eax, [esi + ebx]
push eax
call edi
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10001993
mov esi, dword [esi]
add esi, ebx
lea edx, [ebp + 8]
push edx
push 0x40
push 4
push esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
test esi, esi
je 0x10001983
mov dword [esi], 0x3f4ce1c6
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 4
push esi
call edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100019e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
call edi
push 0x1000
push 0
push esi
call sub.ntdll.dll_memset
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push 0
push ecx
push edx
push eax
call edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10001a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x10001a89
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001a8d
cmp edx, esi
jne 0x10001a72
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x10001aad
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001ab1
cmp edx, esi
jne 0x10001a96
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x10001ad1
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001ad5
cmp edx, esi
jne 0x10001aba
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10011b98
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov ecx, 0x46
xor eax, eax
mov dl, byte [eax + str._0_n_____]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x20], dl
jns 0x1000696f
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x13
jl 0x10006952
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0
mov ecx, dword [0x1001ac78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [ebp - 0x20]
push edx
call eax
add eax, dword [0x1001a8d0]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
movzx eax, byte [eax]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10006b20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10011b38
push eax
mov dword fs:[0], esp
sub esp, 0xc
xor edx, edx
mov ecx, 0xb9
xor eax, eax
push ebx
mov bl, byte [eax + 0x10014008]
xor bl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x18], bl
jns 0x10006b62
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xb
jl 0x10006b45
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], edx
mov ecx, dword [0x1001ac78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [ebp - 0x18]
push edx
call eax
mov ecx, dword [ebp - 0xc]
add eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10009c20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10011ac0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
cmp dword [0x1001a958], 0
je 0x10009ced
mov ecx, 0x10013a94
sub ecx, 0x1e70f71
lea eax, [ebp - 0x15]
call fcn.1000e760
mov dword [ebp - 4], 0
mov ecx, dword [0x1001ac78]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x20]
call eax
cmp byte [eax], 9
mov dword [ebp - 4], 0xffffffff
sete cl
xor eax, eax
mov dword [ebp - 0x15], eax
mov dword [ebp - 0x11], eax
mov byte [ebp - 0xd], al
test cl, cl
je 0x10009ced
push esi
lea esi, [eax + 0xc]
mov ecx, 0x70
xor eax, eax
mov dl, byte [eax + 0x1001490c]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x26], dl
jns 0x10009cb4
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x10
jl 0x10009c97
mov byte [ebp - 0x16], 0
mov dword [ebp - 4], 1
mov ecx, dword [0x1001ac78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [ebp - 0x26]
push edx
call eax
mov dword [eax + esi], 0
add esi, 4
mov dword [ebp - 4], 0xffffffff
cmp esi, 0x38
jl 0x10009c90
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000a910
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x2d
call fcn.10001e60
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cwde
shr eax, 0x10
test eax, eax
je 0x1000a956
cmp byte [0x1001a090], 0
je 0x1000a948
cmp dword [0x1001a094], 0
je 0x1000a95d
call esi
cmp dword [0x1001a094], eax
ja 0x1000a95d
mov byte [0x1001a090], 1
mov eax, 1
jmp 0x1000a95f
mov byte [0x1001a090], 0
xor eax, eax
test al, 1
je 0x1000a974
xor ecx, ecx
cmp dword [0x100184dc], ecx
sete cl
mov dword [0x100184dc], ecx
cmp dword [0x10019ca4], 0
je 0x1000a9bc
push 0xa2
call fcn.10001dd0
test ax, ax
je 0x1000a9bc
lea edx, [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add edx, 2
mov dword [0x100184e8], ecx
mov dword [0x100184ec], edx
cmp dword [0x100184dc], 0
je 0x1000ab3c
push 0x26
call fcn.10001e60
cwde
shr eax, 0x10
test eax, eax
je 0x1000aa02
cmp byte [0x1001a058], 0
je 0x1000a9f4
cmp dword [0x1001a05c], 0
je 0x1000aa09
call esi
cmp dword [0x1001a05c], eax
ja 0x1000aa09
mov byte [0x1001a058], 1
mov eax, 1
jmp 0x1000aa0b
mov byte [0x1001a058], 0
xor eax, eax
test al, 1
je 0x1000aa42
mov ecx, dword [0x1001acc8]
mov eax, dword [0x1001accc]
mov edx, 2
nop
dec eax
jns 0x1000aa26
lea eax, [ecx - 1]
lea esi, [eax*8]
sub esi, eax
cmp dword [esi*4 + 0x10018d20], edx
je 0x1000aa20
mov dword [0x1001accc], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x28
call fcn.10001f90
test al, 1
mov eax, dword [0x1001accc]
je 0x1000aa83
mov ecx, dword [0x1001acc8]
mov edx, 2
inc eax
cmp eax, ecx
jne 0x1000aa67
xor eax, eax
lea esi, [eax*8]
sub esi, eax
cmp dword [esi*4 + 0x10018d20], edx
je 0x1000aa60
mov dword [0x1001accc], eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [eax*8]
sub ecx, eax
cmp dword [ecx*4 + 0x10018d18], 0
je 0x1000ab3c
xor esi, esi
lea eax, [esi + 0x25]
call fcn.10001f90
test al, 1
je 0x1000aac4
mov eax, dword [0x1001accc]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [edx*4 + 0x10018d18]
cmp dword [eax], esi
jle 0x1000aac4
or esi, 0xffffffff
mov eax, 0x27
call fcn.10001f90
mov ecx, dword [0x1001accc]
test al, 1
je 0x1000aafe
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
mov edx, dword [eax + eax + 0x10018d1c]
add eax, eax
mov eax, dword [eax + 0x10018d18]
dec edx
cmp dword [eax], edx
jge 0x1000aafe
mov esi, 1
jmp 0x1000ab02
test esi, esi
je 0x1000ab3c
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
mov ecx, dword [eax + eax + 0x10018d18]
add dword [ecx], esi
add eax, eax
mov eax, dword [eax + 0x10018d20]
cmp eax, 1
jne 0x1000ab2d
mov dword [0x1001acc8], 0
cmp eax, 4
jne 0x1000ab3c
mov dword [0x1001acc8], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000b270
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [0x100184d8], 1
push esi
mov esi, dword [0x1001a904]
push edi
jne 0x1000b2c1
push 0x10018bcc
push str.Arial
push 2
push esi
call fcn.10001ae0
push 0x1001ac70
push str.Hud_Small_Font
push 0
push esi
call fcn.10001ae0
push esi
call fcn.10001bb0
push esi
call fcn.10001c60
mov dword [0x100184d8], 0
cmp dword [0x10019c1c], 0
je 0x1000b2f2
push 0x7b
call fcn.10001dd0
mov ecx, 0x8000
test cx, ax
je 0x1000b2f2
mov edi, 0x858336e0
lea esi, [ebp - 0x1f]
call fcn.1000f380
push eax
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c880
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
mov dword [0x1001aba0], esi
jne 0x1000c8bc
push esi
call fcn.10001a50
add esp, 4
call fcn.100019e0
push 0
push 0
push esi
push 0x1000c7a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x1000da40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10012048
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x44], 0
je 0x1000dc03
cmp byte [ebx + 0x49], 0
je 0x1000dc03
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
jne 0x1000da96
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
lea esi, [ebp - 0x28]
call fcn.1000d8e0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ecx]
mov edx, eax
cmp edi, 0x10
jae 0x1000dabc
lea edx, [ebp - 0x28]
mov eax, edx
add edx, dword [ebp - 0x18]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebx + 0x44]
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1000db00
dec eax
je 0x1000db04
sub eax, 2
lea esi, [ebp - 0x28]
je 0x1000dbde
call fcn.1000c8d0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov edx, eax
cmp edi, 0x10
jae 0x1000db14
lea edx, [ebp - 0x28]
mov esi, dword [ebp + 8]
sub esi, edx
je 0x1000db42
cmp edi, 0x10
jae 0x1000db23
lea eax, [ebp - 0x28]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000dbd3
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp byte [ebx + 0x49], 0
je 0x1000dbdb
test esi, esi
jne 0x1000dab0
mov ecx, dword [ebp - 0x18]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000dbf8
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000dbf8
cmp edi, esi
jae 0x1000dbbc
push ecx
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.1000ddf0
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test esi, esi
je 0x1000dab0
mov ecx, eax
cmp edi, 0x10
jae 0x1000db98
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], esi
jae 0x1000dbb3
lea eax, [ebp - 0x28]
mov byte [eax + esi], 0
jmp 0x1000daa7
test esi, esi
jne 0x1000db8e
mov dword [ebp - 0x18], esi
cmp edi, 0x10
jae 0x1000dbcb
lea eax, [ebp - 0x28]
mov byte [eax], 0
jmp 0x1000daa7
lea esi, [ebp - 0x28]
jmp 0x1000dae6
lea esi, [ebp - 0x28]
call fcn.1000c8d0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f1a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0xae
xor ecx, ecx
jmp 0x1000f1b0
mov al, byte [edi + ecx - 0x52973cbe]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1000f1cd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x1000f1b0
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x1000f710
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1001af3c]
push esi
xor esi, esi
cmp eax, esi
je 0x1000f72b
lea esp, [esp]
cmp dword [eax + 4], esi
jne 0x1000f773
mov eax, dword [eax]
cmp eax, esi
jne 0x1000f720
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
je 0x1000f773
lea ecx, [eax + 0x20]
mov edx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
sub edx, eax
nop
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x1000f750
mov ecx, dword [0x1001af3c]
mov dword [eax], ecx
mov dword [0x1001af3c], eax
pop esi
ret
Function at 0x100100f0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x100101d6
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100101cf
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp dword [ebp - 0x20], 0x10
jb 0x100101ae
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100101ae
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100101ae
mov eax, dword [esi]
test eax, eax
jne 0x10010176
mov ecx, dword [0x1001ace0]
push 0x200
push eax
push ecx
mov dword [esi + 4], 0x80
call edi
mov dword [esi], eax
test eax, eax
je 0x100101cb
jmp 0x1001019f
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jb 0x1001019f
lea edx, [ecx*8]
push edx
push eax
mov eax, dword [0x1001ace0]
push 0
push eax
call ebx
test eax, eax
je 0x100101cb
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
mov ecx, dword [ebp - 0x18]
mov dword [edx + eax*4], ecx
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
push eax
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10010136
mov edi, dword [ebp - 4]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100101e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.100100f0
cmp dword [esi], ebx
je 0x1001023b
cmp dword [esi + 8], ebx
jbe 0x1001023b
push edi
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10010234
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push edi
call fcn.1000ffb0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10010200
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10010240
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x10010292
push edi
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x10010280
push esi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10010279
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebx + 8]
jb 0x10010255
pop esi
mov edx, dword [ebx]
mov eax, dword [0x1001ace0]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
pop ebp
ret
Function at 0x100102a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
imul esi, esi, 0x2c
add esi, dword [0x1001af30]
push edi
test byte [esi + 0x14], 1
mov edi, dword [esi]
mov ebx, 5
je 0x100102c6
sub edi, ebx
mov ebx, 7
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100102e4
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov ecx, dword [esi + 4]
sub ecx, edi
sub ecx, 5
mov dword [edi + 1], ecx
test byte [esi + 0x14], 1
je 0x100102ff
mov eax, dword [esi]
mov word [eax], 0xf9eb
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
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
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010330
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [0x1001af38]
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [ebp - 4], esi
test ecx, ecx
je 0x1001048d
mov eax, dword [0x1001af30]
add eax, 0x14
test byte [eax], 2
je 0x1001036a
inc edi
add eax, 0x2c
cmp edi, ecx
jb 0x10010355
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x1001048d
push ebx
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
call fcn.100101e0
add esp, 8
cmp edi, dword [0x1001af38]
jae 0x10010443
mov eax, edi
imul eax, eax, 0x2c
mov dword [ebp - 0x10], eax
lea ebx, [ebx]
mov ecx, dword [0x1001af30]
test byte [eax + ecx + 0x14], 2
lea esi, [eax + ecx]
jne 0x10010421
test byte [esi + 0x14], 1
mov edi, dword [esi]
mov ebx, 5
je 0x100103c4
sub edi, ebx
mov ebx, 7
lea edx, [ebp - 0xc]
push edx
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10010439
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 0x100103f1
mov eax, dword [esi]
mov word [eax], 0xf9eb
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
push ecx
push edx
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
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov dword [ebp - 4], 0
inc edi
add eax, 0x2c
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], eax
cmp edi, dword [0x1001af38]
jb 0x100103a0
jmp 0x10010440
mov dword [ebp - 4], 0xa
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1001048c
xor edi, edi
cmp dword [ebp - 0x14], edi
jbe 0x1001047c
mov eax, dword [ebx + edi*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10010473
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x10010451
mov esi, dword [ebp - 4]
mov ecx, dword [0x1001ace0]
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10011006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10018028]
jne 0x10011010
repz ret
jmp fcn.1001140f
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4d737f]
shl eax, 2
mov dword [0x4d7383], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0049bd48
pop edx
call fcn.0049bcac
call fcn.0049bd88
push 0
call fcn.0049d074
pop ecx
push 0x4d7328
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4d7387], eax
push 0
jmp fcn.004a2744