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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0xffffffff
je 0x46ef69
mov ebx, dword [ebp + 8]
mov ax, bx
shr ax, 0xa
and ebx, 0x3ff
movzx ecx, ax
mov dword [ebp - 4], ecx
cmp cx, word [edi + 0x850]
je 0x46ef51
movzx eax, ax
mov ecx, edi
cdq
shld edx, eax, 0xb
shl eax, 0xb
add eax, dword [edi + 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
adc edx, dword [edi + 0x34]
mov dword [ebp - 8], edx
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0xc]
add ecx, eax
lea eax, [ebp - 8]
push 0
adc dword [ebp - 8], edx
push eax
push ecx
push dword [edi + 0x10]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46ef69
push esi
push 0x800
lea esi, [edi + 0x50]
mov dword [ebp + 8], 0
push 0
push esi
call fcn.00588800
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
push 0x800
push esi
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x46ef69
mov eax, dword [ebp - 4]
mov word [edi + 0x850], ax
mov eax, dword [ebp + 0xc]
mov cx, word [edi + ebx*2 + 0x50]
pop edi
pop ebx
mov word [eax], cx
mov eax, 1
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46ef80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, ecx
movzx eax, word [edi + 0x18]
test ax, ax
je 0x46f03a
cmp dword [edi + 0x10], 0xffffffff
je 0x46f03a
shl eax, 5
push eax
mov dword [ebp - 4], eax
call fcn.00560596
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x46f03a
mov edx, dword [edi]
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x10], ecx
mov ecx, edi
push esi
mov edx, dword [edx]
mov dword [ebp - 0xc], 0
call edx
push dword [ebp - 4]
mov esi, dword [ebp - 0x10]
add esi, eax
push 0
adc dword [ebp - 0xc], edx
push ebx
mov dword [ebp - 0x10], esi
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0xc]
push 0
push eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
cmp eax, 0xffffffff
je 0x46f031
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp - 4]
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f031
mov eax, dword [ebp + 8]
mov cx, word [edi + 0x18]
pop edi
mov word [eax], cx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call fcn.00560591
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46f780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
mov esi, ecx
cmp eax, 2
jb 0x46f7fe
cmp dword [ebp + 0xc], 0
je 0x46f7fe
cmp dword [ebp + 0x10], 0
jbe 0x46f7fe
cmp dword [esi + 0x10], 0xffffffff
je 0x46f7fe
add eax, 0xfffffffe
mul dword [esi + 0x1c]
add eax, dword [esi + 0x40]
mov dword [ebp - 8], eax
mov eax, dword [esi]
adc edx, dword [esi + 0x44]
mov dword [ebp - 4], edx
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 8]
add ecx, eax
lea eax, [ebp - 4]
push 0
adc dword [ebp - 4], edx
push eax
push ecx
push dword [esi + 0x10]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46f7fe
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46f810
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eff28
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], vtable.CFATVolume.0
mov dword [esi + 0x14], eax
mov word [esi + 0x18], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov eax, 0xffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0x1000
mov word [esi + 0x850], ax
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov dword [esi], vtable.CLostFATVolume.0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046f8e0
test eax, eax
je 0x46f8b6
push 0x800
lea eax, [esi + 0x50]
push 0
push eax
call fcn.00588800
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46fb70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5effbe
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], vtable.CFATVolume.0
mov ebx, 0xffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], 0x1000
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov word [esi + 0x850], bx
mov dword [ebp - 4], eax
lea edi, [esi + 0x858]
mov dword [esi], vtable.CRAWFATVolume.0
mov dword [ebp - 0x14], edi
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x46fc95
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
xor eax, eax
push dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], 0x1000
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov word [esi + 0x850], bx
call fcn.0046fca0
test eax, eax
je 0x46fc78
push 0x800
lea eax, [esi + 0x50]
push 0
push eax
call fcn.00588800
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b250
int3
Function at 0x4702c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x141c
call fcn.005ddc60
mov eax, dword [0x6b000c]
xor eax, esp
mov dword [esp + 0x1418], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x10], esi
test edi, edi
je 0x4704ae
push 0x208
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.00588800
movzx eax, word [edi]
add esp, 0xc
mov edx, eax
mov ebx, 0x20
cmp eax, 0x7b
je 0x47031a
mov ebx, eax
cmp edx, 0x7b
mov dword [esp + 0x14], 6
mov ecx, str.._c:
cmovne edi, eax
mov eax, str._Volume_s
cmove ecx, eax
mov eax, 0x30
cmovne eax, dword [esp + 0x14]
push edi
push ecx
push eax
lea eax, [esp + 0x224]
mov word [esi + 8], bx
push eax
call fcn.0046d0c0
add esp, 0x10
lea eax, [esp + 0x218]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esi + 0x10], edi
cmp edi, 0xffffffff
je 0x470476
push 0x1000
lea eax, [esp + 0x424]
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [esp + 0x14]
push 0
push eax
push 0x1000
lea eax, [esp + 0x42c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470476
push 5
lea eax, [esp + 0x6e]
mov ecx, 0x80
lea esi, [esp + 0x424]
lea edi, [esp + 0x1c]
push 0x64ef5c
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a86e0
add esp, 0xc
test eax, eax
jne 0x470472
mov eax, 0xaa55
cmp word [esp + 0x216], ax
jne 0x470472
mov edx, dword [esp + 0x10]
mov ax, word [esp + 0x23]
mov cx, word [esp + 0x26]
movzx ebx, byte [esp + 0x25]
mov esi, dword [esp + 0x3c]
movzx edi, ax
mov word [edx + 0x14], ax
mov eax, dword [esp + 0x44]
mov dword [edx + 0x1c], eax
mov al, byte [esp + 0x28]
mov byte [edx + 0x24], al
movzx eax, cx
imul eax, edi
imul ebx, edi
mov word [edx + 0x16], cx
mov ecx, dword [esp + 0x10]
imul edi, esi
mov dword [edx + 0x20], esi
mov esi, dword [esp + 0x10]
mov dword [edx + 0x18], ebx
cdq
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov ecx, edi
add ecx, eax
mov eax, 0
mov dword [esi + 0x30], ecx
adc eax, edx
add ecx, edi
mov dword [esi + 0x34], eax
adc eax, 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
test ebx, ebx
je 0x470476
mov dword [esi + 0xc], 1
jmp 0x470476
mov esi, dword [esp + 0x10]
cmp dword [esi + 0xc], 0
je 0x470498
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1418]
xor ecx, esp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x4704ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
mov ecx, dword [esp + 0x1424]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4
Function at 0x4704d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
mov esi, ecx
cmp eax, 2
jb 0x47054f
cmp dword [ebp + 0xc], 0
je 0x47054f
cmp dword [ebp + 0x10], 0
jbe 0x47054f
cmp dword [esi + 0x10], 0xffffffff
je 0x47054f
add eax, 0xfffffffe
mul dword [esi + 0x18]
add eax, dword [esi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [esi]
adc edx, dword [esi + 0x3c]
mov dword [ebp - 4], edx
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 8]
add ecx, eax
lea eax, [ebp - 4]
push 0
adc dword [ebp - 4], edx
push eax
push ecx
push dword [esi + 0x10]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x47054f
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x470560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0xffffffff
je 0x470624
mov ebx, dword [ebp + 8]
mov eax, ebx
mov ecx, dword [edi + 0x1048]
and ebx, 0x3ff
shr eax, 0xa
mov dword [ebp - 4], eax
cmp ecx, 0xffffffff
je 0x470594
cmp eax, ecx
je 0x47060e
mov ecx, eax
xor eax, eax
shl ecx, 0xc
add ecx, dword [edi + 0x28]
mov dword [ebp - 0xc], ecx
mov ecx, edi
adc eax, dword [edi + 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0xc]
add ecx, eax
lea eax, [ebp - 8]
push 0
adc dword [ebp - 8], edx
push eax
push ecx
push dword [edi + 0x10]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x470624
push esi
push 0x1000
lea esi, [edi + 0x48]
mov dword [ebp + 8], 0
push 0
push esi
call fcn.00588800
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
push 0x1000
push esi
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x470624
mov eax, dword [ebp - 4]
mov dword [edi + 0x1048], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + ebx*4 + 0x48]
pop edi
pop ebx
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x470d60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f01c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], vtable.CFAT32Volume.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0x1000
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], al
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x1048], 0xffffffff
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
mov dword [esi], vtable.CLostFAT32Volume.0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00470ef0
test eax, eax
je 0x470dfc
push 0x1000
lea eax, [esi + 0x48]
push 0
push eax
call fcn.00588800
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x471160
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f02be
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], vtable.CFAT32Volume.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0x1000
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], al
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x1048], 0xffffffff
mov dword [ebp - 4], eax
lea edi, [esi + 0x1050]
mov dword [esi], vtable.CRAWFAT32Volume.0
mov dword [ebp - 0x14], edi
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x471239
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp + 8]
call fcn.00471380
test eax, eax
je 0x47121d
push 0x1000
lea eax, [esi + 0x48]
push 0
push eax
call fcn.00588800
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b250
int3
Function at 0x472400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x472454
mov edx, dword [esi + 0x18]
add edx, dword [ebp + 0x10]
mov eax, dword [esi + 0x1c]
adc eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edx
push ecx
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x472454
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x14]
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4729a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2014
call fcn.005ddc60
mov eax, dword [0x6b000c]
xor eax, esp
mov dword [esp + 0x2010], eax
push ebx
push esi
push edi
push 0x2000
lea eax, [esp + 0x1c]
mov ebx, ecx
push 0
push eax
call fcn.00588800
mov edx, dword [ebx + 0x10]
add esp, 0xc
test edx, edx
je 0x472b6a
mov ecx, dword [ebx + 0x17c]
xor eax, eax
imul ecx, dword [ebx + 0x84]
push 0
add ecx, dword [ebx + 0x18]
mov dword [esp + 0x14], ecx
adc eax, dword [ebx + 0x1c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x472b6a
push 0
lea eax, [esp + 0x10]
push eax
push 0x2000
lea eax, [esp + 0x24]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], 0x2000
jne 0x472b6a
cmp byte [esp + 0x20], 1
jne 0x472b6a
mov ecx, 0x1a
lea esi, [esp + 0x26]
lea edi, [ebx + 0x25c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movzx eax, word [ebx + 0x25c]
rol ax, 8
mov word [ebx + 0x25c], ax
mov eax, dword [ebx + 0x25e]
bswap eax
mov dword [ebx + 0x25e], eax
mov eax, dword [ebx + 0x262]
bswap eax
mov dword [ebx + 0x262], eax
mov eax, dword [ebx + 0x266]
bswap eax
mov dword [ebx + 0x266], eax
mov eax, dword [ebx + 0x26a]
bswap eax
mov dword [ebx + 0x26a], eax
movzx eax, word [ebx + 0x26e]
rol ax, 8
mov word [ebx + 0x26e], ax
movzx eax, word [ebx + 0x270]
rol ax, 8
cmp dword [esp + 0x18], 0
mov word [ebx + 0x270], ax
mov eax, dword [ebx + 0x272]
bswap eax
mov dword [ebx + 0x272], eax
mov eax, dword [ebx + 0x276]
bswap eax
mov dword [ebx + 0x276], eax
mov eax, dword [ebx + 0x27c]
bswap eax
mov dword [ebx + 0x27c], eax
mov eax, dword [ebx + 0x282]
bswap eax
mov dword [ebx + 0x282], eax
jne 0x472b53
push 0
push 0x1f00
lea ecx, [ebx + 0x348]
call fcn.00471670
cmp dword [ebx + 0x34c], 0
jb 0x472b53
ja 0x472b33
cmp dword [ebx + 0x348], 0x1f00
jb 0x472b53
mov eax, dword [ebx + 0x358]
test eax, eax
je 0x472b53
push 0x1f00
lea ecx, [esp + 0x114]
push ecx
push eax
call fcn.00589190
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2010]
xor ecx, esp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x201c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret
Function at 0x472b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f04d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
movzx eax, word [ebx + 0x26e]
push eax
call fcn.00560596
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x12c]
imul eax, dword [ebx + 0x84]
mov edx, dword [ebx + 0x10]
movzx edi, word [ebx + 0x26e]
test edx, edx
je 0x472c2b
mov ecx, dword [ebx + 0x18]
add ecx, eax
mov eax, dword [ebx + 0x1c]
push 0
adc eax, 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x472c2b
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x10]
jmp 0x472c2d
xor ecx, ecx
movzx eax, word [ebx + 0x26e]
cmp ecx, eax
jne 0x472d12
mov eax, dword [esi + 8]
movq xmm0, qword [esi]
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
cmp al, 1
jne 0x472d12
add esi, 0xe
lea edi, [ebx + 0x2c6]
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movzx eax, word [ebx + 0x2c6]
rol ax, 8
mov word [ebx + 0x2c6], ax
mov eax, dword [ebx + 0x2c8]
bswap eax
mov dword [ebx + 0x2c8], eax
mov eax, dword [ebx + 0x2cc]
bswap eax
mov dword [ebx + 0x2cc], eax
mov eax, dword [ebx + 0x2d0]
bswap eax
mov dword [ebx + 0x2d0], eax
mov eax, dword [ebx + 0x2d4]
bswap eax
mov dword [ebx + 0x2d4], eax
movzx eax, word [ebx + 0x2d8]
rol ax, 8
mov word [ebx + 0x2d8], ax
movzx eax, word [ebx + 0x2da]
mov esi, dword [ebp - 0x14]
rol ax, 8
mov word [ebx + 0x2da], ax
mov eax, dword [ebx + 0x2dc]
bswap eax
mov dword [ebx + 0x2dc], eax
mov eax, dword [ebx + 0x2e0]
bswap eax
mov dword [ebx + 0x2e0], eax
mov eax, dword [ebx + 0x2e6]
bswap eax
mov dword [ebx + 0x2e6], eax
mov eax, dword [ebx + 0x2ec]
bswap eax
mov dword [ebx + 0x2ec], eax
mov bl, 1
jmp 0x472d14
xor bl, bl
mov dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.005603ff
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1014
call fcn.005ddc60
mov eax, dword [0x6b000c]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
mov ebx, ecx
push esi
push edi
test dword [ebx + 0x60], 0x2000
je 0x472e87
push 0x1000
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00588800
mov ecx, dword [ebx + 0x10]
add esp, 0xc
test ecx, ecx
je 0x472e87
mov eax, dword [ebx + 0x84]
imul eax, dword [ebx + 0x68]
push 0
cdq
add eax, dword [ebx + 0x18]
mov dword [esp + 0x14], eax
adc edx, dword [ebx + 0x1c]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x472e87
push 0
lea eax, [esp + 0x10]
push eax
push 0x1000
lea eax, [esp + 0x24]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], 0x1000
jne 0x472e87
mov ecx, 0x2d
lea esi, [esp + 0x18]
lea edi, [ebx + 0x360]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x360]
push dword [ebx + 0x388]
bswap eax
push dword [ebx + 0x384]
mov dword [ebx + 0x360], eax
call fcn.004718d0
push dword [ebx + 0x390]
mov dword [ebx + 0x384], eax
push dword [ebx + 0x38c]
mov dword [ebx + 0x388], edx
call fcn.004718d0
mov dword [ebx + 0x38c], eax
add esp, 0x10
mov dword [ebx + 0x390], edx
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x101c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret

Function at 0x472ed0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
jne 0x472fbb
test byte [esi + 0x360], 1
je 0x472fbb
mov ecx, dword [esi + 0x360]
mov eax, ecx
shr eax, 1
test al, 1
jne 0x472fbb
shr ecx, 2
test cl, 1
jne 0x472fbb
push dword [esi + 0x38c]
call fcn.00560596
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
je 0x472fbb
push dword [esi + 0x388]
mov ecx, esi
push dword [esi + 0x384]
push dword [esi + 0x38c]
push eax
call fcn.00472400
cdq
cmp eax, dword [esi + 0x38c]
jne 0x472fbb
cmp edx, dword [esi + 0x390]
jne 0x472fbb
mov edx, dword [esi + 0x28]
cmp dword [edx], 0x4a4e4c78
jne 0x472fb4
cmp dword [edx + 4], 0x12345678
jne 0x472fb4
xor ecx, ecx
push ebx
mov ebx, dword [edx + 0x24]
push edi
mov dword [edx + 0x24], 0
lea edi, [ecx + 0xb]
add edx, 2
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
add eax, ecx
shl ecx, 8
xor eax, ecx
movzx ecx, byte [edx - 5]
add ecx, eax
shl eax, 8
xor ecx, eax
movzx eax, byte [edx - 4]
add eax, ecx
shl ecx, 8
xor eax, ecx
movzx ecx, byte [edx - 3]
add ecx, eax
shl eax, 8
xor ecx, eax
sub edi, 1
jne 0x472f74
not ecx
pop edi
cmp ecx, ebx
pop ebx
jne 0x472fb4
mov al, 1
pop esi
ret
mov ecx, esi
call fcn.00472ea0
xor al, al
pop esi
ret
Function at 0x478100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0a28
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [edi], vtable.CAttrBase.0
mov dword [edi + 8], esi
mov dword [edi + 0x28], ecx
mov eax, dword [ecx + 8]
mov ax, word [eax + 8]
mov word [edi + 0xc], ax
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x20]
mov dword [edi + 0x18], eax
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
mov dword [ebp - 4], 0
mov dword [edi], vtable.CAttrResident.0
mov dword [edi + 0x30], esi
movzx eax, word [esi + 0x14]
add eax, esi
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x38], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8