joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10262a51
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa8
call fcn.1000107d
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
jne 0x10262bbe
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call fcn.10261751
mov ecx, 0xd39
lea edx, [0x10261fd3]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0x128000
mov esi, dword [0x1027d4a0]
mov dword [esp + 0x80], esi
mov esi, dword [0x1027d4a4]
mov dword [esp + 0x64], esi
mov esi, dword [0x1027d4a8]
mov dword [esp + 0x4c], esi
mov esi, dword [0x1027d4ac]
mov dword [esp + 0x74], esi
mov esi, dword [0x1027d4b0]
mov dword [esp + 0x88], esi
mov dword [0x1027d4b8], 0x1b67
mov dword [0x1027d4b4], 0x23bf
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jne 0x10262b26
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x10262b45
mov eax, 0x1a08
mov ecx, dword [esp + 0x18]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x10262afb
mov eax, dword [esp + 0x18]
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x14]
mov dword [0x1027d4b8], edx
call fcn.102623f7
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x10262bb6
lea eax, [esp + 0x40]
mov dword [0x1027d4b8], 0x470
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10261e95
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x1027d4b4], 0x1c65
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, reloc.authz.dll_AuthzFreeResourceManager
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [esi + 0x128], 0
jne 0x403658
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x11c]
sub eax, dword [esi + 0x118]
push ebx
sar eax, 2
push edi
mov dword [ebp - 4], 0
test eax, eax
je 0x40372b
jmp 0x403680
cmp dword [esi], 0xffffffff
mov edi, dword [esi + 0x128]
lea ebx, [esi + 0x12c]
je 0x4036ed
cmp edi, dword [esi + 0xc]
jb 0x4036e7
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ecx
push ebx
push edx
call fcn.0042e036
mov eax, dword [esi + 0xc]
add dword [esi + 4], eax
add ebx, eax
sub edi, eax
mov eax, dword [esi]
xor ecx, ecx
add esp, 0xc
mov dword [esi + 0xc], ecx
cmp eax, 0xffffffff
je 0x4036e2
mov edx, dword [esi + 8]
push ecx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], 0x4000
mov dword [esi + 4], eax
cmp edi, dword [esi + 0xc]
jae 0x403696
mov ecx, dword [esi + 4]
push edi
jmp 0x4036fd
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x403736
lea eax, [edi + 1]
cmp eax, dword [esi + 0xc]
ja 0x403736
push eax
push ebx
push ecx
call fcn.0042e036
sub dword [esi + 0xc], edi
add dword [esi + 4], edi
mov edx, dword [esi + 0x11c]
sub edx, dword [esi + 0x118]
mov eax, dword [ebp - 4]
inc eax
sar edx, 2
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, edx
jb 0x403680
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0xffffffff
push ebx
push edi
mov edi, eax
mov ebx, ecx
je 0x4037c4
cmp edi, dword [esi + 0xc]
jb 0x4037a5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push eax
push ebx
push ecx
call fcn.0042e036
mov eax, dword [esi + 0xc]
add dword [esi + 4], eax
add ebx, eax
sub edi, eax
mov eax, dword [esi]
xor ecx, ecx
add esp, 0xc
mov dword [esi + 0xc], ecx
cmp eax, 0xffffffff
je 0x4037a0
push ecx
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 8]
push 0x4000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 8]
mov dword [esi + 0xc], 0x4000
mov dword [esi + 4], edx
cmp edi, dword [esi + 0xc]
jae 0x403754
mov eax, dword [esi + 4]
push edi
push ebx
push eax
call fcn.0042e036
sub dword [esi + 0xc], edi
add esp, 0xc
add dword [esi + 4], edi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4037d8
lea eax, [edi + 1]
cmp eax, dword [esi + 0xc]
ja 0x4037d8
push eax
push ebx
push ecx
jmp 0x4037ab
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae126
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c75d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0x24], eax
mov byte [edi + 0x10], al
mov dword [edi + 0x20], eax
mov dword [ebp - 4], eax
fldz
fst dword [edi + 0x40]
mov dword [edi], vtable.ADXHistoryTable.0
fst dword [edi + 0x44]
mov dword [edi + 0x28], eax
fst dword [edi + 0x48]
mov dword [edi + 0x2c], eax
fstp dword [edi + 0x4c]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0xa
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], eax
lea esi, [edi + 0x74]
mov dword [edi + 0x70], eax
mov ecx, 3
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [edi + 0x94], eax
mov dword [edi + 0x98], ecx
mov dword [edi + 0x9c], ecx
mov dword [edi + 0xa0], eax
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], eax
mov byte [ebp - 4], 4
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], eax
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], eax
lea eax, [edi + 0xc8]
push eax
mov dword [edi + 0xc], 0x80
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0xc], 1
push 3
mov dword [edi + 0x78], 3
call fcn.00434ba0
mov dword [edi + 0xa0], 1
push 3
lea esi, [edi + 0x94]
mov dword [edi + 0x98], 3
call fcn.00434ba0
mov eax, edi
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 0x4094f8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4cc14c]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
inc edi
cmp eax, esi
je 0x409662
push eax
call dword [sym.imp.ole32.dll_OleIsCurrentClipboard]
test eax, eax
jne 0x409662
mov ax, word [0x4dcca8]
or dword [ebp - 0x14], 0xffffffff
lea edx, [ebp - 0x20]
mov word [ebp - 0x20], ax
mov eax, dword [0x4cc14c]
mov ecx, dword [eax]
push edx
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [ecx + 0x14]
test eax, eax
jne 0x409581
mov eax, dword [0x4cc14c]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 8]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x409584
mov esi, dword [ebp - 0x24]
cmp esi, 0xffff
mov ebx, dword [sym.imp.USER32.dll_GetActiveWindow]
jbe 0x4095c4
shr esi, 0xa
push esi
lea eax, [ebp - 0x124]
push str.There_is__u_Kb_of_data_currently_in_the_Clipboard._nWould_you_like_to_leave_this_data_for_other_applications_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x24
push str.HexView32
lea eax, [ebp - 0x124]
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4095c7
push 6
pop eax
cmp eax, 6
jne 0x409655
mov eax, dword [0x4cc14c]
or dword [ebp - 0x14], 0xffffffff
lea edx, [ebp - 0xc]
push edx
xor esi, esi
lea edx, [ebp - 0x20]
push edx
mov word [ebp - 0x20], di
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push esi
call dword [sym.imp.ole32.dll_OleSetClipboard]
cmp dword [ebp - 8], esi
jne 0x40963a
lea eax, [ebp - 0x124]
push str.Failed_to_allocate_sufficient_memory_to_complete_this_operation._nClipboard_contents_has_been_cleared.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
push 0x30
push str.HexView32
lea eax, [ebp - 0x124]
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x409664
call ebx
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push dword [ebp - 8]
push edi
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x409662
cmp eax, 7
jne 0x409662
push 0
call dword [sym.imp.ole32.dll_OleSetClipboard]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4097bb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
lea eax, [esi + 0x43a8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4097e8
push 0x12
mov ecx, esi
call fcn.0040744c
xor eax, eax
jmp 0x4099a0
push ebx
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x409800
push 0xe
mov ecx, esi
call fcn.0040744c
xor eax, eax
jmp 0x40999f
cmp dword [ebp + 0x10], 1
jne 0x40980e
cmp dword [esi + 0x20], ebx
je 0x40980e
push ebx
jmp 0x4097f2
push edi
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
jne 0x40983e
push 0xb
mov ecx, esi
call fcn.0040744c
xor eax, eax
jmp 0x40999e
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x409860
cmp dword [ebp - 0xc], ebx
jne 0x409860
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x13
jmp 0x409830
cmp dword [esi + 0x20], ebx
je 0x409873
mov eax, dword [esi + 0x78]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jae 0x409873
mov dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jne 0x409882
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
jmp 0x409830
cmp dword [ebp + 0x14], ebx
je 0x4098ad
mov ecx, esi
call fcn.004072a8
test eax, eax
je 0x4098ad
cmp dword [ebp + 0x10], ebx
jne 0x4098ad
mov ecx, esi
call fcn.004072a8
cmp dword [ebp + 8], eax
jb 0x4098cc
mov ecx, esi
call fcn.004072a8
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 1
jne 0x4098cc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea edi, [esi + 0xe0]
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0040bd99
jmp 0x4098e3
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea edi, [esi + 0xe0]
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0040be49
cmp al, bl
jne 0x4098ee
push 0x14
jmp 0x409830
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
mov dword [esi + 0x24], 1
call fcn.00409e6c
push eax
mov ecx, esi
mov dword [esi + 0x78], eax
call fcn.004073e7
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x48]
add eax, dword [ebp + 8]
mov ecx, esi
push eax
mov dword [esi + 0xc], ebx
call fcn.0040727d
push dword [esi + 0x44]
push 2
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_CreateCaret]
mov ecx, esi
call fcn.00407c02
push dword [ebp + 8]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004072da
push ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_ShowCaret]
mov ecx, esi
call fcn.00408202
push ebx
mov ecx, esi
call fcn.0040744c
push 0xfffffbfb
push dword [esi]
call fcn.00406ac2
push 0xfffffc00
push dword [esi]
call fcn.00406ac2
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 0x10
Function at 0x40aab6
Capabilities:
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0x2a
mov esi, ecx
je 0x40aaea
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40aae5
mov dword [esi + 0x104], 2
xor al, al
jmp 0x40ac43
cmp byte [edi], 0x2a
jne 0x40aaef
mov dword [ebp + 8], esi
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x40aafe
mov byte [ebp + 0x10], 1
push ebx
xor ebx, ebx
cmp byte [ebp + 0x10], bl
je 0x40ab14
mov eax, 0x80000000
mov dword [ebp - 8], 2
jmp 0x40ab20
mov eax, 0xc0000000
mov dword [ebp - 8], 4
push ebx
push 0x80
push 3
push ebx
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ab57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ax, 0x20
jne 0x40abb7
mov dword [esi + 0x104], 3
xor al, al
jmp 0x40ac42
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
je 0x40ab7d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x104], 6
jmp 0x40ab50
cmp byte [ebp + 0xc], bl
je 0x40abda
cmp eax, ebx
jne 0x40ab9b
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movzx eax, byte [ebp + 0x10]
push 1
push eax
push ebx
push ebx
jmp 0x40abd7
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x40abc3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x104], 0x17
jmp 0x40ab50
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x10]
push dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push edi
jmp 0x40ac3b
push eax
call fcn.0040bff4
cmp eax, ebx
pop ecx
je 0x40abf9
push dword [ebp - 4]
push ebx
push eax
call fcn.0040c008
add esp, 0xc
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x40ac0f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x104], 1
jmp 0x40ab50
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
push ebx
mov ecx, esi
call fcn.0040a898
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x40bc5d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x3d2c], 0x100
jne 0x40bc81
mov dword [edi + 0x104], 0xa
xor eax, eax
jmp 0x40bd94
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x40bcb2
mov dword [edi + 0x104], 0x17
xor eax, eax
jmp 0x40bd93
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x40bcd4
mov dword [edi + 0x104], 6
jmp 0x40bd90
cmp dword [ebp + 0x10], ebx
jae 0x40bcdc
mov ebx, dword [ebp + 0x10]
or eax, 0xffffffff
sub eax, dword [ebp + 8]
cmp ebx, eax
jb 0x40bce8
mov ebx, eax
cmp ebx, esi
je 0x40bd7d
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp + 0x10], eax
jne 0x40bd1b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x104], 0x17
jmp 0x40bd90
cmp byte [ebp + 0x14], 0
push ebx
push esi
push dword [ebp + 8]
mov dword [edi + 0x3d54], esi
mov ecx, edi
je 0x40bd35
call fcn.0040ac49
jmp 0x40bd3a
call fcn.0040b574
test al, al
je 0x40bd6b
mov esi, dword [edi + 0x3d30]
push 1
push ebx
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00406b74
and dword [esi + 8], 0
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
and dword [edi + 0x104], 0
mov eax, ebx
jmp 0x40bd92
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0xc]
call esi
jmp 0x40bd90
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x104], 0x13
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret 0x10
Function at 0x40f110
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4c75d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x104
lea ecx, [ebp - 0x108]
push edi
push ecx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x10c], edi
call fcn.0042e03c
add esp, 0xc
test esi, esi
jne 0x40f16a
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f158
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x108
jae 0x40f19b
xor edi, edi
jmp 0x40f217
push 0
lea edx, [ebp - 0x114]
push edx
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f1bf
xor edi, edi
jmp 0x40f217
mov ecx, dword [ebp - 0x10c]
cmp ecx, 0x972205
je 0x40f1fe
movzx eax, cl
sub eax, 5
jne 0x40f1f6
movzx eax, ch
sub eax, 0x22
jne 0x40f1f6
movzx eax, byte [ebp - 0x10a]
sub eax, 0x97
jne 0x40f1f6
movzx eax, byte [ebp - 0x109]
test eax, eax
je 0x40f1fe
sar eax, 0x1f
or eax, 1
jne 0x40f203
mov edi, 1
mov edx, dword [ebp - 0x110]
xor ecx, ecx
cmp byte [ebp - 0x89], 0x64
sete cl
mov dword [edx], ecx
test esi, esi
je 0x40f222
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret
Function at 0x40f2c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab59b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4c75d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
xor edi, edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], edi
call fcn.004741d0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
cmp esi, edi
je 0x40f417
cmp dword [ebp + 0xc], edi
je 0x40f417
cmp dword [ebp + 0x10], edi
je 0x40f417
cmp dword [ebp + 0x14], edi
je 0x40f417
push 1
lea ecx, [ebp - 0x28]
call fcn.00474430
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
jne 0x40f352
lea esi, [edi - 3]
jmp 0x40f3db
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x108
jae 0x40f36b
mov esi, 0x80071777
jmp 0x40f3d7
push edi
call fcn.0042dbdc
add esp, 4
mov esi, eax
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f393
mov esi, 0x8007001e
jmp 0x40f3d7
cmp dword [esi], 0x972205
je 0x40f3a2
mov esi, 0x80071777
jmp 0x40f3d7
mov ecx, dword [ebp + 0x10]
push ecx
add edi, 0xfffffef8
push edi
lea ebx, [esi + 0x108]
push ebx
lea ecx, [ebp - 0x28]
call fcn.00474570
mov esi, eax
test esi, esi
js 0x40f3d4
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push 0
push edx
push edi
push ebx
call fcn.00417ea0
mov esi, eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40f3e2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40f3f2
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004744c0
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 0x10
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004744c0
mov eax, 0xfffffff7
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 0x41ecc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], 1
mov dword [ebp - 8], ebx
cmp dword [esi + 4], ebx
jne 0x41ece8
pop esi
mov dword [ebp - 4], ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push 0xc
push eax
call edi
mov edx, dword [ebp + 8]
mov eax, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 8]
push ecx
push 0xf
add edx, 4
push edx
push eax
call ebx
test eax, eax
je 0x41ee38
mov ecx, dword [esi]
push 0
push 0
push 0x1f
push ecx
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
push 0
lea edx, [ebp - 8]
push edx
push 5
add eax, 0x14e
push eax
push ecx
call ebx
test eax, eax
je 0x41ee38
mov edx, dword [esi]
push 0
push 0
push 0x34
push edx
call edi
mov edx, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push 4
lea eax, [esi + 8]
push eax
push edx
call ebx
test eax, eax
je 0x41ee38
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
push eax
call fcn.00412010
mov ecx, dword [esi]
push 0
push 0
push 0xbc2
push ecx
call edi
mov ecx, dword [esi]
push 0
lea edx, [ebp - 8]
push edx
push 1
lea eax, [esi + 0x128]
push eax
push ecx
call ebx
test eax, eax
je 0x41ee38
mov edx, dword [esi]
push 0
push 0
push 0x342e
push edx
call edi
mov edx, dword [esi]
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [esi + 0x11c]
push ecx
push edx
call ebx
test eax, eax
je 0x41ee38
mov eax, dword [esi]
push 0
push 0
push 0x202e
push eax
call edi
mov eax, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [esi + 0x120]
push edx
push eax
call ebx
test eax, eax
je 0x41ee38
mov ecx, dword [esi]
push 0
push 0
push 0x196
push ecx
call edi
push 0
lea edx, [ebp - 8]
push edx
push 1
lea eax, [esi + 0x124]
push eax
mov eax, dword [esi]
push eax
call ebx
test eax, eax
je 0x41ee38
mov ecx, dword [esi]
add dword [esi + 0x124], 0xfffffffe
push 0
push 0
push 0xc60
push ecx
call edi
mov ecx, dword [esi]
push 0
lea edx, [ebp - 8]
push edx
push 8
lea eax, [esi + 0xc]
push eax
push ecx
call ebx
test eax, eax
jne 0x41ee3f
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4