joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405340
Capabilities:
Delete directory

Disassembly:
push ebp
mov eax, 0x445c
push edi
push esi
push ebx
call fcn.0040b930
sub esp, eax
mov eax, dword [esp + 0x4470]
mov dword [esp + 8], 0x1000
lea ebx, [esp + 0x44c]
mov dword [esp + 4], eax
lea eax, [esp + 0x244e]
mov dword [esp], eax
call fcn.00405ec0
lea eax, [esp + 0x244e]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscpy
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
mov ebp, eax
movzx eax, word [esp + eax*2 + 0x44a]
cmp ax, 0x2f
je 0x4053ae
cmp ax, 0x5c
jne 0x405450
mov dword [esp + 4], 0x417664
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
lea eax, [esp + 0x230]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__wfindfirst]
mov dword [esp + 0x22c], eax
cmp eax, 0xffffffff
jne 0x405400
lea eax, [esp + 0x244e]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wrmdir]
add esp, 0x445c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x87
mov edi, esp
lea esi, [esp + 0x230]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, ebp
call fcn.00405470
lea eax, [esp + 0x230]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x22c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfindnext]
test eax, eax
je 0x405400
mov eax, dword [esp + 0x22c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
jmp 0x4053de
mov dword [esp + 4], 0x417660
add ebp, 1
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
jmp 0x4053ae

Function at 0x405470
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x101c
call fcn.0040b930
sub esp, eax
mov edi, edx
mov eax, dword [esp + eax]
lea esi, [esp + 0x1044]
mov dword [esp + 4], 0x417668
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x4054b0
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x41766c
mov dword [esp], esi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x4054a2
xor eax, eax
mov word [ebx + edi*2], ax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
test byte [esp + 0x1030], 0x10
je 0x405510
mov dword [esp + 4], ebx
lea ebx, [esp + 0x1f]
mov dword [esp], ebx
mov dword [esp + 8], 0x1000
call fcn.00405ce0
mov dword [esp], ebx
call fcn.00405340
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
mov esi, dword [sym.imp.msvcrt.dll__wremove]
call esi
test eax, eax
je 0x4054a2
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], ebx
call esi
jmp 0x4054a2
Function at 0x405700
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
mov eax, 0x1010
push esi
push ebx
call fcn.0040b930
sub esp, eax
mov eax, dword [esp + 0x1020]
mov dword [esp + 4], 0x4176a8
mov dword [esp], eax
call fcn.00403590
mov ebx, eax
mov eax, dword [esp + 0x1028]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1024]
mov dword [esp], eax
call fcn.00405560
mov edi, eax
test ebx, ebx
je 0x405818
test eax, eax
je 0x40580c
lea esi, [esp + 0x10]
lea esi, [esi]
nop
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x405808
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
test eax, eax
jne 0x4057b0
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x405760
mov dword [esp], ebx
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x4057e5
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test eax, eax
je 0x4057d8
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x405760
mov dword [esp], edi
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_fclose
add esp, 0x1010
mov eax, esi
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x4057e5
test ebx, ebx
je 0x405818
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
test edi, edi
jne 0x4057ed
jmp 0x4057f5
Function at 0x4058a0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push ebp
mov eax, 0x20ac
push edi
push esi
push ebx
call fcn.0040b930
sub esp, eax
mov eax, dword [esp + 0x20c0]
lea edi, [esp + 0xa0]
lea ebp, [esp + 0x5c]
mov dword [esp + 8], 0x1000
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call fcn.00405ec0
mov dword [esp + 4], 1
mov dword [esp], 0x16
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0xf
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0x15
call sub.msvcrt.dll_signal
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov esi, dword [fcn.00413dc0]
sub esp, 4
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x88], 0x101
mov word [esp + 0x8c], ax
mov dword [esp], 0
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov ebx, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp], eax
call ebx
mov dword [esp], 1
mov dword [esp + 0x94], eax
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp], 2
mov dword [esp + 0x98], eax
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x405a80
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
mov eax, dword [esp + 0x3c]
add esp, 0x20ac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Error_creating_child_process__n
mov dword [esp], str.CreateProcessW
call fcn.00402240
add esp, 0x20ac
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4061f0
Capabilities:
Create directory

Disassembly:
push ebp
mov eax, 0x203c
push edi
push esi
push ebx
call fcn.0040b930
sub esp, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x20]
mov dword [esp + 4], 8
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
lea edi, [esp + 0x24]
test eax, eax
jne 0x406310
xor ebx, ebx
lea esi, [esp + 0x30]
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x406269
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov ebx, dword [esp + 0x30]
mov eax, str.S_1_3_4
mov dword [esp], esi
mov dword [esp + 8], str.D:_A__FA____s_
test ebx, ebx
mov dword [esp + 4], 0x1000
cmovne eax, ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.msvcrt.dll__snwprintf]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
sub esp, 0x10
test eax, eax
je 0x4063b8
mov eax, dword [esp + 0x2050]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
neg eax
add esp, 0x203c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x406351
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406246
mov ebp, dword [esp + 0x24]
mov dword [esp], 1
mov dword [esp + 4], ebp
call sub.msvcrt.dll_calloc
mov ebx, eax
mov eax, dword [esp + 0x20]
test ebx, ebx
je 0x406246
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], eax
call esi
sub esp, 0x14
lea esi, [esp + 0x30]
test eax, eax
je 0x40624c
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
sub esp, 8
jmp 0x40624c
mov eax, 0xffffffff
jmp 0x4062fd
Function at 0x40a3b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
test edx, edx
je 0x40a3c8
jmp fcn.00409f50
xor eax, eax
ret

Function at 0x40acc0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00413dc0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00413dc0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40ad20
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4271e8]
test esi, esi
jle 0x40ae40
mov eax, dword [0x4271ec]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40ad54
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40add7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40ad40
mov dword [esp], ebx
call fcn.0040b6b0
mov edi, eax
test eax, eax
je 0x40ae67
mov eax, dword [0x4271ec]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040b7c0
mov edx, dword [0x4271ec]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40ae47
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40add0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40ade0
add dword [0x4271e8], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4271ec]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40add0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040acc0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40ad5e
mov eax, dword [0x4271ec]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040acc0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040acc0
lea esi, [esi]
nop
Function at 0x40b320
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x427204
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4271fc]
sub esp, 4
test ebx, ebx
je 0x40b375
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40b36e
test esi, esi
je 0x40b36e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b350
mov dword [esp], 0x427204
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40120e
cmp esi, eax
jae 0x4011e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401200
cmp esi, eax
jae 0x4011e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402af0
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x402b9e
push 0x94
mov ebx, 1
call fcn.0042d7ef
mov esi, eax
add esp, 4
test esi, esi
je 0x402c13
xor eax, eax
mov ecx, 0x25
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x402b54
push esi
mov ebx, 5
call fcn.0042d6d7
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 5
jne 0x402c0a
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x402b78
push esi
mov ebx, 6
call fcn.0042d6d7
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 5
jne 0x402c0a
cmp dword [esi + 8], ebx
jne 0x402c0a
push esi
mov ebx, 7
call fcn.0042d6d7
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp al, 4
jae 0x402ba8
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x94
mov ebx, 2
call fcn.0042d7ef
mov esi, eax
add esp, 4
test esi, esi
je 0x402c13
xor eax, eax
mov ecx, 0x25
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x402c0a
cmp dword [esi + 8], 0xa
jne 0x402bfa
push esi
mov ebx, 3
call fcn.0042d6d7
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 4
jne 0x402c0a
cmp dword [esi + 8], 0x5a
jne 0x402c0a
mov ebx, 4
push esi
call fcn.0042d6d7
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x402c20
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
lea eax, [esp + 0x28]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x28]
test al, al
mov edi, dword [ebp + 0x10]
mov dword [edi], 0
lea esi, [esp + 0x28]
je 0x402ce6
mov ebx, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x402c70
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x402cc5
movsx ecx, byte [esi]
push ecx
call fcn.0042d56e
add esp, 4
cmp eax, 0x41
je 0x402cc5
movsx edx, byte [esi]
push edx
call fcn.0042d56e
mov ecx, dword [edi]
mov edx, dword [ebp + 8]
add esp, 4
mov byte [edx + ecx], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
shrd eax, ecx, 0x14
mov dword [ebx + edx*8], eax
shr ecx, 0x14
mov dword [ebx + edx*8 + 4], ecx
inc dword [edi]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402cd0
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x402c58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4035f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
lea ecx, [esp + 8]
call fcn.00442a45
push 0
push 0
push 0
push str.DISPLAY
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateICA]
push eax
lea ecx, [esp + 0xc]
call fcn.00442ddd
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push eax
call edi
mov ecx, dword [esp + 0x10]
push 0x5a
push ecx
mov esi, eax
call edi
cmp esi, 0x60
mov edi, eax
jne 0x40367f
cmp edi, esi
jne 0x4036ac
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00442e45
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
cmp esi, 0x78
jne 0x4036ac
cmp edi, esi
jne 0x4036ac
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00442e45
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00442e45
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4036d0
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x449128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push esi
push edi
sub esp, 0xc
lea eax, [esp + 0x27c]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x278], 0
call fcn.0041bc50
lea ecx, [esp + 0x28]
push ecx
call fcn.00403260
mov eax, dword [eax + 4]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x1c]
call fcn.0041bb40
mov eax, dword [esp + 0x274]
lea edx, [esp + 0x6c]
sub edx, eax
jmp 0x403740
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403740
mov dx, word [esp + 0x27c]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x20
push 1
push 0
mov word [esp + 0x74], dx
push 0
lea edx, [esp + 0x8c]
push edx
push 0
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4037e3
push eax
push str.Error
push str.Create_process_failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x270]
mov dword [esp + 0x268], 0xffffffff
call fcn.0041bb40
mov eax, 0xbeb95
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x264
ret
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esp + 8]
lea ecx, [esp + 0x270]
mov dword [esp + 0x268], 0xffffffff
call fcn.0041bb40
mov ecx, dword [esp + 0x260]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x264
ret
Function at 0x403a40
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x449128
push eax
mov dword fs:[0], esp
sub esp, 0x904
push ebx
push esi
mov eax, dword [esp + 0x920]
lea edx, [esp + 0x718]
sub edx, eax
xor ebx, ebx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x403a70
lea eax, [esp + 0x718]
push 0x44e9d4
push eax
call fcn.0042da65
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 8], esi
je 0x403c21
push esi
lea ecx, [esp + 0x14]
push 0x1e0
push ecx
call fcn.0042d983
mov al, byte [esi + 0xc]
add esp, 0xc
test al, 0x10
jne 0x403c18
lea esi, [esp + 0x10]
sub esi, 2
push ebp
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x10]
push edi
jmp 0x403ad2
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403ae0
sub eax, edx
mov byte [esi + eax], bl
mov edi, 0x44e6bf
lea esi, [esp + 0x18]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403bf4
cmp byte [esp + 0x18], 0x5b
jne 0x403b1f
lea eax, [esp + 0x18]
push eax
call fcn.00402f70
add esp, 4
mov ebp, eax
jmp 0x403bf4
cmp byte [esp + 0x19], 0x22
mov edx, 1
je 0x403b39
jmp 0x403b30
mov al, byte [esp + edx + 0x19]
inc edx
cmp al, 0x22
jne 0x403b30
lea ecx, [edx - 1]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x19]
lea edi, [esp + 0x400]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
mov byte [esp + edx + 0x3ff], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403b63
sub eax, esi
mov ecx, eax
sub ecx, edx
sub ecx, 4
mov eax, ecx
shr ecx, 2
lea esi, [esp + edx + 0x1b]
lea edi, [esp + 0x20c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403b93
lea ecx, [esp + 0x20c]
sub eax, esi
push ecx
sub eax, edx
lea edx, [esp + 0x5f8]
push 0x44e9d0
push edx
mov byte [esp + eax + 0x214], bl
call fcn.0042d92b
lea eax, [esp + 0x218]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403bd0
sub eax, edx
push eax
lea eax, [esp + 0x5f8]
push eax
push 1
push ebx
lea ecx, [esp + 0x410]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [esp + 0x10]
push esi
lea edx, [esp + 0x1c]
push 0x1e0
push edx
call fcn.0042d983
mov al, byte [esi + 0xc]
add esp, 0xc
test al, 0x10
je 0x403ace
pop edi
pop ebp
push esi
call fcn.0042d8da
add esp, 4
lea ecx, [esp + 0x91c]
mov dword [esp + 0x914], 0xffffffff
call fcn.0041bb40
mov ecx, dword [esp + 0x90c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x910
ret
Function at 0x404890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4492e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov dword [esp + 4], 0
sub esp, 0xc
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x3c], 1
call fcn.0041bc50
lea ecx, [esp + 0x18]
push ecx
call fcn.00403340
add esp, 0x10
push 0x476370
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.0041bf50
sub esp, 0xc
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041bc50
lea eax, [esp + 0x24]
push eax
call fcn.004033f0
add esp, 0x10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call fcn.0041bf50
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.0041bb40
sub esp, 0xc
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041bc50
mov esi, dword [esp + 0x40]
push esi
call fcn.00403f50
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 1
call fcn.0041bb40
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call fcn.0041bb40
mov ecx, dword [esp + 0x24]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret