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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588808
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0xe]
mov byte [ebp - 0xd], 0
call fcn.00412f80
push eax
lea eax, [ebp - 0xd]
push eax
push 0x10000
lea ecx, [ebp - 0x28]
call fcn.0043e300
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
sub eax, esi
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov edi, edi
mov eax, dword [ebx]
mov edx, dword [eax + 4]
cmp eax, vtable.Utils::Primitives::CDwFile.0
jne 0x478114
mov eax, dword [ebx + 4]
test eax, eax
je 0x47805f
cmp eax, 0xffffffff
je 0x47805f
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push esi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4780ad
test edi, edi
je 0x47808e
mov eax, dword [edi]
cmp dword [eax], fcn.004772f0
jne 0x478081
push ecx
push esi
push esi
lea ecx, [edi + 4]
call fcn.0057a220
jmp 0x47808e
push dword [ebp - 0x14]
lea ecx, [edi + 4]
push esi
push esi
call fcn.00579740
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1c], 0
je 0x4780db
cmp dword [ebp - 0x14], 0
jne 0x478030
mov bl, 1
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4780fe
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4780df
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47811f
jmp 0x4780df
xor bl, bl
jmp 0x4780af
push ecx
push esi
call fcn.00539070
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, ebx
call edx
test al, al
jmp 0x47804a
call fcn.00555b08
int3
Function at 0x47a460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588dd1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call ebx
mov esi, eax
mov dword [edi], esi
add edi, 4
push 0x1388
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.00441bc0
push 0
push 0x7fffffff
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 1
push 1
push 0
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], esi
call ebx
mov dword [edi + 0x20], eax
add edi, 0x24
mov dword [ebp - 0x18], edi
push 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.00539040
push eax
push 8
mov dword [edi], eax
call fcn.00410470
add esp, 0xc
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov dword [eax], edi
mov dword [ebp - 4], 3
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov byte [ebp - 4], 4
mov edi, dword [ebp + 8]
test edi, edi
je 0x47a590
push 0
push 0
push ebx
push 0x47b490
push 0
push 0
call fcn.0055c5b8
mov ecx, dword [ebx + 0x40]
add esp, 0x18
mov dword [ebp + 8], eax
cmp dword [ebx + 0x44], ecx
je 0x47a57e
mov dword [ecx], eax
add dword [ebx + 0x40], 4
jmp 0x47a58b
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [ebx + 0x3c]
call fcn.0047b4a0
sub edi, 1
jne 0x47a555
mov eax, ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x480a83
Capabilities:
Connect pipe
Create pipe

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
jne 0x480b54
push 0
push 0
push 1
push 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x1c], eax
lea ecx, [esi + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
cmp eax, vtable.CPipeIpcTransportEndpoint.0
jne 0x480b92
cmp dword [ecx + 0x14], 0x10
jb 0x480add
mov ecx, dword [ecx]
push 0
push 0
push 0xffff
push 0xffff
push 0xff
push 6
push 0x40000003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x480b7a
mov eax, dword [esi + 0x20]
push 0xffffffffffffffff
cmp eax, 0xffffffff
je 0x480b5b
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esp + 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x480b8b
cmp esi, 1
jne 0x480b81
mov al, 1
pop esi
add esp, 0x1c
ret
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x480b81
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
add esp, 0x1c
ret
cmp eax, 0x217
jmp 0x480b67
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
add esp, 0x1c
ret
push ecx
mov ecx, esi
call edx
jmp 0x480afe
Function at 0x4875a0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58bc49
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
mov dword [ebp - 0x5c], 0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push 0xffffffffffffffff
push dword [ebx + 0xc]
call esi
test eax, eax
jne 0x487791
cmp dword [ebx], eax
je 0x487791
lea ecx, [ebp - 0x28]
call fcn.004fd120
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
lea edi, [ebx + 0x30]
push eax
mov ecx, edi
call fcn.004fd460
test al, al
je 0x487782
jmp 0x487620
mov ecx, dword [ebx]
test ecx, ecx
je 0x4877ad
call fcn.00483500
test al, al
je 0x4877ad
push 0
push 0
push dword [ebx + 0x24]
call esi
cmp eax, 0x102
jne 0x4877ad
mov eax, dword [ebx + 0x24]
push 0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 0x18]
push 0xffffffffffffffff
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
test eax, eax
je 0x4877ad
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, edx
test eax, eax
je 0x48775a
cmp ecx, 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae eax, edx
add eax, 8
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004fd280
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4876ad
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x60]
push 4
push eax
call fcn.00445e50
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0041ba60
test esi, esi
jne 0x487754
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push dword [eax + 0x10]
push esi
push esi
push 4
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x64], eax
test eax, eax
je 0x48774b
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edi, dword [ebx]
cmovae ecx, dword [ebp - 0x28]
mov esi, dword [ecx + 0x10]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004fd280
or dword [ebp - 0x5c], 1
mov ecx, edi
push esi
mov esi, dword [ebp - 0x64]
push esi
push eax
call fcn.00483b50
and dword [ebp - 0x5c], 0xfffffffe
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0041ba60
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea edi, [ebx + 0x30]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov ecx, edi
call fcn.004fd400
test al, al
je 0x48776f
push 0x64
call fcn.004460a0
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004fd460
test al, al
jne 0x487620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004100d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005395e6
mov esp, ebp
pop ebp
ret
jmp 0x487782
Function at 0x494260
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e94b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 0x14]
push 0
push dword [ebp + 8]
push eax
push str.cmd_enumrestore2_t
call fcn.004a3d40
mov byte [ebp - 4], 1
mov edi, 0x5eaccc
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [esi], vtable.cmd_enumrestore2_t.0
cmovne edi, eax
mov dword [esi + 0x40], 0
xor eax, eax
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4942d5
sub eax, ebx
lea ecx, [esi + 0x30]
sar eax, 1
push eax
push edi
call fcn.0041bc10
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x48], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004b4af0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x494320
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e996
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 0x18]
push 0
push dword [ebp + 8]
push eax
push str.cmd_enumtree2_t
call fcn.004a3d40
mov byte [ebp - 4], 1
mov ebx, 0x5eaccc
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x30]
test eax, eax
mov dword [esi], vtable.cmd_enumtree2_t.0
mov edi, ebx
mov dword [ecx + 0x10], 0
cmovne edi, eax
mov dword [ecx + 0x14], 7
mov edx, edi
xor eax, eax
mov word [ecx], ax
lea eax, [edx + 2]
mov dword [ebp + 8], eax
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4943a0
sub edx, dword [ebp + 8]
sar edx, 1
push edx
push edi
call fcn.0041bc10
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [esi + 0x58], 0
cmovne ebx, eax
mov dword [esi + 0x5c], 7
xor eax, eax
mov word [esi + 0x48], ax
mov eax, ebx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4943e0
sub eax, edi
lea ecx, [esi + 0x48]
sar eax, 1
push eax
push ebx
call fcn.0041bc10
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x60], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.004b4af0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x494790
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58eb7e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
lea ecx, [esi + 0x48]
call fcn.0041ba60
mov byte [ebp - 4], 0
lea ecx, [esi + 0x30]
call fcn.0041ba60
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004a3e30
test byte [ebp + 8], 1
je 0x4947f3
push 0x64
push esi
call fcn.00539070
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x498200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f6f3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 1
push dword [ebp + 8]
push dword [ebp + 0x1c]
push str.cmd_scan_duplicated_section_t
call fcn.004a3d40
mov dword [ebp - 4], 0
lea edi, [ebx + 0x30]
mov esi, dword [ebp + 0xc]
mov ecx, 0x11
mov eax, dword [ebp + 0x10]
mov dword [ebx], vtable.cmd_scan_duplicated_section_t.0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x18]
mov dword [ebx + 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov eax, dword [ecx]
mov dword [ebx + 0x7c], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x80], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x84], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x88], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x8c], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4982e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f726
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 1
push dword [ebp + 8]
push dword [ebp + 0x20]
push str.cmd_scan_section_t
call fcn.004a3d40
mov dword [ebp - 4], 0
lea edi, [ebx + 0x30]
mov esi, dword [ebp + 0xc]
mov ecx, 0x11
mov eax, dword [ebp + 0x10]
mov dword [ebx], vtable.cmd_scan_section_t.0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov eax, dword [ecx]
mov dword [ebx + 0x80], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x84], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x88], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x8c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x90], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x94], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x498480
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f793
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 1
push dword [ebp + 8]
push dword [ebp + 0x14]
push str.cmd_scanfile2_t
call fcn.004a3d40
mov dword [ebp - 4], 0
lea edi, [ebx + 0x30]
mov esi, dword [ebp + 0xc]
mov ecx, 0x11
mov dword [ebx], vtable.cmd_scanfile2_t.0
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x10]
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 7
mov word [ebx + 0x74], ax
mov eax, esi
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498500
sub eax, edi
lea ecx, [ebx + 0x74]
sar eax, 1
push eax
push esi
call fcn.0041bc10
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x499530
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fe50
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x499578
mov dword [ebp - 4], 0
lea eax, [edi + 0x18]
push eax
push ecx
call fcn.00432e80
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x48], 0x18
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
push eax
push 0x8000000
push 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
js 0x499637
mov eax, dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 0x28], eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], ebx
mov dword [ebp + 0x10], 0
push 4
push 0
push 2
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea eax, [ebp + 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x49964d
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x499637
push esi
call dword [sym.imp.ntdll.dll_NtClose]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x30], fcn.0049ad90
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 3
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.005514d0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 2
test esi, esi
je 0x49968e
push esi
call fcn.0049ad90
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4996b0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fe88
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4996f8
mov dword [ebp - 4], 0
lea eax, [ebx + 0x1c]
push eax
push ecx
call fcn.00432e80
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x54], 0x18
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0x8000000
push 4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
push 2
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
js 0x4997a8
mov esi, dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 0x3c], esi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 2
push 0
push 0
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 4]
push dword [ebp + 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
jns 0x4997be
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4997a8
push edi
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebx + 4]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
push 4
push 0
push 2
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x49984a
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49981e
push 1
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4997a8
push edi
call dword [sym.imp.ntdll.dll_NtClose]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x24], fcn.0049ad90
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.005514d0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
test esi, esi
je 0x499890
push esi
call fcn.0049ad90
add esp, 4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4998a2
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a4280
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2c
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [esp + 0x1c], 1
mov eax, dword [esp + 0x30]
ja 0x4a42a9
test eax, eax
je 0x4a42a0
mov byte [eax], 1
mov eax, 2
add esp, 0x2c
ret
test eax, eax
je 0x4a42b0
mov byte [eax], 0
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004a42e0
mov eax, dword [esp + 0x44]
add esp, 0x10
mov ecx, dword [esp]
test eax, eax
je 0x4a42d5
cmp eax, ecx
jb 0x4a42d7
mov eax, ecx
lea eax, [eax + eax*2]
add esp, 0x2c
ret

Function at 0x4a42e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591f90
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x38], esi
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.00480e90
add esp, 0xc
mov edx, dword [ebp - 0x1c]
test edi, edi
je 0x4a4399
mov ecx, dword [ebp - 0x20]
mov byte [edi], cl
mov eax, ecx
shr eax, 8
mov byte [edi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 3], al
mov ecx, dword [ebp - 0x18]
mov byte [edi + 4], cl
mov eax, ecx
shr eax, 8
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 7], al
mov byte [edi + 8], dl
mov eax, edx
shr eax, 8
mov byte [edi + 9], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 0xb], al
mov byte [edi + 0xc], 0
jmp 0x4a439c
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x20], 0x756e6547
jne 0x4a43ee
cmp edx, 0x6c65746e
jne 0x4a43ee
cmp ecx, 0x49656e69
jne 0x4a43ee
mov dword [ebp - 4], 0
call fcn.004a5350
mov edi, eax
call fcn.004a5380
test eax, eax
je 0x4a43e7
test edi, edi
cmove edi, eax
mov dword [ebp - 0x2c], edi
mov dword [ebx], eax
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
test esi, esi
je 0x4a4409
mov byte [esi], 0
jmp 0x4a4409
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x48]
mov dword [edi], eax
mov dword [ebx], eax
test esi, esi
je 0x4a4409
mov byte [esi], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005395e6
mov esp, ebp
pop ebp
ret

Function at 0x4a5920
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret