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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x445010]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cfa2
cmp word [esi], dx
jne 0x41cfa2
or byte [edi + eax + 0x28], 4
jmp 0x41cfa7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d0fa
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d0da
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cfe9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d01f
cmp eax, edx
jae 0x41d02b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41cfc1
jmp 0x41d0fa
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d0d6
cmp dword [ebp - 0x14], 0
je 0x41d0d6
mov eax, dword [ebx*4 + 0x445010]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d0ae
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d077
mov word [esi], cx
jmp 0x41d0aa
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x445010]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x445010]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x445010]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d0fa
pop ebx
cmp word [ebp - 4], bx
jne 0x41d0bf
cmp esi, dword [ebp + 0xc]
jne 0x41d0bf
mov word [esi], bx
jmp 0x41d0f7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041641a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d0fa
push 0xd
jmp 0x41d0f3
mov ecx, dword [ebx*4 + 0x445010]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d0f1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d0fa
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41fe20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41fe4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41fe4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403910
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fe], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404670], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404604], eax
mov dword [0x4040f6], eax
mov dword [0x4045f0], 0x30
mov dword [0x4045f4], 2
jmp 0x403955
mov dword [0x4045f8], 0x402f69
mov dword [0x4045fc], 0
mov dword [0x404600], 0
mov dword [0x404618], 0x404564
mov dword [0x404610], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404608], eax
mov dword [0x40461c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40460c], eax
push 0x4045f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040f6]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push str.first
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404668], eax
push 5
push dword [0x404668]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404668]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404620]
jmp 0x403a29
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a1b
mov eax, dword [0x404628]
jmp 0x403a44
call 0x402a90
ret
Function at 0x1002a8d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1002ae8
mov eax, dword [ebp + 0x14]
cmp eax, 2
jb 0x1002ae3
shr eax, 1
xor ecx, ecx
cmp cx, word [edi + eax*2 - 2]
jne 0x1002ae3
mov eax, dword [ebp + 0x10]
dec eax
je 0x1002adf
dec eax
jne 0x1002ae3
push esi
push edi
call fcn.01002996
test eax, eax
jne 0x1002ae8
xor eax, eax
jmp 0x1002ae8
mov eax, 0x3f7
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1002d87
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003220
call fcn.01002f44
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10043c8
push ebx
push esi
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002b9c
cmp eax, esi
jne 0x1002b8f
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002b9f
push 0x3e8
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1002b76
xor esi, esi
inc esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x1002bb2
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002bed
mov eax, dword [0x10043c4]
test eax, eax
jne 0x1002be7
mov dword [0x10043c4], esi
push 0x1001188
push 0x100117c
call fcn.01002af3
pop ecx
pop ecx
test eax, eax
je 0x1002bed
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002cb7
mov dword [0x1004078], esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x1002c11
push 0x1001178
push 0x1001170
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10043c4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002c1e
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedExchange]
cmp dword [0x10043cc], ebx
je 0x1002c3f
push 0x10043cc
call fcn.01002eb9
pop ecx
test eax, eax
je 0x1002c3f
push ebx
push 2
push ebx
call dword [0x10043cc]
push dword [0x1004060]
push dword [0x1004064]
push dword [0x100405c]
call fcn.010018dc
add esp, 0xc
mov dword [0x1004074], eax
cmp dword [0x1004068], ebx
jne 0x1002c9d
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004078], ebx
jne 0x1002cab
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004074]
call fcn.01174000
ret
call fcn.01003091
jmp 0x1002b54
Function at 0x3022ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x30ee89c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x302301c
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x3023024
mov eax, dword [ebp - 8]
jmp 0x302319b
push 0x105
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.03036c00
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x438]
push edx
call fcn.03074820
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
call fcn.03025580
test eax, eax
jne 0x3023068
xor eax, eax
jmp 0x302319b
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0xffffffff
jne 0x302309d
xor eax, eax
jmp 0x302319b
push 0
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x30230c7
cmp dword [ebp - 0x224], 0x104
jbe 0x30230d1
jmp 0x3023182
push 0x104
push 0
lea eax, [ebp - 0x330]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 0x440]
push ecx
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x330]
push eax
mov ecx, dword [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x3023113
jmp 0x3023182
mov edx, dword [ebp - 0x440]
cmp edx, dword [ebp - 0x224]
je 0x3023125
jmp 0x3023182
mov dword [ebp - 8], 1
lea eax, [ebp - 0x330]
mov dword [ebp - 4], eax
jmp 0x3023140
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x302316a
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
je 0x3023160
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xd
jne 0x3023168
mov edx, dword [ebp - 4]
mov byte [edx], 0
jmp 0x302316a
jmp 0x3023137
lea eax, [ebp - 0x330]
push eax
push 0x105
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.03074820
add esp, 0xc
cmp dword [ebp - 0x43c], 0
je 0x3023198
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.03050b89
mov esp, ebp
pop ebp
ret 8
Function at 0x3028d10
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x3028d3b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x3028d73
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x3028d68
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x3028d68
mov eax, dword [ebp - 4]
jmp 0x3028d75
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x3028d32
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x3028e10
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30e6a18
push 0x30789ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x3028eb3
cmp dword [ebp + 8], 0xffffffff
je 0x3028eb3
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x3028e93
mov edx, dword [ebp + 8]
cmp dword [edx + 0x3c], 0
jl 0x3028e93
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0x10000000
jae 0x3028e93
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x3028e93
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x3028eb3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x3029260
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30e6a38
push 0x30789ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x30292c4
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 8]
mov dword [ebp - 0x1c], eax
jmp 0x30292e4
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx]
cmp edx, 0x4550
jne 0x30292dd
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
jmp 0x30292e4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x3029304
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x303a0a0
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.03039f40
test eax, eax
jne 0x303a0c0
xor eax, eax
jmp 0x303a27b
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.03029170
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x303a0e2
xor eax, eax
jmp 0x303a27b
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0303a000
test eax, eax
jne 0x303a107
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.030291c0
xor eax, eax
jmp 0x303a27b
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x303a1ac
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 1]
cmp eax, 0x5c
jne 0x303a1ac
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x303a161
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x303a161
mov ecx, dword [ebp - 4]
push ecx
call fcn.03029220
mov dword [ebp - 4], eax
jmp 0x303a13e
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x303a174
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x303a197
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x303a197
mov eax, dword [ebp - 4]
push eax
call fcn.03029220
mov dword [ebp - 4], eax
jmp 0x303a174
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x303a1aa
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x303a1e8
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 1]
cmp edx, 0x3a
jne 0x303a1e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x303a1e8
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x303a1e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x303a26d
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x303a25c
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.03048950
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x303a241
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x303a23f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x303a23f
mov edx, dword [ebp - 0xc]
push edx
call fcn.030291c0
xor eax, eax
jmp 0x303a27b
jmp 0x303a256
mov eax, dword [ebp - 8]
and eax, 0x10
jne 0x303a256
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.030291c0
xor eax, eax
jmp 0x303a27b
mov edx, dword [ebp - 4]
mov byte [edx], 0x5c
mov eax, dword [ebp - 4]
push eax
call fcn.03029220
mov dword [ebp - 4], eax
jmp 0x303a1e8
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.030291c0
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x303c010
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0x32
push eax
call fcn.0301d740
test eax, eax
je 0x303c04d
mov ecx, dword [ebp + 8]
add ecx, 0x32
push ecx
push 0x105
mov edx, dword [ebp + 8]
add edx, 0x890
push edx
call fcn.03073f50
add esp, 0xc
mov eax, 1
jmp 0x303c147
mov eax, dword [ebp + 8]
add eax, 0x32
push eax
call fcn.0303a350
test eax, eax
je 0x303c0a0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], 0x200
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x448]
mov dword [edx + 0x868], ecx
mov edx, dword [ebp + 8]
add edx, 0x32
push edx
push 0x105
mov eax, dword [ebp + 8]
add eax, 0x65c
push eax
call fcn.03073f50
add esp, 0xc
mov eax, 1
jmp 0x303c147
mov ecx, dword [0x30ec34c]
and ecx, 0x20000
jne 0x303c142
call fcn.0301d350
test eax, eax
je 0x303c0d9
mov edx, dword [ebp + 8]
add edx, 0xd54
push edx
push 0x30040b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.03040c20
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x303d9d0
mov eax, dword [ebp + 8]
add eax, 0x32
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 8]
add eax, 0xd54
push eax
call sym.dbghelp.dll_FindExecutableImageExW
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x448], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x448], 0
jne 0x303c117
xor eax, eax
jmp 0x303c147
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x303c137
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.0303c740
mov eax, 1
pop ebp
ret 4
Function at 0x303e1c0
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x303e211
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x303e211
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x303f220
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x30ee89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x303f288
cmp dword [ebp - 0x9c], 6
jae 0x303f273
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0303f3e0
jmp 0x303f299
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0303f3e0
jmp 0x303f299
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0303f2b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.03050b89
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3040890
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x3034
call fcn.030789b0
mov eax, dword [0x30ee89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1014], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
movzx edx, word [ecx]
test edx, edx
jne 0x30408ca
mov eax, 1
jmp 0x30409fb
push 0x1002
lea eax, [ebp - 0x3020]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
call fcn.030407e0
cmp dword [0x30ed30c], 0
je 0x3040985
movzx eax, word [ebp - 0x3020]
test eax, eax
je 0x3040985
push 0x1002
lea ecx, [ebp - 0x1010]
push ecx
lea edx, [ebp - 0x3020]
push edx
call fcn.03036b00
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x3028], eax
mov ecx, dword [ebp - 0x3028]
add ecx, 1
mov dword [ebp - 0x302c], ecx
mov edx, dword [ebp - 0x3028]
mov al, byte [edx]
mov byte [ebp - 0x302d], al
add dword [ebp - 0x3028], 1
cmp byte [ebp - 0x302d], 0
jne 0x3040931
mov ecx, dword [ebp - 0x3028]
sub ecx, dword [ebp - 0x302c]
mov dword [ebp - 0x3034], ecx
push 0
lea edx, [ebp - 0x3024]
push edx
mov eax, dword [ebp - 0x3034]
push eax
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [0x30ed30c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x30ed310], 0
je 0x30409a5
mov dword [ebp - 0x1014], 1
lea eax, [ebp - 0x3020]
push eax
call dword [0x30f02fc]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
ja 0x30409c2
mov edx, dword [0x30ec34c]
and edx, 0x80000000
jne 0x30409c2
mov eax, 1
jmp 0x30409fb
mov eax, dword [ebp + 8]
push eax
call fcn.03040690
test eax, eax
jne 0x30409ec
cmp dword [ebp - 0x1014], 0
jne 0x30409e5
lea ecx, [ebp - 0x3020]
push ecx
call dword [0x30f02fc]
mov eax, 1
jmp 0x30409fb
mov edx, dword [ebp + 0xc]
push edx
push 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.03040410
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.03050b89
mov esp, ebp
pop ebp
ret 8
Function at 0x3045720
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30e6e98
push 0x30789ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0303e1c0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x3045788
push 6
call fcn.0301d330
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x30458cd
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [ebp - 0x24], dx
movzx eax, word [ebp - 0x24]
cmp eax, 0x5a4d
jne 0x3045843
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x4550
je 0x30457d4
push 0xb
call fcn.0301d330
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x30458ba
mov edx, dword [ebp - 0x2c]
movzx eax, word [edx + 0x18]
push eax
call fcn.0303e120
test eax, eax
je 0x304581a
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x50]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
mov dword [eax], edx
cmp dword [ebp + 0x14], 0
je 0x3045818
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x58]
mov dword [eax], edx
jmp 0x3045841
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x50]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
mov dword [eax], edx
cmp dword [ebp + 0x14], 0
je 0x3045841
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x58]
mov dword [eax], edx
jmp 0x3045887
movzx eax, word [ebp - 0x24]
cmp eax, 0x4944
jne 0x304587d
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x14]
mov dword [edx], ecx
cmp dword [ebp + 0x14], 0
je 0x304587b
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov dword [edx], ecx
jmp 0x3045887
push 0xb
call fcn.0301d330
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x30458ba
cmp dword [ebp - 0x20], 0
je 0x30458ca
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x3048950
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0
call fcn.03048900
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
push 1
call fcn.03048900
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4