joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407400
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x48f4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x407467
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452fc3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x407455
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x407455
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.00454107
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00452fc3
mov esp, ebp
pop ebp
ret
Function at 0x407500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x271c
call fcn.00469fc0
mov eax, dword [0x48f4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x270f
push eax
lea eax, [ebp - 0x2714]
push eax
mov esi, ecx
mov ebx, edx
mov byte [ebp - 0x2715], 0
call fcn.004541d0
add esp, 0xc
test esi, esi
je 0x407587
push edi
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407548
mov cx, word [0x479df4]
mov eax, esi
mov word [edi], cx
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407560
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407570
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407629
test ebx, ebx
je 0x4075e3
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4075c0
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push ebx
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x407604
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452fc3
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452fc3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.00452fc3
mov esp, ebp
pop ebp
ret

Function at 0x407640
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.00469fc0
mov eax, dword [0x48f4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x270f
push eax
lea eax, [ebp - 0x2714]
push eax
call fcn.004541d0
add esp, 0xc
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
xor ecx, ebp
call fcn.00452fc3
mov esp, ebp
pop ebp
ret
Function at 0x40c650
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474bfb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x48f4c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov ecx, dword [0x4791e8]
mov dword [esi + 0xc], ecx
mov edx, dword [0x4791ec]
mov dword [esi + 0x10], edx
mov ecx, dword [0x4791f0]
mov dword [esi + 0x14], ecx
mov edx, dword [0x4791f4]
mov dword [esi + 0x18], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [esi + 0x30], edi
cmp edi, ebx
je 0x40c724
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push esi
push edi
call ecx
cmp eax, ebx
mov eax, dword [esi + 0x30]
jl 0x40c715
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
cmp eax, ebx
jl 0x40c724
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea eax, [esi + 4]
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40c724
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 8], ebx
jmp 0x40c724
cmp eax, ebx
je 0x40c724
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x30], ebx
push 8
call fcn.0045321f
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40c755
mov dword [ebx], vtable.tcomxTypeHandler.0
mov dword [ebx + 4], edi
test edi, edi
je 0x40c757
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
jmp 0x40c757
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x34]
mov ecx, 0x96
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x40c762
mov eax, dword [0x491df8]
mov dword [esi + 0x994], eax
inc eax
mov dword [0x491df8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x415770
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x415783.2
jmp dword [eax*4 + 0x41582c]
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffc0
cmp edx, 0xfffffffc
sete al
push eax
call fcn.00415ea0
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x4157e1
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x4157e1
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x4157e1
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x41580e
push 0x30b
push 0x490e50
call fcn.00414c60
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x317
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.00414c60
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41ad40
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x48f4c4]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041ac30
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41adc1
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x41ad87
mov edx, dword [ebp - 0x18]
push edx
jmp 0x41adbb
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0043c500
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452fc3
mov esp, ebp
pop ebp
ret
Function at 0x41b300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
test esi, esi
jne 0x41b318
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test esi, esi
jne 0x41b336
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x41b32d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41b32d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41b32d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edi, eax
push edi
push edx
call fcn.00419ac0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c5f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x47a8c8
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x42c618
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42c628
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x18], edi
mov edx, edi
cmp edi, ecx
jb 0x42c668
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0x10]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42c645
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42c6d6
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x42c6d0
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42c6a4
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42c6c8
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42c690
test ecx, ecx
je 0x42c716
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42c6c8
cmp ecx, 1
jbe 0x42c716
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42c6c8
cmp ecx, 2
jbe 0x42c716
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42c716
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x42c680
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042dc70
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov edx, dword [edx + 0x10]
mov eax, dword [ecx + edx]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x100
jl 0x42c614
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x42c6e5
xor cl, 3
mov byte [eax + 5], cl
jmp 0x42c6e5
Function at 0x42dd30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0xc], edi
mov edx, edi
cmp edi, ecx
jb 0x42dd71
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42dd4f
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42ddda
cmp dword [eax + 0xc], edi
jne 0x42ddd4
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42ddac
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42ddd0
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42dd98
test ecx, ecx
je 0x42ddf3
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42ddd0
cmp ecx, 1
jbe 0x42ddf3
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42ddd0
cmp ecx, 2
jbe 0x42ddf3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42ddf3
mov ebx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x42dd86
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, ebx
call fcn.0042dc70
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x42ddec
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x48f4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x20c]
push edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
mov edi, 0x200
jmp 0x4425d6
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
sub ecx, edx
mov dword [ebp - 0x224], ecx
je 0x442640
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x4425f8
call fcn.00428180
mov eax, dword [ebp - 0x224]
mov ebx, dword [esi + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.0042dd30
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
inc dword [ebp - 0x214]
lea eax, [ebp - 0x218]
add esp, 0xc
lea edx, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], edx
call fcn.0041d2e0
add esp, 4
mov ebx, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x442649
mov edi, ebx
mov ecx, dword [ebp - 0x21c]
push ecx
push edi
lea edx, [ebp - 0x20c]
push 1
push edx
call fcn.00459e10
mov ecx, dword [ebp - 0x218]
add ecx, eax
add esp, 0x10
sub ebx, eax
mov dword [ebp - 0x218], ecx
mov dword [ebp + 0xc], ebx
je 0x44267f
cmp eax, edi
je 0x4425d0
lea eax, [ebp - 0x20c]
sub ecx, eax
mov edi, ecx
je 0x4426d9
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x4426a3
call fcn.00428180
mov ebx, dword [esi + 8]
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0042dd30
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
add esp, 0xc
inc dword [ebp - 0x214]
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x210]
call fcn.0041a640
mov dword [ebp - 0x214], 1
test ebx, ebx
je 0x442756
mov edi, dword [ebp - 0x220]
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
add eax, 0xfffffffd
cmp eax, 4
ja case.0x44270f.6
jmp dword [eax*4 + 0x44276c]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
jmp 0x44273f
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
jmp 0x44273f
mov eax, dword [esi]
call fcn.00426670
jmp 0x44273f
call fcn.004283b0
test eax, eax
je 0x44273d
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x44273f
xor eax, eax
test eax, eax
jne 0x442756
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452fc3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00452fc3
mov esp, ebp
pop ebp
ret
Function at 0x4449a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x479ff8]
mov eax, esi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4449c8
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x14], edi
mov edx, edi
cmp edi, ecx
jb 0x444a08
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x4449e5
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x444a82
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x444a7c
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x444a44
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x444a74
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x444a30
test ecx, ecx
je 0x444af3
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x444a74
cmp ecx, 1
jbe 0x444af3
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x444a74
cmp ecx, 2
jbe 0x444af3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x444af3
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x444a20
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042dc70
add esp, 8
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x1e
jl 0x4449b4
mov ecx, dword [0x47a0c0]
test ecx, ecx
je 0x444aec
mov esi, 0x47a0c0
mov bl, 0x2c
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x444ac8
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.0042dd30
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x444ac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x444a91
xor cl, 3
mov byte [eax + 5], cl
jmp 0x444a91
Function at 0x4461b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ebx]
push edi
push esi
push eax
mov eax, ebx
call fcn.004457d0
mov ecx, dword [esi]
mov eax, dword [ebx + 0x34]
add ecx, 0x10
call fcn.0041b4c0
mov esi, eax
push 0x47d9f8
push esi
call fcn.00453d27
mov edi, eax
add esp, 0x10
mov dword [ebp - 8], edi
test edi, edi
jne 0x446245
mov ecx, dword [ebx + 0x34]
push esi
push str.Include_file_open_failed_n___s__n
push ecx
call fcn.0042e4e0
mov esi, dword [ebx + 0x34]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
lea ecx, [eax - 0x10]
add esp, 0xc
cmp ecx, eax
jae 0x44622f
lea edx, [ecx - 0x10]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [edx + 0x18]
mov dword [edx + 8], eax
add ecx, 0x10
add edx, 0x10
cmp ecx, dword [esi + 8]
jb 0x446214
mov ecx, dword [ebp - 4]
add dword [esi + 8], 0xfffffff0
push 0x130
push ecx
push ebx
call fcn.00444d50
add esp, 0xc
mov eax, dword [ebx + 0x34]
add dword [eax + 8], 0xfffffff0
mov edx, dword [ebx + 0x3c]
mov dword [edx + 4], 0
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [ebx + 0x34]
push 0x200
push ecx
push edx
push eax
call fcn.00447be0
mov ecx, dword [ebx + 0x3c]
mov dword [ecx], eax
mov edx, dword [ebx + 0x3c]
mov dword [edx + 8], 0x200
mov esi, dword [ebx + 0x3c]
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push 0x200
push 1
push eax
call fcn.00459e10
add esp, 0x20
test eax, eax
je 0x44631a
mov edi, edi
add dword [esi + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
add ecx, 0x200
cmp ecx, eax
jbe 0x446300
lea edi, [eax + eax]
cmp edi, 0x7ffffffe
jb 0x4462ce
push 0
push str.lexical_element_too_long
push ebx
call fcn.00444d50
add esp, 0xc
lea ecx, [edi + 1]
cmp ecx, 0xfffffffd
ja 0x4462ec
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [ebx + 0x34]
push edi
push edx
push eax
push ecx
call fcn.00447be0
add esp, 0x10
jmp 0x4462f8
mov edx, dword [ebx + 0x34]
push edx
call fcn.00447bc0
add esp, 4
mov dword [esi + 8], edi
mov edi, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push 0x200
push 1
push eax
call fcn.00459e10
add esp, 0x10
test eax, eax
jne 0x4462a0
push edi
call fcn.00454025
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
add esp, 4
call fcn.00444e50
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 0x130
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4480a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x4480db
push 0x493500
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, esi
call fcn.00447d30
mov edi, eax
test edi, edi
je 0x4480db
inc dword [edi + 0x14]
push 0x493500
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4480ff
test esi, esi
je 0x4480f7
push 0x493500
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x448114
test esi, esi
jmp 0x44820a
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x448149
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x448206
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00464420
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.00447d70
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x4481cd
push eax
mov eax, esi
call fcn.00447ef0
add esp, 4
push esi
call fcn.00447f80
add esp, 4
test eax, eax
je 0x4481ff
push esi
call fcn.00447e20
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
mov ebx, 1
test eax, eax
je 0x448223
add eax, edi
je 0x4481ff
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x448220
mov eax, esi
call fcn.00448370
cmp dword [ebp + 0xc], 0
je 0x448217
push 0x493500
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ebx
test eax, eax
je 0x448254
push eax
call fcn.0045ae84
add esp, 4
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.00447c30
push 0x493500
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], ebx
pop ebx
pop edi
mov dword [esi + 0x18], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x452fc3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48f4c4]
jne 0x452fcd
repz ret
jmp fcn.0045aed6