joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401112
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, ecx
push str.ntdll.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlAdjustPrivilege
push eax
mov dword [ebp - 0x10], eax
call esi
push str.ntdll.dll
mov dword [ebp - 0xc], eax
call edi
push str.NtShutdownSystem
push eax
mov dword [ebp - 0x20], eax
call esi
push str.ntdll.dll
mov dword [ebp - 0x1c], eax
call edi
push str.NtSetSystemPowerState
push eax
mov dword [ebp - 0x18], eax
call esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x40119d
lea eax, [ebp - 5]
push eax
push 0
push 1
push 0x13
call ecx
push dword [ebp - 0x10]
mov esi, eax
call edi
test esi, esi
je 0x40119a
xor eax, eax
jmp 0x401204
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4011b7
push 0x1000a
push 6
push 6
call eax
push dword [ebp - 0x18]
mov esi, eax
call edi
test esi, esi
je 0x401201
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4011cc
push ebx
call eax
push dword [ebp - 0x20]
mov esi, eax
call edi
test esi, esi
je 0x401201
push 8
pop eax
push 2
pop edx
xor ecx, ecx
cmp ebx, edx
push 4
cmovne eax, ecx
cmp ebx, 1
cmove eax, edx
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x401201
push 0x10
push str.Error___NT
push str.I_cant_power_off_the_computer._nYoure_lucky_this_time...
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x401196
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401364
leave
ret

Function at 0x4012a7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00401000
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea eax, [ebp - 0x10c]
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
lea ecx, [eax - 1]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x114]
push eax
push 1
lea eax, [ebp - 0x10d]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x10d]
pop edi
pop esi
cmp al, 3
jne 0x40134e
call fcn.00401213
jmp 0x401356
movzx ecx, al
call fcn.00401112
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401364
leave
ret 0x10
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437008]
jne 0x401010
repz ret
jmp fcn.00401916

Function at 0x40510a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004038c7
and dword [ebp - 4], 0
cmp dword [0x438d70], 0
mov ebx, eax
jne 0x4051bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40526c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40526c
push eax
call fcn.00403855
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438d70], eax
call esi
push eax
call fcn.00403855
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x438d74], eax
call esi
push eax
call fcn.00403855
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438d78], eax
call esi
push eax
call fcn.00403855
pop ecx
mov dword [0x438d80], eax
test eax, eax
je 0x4051bb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403855
pop ecx
mov dword [0x438d7c], eax
mov eax, dword [0x438d7c]
cmp eax, ebx
je 0x405213
cmp dword [0x438d80], ebx
je 0x405213
push eax
call fcn.004038d0
push dword [0x438d80]
mov esi, eax
call fcn.004038d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405213
test edi, edi
je 0x405213
call esi
test eax, eax
je 0x40520a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40520a
test byte [ebp - 0xc], 1
jne 0x405213
or dword [ebp + 0x10], 0x200000
jmp 0x40524c
mov eax, dword [0x438d74]
cmp eax, ebx
je 0x40524c
push eax
call fcn.004038d0
pop ecx
test eax, eax
je 0x40524c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40524c
mov eax, dword [0x438d78]
cmp eax, ebx
je 0x40524c
push eax
call fcn.004038d0
pop ecx
test eax, eax
je 0x40524c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438d70]
call fcn.004038d0
pop ecx
test eax, eax
je 0x40526c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40526e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433190
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x404
mov eax, dword [0x437008]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [0x2a7399c], 0x114e
mov eax, dword [esp + 0x408]
mov dword [0x2a737e0], eax
jne 0x4331d1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00401006
add esp, 0x404
ret
Function at 0x433200
Capabilities:
Get hostname

Disassembly:
sub esp, 0xc14
mov eax, dword [0x437008]
xor eax, esp
mov dword [esp + 0xc10], eax
push esi
xor esi, esi
cmp dword [esp + 0xc1c], esi
mov dword [esp + 8], edx
jle 0x4332df
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push edi
mov edi, dword [esp + 0x14]
jmp 0x433240
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 5
mov dword [esp + 0x18], 0
call fcn.004331f0
mov eax, dword [esp + 0x18]
add eax, 0x46
mov dword [esp + 0x10], eax
nop
sub dword [esp + 0x10], 0x46
mov al, byte [esp + 0x10]
xor byte [edx + esi], al
cmp dword [esp + 0xc28], 0xf
jne 0x4332ce
push 0
push 0
call ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push str.pujujahapoxewib
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
lea eax, [esp + 0x424]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push edi
push str.gedopeyepamomucegaderifuzupunej
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edx, dword [esp + 0x14]
inc esi
cmp esi, dword [esp + 0xc28]
jl 0x433240
pop edi
pop ebp
pop ebx
cmp dword [esp + 0xc1c], 0x2d
pop esi
jne 0x4332fe
mov dword [0x2a73ad0], 0xa62e7790
mov dword [0x2a73ad4], 0xffffffff
mov ecx, dword [esp + 0xc10]
xor ecx, esp
call fcn.00401006
add esp, 0xc14
ret

Function at 0x433320
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x437008]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x437fe0]
push esi
mov esi, dword [0x2a7399c]
push edi
mov edi, dword [0x2a737e4]
push eax
call fcn.00433190
add esp, 4
cmp dword [0x2a7399c], 0x2f
jne 0x43335f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
mov edx, edi
call fcn.00433200
add esp, 4
cmp dword [0x2a7399c], 0x568
pop edi
pop esi
jne 0x433399
push 0
push 0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
lea edx, [esp + 0x404]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401006
add esp, 0x804
ret
Function at 0x402424
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402463
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402463
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402463
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402463
cmp dword [ecx + 0x74], 0xe
jbe 0x402463
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10001110
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
sub esp, 0x18
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [esp + 8]
movzx edx, word [esp + 0xa]
imul ecx, ecx, 0x64
movzx eax, word [esp + 0xe]
add ecx, edx
imul ecx, ecx, 0x64
add ecx, eax
cmp ecx, 0x1330225
jae 0x10001147
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
mov esi, dword [ecx + eax + 0x28]
lea edx, [esp + 8]
push edx
push 0x40
add esi, eax
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100011c1
mov eax, 0x10001010
sub eax, esi
sub eax, 5
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 4], cl
movzx ecx, cl
mov dword [esp + 4], 1
sub dword [esp + 4], ecx
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 3], cl
movzx edx, cl
sub dword [esp + 4], edx
mov ecx, eax
shr ecx, 8
mov byte [esi + 2], cl
movzx ecx, cl
sub dword [esp + 4], ecx
movzx edx, al
mov byte [esi + 1], al
sub dword [esp + 4], edx
mov byte [esi], 0xe9
add dword [esp + 4], 0xffffff17
pop esi
add esp, 0x18
ret

Function at 0x100053f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000aa50]
jne 0x100053ff
repz ret
jmp fcn.100068e3
Function at 0x10005557
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000182a
xor ebx, ebx
cmp dword [0x1000b320], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1000562c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10005597
xor eax, eax
jmp 0x100056f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10005590
push eax
call fcn.100017c7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000b320], eax
call esi
push eax
call fcn.100017c7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000b324], eax
call esi
push eax
call fcn.100017c7
mov dword [0x1000b328], eax
lea eax, [ebp - 8]
push eax
call fcn.10001588
test eax, eax
pop ecx
pop ecx
je 0x100055fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002ec4
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1000562c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100017c7
cmp eax, ebx
pop ecx
mov dword [0x1000b330], eax
je 0x1000562c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100017c7
pop ecx
mov dword [0x1000b32c], eax
mov eax, dword [0x1000b32c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100056a5
cmp dword [0x1000b330], esi
je 0x100056a5
push eax
call fcn.10001833
pop ecx
call eax
cmp eax, ebx
je 0x10005672
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1000b330]
call fcn.10001833
pop ecx
call eax
test eax, eax
je 0x10005672
test byte [ebp - 0x18], 1
jne 0x100056a5
lea eax, [ebp - 0xc]
push eax
call fcn.100015bf
test eax, eax
pop ecx
je 0x1000568d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002ec4
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1000569c
or dword [ebp + 0x10], 0x200000
jmp 0x100056d6
or dword [ebp + 0x10], 0x40000
jmp 0x100056d6
mov eax, dword [0x1000b324]
cmp eax, esi
je 0x100056d6
push eax
call fcn.10001833
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100056d6
mov eax, dword [0x1000b328]
cmp eax, esi
je 0x100056d6
push dword [ebp - 4]
push eax
call fcn.10001833
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1000b320]
call fcn.10001833
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401360
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, edx
mov esi, ecx
push edi
mov edi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
sub edi, esi
mov ebx, 4
nop dword [eax]
mov edx, 4
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x401385
sub ebx, 1
jne 0x401380
mov byte [ebp - 1], 1
nop dword [eax]
mov edi, esi
mov ebx, 4
mov ecx, edi
mov edx, 4
nop
movzx eax, byte ds:[ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + str.cw]
mov byte [ecx - 4], al
sub edx, 1
jne 0x4013b0
inc edi
sub ebx, 1
jne 0x4013a7
cmp byte ds:[ebp - 1], 0xe
movzx eax, byte [esi + 5]
mov cl, byte [esi + 1]
mov byte [esi + 1], al
movzx eax, byte [esi + 9]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xd]
mov byte [esi + 9], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 0xd], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 0xf], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xb], al
mov byte [esi + 7], cl
je 0x4014f4
lea edi, [esi + 2]
lea esi, [edx + 4]
nop dword [eax]
mov bh, byte [edi + 1]
lea edi, [edi + 4]
mov al, byte [edi - 6]
mov bl, bh
mov ch, byte [edi - 4]
mov cl, al
mov dl, byte [edi - 5]
xor bl, ch
mov byte [ebp - 2], al
xor cl, dl
mov dh, bl
xor dh, al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
xor dh, dl
imul eax, eax, 0x1b
xor al, cl
mov cl, dl
xor al, byte [ebp - 2]
xor cl, ch
xor al, dh
mov byte [edi - 6], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
mov cl, byte [ebp - 2]
xor al, dl
xor cl, bh
xor al, dh
mov byte [edi - 5], al
mov al, bl
shr al, 7
add bl, bl
movzx eax, al
imul eax, eax, 0x1b
xor al, bl
xor al, ch
xor al, dh
mov byte [edi - 4], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
xor al, bh
xor al, dh
mov byte [edi - 3], al
sub esi, 1
jne 0x401430
mov ch, byte [ebp - 1]
mov ebx, 4
mov esi, dword [ebp - 0xc]
mov eax, esi
movzx edx, ch
shl edx, 4
add edx, dword [ebp - 8]
mov edi, 4
mov cl, byte ds:[edx]
inc edx
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x4014d6
sub ebx, 1
jne 0x4014d1
inc ch
mov byte [ebp - 1], ch
jmp 0x4013a0
mov ecx, dword [ebp - 8]
mov edi, 4
lfence
add ecx, 0xe0
nop word [eax + eax]
mov edx, 4
mov al, byte ds:[ecx]
inc ecx
xor byte [esi], al
inc esi
sub edx, 1
jne 0x401515
sub edi, 1
jne 0x401510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x80c], 0
jne 0x401691
push 0x44a960
call fcn.00407f00
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
int3
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4016b7
push str.Commandline_is_nullptr__r_n
nop dword [eax]
call fcn.00407f00
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
int3
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4016c0
sub ecx, edx
sar ecx, 1
add ecx, 2
mov dword [esi + 4], ecx
je 0x4016dc
cmp ecx, 2
jne 0x4016f9
push str.Commandline_length_is_invalid__r_n
call fcn.00407f00
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
int3
mov eax, dword ds:[esi + 4]
cmp eax, 0x400
jbe 0x401713
mov dword [esi + 4], 0x400
mov eax, 0x400
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
push 0x442724
cmovb eax, ecx
push eax
mov dword [ebp - 4], eax
call fcn.0041b348
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40174c
push dword ds:[ebp - 4]
push 0
push ebx
call fcn.0041f350
add esp, 0xc
mov dword [esi], ebx
jmp 0x40176f
push str.Failed_to_allocate_memory_for_commandline__r_n
mov dword [esi], 0
call fcn.00407f00
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
int3
push edi
push 0x44a9fc
push 0xffffffffffffffff
push dword [esi + 4]
push dword [esi]
call fcn.00401640
add esp, 0x14
test eax, eax
jne 0x4017ae
push str.Failed_to_build_commandline_string__r_n
call fcn.00407f00
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
int3
mov ecx, esi
call fcn.004017c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401b00
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 0x80c], 0
jne 0x401b2e
push str.CommandlineLib_is_not_initialized___4__r_n
call fcn.00407f00
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
int3
xor edi, edi
cmp dword [ebx + 8], edi
jle 0x401b81
lea esi, [ebx + 0xc]
mov ecx, dword [esi]
test ecx, ecx
je 0x401b6c
mov eax, dword [esi + 0x400]
add eax, eax
push eax
push 0
push ecx
call fcn.00440bb0
add esp, 0xc
push dword [esi]
call fcn.0041b33a
add esp, 4
mov dword [esi], 0
mov dword [esi + 0x400], 0
inc edi
add esi, 4
cmp edi, dword [ebx + 8]
jl 0x401b38
mov dword ds:[ebx + 8], 0
pop edi
pop esi
pop ebx
ret
mov dword [ebx + 8], edi
pop edi
pop esi
pop ebx
ret

Function at 0x401ba0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 0x80c], 0
jne 0x401bf8
push str.CommandlineLib_is_not_initialized___6__r_n
call fcn.00407f00
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
int3
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x401c57
mov esi, 1
cmp dword [ebx + 8], esi
jle 0x401c57
lea edi, [ebx + 0x10]
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x401c27
push eax
push ecx
call fcn.0042251d
add esp, 8
test eax, eax
je 0x401c3a
mov ecx, dword [ebp + 8]
inc esi
add edi, 4
cmp esi, dword [ebx + 8]
jl 0x401c10
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
test esi, esi
je 0x401c57
mov eax, dword [ebx + 8]
dec eax
cmp esi, eax
je 0x401c57
mov eax, dword [ebx + esi*4 + 0x10]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x401c57
cmp ecx, 0x2b
jne 0x401c59
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x402620
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x402793
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_Thread32First]
nop dword [eax + eax]
test eax, eax
je 0x40278c
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x40271f
nop word [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x40271f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x40271f
mov edx, dword [esi]
test edx, edx
jne 0x4026e3
push 0x200
push 8
push dword [0x45e348]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x402745
lea edi, [esi + 8]
jmp 0x402712
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x402712
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 8
push dword [0x45e348]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x4027a9
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x402690
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 0x12
je 0x40278c
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x40278c
push eax
push ebx
push dword [0x45e348]
call dword [sym.imp.KERNEL32.dll_HeapSize]
nop dword [eax + eax]
cmp eax, 0xffffffff
je 0x402775
test eax, eax
je 0x402775
push eax
push ebx
push dword [esi]
call fcn.00440bb0
add esp, 0xc
push dword ds:[esi]
push 0
push dword [0x45e348]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword ds:[ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x402745
Function at 0x4027c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00402620
test eax, eax
jne 0x4027f3
mov eax, 9
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
je 0x402887
cmp dword [esi + 8], 0
mov dword [ebp - 8], 0
jbe 0x402887
push ebx
xor ecx, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
mov eax, dword ds:[esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x402863
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x402856
push dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00402480
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x40286c
mov eax, dword [esi]
mov dword [ebx + eax], 0
mov eax, dword ds:[ebp - 8]
add ebx, 4
mov ecx, dword [ebp - 0xc]
inc eax
add ecx, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [esi + 8]
jb 0x402812
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4028a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x402938
push ebx
xor ebx, ebx
cmp dword [edi + 8], ebx
jbe 0x4028fd
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
nop
mov eax, dword [edi]
mov eax, dword [ecx + eax]
test eax, eax
je 0x4028f0
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x4028ed
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [edi + 8]
jb 0x4028c0
pop esi
push dword [edi]
push 0
push dword [0x45e348]
call dword [sym.imp.KERNEL32.dll_HeapSize]
pop ebx
cmp eax, 0xffffffff
je 0x402928
test eax, eax
je 0x402928
push eax
push 0
push dword [edi]
call fcn.00440bb0
add esp, 0xc
push dword [edi]
push 0
push dword [0x45e348]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov esp, ebp
pop ebp
ret