joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445014
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Read file via mapping
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
xor eax, eax
push ebp
push 0x445134
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
mov edx, 0x44
call fcn.0040a0ec
mov dword [ebp - 0x64], 0x44
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
call sub.kernel32.dll_GetCommandLineW_1
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x44510c
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.004308fc
lea eax, [ebp - 0x7c]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x6c]
call fcn.0040d76c
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x445150
call fcn.00405a70
mov eax, dword [ebp - 0x78]
call fcn.00405ce8
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
test ebx, ebx
je 0x445103
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebx], eax
push 2
push 0
push 0
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x74]
push eax
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x5944cc
mov ecx, 0x50
call fcn.0040325c
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_ResumeThread
push 2
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44513b
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00405650
ret
Function at 0x44c6d8
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x594cd8
push 0x594cd4
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x44c73c
push 0x594ccc
push 0
push 0
push 0x44c67c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x594cd0], eax
cmp dword [0x594cd0], 0
je 0x44c73c
push 0
push 0
push 0
mov ecx, 0x44c74c
mov edx, dword [0x594cd0]
mov eax, dword [0x594ccc]
call fcn.00430cd0
push 2
mov eax, dword [0x594cd0]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x44c750
Capabilities:
Resume thread
Terminate thread
Write file on windows

Disassembly:
add esp, 0xffffffc4
cmp dword [0x594ccc], 0xffffffff
je 0x44c80d
mov eax, dword [0x594cd0]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.004313fc
test al, al
jne 0x44c7ba
lea eax, [esp + 4]
mov edx, 0x38
call fcn.0040a0ec
push 0
lea eax, [esp + 4]
push eax
push 0x38
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x594cd8]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x594cd8]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x1f4
mov eax, dword [0x594cd0]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x44c7c5
mov eax, dword [0x594cd8]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x32
mov eax, dword [0x594cd0]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x44c7e3
push 0
mov eax, dword [0x594cd0]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x594cd0]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x594cd4]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x594ccc]
call fcn.00430cd0
add esp, 0x3c
ret
Function at 0x44d3fc
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x44d434
mov eax, ebx
mov edx, esp
mov ecx, 0x105
push 0
call fcn.00405964
jmp 0x44d43b
mov eax, ebx
call fcn.0040562c
add esp, 0x108
pop ebx
ret

Function at 0x44d744
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44d83e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x44d84c
push 0x44d878
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409400
test eax, eax
je 0x44d78b
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x44d7b1
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push 0
push 0x100000
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, 0x80000
adc edx, 0
call fcn.00407484
push edx
push eax
lea ecx, [ebp - 0x64]
mov dl, 0x30
mov eax, 1
call fcn.0040d718
push dword [ebp - 0x64]
push 0x44d8a0
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call fcn.00407484
push edx
push eax
lea ecx, [ebp - 0x68]
mov dl, 0x30
mov eax, 1
call fcn.0040d718
push dword [ebp - 0x68]
push 0x44d8b0
mov eax, ebx
mov edx, 4
call fcn.00405b3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d845
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00405650
ret
Function at 0x44dbc8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x44dd15
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call fcn.0040562c
xor eax, eax
push ebp
push 0x44dcf0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call fcn.00405764
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call fcn.00405764
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040583c
call fcn.004059c0
cmp ebx, eax
jne 0x44dce6
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040583c
call fcn.004059c0
cmp ebx, eax
jne 0x44dce6
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405cd0
je 0x44dce6
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x44dce6
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.0040325c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, dword [0x5a6cf4]
call fcn.0040792c
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x5a6cf4
mov ecx, 1
mov edx, dword [0x44dba4]
call fcn.00407af4
add esp, 4
lea edi, [ebx + ebx*2]
mov eax, dword [0x5a6cf4]
mov dword [eax + edi*4], esi
mov eax, dword [0x5a6cf4]
lea eax, [eax + edi*4 + 4]
mov edx, dword [ebp - 4]
call fcn.00405680
mov eax, dword [0x5a6cf4]
lea eax, [eax + edi*4 + 8]
mov edx, dword [ebp - 8]
call fcn.00405680
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44dcfa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44dd1c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405650
ret
Function at 0x44dd28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44de1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5a6cf4]
call fcn.00407934
test eax, eax
jl 0x44de09
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
lea eax, [eax + eax*2]
mov edx, dword [0x5a6cf4]
lea ebx, [edx + eax*4]
xor eax, eax
push ebp
push 0x44ddf3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebx + 8]
call fcn.004059c0
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call fcn.00405764
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.00405cd0
jne 0x44dde9
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call fcn.004059c0
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x44dde9
mov eax, dword [ebx + 4]
call fcn.004059c0
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call fcn.0040325c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.004059c0
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44ddfd
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x44dd61
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44de26
lea eax, [ebp - 4]
call fcn.0040562c
ret
Function at 0x44e13c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44e274
push dword fs:[eax]
mov dword fs:[eax], esp
cmp bl, 0x5c
je 0x44e259
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x44e1b4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
mov edx, ebx
mov ecx, 0
call fcn.004058d0
lea eax, [ebp - 0x2c]
mov edx, 0x44e290
call fcn.004059f4
mov eax, dword [ebp - 0x2c]
call fcn.00405ce8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call eax
jmp 0x44e215
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
mov edx, ebx
mov ecx, 0
call fcn.004058d0
lea eax, [ebp - 0x30]
mov edx, 0x44e290
call fcn.004059f4
mov eax, dword [ebp - 0x30]
call fcn.00405ce8
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x44e215
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.0040743c
call fcn.0040743c
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x44e2a0
lea eax, [ebp - 0x38]
mov edx, ebx
mov ecx, 0
call fcn.004058d0
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040bd7c
push dword [ebp - 0x34]
push 0x44e2b0
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x3c]
call fcn.0040dfe8
push dword [ebp - 0x3c]
mov eax, esi
mov edx, 4
call fcn.00405b3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e27b
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00405650
ret
Function at 0x450d10
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
call sub.kernel32.dll_GetCurrentThreadId_1
cmp esi, eax
je 0x450d3a
push edi
call sub.kernel32.dll_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x450d3a
push edi
call sub.kernel32.dll_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x454b7c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00405cd8
mov eax, dword [ebp - 8]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x454ca5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x454c78
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
call sub.kernel32.dll_GetModuleHandleA
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004172ac
mov dword [edi], eax
test esi, esi
je 0x454bec
cmp word [esi], 0x25ff
jne 0x454bec
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x454bee
xor ebx, ebx
push 0
call sub.kernel32.dll_GetModuleHandleW_2
cmp eax, dword [0x5a5b20]
je 0x454c06
cmp byte [0x594498], 0
je 0x454c1d
lea eax, [ebp - 0x14]
call fcn.00430970
mov eax, dword [ebp - 0x14]
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
call fcn.00430c40
jmp 0x454c2c
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
mov eax, dword [0x5a5b20]
call fcn.00430ba8
test ebx, ebx
je 0x454c3b
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
je 0x454c3f
xor eax, eax
jmp 0x454c41
mov al, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x454c7c
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x454c7c
mov eax, dword [ebp + 8]
mov dword [ebx], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x454c7c
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454cac
lea eax, [ebp - 0x14]
mov edx, dword [0x430944]
call fcn.00407c14
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405650
ret
Function at 0x454cbc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x454d91
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x454d75
test esi, esi
je 0x454cfd
cmp word [esi], 0x25ff
jne 0x454cfd
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x454cff
xor ebx, ebx
push 0
call sub.kernel32.dll_GetModuleHandleW_2
cmp eax, dword [0x5a5b20]
je 0x454d17
cmp byte [0x594498], 0
je 0x454d2e
lea eax, [ebp - 0xc]
call fcn.00430970
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.00430c40
jmp 0x454d3d
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, dword [0x5a5b20]
call fcn.00430ba8
test ebx, ebx
je 0x454d75
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x454d75
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x454d75
mov dword [ebx], edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454d98
lea eax, [ebp - 0xc]
mov edx, dword [0x430944]
call fcn.00407c14
ret
Function at 0x455558
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 0x44], ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
mov edx, dword [0x418944]
call fcn.00406eac
xor eax, eax
push ebp
push 0x455618
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x45], 0
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.0041dc4c
cmp byte [ebp - 0x40], 0
je 0x4555fc
mov eax, dword [ebp - 0x20]
call fcn.00407934
test eax, eax
jl 0x4555fc
inc eax
xor esi, esi
mov edx, esi
add edx, edx
add edx, edx
add edx, edx
sub edx, esi
mov ecx, dword [ebp - 0x20]
lea ebx, [ecx + edx*4]
cmp byte [ebx + 0x10], 0
je 0x4555f8
cmp edi, dword [ebx + 0xc]
jne 0x4555f8
lea eax, [ebp - 0x4c]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4555fc
mov edx, dword [ebp - 0x44]
sub edx, dword [ebx + 8]
mov eax, dword [ebx + 0x14]
mov dword [eax], edx
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x4c]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov byte [ebp - 0x45], 1
jmp 0x4555fc
inc esi
dec eax
jne 0x4555a7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45561f
lea eax, [ebp - 0x40]
mov edx, dword [0x418944]
call fcn.00406f84
ret

Function at 0x455e04
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
lea eax, [ebp - 0xc]
mov edx, dword [0x455ce4]
call fcn.00406eac
xor eax, eax
push ebp
push 0x455eb6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x455ec4
call sub.user32.dll_FindWindowW
mov ebx, eax
test ebx, ebx
je 0x455e8a
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040d76c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x455ee8
call fcn.00405a70
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004056dc
lea eax, [ebp - 0xc]
push eax
push 0x455d10
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455ebd
lea eax, [ebp - 0x10]
call fcn.0040562c
lea eax, [ebp - 0xc]
mov edx, dword [0x455ce4]
call fcn.00406f84
lea eax, [ebp - 4]
call fcn.0040562c
ret
Function at 0x455f24
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x455ff2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040d76c
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x45600c
call fcn.00405a70
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x455fd7
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x455fd1
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esi]
push eax
push 0
push 0x100000
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x455fb9
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle_1
mov edx, 0x5944cc
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.0040325c
push esi
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455ff9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405650
ret
Function at 0x4560fc
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x4562ae
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
push 0x104
lea edx, [ebp - 0x119]
push edx
push eax
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x119]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x45620d
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
test edi, edi
je 0x456207
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x456201
mov eax, dword [ebp - 8]
call fcn.00416fe4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4561f8
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x58], 0
je 0x4561f8
mov eax, dword [ebp - 0xc]
add eax, 0x58
mov dword [ebp - 0x10], eax
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.004560a0
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub edx, eax
sub edx, 4
mov eax, dword [ebp - 0x10]
add eax, 4
call fcn.004560a0
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x58]
je 0x4561f8
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push edi
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x456282
push 0x10
push 0
lea edx, [ebp - 0x120]
mov eax, dword [0x594bd0]
mov ecx, dword [eax]
call dword [ecx + 0x248]
mov eax, dword [ebp - 0x120]
call fcn.00405ce8
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push 0
call sub.kernel32.dll_GetModuleHandleW_2
cmp eax, dword [0x5a5b20]
je 0x45627b
mov eax, 0x594bd0
call fcn.004083f0
lea eax, [ebp - 0x124]
mov edx, dword [ebp - 4]
call fcn.00406710
mov ecx, dword [ebp - 0x124]
mov dl, 1
mov eax, dword [0x40b538]
call fcn.0040b5b0
call fcn.00404e34
jmp 0x456282
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4562b5
lea eax, [ebp - 0x124]
call fcn.004064e4
lea eax, [ebp - 0x120]
call fcn.0040562c
lea eax, [ebp - 4]
call fcn.0040562c
ret
Function at 0x456438
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x456545
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov ecx, 0x456554
mov edx, 0x456560
mov eax, esi
call fcn.00417650
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040583c
call fcn.004059c0
cmp eax, 0x14
jne 0x45652f
cmp esi, dword [0x5a5b20]
sete al
mov edx, dword [ebp - 4]
test byte [edx + 3], 0x80
sete dl
cmp al, dl
jne 0x45652f
mov eax, esi
call fcn.00416fe4
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xe0
lea eax, [ebx + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp esi, dword [0x5a5b20]
jne 0x4564e3
mov eax, 0x42f8d0
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, esi
mov dword [ebx + 0x2c], eax
mov eax, 0x594430
mov edx, dword [ebp - 4]
sub eax, dword [edx + 4]
sub eax, esi
mov dword [ebx + 0x30], eax
jmp 0x4564fe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xe0
lea eax, [ebx + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45654c
lea eax, [ebp - 4]
call fcn.0040562c
ret