joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x404430
push 0x67
push edi
call esi
push 0x64
push 0x4043c8
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push edi
mov dword [ebp - 0x448], 0x30
mov dword [ebp - 0x444], 3
mov dword [ebp - 0x440], 0x401350
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x430], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x6c
push dword [ebp - 0x434]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], 6
mov dword [ebp - 0x424], 0x6d
mov dword [ebp - 0x420], 0x4043c8
call esi
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
lea eax, [ebp - 0x40c]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x40c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4010e8
sub ecx, edx
lea eax, [ecx + 0x10]
cmp eax, 0x200
ja 0x401245
push str.ghcinstdatar.tmp
lea eax, [ebp - 0x40c]
push 0x201
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__sopen_s]
lea eax, [ebp - 0x40c]
push pe_nt_image_headers32
push 0x20
push 0x8000
push eax
lea eax, [ebp - 0x414]
push eax
call edi
mov eax, dword [ebp - 0x414]
add esp, 0x20
cmp eax, 0xffffffff
je 0x401245
push 1
lea ecx, [ebp - 0x40d]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
push 0x201
mov esi, eax
lea eax, [ebp - 0x208]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
test esi, esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
jle 0x4011e7
mov al, byte [ebp - 0x40d]
cmp al, 0x41
je 0x4011e7
cmp al, 0x4d
je 0x4011e7
push 0x200
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x414]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp byte [ebp - 0x208], 0
je 0x4011e7
push pe_nt_image_headers32
push 0x20
push 0x8000
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x418]
push eax
call edi
mov eax, dword [ebp - 0x418]
add esp, 0x14
cmp eax, 0xffffffff
je 0x4011e0
push eax
call esi
add esp, 4
jmp 0x4011e7
mov byte [ebp - 0x208], 0
push dword [ebp - 0x414]
call esi
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
xor eax, eax
lea edx, [ebp - 0x208]
add esp, 8
cmp byte [ebp - 0x208], al
cmove edx, eax
mov al, byte [ebp - 0x40d]
cmp al, 0x50
jne 0x401221
mov ecx, str.PlaniHor.exe
jmp 0x401240
cmp al, 0x45
jne 0x40122c
mov ecx, str.EditHor.exe
jmp 0x401240
cmp al, 0x41
jne 0x401237
mov ecx, str.xgenhor.exe
jmp 0x401240
cmp al, 0x4d
jne 0x401245
mov ecx, str.ghcMain.exe
call fcn.00401260
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004014a9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x201
xor esi, esi
lea eax, [ebp - 0x208]
push esi
push eax
mov edi, edx
mov ebx, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x4012e7
push edi
lea eax, [ebp - 0x207]
mov byte [ebp - 0x208], 0x22
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea ecx, [ebp - 0x208]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4012c0
sub ecx, edx
mov byte [ebp + ecx - 0x208], 0x22
inc ecx
cmp ecx, 0x201
jae 0x401347
mov byte [ebp + ecx - 0x208], al
lea esi, [ebp - 0x208]
push 0
lea eax, [ebp - 0x40c]
push eax
push pe_nt_image_headers32
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x40131b
pop edi
pop esi
mov byte [ebp - 0x40c], al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004014a9
mov esp, ebp
pop ebp
ret
push 1
push 0
push esi
lea eax, [ebp - 0x40c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004014a9
mov esp, ebp
pop ebp
ret
call fcn.004015da
int3

Function at 0x401db7
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x499190
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x62000]
push edi
jmp 0x4991aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4991b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4991a0
mov eax, 1
add ebx, ebx
jne 0x4991c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4991d4
jne 0x4991f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4991f3
dec eax
add ebx, ebx
jne 0x4991e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4991b8
add ebx, ebx
jne 0x4991ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x499245
xor ecx, ecx
sub eax, 3
jb 0x49920b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49927a
sar eax, 1
mov ebp, eax
jmp 0x499216
add ebx, ebx
jne 0x499216
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4991e4
inc ecx
add ebx, ebx
jne 0x499224
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4991e4
add ebx, ebx
jne 0x499231
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x499226
jne 0x499242
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x499226
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x499264
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x499256
jmp 0x4991a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x499264
add edi, ecx
jmp 0x4991a6
pop esi
mov edi, esi
mov ecx, 0x3021
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x499282
cmp byte [edi], 0x19
jne 0x499282
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x499287
lea edi, [esi + 0x96000]
mov eax, dword [edi]
or eax, eax
je 0x4992ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9ff9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa00b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4992b4
mov ecx, edi
jns 0x4992e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa00b8]
or eax, eax
je 0x4992f9
mov dword [ebx], eax
add ebx, 4
jmp 0x4992d1
call dword [esi + 0xa00c8]
mov ebp, dword [esi + 0xa00bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x499333
sub esp, 0xffffff80
jmp 0x45282d
Function at 0x1002204
Capabilities:
Get common file path

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
cmp dword [0x1003044], edi
mov dword [esp + 4], edi
je 0x100221d
xor eax, eax
inc eax
jmp 0x100233f
push esi
push 0x1001554
xor esi, esi
inc esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1002241
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100221e
cmp dword [0x1003044], edi
jne 0x1002332
push 0x10e
call sub.wbemcomn.dll_public:_static_void____cdecl_CWin32DefaultArena::WbemMemAlloc_unsigned_long_int_
mov esi, eax
cmp esi, edi
pop ecx
jne 0x1002265
xor esi, esi
jmp 0x1002332
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, 0x104
push ebx
push esi
call ebp
mov edi, eax
cmp edi, ebx
jbe 0x100229b
push esi
call sub.wbemcomn.dll_public:_static_int___cdecl_CWin32DefaultArena::WbemMemFree_void__
lea eax, [edi + 0xa]
push eax
call sub.wbemcomn.dll_public:_static_void____cdecl_CWin32DefaultArena::WbemMemAlloc_unsigned_long_int_
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1002330
push edi
push esi
call ebp
push 0x1001548
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ebx, ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push esi
mov edi, eax
call sub.wbemcomn.dll_public:_static_int___cdecl_CWin32DefaultArena::WbemMemFree_void__
cmp edi, ebx
pop ecx
je 0x1002322
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001538
push edi
mov dword [esp + 0x18], 1
call esi
cmp eax, ebx
mov dword [0x100303c], eax
jne 0x10022eb
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
mov dword [esp + 0x10], ebx
push 0x1001524
push edi
mov dword [0x1003048], edi
call esi
push 0x1001510
push dword [0x1003048]
mov dword [0x1003038], eax
call esi
push 0x10014fc
push dword [0x1003048]
mov dword [0x1003040], eax
call esi
mov dword [0x1003034], eax
mov esi, dword [esp + 0x10]
mov dword [0x1003044], 1
pop ebp
pop ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ecx
pop ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401100
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, ecx
test esi, esi
mov ecx, edx
jbe 0x40112d
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x424980]
xor eax, edx
inc ecx
dec esi
jne 0x40110e
pop ebx
pop esi
ret 4

Function at 0x401c80
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, dword [edi]
test esi, esi
je 0x401ced
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [edi], 0
cmp esi, 0x400000
mov eax, 0x400000
ja 0x401cab
mov eax, esi
mov edx, dword [ebp]
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
add ebx, ecx
sub esi, ecx
add edx, ecx
test eax, eax
mov dword [edi], edx
je 0x401ce2
test ecx, ecx
je 0x401ced
test esi, esi
jbe 0x401ced
jmp 0x401c9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x406fd0
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x14c]
cmp eax, 2
jle 0x406df7
mov eax, 2
xor ebx, ebx
cmp eax, ebx
jle 0x406eeb
push esi
push edi
lea edi, [ebp + 0x150]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
cmp eax, ebx
je 0x406e87
mov byte [eax + 0xc], 1
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x406e62
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x406e3b
cmp dword [esp + 0x10], 0xffffffff
jne 0x406e62
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x406e62
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x406e62
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x406e62
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [edi]
cmp esi, ebx
je 0x406e85
mov eax, dword [esi + 4]
mov dword [esi], 0x420510
cmp eax, ebx
je 0x406e7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [edi], ebx
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x406ec5
lea edx, [esi + 8]
mov dword [esi], 0x420510
push edx
push 4
push esi
push 0x406f10
push ebx
push ebx
mov byte [esi + 0xc], bl
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov dword [esi], 0x420508
mov dword [esi + 0x10], ebp
jmp 0x406ec7
xor esi, esi
mov dword [edi], esi
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x406ed7
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x406e0d
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov al, byte [ecx + 0x158]
test al, al
jne 0x407018
mov eax, dword [ecx + 0x14c]
mov byte [ecx + 0x158], 1
test eax, eax
jle 0x407013
push ebx
push esi
lea edx, [ecx + 0xc]
mov esi, eax
mov eax, dword [edx]
cmp dword [eax + 0x38c], 3
je 0x40700b
mov eax, dword [eax + 0x244]
mov ebx, dword [ecx + 4]
add ebx, eax
mov dword [ecx + 4], ebx
add edx, 4
dec esi
jne 0x406ff2
pop esi
pop ebx
jmp 0x406de0
ret
Function at 0x407020
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
cmp byte [ebp + 0x158], bl
je 0x4070e3
push esi
push edi
lea esi, [ebp + 0x150]
mov dword [esp + 0x14], 2
mov eax, dword [esi]
cmp eax, ebx
je 0x4070b2
mov byte [eax + 0xc], 1
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x40709a
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x407073
cmp dword [esp + 0x10], 0xffffffff
jne 0x40709a
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x40709a
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x40709a
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x40709a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [esi]
cmp edi, ebx
je 0x4070b0
mov ecx, edi
call fcn.004070f0
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi], ebx
mov eax, dword [esp + 0x14]
add esi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x407045
xor edx, edx
mov ecx, ebp
mov dword [ebp + 0x150], edx
mov dword [ebp + 0x154], edx
call fcn.00406d40
pop edi
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov byte [ebp + 0x158], bl
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4105f0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esi + 8]
mov dword [esi], 0x420510
push eax
push ecx
push esi
push 0x406f10
push 0
push 0
mov byte [esi + 0xc], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret 4

Function at 0x410f14
Capabilities:
Create process on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x380]
lea ebx, [esi + 0x380]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41106e
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
push ebp
cmp ecx, 1
push edi
mov dword [esp + 0x10], edx
jg 0x410f4a
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x410f9b
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x410f57
jne 0x411038
mov ecx, dword [0x424038]
mov dword [ebx], ecx
mov edi, dword [ebx]
lea ecx, [ebp + 1]
mov eax, ecx
lea esi, [edx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov eax, dword [0x42403c]
cmp edx, eax
je 0x410f9b
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410f9b
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebx]
mov esi, dword [esp + 0x14]
push 5
push 0
push 0
push eax
mov eax, dword [esi + 4]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x411018
mov ecx, dword [0x42403c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x410ff2
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410fea
mov ecx, dword [ebx]
sub ecx, 0xc
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [0x424038]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov ecx, ebx
push eax
call fcn.00410180
test eax, eax
je 0x411018
mov ecx, dword [esi + 4]
mov edi, dword [ebx]
inc ecx
add esi, 0xc
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx]
pop edi
pop ebp
pop esi
mov dword [ecx - 8], eax
mov edx, dword [ebx]
pop ebx
mov byte [edx + eax], 0
xor eax, eax
add esp, 8
ret 0x10
lea edx, [ebp + 0xd]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x411067
mov edx, dword [esp + 0x10]
mov dword [eax], 1
mov byte [eax + ebp + 0xc], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx], eax
jmp 0x410f5f
xor eax, eax
jmp 0x410fa1
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
Function at 0x411084
Capabilities:
Create process on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x370]
lea ebx, [esi + 0x370]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4111de
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
push ebp
cmp ecx, 1
push edi
mov dword [esp + 0x10], edx
jg 0x4110ba
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x41110b
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x4110c7
jne 0x4111a8
mov ecx, dword [0x424038]
mov dword [ebx], ecx
mov edi, dword [ebx]
lea ecx, [ebp + 1]
mov eax, ecx
lea esi, [edx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov eax, dword [0x42403c]
cmp edx, eax
je 0x41110b
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41110b
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebx]
mov esi, dword [esp + 0x14]
push 5
push 0
push 0
push eax
mov eax, dword [esi + 4]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x411188
mov ecx, dword [0x42403c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x411162
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41115a
mov ecx, dword [ebx]
sub ecx, 0xc
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [0x424038]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov ecx, ebx
push eax
call fcn.00410180
test eax, eax
je 0x411188
mov ecx, dword [esi + 4]
mov edi, dword [ebx]
inc ecx
add esi, 0xc
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx]
pop edi
pop ebp
pop esi
mov dword [ecx - 8], eax
mov edx, dword [ebx]
pop ebx
mov byte [edx + eax], 0
xor eax, eax
add esp, 8
ret 0x10
lea edx, [ebp + 0xd]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x4111d7
mov edx, dword [esp + 0x10]
mov dword [eax], 1
mov byte [eax + ebp + 0xc], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx], eax
jmp 0x4110cf
xor eax, eax
jmp 0x411111
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
Function at 0x4111f4
Capabilities:
Create process on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x374]
lea ebx, [esi + 0x374]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41134e
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
push ebp
cmp ecx, 1
push edi
mov dword [esp + 0x10], edx
jg 0x41122a
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x41127b
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x411237
jne 0x411318
mov ecx, dword [0x424038]
mov dword [ebx], ecx
mov edi, dword [ebx]
lea ecx, [ebp + 1]
mov eax, ecx
lea esi, [edx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov eax, dword [0x42403c]
cmp edx, eax
je 0x41127b
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41127b
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebx]
mov esi, dword [esp + 0x14]
push 5
push 0
push 0
push eax
mov eax, dword [esi + 4]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x4112f8
mov ecx, dword [0x42403c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x4112d2
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4112ca
mov ecx, dword [ebx]
sub ecx, 0xc
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [0x424038]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov ecx, ebx
push eax
call fcn.00410180
test eax, eax
je 0x4112f8
mov ecx, dword [esi + 4]
mov edi, dword [ebx]
inc ecx
add esi, 0xc
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx]
pop edi
pop ebp
pop esi
mov dword [ecx - 8], eax
mov edx, dword [ebx]
pop ebx
mov byte [edx + eax], 0
xor eax, eax
add esp, 8
ret 0x10
lea edx, [ebp + 0xd]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x411347
mov edx, dword [esp + 0x10]
mov dword [eax], 1
mov byte [eax + ebp + 0xc], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx], eax
jmp 0x41123f
xor eax, eax
jmp 0x411281
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10