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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa6ad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xa6ad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa6ad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa6ad94
push eax
push esi
call fcn.00a6d20b
add esp, 8
pop esi
ret 0x10

Function at 0xa6ada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa6ae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa6ae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa83320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a6cdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xa6adda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xa6ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa6aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa6aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa83320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a6cdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xa6aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa6ae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xa6b000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xa6b131
push esi
call fcn.00a6e145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a5d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa6b131
push 0
push ebp
call fcn.00a5d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a5d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa6b08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a5d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa6b121
push 0xa83918
push edi
call fcn.00a6c3f0
push eax
push ebx
push esi
call fcn.00a6af60
push 0xa838f8
push edi
call fcn.00a6c3f0
push eax
push ebx
push esi
call fcn.00a6af60
push 0xa838d8
push edi
call fcn.00a6c3f0
push eax
push ebx
push esi
call fcn.00a6af60
push 0xa838c0
push edi
call fcn.00a6c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a6af60
push 0xa838a0
push edi
call fcn.00a6c3f0
push eax
push ebx
push esi
call fcn.00a6af60
push 0xa83888
push edi
call fcn.00a6c3f0
push eax
push ebx
push esi
call fcn.00a6af60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa6c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a6c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a6c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a6c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a6c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa6cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa6cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa7e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa6cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa6cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401370
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x452867
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4656fc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi], vtable.NKZ::CKZArchive.0
mov dword [esi + 4], vtable.NKZ::CKZArchive.1.0
mov dword [esi + 0xc], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x70], 7
mov dword [esi + 0x6c], ebx
xor eax, eax
mov word [esi + 0x5c], ax
xor ecx, ecx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov word [esi + 0x52], cx
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov dword [esi + 0x49], eax
mov dword [esi + 0x4d], eax
xor edx, edx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov word [esi + 0x80], dx
mov word [esi + 0x54], ax
mov byte [esi + 0x40], bl
lea ecx, [esi + 0x88]
push ecx
mov byte [esp + 0x18], 4
call fcn.00403950
mov dword [esi + 0xa0], vtable.NKZ::CBuffer_unsigned_char_.0
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4049b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x4656fc]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
mov ebp, dword [esp + 0x178]
push edi
cmp esi, 0xffffffff
je 0x404b7e
test ebp, ebp
je 0x404b7e
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor ecx, ecx
push ecx
push ecx
push ecx
xor eax, eax
push eax
push esi
call edi
test eax, eax
jne 0x404a11
call fcn.00404bc0
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0043a91c
add esp, 0x16c
ret
push 0x40
lea eax, [esp + 0x134]
push 0
push eax
call fcn.0043b030
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x40
lea edx, [esp + 0x13c]
push edx
push esi
mov dword [esp + 0x20], 0
call ebx
test eax, eax
je 0x4049f4
cmp dword [esp + 0xc], 0x40
je 0x404a6f
mov eax, 0x80004005
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0043a91c
add esp, 0x16c
ret
mov eax, dword [esp + 0x16c]
push 0
cdq
push 0
push edx
push eax
push esi
call edi
test eax, eax
je 0x4049f4
push 0xf8
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0043b030
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
test eax, eax
je 0x4049f4
cmp dword [esp + 0xc], 0xf8
jne 0x404a52
movzx eax, word [esp + 0x16]
dec eax
lea eax, [eax + eax*4]
push 1
add eax, eax
xor ecx, ecx
push ecx
add eax, eax
push ecx
add eax, eax
push eax
push esi
call edi
test eax, eax
je 0x4049f4
xor eax, eax
push eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
lea eax, [esp + 0x10]
push eax
push 0x28
lea ecx, [esp + 0x114]
push ecx
push esi
call ebx
test eax, eax
je 0x4049f4
cmp dword [esp + 0xc], 0x28
jne 0x404a52
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
add eax, edx
mov dword [ebp], eax
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0043a91c
add esp, 0x16c
ret
mov ecx, dword [esp + 0x174]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x80070057
call fcn.0043a91c
add esp, 0x16c
ret
Function at 0x404be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
je 0x404ce8
cmp eax, ebx
je 0x404ce8
cmp word [eax], bx
je 0x404ce8
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x404c12
mov dword [ecx], ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404c38
call fcn.00404bc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [esp + 0x18]
push eax
push 4
push edi
push esi
mov dword [edi], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404c69
call fcn.00404bc0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0x4d
jne 0x404cd8
cmp byte [edi + 1], 0x5a
jne 0x404cd8
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
call fcn.004049b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404c9b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x404c52
mov eax, dword [ebp + 8]
mov dword [edi], 0
test eax, eax
je 0x404cbf
mov dword [eax], ebx
push 0
lea edx, [esp + 0x18]
push edx
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404c52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405740
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40574f
mov dword [esi], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [eax + 8]
push edx
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405783
call fcn.00404bc0
pop esi
ret 0x10
test esi, esi
je 0x40578d
mov edx, dword [esp + 0x14]
mov dword [esi], edx
xor eax, eax
pop esi
ret 0x10

Function at 0x405800
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x405818
mov eax, 0x80070057
pop esi
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
lea eax, [esp + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40583b
call fcn.00404bc0
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
xor eax, eax
pop esi
add esp, 8
ret 8
Function at 0x40af10
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x88
mov eax, dword [0x4656fc]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push ebx
xor ebx, ebx
push ebp
xor ecx, ecx
mov dword [esp + 0x14], eax
xor eax, eax
push esi
push edi
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x8c], bl
mov dword [esp + 0x8d], eax
mov word [esp + 0x91], ax
mov byte [esp + 0x93], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jmp 0x40afb4
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0xa4]
mov edi, dword [esp + 0xa0]
mov esi, ecx
and esi, 0x3f
cmp ebp, ebx
jbe 0x40affa
jmp 0x40afd0
mov cl, byte [edi]
mov byte [esp + esi + 0x48], cl
inc esi
inc edi
add dword [esp + 0x40], 1
adc dword [esp + 0x44], ebx
dec ebp
cmp esi, 0x40
jne 0x40aff2
lea edx, [esp + 0x20]
xor esi, esi
call fcn.00410400
cmp ebp, ebx
ja 0x40afd0
mov ecx, dword [esp + 0x40]
and ecx, 0x3f
mov ebp, 8
lea edi, [esp + 0x8c]
mov esi, ecx
jmp 0x40b010
mov dl, byte [edi]
mov byte [esp + esi + 0x48], dl
inc esi
inc edi
add dword [esp + 0x40], 1
adc dword [esp + 0x44], ebx
dec ebp
cmp esi, 0x40
jne 0x40b032
lea edx, [esp + 0x20]
xor esi, esi
call fcn.00410400
cmp ebp, ebx
ja 0x40b010
xor eax, eax
jmp 0x40b040
add byte [esp + eax + 0x8c], 1
jne 0x40b050
inc eax
cmp eax, 8
jl 0x40b040
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
jne 0x40b069
cmp dword [esp + 0x10], 0x80000
jb 0x40afb0
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x20]
call fcn.004104c0
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043a91c
add esp, 0x88
ret 0xc
Function at 0x410910
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
lea ebp, [ebx + 0x1c]
shr ebx, 2
mov eax, ebx
shr eax, 1
add eax, 3
push esi
mov dword [ecx], eax
add ecx, 0x10
xor esi, esi
mov dword [esp + 0xc], ebp
test ebx, ebx
jbe 0x410941
mov eax, dword [edx]
mov dword [ecx + esi*4], eax
inc esi
add edx, 4
cmp esi, ebx
jb 0x410934
cmp esi, ebp
jae 0x410a32
mov edx, esi
sub edx, ebx
lea eax, [ecx + edx*4]
mov dword [esp + 0x14], eax
push edi
xor edx, edx
mov eax, esi
div ebx
mov edi, dword [ecx + esi*4 - 4]
test edx, edx
jne 0x4109be
movzx eax, byte [eax + 0x466f5c]
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + str.cw]
shl edx, 8
or edx, ebp
mov ebp, edi
shr ebp, 0x10
shr edi, 8
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
and edi, 0xff
movzx edi, byte [edi + str.cw]
shl edx, 8
or edx, ebp
mov ebp, dword [esp + 0x10]
shl edx, 8
xor edi, eax
or edi, edx
jmp 0x410a16
cmp ebx, 6
jbe 0x410a16
cmp edx, 4
jne 0x410a16
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or eax, edx
mov edx, edi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and edi, 0xff
or eax, edx
movzx edx, byte [edi + str.cw]
shl eax, 8
or eax, edx
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, edi
mov dword [ecx + esi*4], edx
inc esi
add eax, 4
mov dword [esp + 0x18], eax
cmp esi, ebp
jb 0x410955
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x411660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 8
push ebp
mov ebp, dword [edx]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x411679
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], edx
jmp 0x4116a0
mov ecx, dword [esp + 0x1c]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x4116bd
jmp 0x4116b0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4116bd
inc edi
cmp edi, edx
jb 0x4116b0
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x10]
cmp edi, edx
jae 0x4117d2
cmp ecx, 3
jbe 0x4116f1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x10], eax
test cl, cl
je 0x41172b
cmp cl, 0xff
je 0x41172b
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x4116a0
dec ecx
shl ebp, cl
and ebp, 7
je 0x4116d6
movzx ecx, byte [ebp + 0x45cf80]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x45cf78], 0
mov cl, byte [ebx + 4]
je 0x411719
test cl, cl
je 0x411719
cmp cl, 0xff
jne 0x4116d6
and ebp, 3
add ebp, ebp
mov dword [esp + 0x10], eax
or ebp, 1
inc eax
jmp 0x4116a0
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x41175e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x411764
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x4117a4
movzx esi, byte [ebp + 0x45cf80]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x411789
cmp dl, 0xff
jne 0x4117a0
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x411750
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x14]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4116a0
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x4117e7
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
add esp, 8
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
add esp, 8
ret
Function at 0x415290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4523c1
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push edi
mov eax, dword [0x4656fc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [edi + 0x28], ebx
mov dword [esp + 0x18], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov byte [esp + 0x18], 2
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x2c], esi
je 0x4152fe
cmp esi, ebx
je 0x4152ec
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [edi + 0x2c]
cmp eax, ebx
je 0x4152fb
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x2c], esi
cmp dword [edi + 0x28], ebp
je 0x415322
cmp ebp, ebx
je 0x415310
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
push ebp
call edx
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x41531f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x28], ebp
mov eax, dword [esp + 0x28]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x14]
sub eax, 1
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov byte [edi + 8], bl
je 0x41534e
sub eax, 1
jne 0x415353
mov ecx, edi
call fcn.00415610
jmp 0x415353
call fcn.00415510
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x415370
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x452221
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4656fc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 2
mov dword [esp + 0x14], eax
cmp dword [esi + 0x14], eax
jne 0x4153e9
cmp dword [esi + 0x10], 1
jne 0x4153e9
mov edi, dword [esi]
cmp byte [edi], 0
jne 0x4153e9
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 4]
push eax
push ecx
mov byte [edi + 0x18], 0
call fcn.0043faf7
mov dword [edi + 4], eax
mov dword [esi + 0xc], eax
call fcn.004487a3
mov edx, dword [esi + 0x18]
add eax, 0x20
push eax
mov eax, dword [esi + 0xc]
push edx
push 1
push eax
call fcn.0044e86c
add esp, 0x18
cmp dword [esi + 0x14], 0
jne 0x415412
mov eax, dword [esi + 0x28]
test eax, eax
je 0x415455
mov edx, dword [esi + 0x30]
test edx, edx
je 0x415455
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x415455
mov edi, dword [eax]
push 0
push ecx
mov ecx, dword [edi + 0xc]
push edx
push eax
call ecx
jmp 0x415455
cmp dword [esi + 0x10], 0
jne 0x415434
cmp byte [esi + 8], 0
je 0x41542a
mov edx, dword [esi + 0xc]
push edx
call fcn.0043ba7a
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x415455
push eax
jmp 0x41544d
mov edi, dword [esi]
test edi, edi
je 0x415455
cmp byte [edi + 0x18], 0
je 0x41544c
mov eax, dword [edi + 4]
push eax
call fcn.0043ba7a
add esp, 4
push edi
call fcn.0043a52b
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41546c
push eax
call fcn.0043b247
add esp, 4
mov dword [esi + 0x30], 0
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x415480
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x28]
test esi, esi
je 0x415497
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x415610
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4521db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4656fc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jne 0x415730
push 0x1c
call fcn.0043ad96
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
cmp esi, ebx
je 0x415683
mov eax, 0x10000
push eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov byte [esi], bl
mov byte [esi + 0x18], 1
mov dword [esi + 8], eax
call fcn.0043be5a
add esp, 4
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x415685
mov byte [esi], 1
jmp 0x415685
xor esi, esi
push 1
push 0x100000
mov dword [esp + 0x28], 0xffffffff
call fcn.0044c9d5
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x4156e1
call fcn.004487a3
push eax
push 0x100000
push 1
push ebp
call fcn.0044eb8e
add esp, 0x10
cmp eax, ebx
jle 0x4156e1
lea esp, [esp]
mov ecx, ebp
call fcn.004151a0
call fcn.004487a3
push eax
push 0x100000
push 1
push ebp
call fcn.0044eb8e
add esp, 0x10
cmp eax, ebx
jg 0x4156c0
cmp byte [esi], bl
je 0x4156ed
mov dword [edi + 0xc], ebx
mov dword [edi + 0x18], ebx
jmp 0x41570c
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
mov byte [esi + 0x18], bl
call fcn.0043faf7
mov dword [esi + 4], eax
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x14]
add esp, 8
mov dword [edi + 0x18], edx
cmp byte [esi + 0x18], bl
je 0x41571d
mov eax, dword [esi + 4]
push eax
call fcn.0043ba7a
add esp, 4
push esi
call fcn.0043a52b
push ebp
call fcn.0043ba7a
add esp, 8
mov byte [edi + 8], 1
call fcn.00415510
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret