joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433cdc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x433cf8
cmp dword [esi + 4], 0
je 0x433d25
test byte [ebx + 0x55], 1
jne 0x433d17
mov eax, ebx
call fcn.004328e8
test eax, eax
jne 0x433d17
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x433e35
mov edx, esi
mov eax, ebx
call fcn.00433800
jmp 0x433e35
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x433e2e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00435b4c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004305d0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00433cdc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00435b4c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433e35
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a3dc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45519c]
cmp byte [eax + 0xc], 0
je 0x43a549
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a542
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [fcn.00456af8], 0
jne 0x43a430
push 0x43a550
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43a558
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [fcn.00456af8], eax
cmp dword [0x454ac8], 0
jne 0x43a52b
push 0x43a568
call sub.kernel32.dll_LoadLibraryA
mov dword [0x454ac8], eax
cmp dword [0x454ac8], 0
je 0x43a52b
push 0x43a574
mov eax, dword [0x454ac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456afc], eax
push 0x43a584
mov eax, dword [0x454ac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b00], eax
push 0x43a598
mov eax, dword [0x454ac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b04], eax
push 0x43a5b0
mov eax, dword [0x454ac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b08], eax
push 0x43a5c8
mov eax, dword [0x454ac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b0c], eax
push 0x43a5dc
mov eax, dword [0x454ac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b10], eax
push 0x43a5f4
mov eax, dword [0x454ac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b14], eax
push 0x43a60c
mov eax, dword [0x454ac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b18], eax
push 0x43a628
mov eax, dword [0x454ac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [fcn.00456b1c], eax
push 0x43a634
mov eax, dword [0x454ac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a549
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43e3fc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404930
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43e44b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404ba0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445bf4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445c44]
test si, 4
je 0x445c08
or bl, 1
test si, 8
je 0x445c12
or bl, 4
test si, 1
je 0x445c1c
or bl, 8
test si, 2
je 0x445c26
or bl, 0x10
test si, 0x10
je 0x445c30
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445c3f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x445c48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445c80]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445c61
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445c70
or bl, 4
test esi, 0x20000000
je 0x445c7b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c344
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c356
add esp, 0xfffffff0
call fcn.00403ec0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a0b8
mov eax, dword [0x454e68]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c6e8
mov eax, dword [0x454e74]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c6f4
mov eax, ebx
call fcn.0044c700
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4122d0]
call fcn.00403b58
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4122d0]
call fcn.00403b58
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4122d0]
call fcn.00403b58
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4122d0]
call fcn.00403b58
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4122d0]
call fcn.00403b58
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x448b18
push eax
push 0
push 0
mov eax, dword [0x454fb4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41bb58]
call fcn.0041d2f0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41bb58]
call fcn.0041d2f0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41bb58]
call fcn.0041d2f0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044cb50
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ca18
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ca18
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ca18
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c493
call fcn.00403f18
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44c7fc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c9a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44c988
mov dl, 1
mov eax, dword [0x4126ec]
call fcn.00403b58
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404930
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44c977
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043a73c
test al, al
je 0x44c96a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44c9b8
lea eax, [ebp - 0x254]
call fcn.0040967c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44c96a
xor eax, eax
push ebp
push 0x44c963
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44c9f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44c94c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ba0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44c94c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c96a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44c86d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416250
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c9ae
lea eax, [ebp - 0x260]
call fcn.00404930
ret

Function at 0x44d2f0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x456b44]
cmp byte [eax + 0xa5], 0
jne 0x44d361
cmp dword [0x456b5c], 0
jne 0x44d322
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d2ac
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x456b5c], eax
cmp dword [0x456b58], 0
jne 0x44d33d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x456b58], eax
cmp dword [0x456b60], 0
jne 0x44d361
push esp
push 0
push 0
push 0x44d250
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x456b60], eax
pop edx
ret
Function at 0x44e5fc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44e631
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a20
jmp 0x44e63e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404984
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45042c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004501a8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404df0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45048a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x454fc0]
mov dl, 1
mov eax, dword [0x4500cc]
call fcn.0040c0dc
call fcn.00404328
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x451540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404de0
mov eax, dword [ebp - 8]
call fcn.00404de0
xor eax, eax
push ebp
push 0x45165a
push dword fs:[eax]
mov dword fs:[eax], esp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 4]
call fcn.00404bf0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00404bf0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jle 0x4515a3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.00404f7c
mov esi, dword [ebp - 0x14]
test esi, esi
jle 0x4515d8
mov ebx, 1
mov eax, edi
call fcn.00404e48
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x4515b9
cmp byte [ebp - 9], 0
je 0x451610
mov ebx, dword [ebp - 0x14]
inc ebx
mov esi, dword [ebp - 0x10]
sub esi, ebx
jl 0x45163f
inc esi
mov eax, edi
call fcn.00404e48
mov edx, ebx
sub edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + edx - 1]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x4515ea
jmp 0x45163f
mov ebx, dword [ebp - 0x14]
inc ebx
mov esi, dword [ebp - 0x10]
sub esi, ebx
jl 0x45163f
inc esi
mov eax, edi
call fcn.00404e48
mov edx, ebx
sub edx, dword [ebp - 0x14]
mov ecx, dword [edi]
mov dl, byte [ecx + edx - 1]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x45161c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451661
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404954
ret
Function at 0x451ad8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
mov ebx, edx
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x105]
push eax
push 0
push 0
push esi
push 0
call sub.shfolder.dll_SHGetFolderPathA
call fcn.004073c0
test eax, eax
je 0x451b24
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404ba0
jmp 0x451b2b
mov eax, ebx
call fcn.00404930
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4017e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
clc
jae 0x4017eb
call 0x63d09c
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x4017f9
call 0x3dcb7c24
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x447200], eax
mov edx, 0xda4c2ca8
call fcn.00401160
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
stc
jb 0x401829
call 0xe848825f
ljmp 0x8b04
push 8
call fcn.0040231a
push 4
mov esi, eax
call fcn.0040231a
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401ac0
push 0
push 0
mov dword [eax], 0x4016f0
call fcn.004053af
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x401889
cmp dword [edi], 0
je 0x401896
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
je 0x40189d
push 0
push dword [esi + 4]
push dword [esi]
call fcn.0040215e
add esp, 0xc
test eax, eax
jne 0x4018a4
pop edi
mov dword [esi], eax
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.00401f00
push 1
call fcn.00401f00
push 5
call fcn.00401f00
push 2
call fcn.00401f00
int3

Function at 0x402c87
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402cc6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402cc6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402cc6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402cc6
cmp dword [ecx + 0x74], 0xe
jbe 0x402cc6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407855
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41226c
push 0x412264
push str.FlsAlloc
push 0x1e
call fcn.004076d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407889
push dword [ebp + 8]
mov ecx, esi
call dword [0x410134]
call esi
jmp 0x40788f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4078d3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41227c
push 0x412274
push str.FlsGetValue
push 0x20
call fcn.004076d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40790a
push dword [ebp + 8]
mov ecx, esi
call dword [0x410134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100122e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014e45
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10039008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
je 0x1001232e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013976
mov esp, ebp
pop ebp
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.10013984
mov dword [eax], 1
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [ebp - 0x18], eax
push 4
mov byte [ebp - 4], 1
call fcn.10013984
mov dword [ebp - 0x14], eax
mov dword [eax], 0x10006840
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x10012460
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x20
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10012424
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x100123be
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x100123d4
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x1001241a
lea eax, [edx + 4]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x1001240e
or eax, 0xffffffff
lock xadd dword [edx], eax
cmp eax, 1
jne 0x1001240e
push 0x14
push edx
call fcn.10013ea7
add esp, 8
cmp dword [ebp - 0x1c], 0
je 0x1001241a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, 1
jmp 0x10012313
push 6
mov dword [ebp - 0x1c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x10012df0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10039008]
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 0x10012eea
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10012ee3
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10012ec9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10012ec9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10012ec9
mov edx, dword [esi]
test edx, edx
jne 0x10012e92
push 0x200
push edx
push dword [0x100397fc]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10012ee3
jmp 0x10012ebd
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10012ebd
shl eax, 3
push eax
push edx
push 0
push dword [0x100397fc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10012ee3
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 0x10012e51
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10012f2f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10012f2f
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 0x10012f29
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10012c80
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10012ef6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013976
mov esp, ebp
pop ebp
ret

Function at 0x10012f40
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x10012f8c
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10012f7b
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 0x10012f74
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 0x10012f51
pop edi
push dword [ebx]
push 0
push dword [0x100397fc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x10012f90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10039008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x10039830]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10012fec
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013976
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10013007
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013976
mov esp, ebp
pop ebp
ret

Function at 0x10013040
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x10039838]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1001311d
mov eax, dword [0x10039830]
add eax, 0x14
test byte [eax], 2
je 0x1001307a
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10013065
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1001311d
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10012df0
mov ecx, dword [0x10039838]
add esp, 4
cmp esi, ecx
jae 0x100130cb
imul edi, esi, 0x2c
mov eax, dword [0x10039830]
test byte [edi + eax + 0x14], 2
jne 0x100130c0
mov ecx, esi
call fcn.10012f90
mov ebx, eax
test ebx, ebx
jne 0x100130c8
mov ecx, dword [0x10039838]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x100130a1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001311c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1001310d
mov ebx, eax
nop dword [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10013101
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100130e0
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x100397fc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret