joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431f30
Capabilities:
Enumerate processes

Disassembly:
push ebp
push esi
xor ebp, ebp
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x431f5b
push edi
push esi
mov dword [edi], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x431f63
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 2
pop ebp
ret
push ebx
lea ebx, [edi + 0x24]
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.004398a4
add esp, 8
test eax, eax
je 0x431f91
push edi
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x431f67
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret
push esi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x431ff0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x230
mov eax, dword [0x4663d8]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
push edi
push eax
lea edi, [esp + 8]
call fcn.00431f30
add esp, 4
cmp eax, 2
jne 0x432036
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00437ffa
add esp, 0x230
ret
mov eax, dword [esp + 0xc]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x432065
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00437ffa
add esp, 0x230
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x43204c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x234]
pop esi
pop edi
xor ecx, esp
call fcn.00437ffa
add esp, 0x230
ret
Function at 0x4320a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x868
mov eax, dword [0x4663d8]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [esp + 0x86c]
push ebp
mov ebp, dword [esp + 0x87c]
push esi
push edi
push eax
lea eax, [esp + 0x6c]
push 0x400
push eax
mov esi, ecx
xor edi, edi
call fcn.0043a1a2
push 0x456954
lea ecx, [esp + 0x78]
push 0x400
push ecx
call fcn.0043a458
push esi
lea edx, [esp + 0x84]
push 0x400
push edx
call fcn.0043a458
push 0x44
lea eax, [esp + 0x48]
push edi
push eax
call fcn.004434e0
xor eax, eax
add esp, 0x30
cmp byte [esp + 0x87c], al
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x43213d
or dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43217f
cmp byte [esp + 0x880], 0
je 0x432187
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x432187
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, dword [esp + 0x10]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov ecx, dword [esp + 0x86c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00437ffa
add esp, 0x868
ret

Function at 0x4321d0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
push esi
lea eax, [esp + 4]
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43224a
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
push esi
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x43224a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x18
ret
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x432710
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4663d8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4327b0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 8], 0
setne al
test al, al
je 0x4327b0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.SysWOW64Kernel32.dll
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4327b0
push str.Wow64EnableWow64FsRedirection
push esi
call edi
test eax, eax
je 0x4327a9
mov ecx, dword [esp + 0x21c]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00437ffa
add esp, 0x210
ret
Function at 0x4327d0
Capabilities:
Check if file exists
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x451530
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4663d8]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x4663d8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
mov byte [esp + 0x54], 1
push 0x80000002
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
cmp ebp, ebx
jne 0x43295e
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edi
call fcn.0042dfd0
test eax, eax
jne 0x43287c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x43287c
push edi
lea eax, [esp + 0x14]
push eax
mov edx, 0x456938
call fcn.0042dd90
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edi
call fcn.0042dfd0
test eax, eax
je 0x432943
cmp byte [esp + 0x4c], bl
je 0x4328cc
push 1
push 0x45e3d4
lea ecx, [esp + 0x20]
call fcn.00403f40
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4328b0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00403f40
jmp 0x4328eb
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4328d1
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x20]
call fcn.004040c0
cmp dword [esp + 0x30], 8
mov edx, dword [esp + 0x1c]
jae 0x4328fa
lea edx, [esp + 0x1c]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x432900
mov ecx, dword [esp + 0x10]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
push 2
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x432943
push ebx
push 0x1388
push 2
push 0x45e3d8
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x43294b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43295a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x30], 8
jb 0x432972
mov edx, dword [esp + 0x1c]
push edx
call fcn.00439935
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
je 0x432992
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00437ffa
add esp, 0x38
ret
Function at 0x433190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x452260
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4663d8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663d8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x40], eax
xor esi, esi
mov eax, 7
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], esi
mov word [esp + 0x64], si
mov dword [esp + 0x88], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], esi
mov word [esp + 0x48], si
mov byte [esp + 0x88], 1
call fcn.004021a0
test eax, eax
je 0x433223
mov edi, dword [esp + 0x98]
lea ebx, [esi + 8]
jmp 0x43331f
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x60]
push ecx
push edx
mov ecx, 0x468c28
call fcn.0042e690
test ebx, 0xffff0000
jne 0x433254
lea eax, [esp + 0x44]
push eax
push ebx
mov ecx, 0x468c28
call fcn.0042e690
jmp 0x433264
push 0x468c28
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.0042f080
cmp edi, esi
je 0x433275
lea ecx, [esp + 0x44]
push ecx
call fcn.00436760
add esp, 4
xor eax, eax
mov ebx, 8
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], 0x28
jb 0x4332bc
mov edx, dword [esp + 0x64]
mov dword [esp + 0x28], edx
jmp 0x4332c4
lea eax, [esp + 0x64]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x5c], ebx
jb 0x4332d4
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
jmp 0x4332dc
lea edx, [esp + 0x48]
mov dword [esp + 0x24], edx
movzx eax, word [0x468c38]
mov dword [esp + 0x3c], eax
or ebp, 0x80
and eax, 0x3ff
cmp ax, 1
mov dword [esp + 0x2c], ebp
je 0x433302
cmp ax, 0xd
jne 0x43330a
or dword [esp + 0x2c], 0x180000
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
mov edi, eax
cmp dword [esp + 0x5c], ebx
jb 0x433332
mov edx, dword [esp + 0x48]
push edx
call fcn.00439935
add esp, 4
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
mov word [esp + 0x48], si
jb 0x433356
mov eax, dword [esp + 0x64]
push eax
call fcn.00439935
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00437ffa
add esp, 0x78
ret
Function at 0x434f50
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
call fcn.004021a0
test eax, eax
jne 0x434fa8
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x435010
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.B32CB6D5_61BD_49c8_AA8A_8B790D3B9008
push 0
push 0
push 0
mov dword [0x468cf8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
add esp, 8
ret

Function at 0x434fb0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
call fcn.004021a0
test eax, eax
jne 0x435008
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x435060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.B32CB6D5_61BD_49c8_AA8A_8B790D3B9008
push 0
push 0
push 0
mov dword [0x468cf8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
add esp, 8
ret
Function at 0x437ffa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4663d8]
jne 0x438004
repz ret
jmp fcn.0043ff15

Function at 0x44ac2d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00442024
xor ebx, ebx
cmp dword [0x468a00], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44ad02
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x44ac6d
xor eax, eax
jmp 0x44adc6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44ac66
push eax
call fcn.00441fc1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x468a00], eax
call esi
push eax
call fcn.00441fc1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x468a04], eax
call esi
push eax
call fcn.00441fc1
mov dword [0x468a08], eax
lea eax, [ebp - 8]
push eax
call fcn.00439af7
test eax, eax
pop ecx
pop ecx
je 0x44acd0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004392f2
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44ad02
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00441fc1
cmp eax, ebx
pop ecx
mov dword [0x468a10], eax
je 0x44ad02
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00441fc1
pop ecx
mov dword [0x468a0c], eax
mov eax, dword [0x468a0c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x44ad7b
cmp dword [0x468a10], esi
je 0x44ad7b
push eax
call fcn.0044202d
pop ecx
call eax
cmp eax, ebx
je 0x44ad48
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x468a10]
call fcn.0044202d
pop ecx
call eax
test eax, eax
je 0x44ad48
test byte [ebp - 0x18], 1
jne 0x44ad7b
lea eax, [ebp - 0xc]
push eax
call fcn.00439b2e
test eax, eax
pop ecx
je 0x44ad63
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004392f2
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x44ad72
or dword [ebp + 0x10], 0x200000
jmp 0x44adac
or dword [ebp + 0x10], 0x40000
jmp 0x44adac
mov eax, dword [0x468a04]
cmp eax, esi
je 0x44adac
push eax
call fcn.0044202d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44adac
mov eax, dword [0x468a08]
cmp eax, esi
je 0x44adac
push dword [ebp - 4]
push eax
call fcn.0044202d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x468a00]
call fcn.0044202d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4024b0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00401794
mov eax, dword [ebp - 8]
call fcn.00401794
mov eax, dword [ebp + 0x10]
call fcn.00401794
xor eax, eax
push ebp
push 0x402633
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.004011e4
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x10
call fcn.004011e4
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], 0xa
test bl, bl
je 0x402556
or dword [0x404054], 0x10
xor esi, esi
push 0x40264c
push dword [ebp - 4]
push 0x402658
push dword [ebp - 8]
lea eax, [ebp - 0x64]
mov edx, 4
call fcn.00401744
mov eax, dword [ebp - 0x64]
call fcn.004017a4
jmp 0x402568
mov eax, dword [ebp - 4]
call fcn.004017a4
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.004017a4
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x60]
push edx
push 0
push 0
mov edx, dword [0x404054]
push edx
push 0
push 0
push 0
push eax
push esi
call sub.kernel32.dll_CreateProcessA
mov eax, dword [ebp + 8]
mov edi, eax
lea esi, [ebp - 0x1c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 9], 0
je 0x4025f6
test bl, bl
je 0x4025ad
push 0x7d0
call sub.kernel32.dll_Sleep
jmp 0x4025b8
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_WaitForInputIdle
cmp dword [ebp + 0x10], 0
jne 0x4025dc
jmp 0x4025c7
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 4]
call fcn.00402dc8
test eax, eax
je 0x4025c0
jmp 0x4025e8
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [ebp + 0x10]
call fcn.00402d60
test eax, eax
je 0x4025d5
test bl, bl
je 0x4025f6
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40263a
lea eax, [ebp - 0x64]
call fcn.0040150c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401530
lea eax, [ebp + 0x10]
call fcn.0040150c
ret
Function at 0x40286c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401794
xor eax, eax
push ebp
push 0x402a06
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004017a4
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4028d2
xor edx, edx
mov al, 1
call fcn.00402290
test al, al
je 0x4029f0
xor edx, edx
push ebp
push 0x4029e9
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize
mov edi, eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40291a
xor edx, edx
mov al, 1
call fcn.00402290
test al, al
je 0x4029d2
xor edx, edx
push ebp
push 0x4029cb
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40294f
xor edx, edx
mov al, 1
call fcn.00402290
test al, al
je 0x4029b4
xor edx, edx
push ebp
push 0x4029ad
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 0x18]
add ebx, dword [ebp + 8]
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0040265c
test al, al
je 0x40297b
sub ebx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ebx
jmp 0x402996
cmp dword [ebp + 0xc], 0
je 0x402984
inc ebx
jmp 0x402985
dec ebx
mov eax, ebx
sub eax, dword [ebp - 0x18]
mov edx, edi
sub edx, esi
cmp eax, edx
je 0x402996
test ebx, ebx
jne 0x402963
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4029b4
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4029d2
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4029f0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402a0d
lea eax, [ebp - 4]
call fcn.0040150c
ret

Function at 0x402f64
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401794
xor eax, eax
push ebp
push 0x402fcb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00402dc8
test eax, eax
je 0x402fb5
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x402f82
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle
push 0
call sub.kernel32.dll_Sleep
jmp 0x402f82
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fd2
lea eax, [ebp - 4]
call fcn.0040150c
ret
Function at 0x403558
Capabilities:
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401794
xor eax, eax
push ebp
push 0x403739
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x403750
call fcn.004016d0
mov eax, dword [ebp - 0xc]
call fcn.00403168
mov eax, dword [ebp - 4]
call fcn.004017a4
mov esi, eax
mov eax, esi
call fcn.00402a7c
test al, al
jne 0x4035d1
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x403760
call fcn.004016d0
mov eax, dword [ebp - 0x10]
mov ecx, 0xaf
mov edx, 0x403774
call fcn.004014f0
mov eax, dword [ebp - 4]
call fcn.00402a1c
mov dword [0x404060], eax
cmp dword [0x404060], 0
jne 0x4035f6
mov eax, 0x4037bc
call fcn.00403168
jmp 0x403716
mov eax, dword [ebp - 4]
call fcn.004031e0
mov eax, dword [ebp - 4]
call fcn.00402f64
cmp byte [0x4040b4], 0
je 0x403630
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
mov ecx, 0x403808
mov edx, dword [ebp - 4]
call fcn.004016d0
mov eax, dword [ebp - 0x14]
call fcn.004017a4
push eax
push esi
call sub.kernel32.dll_CopyFileA
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push esi
call sub.kernel32.dll_CreateFileA
mov dword [0x4050f0], eax
cmp dword [0x4050f0], 0xffffffff
je 0x4036e2
push 0
push 0
mov eax, dword [0x404060]
push eax
mov eax, dword [0x4050f0]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
setne bl
test bl, bl
je 0x4036b1
push 0
lea eax, [ebp - 8]
push eax
push 0xf
push 0x404064
mov eax, dword [0x4050f0]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x4036b1
push 0
lea eax, [ebp - 8]
push eax
push 1
push 0x4040b8
mov eax, dword [0x4050f0]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x4036b5
xor eax, eax
jmp 0x4036b7
mov al, 1
mov ebx, eax
test bl, bl
jne 0x4036d5
lea eax, [ebp - 0x18]
mov ecx, 0x403818
mov edx, dword [ebp - 4]
call fcn.004016d0
mov eax, dword [ebp - 0x18]
call fcn.00403168
mov eax, dword [0x4050f0]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4036fa
lea eax, [ebp - 0x1c]
mov ecx, 0x403818
mov edx, dword [ebp - 4]
call fcn.004016d0
mov eax, dword [ebp - 0x1c]
call fcn.00403168
test bl, bl
je 0x403716
lea eax, [ebp - 0x20]
mov ecx, 0x40384c
mov edx, dword [ebp - 4]
call fcn.004016d0
mov eax, dword [ebp - 0x20]
call fcn.00403168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403740
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00401530
lea eax, [ebp - 4]
call fcn.0040150c
ret