joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015a0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x308
lea eax, [esp + 0x108]
lea ecx, [esp + 0x208]
lea edx, [esp + 8]
push eax
push ecx
lea eax, [esp + 8]
push edx
push eax
push 0x412928
call dword [sym.imp.MSVCRT.dll__splitpath]
mov al, byte [0x40870c]
add esp, 0x14
test al, 8
je 0x4015f6
mov al, byte [0x411b10]
test al, al
je 0x4015f6
push 0x412a4c
lea ecx, [esp + 0xc]
push 0x411b10
lea edx, [esp + 8]
push ecx
push edx
jmp 0x40160a
push str..bin
lea eax, [esp + 0xc]
push str.main
lea ecx, [esp + 8]
push eax
push ecx
push 0x412820
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x14
push ebx
push ebp
push esi
push edi
call fcn.00401070
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
call fcn.004011a0
mov esi, eax
add esi, 0x10000
sub ebx, esi
mov ebp, ebx
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
je 0x401684
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SetFilePointer_for_input.
call fcn.004039b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
lea edx, [esp + 0x14]
push 0
push edx
push ebp
push ebx
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4016ca
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ReadFile_for_input.
call fcn.004039b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push 0x412820
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401718
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Cannot_open_output_file.
call fcn.004039b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40175b
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
push str.WriteFile_for_output_file.
call fcn.004039b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
push str.Copy_succeeded.
call fcn.004039b0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 0x412820
pop ebx
add esp, 0x308
ret
Function at 0x401840
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x408]
push esi
push 0
push 0x10000000
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4018d2
lea ecx, [esp + 4]
push 0
push ecx
lea edx, [esp + 0x10]
push 0x400
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4018cb
cmp dword [esp + 4], 0x400
jne 0x4018cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esp + 8], 0x5a4d
jne 0x4018d2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + eax + 8]
lea eax, [esp + eax + 8]
cmp ecx, 0x4550
jne 0x4018d2
mov eax, dword [eax + 0x34]
pop esi
add esp, 0x404
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x404
ret

Function at 0x4018e0
Capabilities:
Read file on windows
Timestomp file
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x20]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401922
push str.UnPatchFile._cannnot_open_the_file.
call fcn.004039b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
push ebp
push ebp
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [edi + 0x88]
cmp ebx, ebp
jne 0x401947
mov ebx, 4
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40196d
push str.UnPatchFile._cannnot_allocate_buffer.
call fcn.004039b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [edi + 0x80]
push 0
push 0
push ecx
push esi
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [edi + 0x80]
jne 0x4019ff
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push ebp
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019ff
cmp dword [esp + 0x10], ebx
jne 0x4019ff
mov eax, dword [esp + 0x24]
push eax
push edi
push ebp
call fcn.00403af0
mov ecx, dword [edi + 0x80]
add esp, 0xc
mov byte [esp + 0x20], al
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [esp + 0x20]
test al, al
je 0x4019ff
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4019ff
lea eax, [esp + 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x401a20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
mov ebx, dword [edi + 0x88]
test ebx, ebx
jne 0x401a3a
mov ebx, 4
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401a60
push str.PatchProcess._cannnot_allocate_buffer.
call fcn.004039b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov esi, dword [edi + 0x80]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
add esi, edx
push ebx
push ebp
push esi
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x401a9e
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x40]
push edx
push edi
push ebp
call fcn.00403af0
add esp, 0xc
mov byte [esp + 0x3c], al
test al, al
je 0x401b11
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x14]
push 0x1c
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push 0x40
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x401b0c
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401b11
mov byte [esp + 0x3c], 0
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov al, byte [esp + 0x40]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x401bd0
Capabilities:
Create process on windows
Create thread
Get common file path
Resume thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14c
mov dword [0x412a34], eax
push ebx
push esi
call fcn.004015a0
mov esi, eax
test esi, esi
jne 0x401bf7
pop esi
xor al, al
pop ebx
add esp, 0x14c
ret
mov al, byte [0x40870c]
push edi
test al, 8
jne 0x401c0f
mov al, byte [0x411b10]
mov edi, 0x411b10
test al, al
jne 0x401c16
mov edi, dword [esp + 0x160]
test edi, edi
jne 0x401c1f
mov edi, 0x412a4c
push esi
call fcn.00401840
mov ebx, eax
mov al, byte [0x40870c]
add esp, 4
test al, 1
je 0x401c51
lea ecx, [esp + 0x50]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x50]
push edi
push edx
push str._s__s
jmp 0x401c58
push edi
push esi
push str.__s___s
push 0x4085b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 0x10
rep stosd dword es:[edi], eax
mov dword [0x412810], eax
lea ecx, [esp + 0xc]
mov dword [0x412814], eax
push 0x412810
mov dword [0x412818], eax
push ecx
push eax
push eax
push 0x24
push eax
push eax
push eax
push 0x4085b8
push esi
mov dword [esp + 0x34], 0x44
mov dword [0x41281c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x401ccf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcess_failed.
call fcn.004039b0
add esp, 4
xor al, al
pop esi
pop ebx
add esp, 0x14c
ret
lea edx, [esp + 0x4c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x4c]
push eax
call fcn.004039b0
push esi
call fcn.004039b0
push 0x4085b8
call fcn.004039b0
mov ecx, dword [0x412818]
add esp, 0xc
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401d45
push str.OpenProcess_failed.
call fcn.004039b0
mov edx, dword [0x412814]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call esi
mov eax, dword [0x412810]
push eax
call esi
pop esi
xor al, al
pop ebx
add esp, 0x14c
ret
push ebx
push esi
call fcn.00401b30
add esp, 8
test al, al
jne 0x401d83
push str.unpatch_failed.
call fcn.004039b0
mov ecx, dword [0x412814]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [0x412810]
push edx
call esi
pop esi
xor al, al
pop ebx
add esp, 0x14c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x412814]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [0x412810]
push ecx
push 0
push 0x401790
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov al, 1
pop esi
pop ebx
add esp, 0x14c
ret
Function at 0x401dc0
Capabilities:
Delete file
Terminate process

Disassembly:
mov eax, dword [0x412810]
sub esp, 0x400
push ebx
xor bl, bl
test eax, eax
je 0x401df3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov bl, 1
mov dword [0x412810], eax
mov dword [0x412814], eax
mov dword [0x412818], eax
mov dword [0x41281c], eax
mov al, byte [0x412820]
test al, al
je 0x401e4b
push esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x412820
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x412820
lea ecx, [esp + 0x14]
push str.DeleteFile__s__d___d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x1c]
push edx
call fcn.004039b0
add esp, 0x18
test esi, esi
pop esi
je 0x401e4b
mov byte [0x412820], 0
mov al, bl
pop ebx
add esp, 0x400
ret

Function at 0x401fd0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [0x412a44]
sub esp, 0x100
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push eax
push str.c_nCount_d
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
call fcn.004039b0
mov eax, dword [0x412a44]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x40203d
push edi
mov edi, 0x4083b8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
push esi
lea edx, [esp + 0x18]
push str.__d____X___X
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call fcn.004039b0
mov eax, dword [0x412a44]
add esp, 0x18
inc esi
add edi, 8
cmp esi, eax
jl 0x40200e
pop edi
push 0
push 0x401e80
call dword [sym.imp.USER32.dll_EnumWindows]
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x402060
Capabilities:
Enumerate gui resources

Disassembly:
push 2
push 0x401e80
call dword [sym.imp.USER32.dll_EnumWindows]
ret

Function at 0x402070
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x4086d0
call fcn.00404210
add esp, 4
mov ecx, dword [0x4086d0]
mov edx, dword [0x4086d4]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x4086d8]
mov dword [eax + 4], edx
mov edx, dword [0x4086dc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00404070
add esp, 0x14
test eax, eax
jne 0x4020b7
xor al, al
pop esi
ret
mov eax, dword [esp + 8]
push 0x3080000
push 0
push eax
push 0
call fcn.00403d50
mov esi, eax
add esp, 0x10
cmp esi, 1
je 0x4020d9
cmp esi, 0xa
jne 0x40210a
push 4
push 0x4081bc
push 0x411c10
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40210a
push 1
push 0
push 0
push 0x412010
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
sete al
pop esi
ret
Function at 0x4022a0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov al, byte [0x412a48]
sub esp, 0x1a4
test al, al
je 0x4022b8
mov al, 1
add esp, 0x1a4
ret
push edi
push str.DoOpgDlg2
call fcn.004039b0
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x40870c]
add esp, 4
test al, 2
pop edi
je 0x4022f9
lea eax, [esp]
push eax
call fcn.00402490
push 0
call fcn.004024d0
add esp, 8
push ebx
push esi
call fcn.00401e60
lea ecx, [esp + 0xa4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x4086d0
mov esi, eax
mov byte [0x412a48], 1
call fcn.00402230
add esp, 4
lea edx, [esp + 0xa4]
mov bl, al
mov byte [0x412a48], 0
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00401fd0
test byte [0x40870c], 2
je 0x402361
lea eax, [esp + 8]
push eax
call fcn.004024d0
add esp, 4
test esi, esi
je 0x402395
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x402388
push str.SetForegroundWindow___succeeded.
call fcn.004039b0
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret
push str.SetForegroundWindow___failed.
call fcn.004039b0
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret

Function at 0x4023c0
Capabilities:
Create process on windows
Create thread

Disassembly:
sub esp, 0x15c
push esi
push edi
lea eax, [esp + 0x5c]
push 0x412928
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x5c]
push 0x408244
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x5c]
push 0
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [0x412818]
push eax
push str._sd__x__x
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x10
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 8]
mov dword [esp + 8], ecx
lea eax, [esp + 0x18]
mov dword [esp + 0xc], ecx
push edx
mov dword [esp + 0x14], ecx
push eax
push ecx
push ecx
push 0x20
push ecx
push ecx
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x40246a
xor al, al
add esp, 0x15c
ret
mov edx, dword [esp]
push edx
push 0
push 0x4023a0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov al, 1
add esp, 0x15c
ret

Function at 0x4024f0
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
jne 0x402500
mov edx, 0x412928
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop edi
add esp, 0x54
ret
Function at 0x402740
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push 0x408250
call fcn.004039b0
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_strtoul]
lea eax, [esp + 0xc]
push 0x10
add ecx, 3
push eax
push ecx
mov dword [esp + 0x18], 0
call esi
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4027d4
mov eax, dword [esp + 8]
lea edx, [esp + 8]
push 0x10
push edx
push eax
call esi
add esp, 0xc
test eax, eax
je 0x4027d4
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 0x1f0fff
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push ebx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x4027cc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x402860
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x412ab8
push 0x412a54
push 0x80
mov dword [0x412b1c], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x4028a1
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0x414
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop esi
ret

Function at 0x4039b0
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov eax, dword [0x408280]
sub esp, 0xc
push ebx
xor ebx, ebx
cmp eax, 0xffffffff
push esi
jne 0x403a21
lea eax, [esp + 8]
mov dword [0x408280], ebx
push eax
push 0x20019
push ebx
push str.SoftwarePaltiosoftWrapping
push 0x80000002
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403a21
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x408280
push edx
push ebx
push str.logging
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x403a21
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x408280], ebx
je 0x403a8e
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push str.launch3.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403a8e
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push ebx
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
lea ecx, [esp + 0xc]
push ebx
push ecx
push 2
push 0x408284
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x403aa0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
je 0x403aae
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
je 0x403abe
xor eax, eax
ret
xor eax, eax
xor edx, edx
mov ax, word [ecx + 0x14]
mov dx, word [ecx + 6]
push esi
lea esi, [eax + ecx + 0x18]
mov eax, dword [ecx + 0x54]
test edx, edx
jle 0x403ae3
lea ecx, [esi + 0x10]
mov esi, dword [ecx]
add ecx, 0x28
add eax, esi
dec edx
jne 0x403ad9
pop esi
ret

Function at 0x403c10
Capabilities:
Get file size
Parse pe header

Disassembly:
push ecx
mov cl, byte [esp + 0x14]
push ebx
push ebp
push esi
test cl, cl
mov dword [esp + 0xc], 0
mov eax, 0x80000000
mov esi, 2
mov ebp, 4
je 0x403c3f
mov esi, ebp
mov eax, 0xc0000000
mov ebp, 0xf001f
push 0
push 0x10000000
push 3
push 0
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x403c6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push esi
push 0
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x403c9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x403d26
push 0
push 0
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x403cbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x403d1b
cmp word [esi], 0x5a4d
je 0x403cd0
mov dword [esp + 0x10], 0xb
jmp 0x403d1b
mov ecx, dword [esi + 0x3c]
mov ebp, esi
add ebp, ecx
cmp dword [ebp], 0x4550
je 0x403cea
mov dword [esp + 0x10], 0xb
jmp 0x403d1b
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x58]
mov dword [edx], ecx
mov eax, dword [esi + 0x3c]
add eax, 0xf8
sub edi, eax
lea ecx, [esi + eax]
push ecx
push edi
call fcn.00404220
mov edx, dword [esp + 0x28]
mov cl, byte [esp + 0x2c]
add esp, 8
test cl, cl
mov dword [edx], eax
je 0x403d1b
mov dword [ebp + 0x58], eax
test esi, esi
je 0x403d26
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test ebx, ebx
je 0x403d34
push ebx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x404220
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4135e8]
test eax, eax
jne 0x40422e
call fcn.00404270
mov ecx, dword [esp + 4]
or eax, 0xffffffff
dec ecx
js 0x40426a
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov bl, byte [ecx]
mov edx, eax
shr edx, 0x18
xor dl, bl
inc ecx
mov byte [esp + 0xc], dl
mov edx, dword [esp + 0xc]
and edx, 0xff
shl eax, 8
mov edx, dword [edx*4 + 0x4131e8]
xor eax, edx
dec esi
jne 0x404241
pop esi
pop ebx
not eax
ret