joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e6b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x461410]
cmp byte [eax + 0xc], 0
je 0x43e821
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43e81a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x462b6c], 0
jne 0x43e708
push 0x43e828
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x43e830
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b6c], eax
cmp dword [0x460c28], 0
jne 0x43e803
push 0x43e840
call sub.kernel32.dll_LoadLibraryA
mov dword [0x460c28], eax
cmp dword [0x460c28], 0
je 0x43e803
push 0x43e84c
mov eax, dword [0x460c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b70], eax
push 0x43e85c
mov eax, dword [0x460c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b74], eax
push 0x43e870
mov eax, dword [0x460c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b78], eax
push 0x43e888
mov eax, dword [0x460c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b7c], eax
push 0x43e8a0
mov eax, dword [0x460c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b80], eax
push 0x43e8b4
mov eax, dword [0x460c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b84], eax
push 0x43e8cc
mov eax, dword [0x460c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b88], eax
push 0x43e8e4
mov eax, dword [0x460c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b8c], eax
push 0x43e900
mov eax, dword [0x460c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b90], eax
push 0x43e90c
mov eax, dword [0x460c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462b94], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e821
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4426ac
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404100
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4426fb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404370
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449e60]
test si, 4
je 0x449e24
or bl, 1
test si, 8
je 0x449e2e
or bl, 4
test si, 1
je 0x449e38
or bl, 8
test si, 2
je 0x449e42
or bl, 0x10
test si, 0x10
je 0x449e4c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449e5b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449e64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449e9c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449e7d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449e8c
or bl, 4
test esi, 0x20000000
je 0x449e97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450544
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450556
add esp, 0xfffffff0
call fcn.0040364c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fa30
mov eax, dword [0x461074]
mov dword [eax + 4], ebx
mov dword [eax], 0x4508e8
mov eax, dword [0x461084]
mov dword [eax + 4], ebx
mov dword [eax], 0x4508f4
mov eax, ebx
call fcn.00450900
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417d28]
call fcn.004032f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417d28]
call fcn.004032f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417d28]
call fcn.004032f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417d28]
call fcn.004032f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417d28]
call fcn.004032f8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44cd1c
push eax
push 0
push 0
mov eax, dword [0x4611f4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42147c]
call fcn.00422a00
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42147c]
call fcn.00422a00
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42147c]
call fcn.00422a00
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450d20
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450bfc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450bfc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450bfc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450693
call fcn.004036a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4509e0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450b8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450b6c
mov dl, 1
mov eax, dword [0x418144]
call fcn.004032f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404100
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450b5b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043ea14
test al, al
je 0x450b4e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450b9c
lea eax, [ebp - 0x254]
call fcn.00409210
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450b4e
xor eax, eax
push ebp
push 0x450b47
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450bd4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450b30
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404370
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450b30
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450b4e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450a51
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041bc20
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450b92
lea eax, [ebp - 0x260]
call fcn.00404100
ret

Function at 0x4514c0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x462bb8]
cmp byte [eax + 0xa5], 0
jne 0x451531
cmp dword [0x462bd0], 0
jne 0x4514f2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45147c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x462bd0], eax
cmp dword [0x462bcc], 0
jne 0x45150d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x462bcc], eax
cmp dword [0x462bd4], 0
jne 0x451531
push esp
push 0
push 0
push 0x451420
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x462bd4], eax
pop edx
ret
Function at 0x451628
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45163f
add esp, 0xfffffff0
call fcn.0040364c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fa30
mov eax, dword [0x4611e0]
cmp word [eax + 2], 0
jne 0x451667
mov eax, dword [0x4611e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452b94
mov eax, dword [0x46129c]
cmp word [eax + 2], 0
jne 0x451681
mov eax, dword [0x46129c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452d8c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417d28]
call fcn.004032f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417d28]
call fcn.004032f8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x421d6c]
call fcn.004286f8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451808
mov eax, dword [0x4610e0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428ac8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45333c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4610e0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ca88
test eax, eax
je 0x451776
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c04
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cab0
test eax, eax
je 0x45178a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404370
mov eax, dword [0x460fc0]
cmp byte [eax], 0
jne 0x4517be
mov eax, ebx
call fcn.00451930
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00453518
mov eax, ebx
call fcn.00453edc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4517fe
call fcn.004036a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451bb0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x462bb8]
cmp dword [eax + 0x30], 0
je 0x451c5a
cmp dword [ebx + 0x94], 0
jne 0x451c54
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451b40
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451c54
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x451c1a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451c54
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a090
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451c29
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4527bc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4527f1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041f0
jmp 0x4527fe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404154
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4536f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453735
mov eax, esi
call fcn.0043a21c
test al, al
je 0x453735
mov eax, dword [ebx + 0x84]
call fcn.00439fbc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453735
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439fbc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45584c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x455a22
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x455a09
mov eax, dword [edi + 0x30]
call fcn.004043c0
test eax, eax
jne 0x4558a2
mov eax, dword [edi + 0x34]
call fcn.004043c0
test eax, eax
jne 0x4558a2
mov eax, edi
call fcn.00455ac0
jmp 0x455a09
cmp dword [edi + 0xa0], 0
jne 0x4558d9
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.00408c60
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x462bdc]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x455910
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.00408c60
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x462bdc]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.00455b00
mov ebx, eax
test bl, bl
jne 0x4559be
mov eax, dword [edi + 0x30]
call fcn.004043c0
test eax, eax
jne 0x455948
mov eax, dword [edi + 0xc0]
call fcn.004043c0
test eax, eax
je 0x4559be
mov eax, dword [edi + 0xc0]
call fcn.004043c0
test eax, eax
je 0x45596a
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.00408c60
jmp 0x455996
push dword [edi + 0x30]
push 0x455a3c
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00404480
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.00408c60
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x4559be
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.00455b00
mov ebx, eax
test bl, bl
jne 0x4559cb
mov eax, edi
call fcn.00455ac0
jmp 0x455a09
mov eax, dword [edi + 0x58]
test eax, eax
je 0x4559da
mov dword [edi + 0xa8], eax
jmp 0x4559e4
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.00455b78
test al, al
je 0x455a09
mov eax, edi
mov si, 0xffee
call fcn.00403524
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.00455cb0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455a29
lea eax, [ebp - 0x108]
call fcn.00404100
ret
Function at 0x45cfdc
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
xor eax, eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x158]
mov edx, dword [0x407400]
call fcn.00404a98
xor eax, eax
push ebp
push 0x45d170
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [ebp - 0x160]
mov eax, dword [0x461278]
mov eax, dword [eax]
call fcn.004530a4
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 0x15c]
call fcn.00408a64
lea eax, [ebp - 0x15c]
mov edx, 0x45d184
call fcn.004043c8
mov eax, dword [ebp - 0x15c]
call fcn.004045c0
push eax
call sub.kernel32.dll_CreateDirectoryA
lea edx, [ebp - 0x168]
mov eax, dword [0x461278]
mov eax, dword [eax]
call fcn.004530a4
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.00408a64
lea eax, [ebp - 0x164]
mov edx, 0x45d194
call fcn.004043c8
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x158]
mov edx, 0x3f
call fcn.00408954
test eax, eax
jne 0x45d141
mov eax, dword [ebp - 0x150]
mov edx, eax
and edx, 0x3f
cmp edx, eax
jne 0x45d127
lea edx, [ebp - 0x174]
mov eax, dword [0x461278]
mov eax, dword [eax]
call fcn.004530a4
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x170]
call fcn.00408a64
push dword [ebp - 0x170]
push 0x45d1a8
push dword [ebp - 0x14c]
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00404480
mov eax, dword [ebp - 0x16c]
call fcn.004045c0
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x158]
call fcn.004089a4
test eax, eax
je 0x45d0c3
lea eax, [ebp - 0x158]
call fcn.004089c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d177
lea eax, [ebp - 0x174]
mov edx, 7
call fcn.00404124
lea eax, [ebp - 0x158]
mov edx, dword [0x407400]
call fcn.00404b5c
ret
Function at 0x3002be4d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
mov ebx, eax
push ebx
push edi
call fcn.3001b99e
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x3002be63
sub eax, ecx
sar eax, 1
cmp eax, 3
jle 0x3002be7c
lea esi, [edi + eax*2 - 8]
jmp 0x3002be8b
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jl 0x3002bec1
lea esi, [edi + eax*2]
and dword [ebp + 8], 0
mov eax, esi
sub eax, edi
sar eax, 1
sub ebx, eax
push dword [ebp + 8]
push 0x30002fcc
push ebx
push esi
call fcn.3002bd92
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3002bec9
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x3e7
jl 0x3002be97
xor al, al
pop esi
pop ebx
pop ebp
ret 4
mov al, 1
jmp 0x3002bec3

Function at 0x3002becd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
inc esi
xor edi, edi
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], edi
call fcn.3001b99e
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x3002beff
sub eax, ecx
sar eax, 1
cmp eax, 3
jle 0x3002bf18
lea eax, [ebx + eax*2 - 8]
jmp 0x3002bf27
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jl 0x3002bf2c
lea eax, [ebx + eax*2]
mov dword [ebp - 0x20], eax
jmp 0x3002bf33
mov dword [ebp - 0x18], 0x80040212
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
jne 0x3002bfe5
cmp dword [ebp - 0x1c], 0x3e7
jge 0x3002bfe5
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
sub eax, ebx
sar eax, 1
push 0x30002fcc
sub ecx, eax
push ecx
push dword [ebp - 0x20]
call fcn.3002bd92
add esp, 0x10
push edi
push edi
push 0x8000000
push 3
push edi
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.MSO.dll_Ordinal_403]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x24], esi
je 0x3002bfe5
push edi
push edi
push dword [0x300b5f94]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3002bfd8
cmp dword [ebp - 0x28], 0x10
jne 0x3002bfd8
push 4
pop ecx
mov edi, 0x30005bd8
lea esi, [ebp - 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x3002bfd6
push dword [ebp - 0x24]
and dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 1
je 0x3002bf3f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30085f59
leave
ret 0xc
Function at 0x3002e90f
Capabilities:
Enumerate pe sections
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push 2
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jne 0x3002e962
call edi
test eax, eax
je 0x3002e962
call edi
push eax
call fcn.30043dd4
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x3002e962
mov dword [ebp - 4], 0x80030019
cmp dword [ebp - 0x14], ebx
je 0x3002e96e
mov dword [ebp - 4], 0x8002000a
cmp dword [ebp - 4], ebx
jl 0x3002eaac
mov eax, dword [0x300b5f94]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSO.dll_Ordinal_815]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x3002e994
mov dword [ebp - 4], 0x8007000e
cmp dword [ebp - 4], ebx
jl 0x3002eaac
push ebx
push ebx
push ebx
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
jne 0x3002e9b5
call edi
push eax
call fcn.30043dd4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x3002eaac
mov esi, dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3002e9dc
cmp dword [ebp - 0x10], esi
je 0x3002e9e7
call edi
push eax
call fcn.30043dd4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x3002eaac
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x3002ea62
cmp word [esi + 0x18], 0x10b
jne 0x3002ea62
movzx ecx, word [esi + 6]
movzx eax, word [esi + 0x14]
imul ecx, ecx, 0x28
lea eax, [eax + esi + 0x18]
lea edi, [ecx + eax - 0x28]
jmp 0x3002ea29
test byte [eax + 0x24], 0x40
je 0x3002ea26
add ebx, dword [eax + 0x10]
add eax, 0x28
cmp eax, edi
jne 0x3002ea1d
mov ecx, dword [ebp - 0x18]
sub ecx, dword [edi + 0x14]
or dword [edi + 0x24], 0x40
mov dword [edi + 0x10], ecx
push dword [esi + 0x38]
add ebx, ecx
call fcn.3002e549
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x54]
push dword [esi + 0x38]
add ecx, ebx
mov dword [esi + 0x20], ebx
call fcn.3002e549
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x3002ea7e
call edi
push eax
call fcn.30043dd4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x3002eaac
mov esi, dword [ebp - 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3002eaa1
cmp dword [ebp + 8], esi
je 0x3002eaac
call edi
push eax
call fcn.30043dd4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x8002000a
jne 0x3002eabc
mov dword [ebp - 4], 1
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x3002eacd
push dword [ebp - 8]
call fcn.3001b55f
pop ecx
mov eax, dword [ebp - 4]
leave
ret 4