joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455ba0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e125e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x7b088c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0045cde0
push dword [edi + 0x48]
call fcn.00682d6d
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0045cde0
push dword [edi + 0x34]
call fcn.00682d6d
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0045cde0
push dword [edi + 0x20]
call fcn.00682d6d
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CObjectVector_struct_NArchive::N7z::CCoderInfo_.0
push 0
call fcn.00455080
mov byte [ebp - 4], 4
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0045cde0
push dword [edi + 0xc]
call fcn.00682d6d
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x456eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e156c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x7b088c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx + 4], vtable.ICompressSetBufSize.0
lea eax, [ecx + 0x10]
mov dword [ecx + 8], 0
mov dword [ecx], vtable.NCompress::NBcj2::CDecoder.0
mov dword [ecx + 4], vtable.NCompress::NBcj2::CDecoder.1.0
mov dword [ebp - 0x10], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x18], 0
lea eax, [ecx + 0x30]
mov dword [ebp - 0x10], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x18], 0
lea eax, [ecx + 0x50]
mov dword [ebp - 0x10], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x18], 0
lea eax, [ecx + 0x70]
mov dword [ebp - 0x10], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x18], 0
lea eax, [ecx + 0x4a0]
mov dword [ebp - 0x10], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x20], 0
mov eax, ecx
mov dword [ecx + 0x4d8], 0x10000
mov dword [ecx + 0x4c8], 0x100000
mov dword [ecx + 0x4cc], 0x100000
mov dword [ecx + 0x4d0], 0x100000
mov dword [ecx + 0x4d4], 0x100000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x458600
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
xor eax, eax
push ebx
push esi
push edi
nop
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0xac1460], ecx
inc eax
cmp eax, 0x100
jb 0x458610
cmp eax, 0x800
jae 0x4586e3
nop dword [eax]
mov edx, dword [eax*4 + 0xac1060]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0xac1460]
mov dword [eax*4 + 0xac1460], edx
inc eax
cmp eax, 0x800
jb 0x4586c0
mov dword [0xac11e4], 0x468410
mov dword [esp + 0x10], 0x40000
pushfd
pop eax
mov edx, eax
xor eax, dword [esp + 0x10]
push eax
popfd
pushfd
pop eax
xor eax, edx
push edx
popfd
and dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x458815
mov dword [esp + 0x14], 0x200000
pushfd
pop eax
mov edx, eax
xor eax, dword [esp + 0x14]
push eax
popfd
pushfd
pop eax
xor eax, edx
push edx
popfd
and dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x458815
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
call fcn.004684e0
lea eax, [esp + 0x40]
mov ecx, 1
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0x40]
call fcn.004684e0
mov edi, dword [esp + 0x40]
add esp, 0x18
mov esi, edi
xor ecx, ecx
shr esi, 8
mov eax, 0x7b1598
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [esp + 0x1c]
cmp dword [eax - 8], ebx
jne 0x4587b0
mov ebx, dword [esp + 0x20]
cmp dword [eax - 4], ebx
mov ebx, dword [esp + 0x24]
jne 0x4587b0
cmp dword [eax], ebx
je 0x4587bf
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x458796
or ecx, 0xffffffff
sub ecx, 0
je 0x4587fc
sub ecx, 1
je 0x4587eb
sub ecx, 1
jne 0x458815
cmp esi, 6
jb 0x458815
jne 0x45880b
cmp edi, 0xf
jb 0x458815
mov dword [0xac11e4], 0x4684b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x458815
jne 0x45880b
cmp edi, 6
jb 0x458815
cmp edi, 0xa
jmp 0x458809
cmp esi, 6
jb 0x458815
jne 0x45880b
cmp edi, 0x100c
je 0x458815
mov dword [0xac11e4], 0x4684b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov ecx, 0x400000
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], ecx
lea eax, [ebp - 4]
push eax
cmovbe ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ecx
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
test eax, eax
setne dl
test ecx, ecx
je 0x45934e
mov eax, dword [ebp - 4]
mov dword [ecx], eax
test dl, dl
je 0x45935a
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45936f
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
jle 0x459379
movzx eax, ax
or eax, 0x80070000
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4594a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4594ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4594ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4594dc
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 8
jle 0x459501
movzx eax, ax
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x459550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
mov ecx, 0x400000
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], ecx
push eax
cmovbe ecx, dword [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x14]
test eax, eax
mov eax, dword [ebp - 4]
setne dl
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
test ecx, ecx
je 0x459597
mov dword [ecx], eax
test dl, dl
je 0x4595a3
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4595b8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
jle 0x4595c2
movzx eax, ax
or eax, 0x80070000
mov esp, ebp
pop ebp
ret 0x10

Function at 0x45a940
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0x105
jg 0x45a957
push 0x105
call fcn.00455f70
push 0x105
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [esi]
xor edx, edx
cmp word [edi], dx
je 0x45a97a
mov ecx, edi
nop
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x45a970
xor ecx, ecx
dec eax
mov word [edi + edx*2], cx
mov ecx, 0x103
cmp ecx, eax
mov dword [esi + 4], edx
pop edi
sbb eax, eax
inc eax
pop esi
ret

Function at 0x45aa50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret
Function at 0x45add0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x45ade6
xor al, al
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop ebp
ret
Function at 0x45b570
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
je 0x45b5a1
mov esi, dword [edi + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x45b591
xor al, al
jmp 0x45b59d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
xor al, 1
mov byte [edi], al
mov esi, dword [ebp + 0x10]
cmp dword [esi + 8], 0x105
jg 0x45b5b9
push 0x105
mov ecx, esi
call fcn.00455f70
push dword [esi]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
xor edx, edx
mov eax, dword [esi]
cmp word [eax], dx
je 0x45b5e0
mov ecx, eax
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x45b5d6
xor ecx, ecx
mov word [eax + edx*2], cx
mov dword [esi + 4], edx
test ebx, ebx
je 0x45b5f9
push esi
lea ecx, [edi + 4]
call fcn.00455430
mov byte [edi], 1
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x45b610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e1918
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x7b088c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00455f70
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x105
jg 0x45b676
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.00455f70
mov esi, dword [ebp - 0x1c]
push esi
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
cmp word [esi], cx
je 0x45b698
nop dword [eax]
inc ecx
cmp word [esi + ecx*2], 0
jne 0x45b690
xor edx, edx
mov dword [ebp - 0x18], ecx
dec eax
mov word [esi + ecx*2], dx
cmp eax, 0x103
ja 0x45b6d0
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push ebx
push esi
call fcn.0045b570
test eax, eax
je 0x45b6c1
mov bl, 1
jmp 0x45b6e6
lea ecx, [ebp - 0x1c]
call fcn.0045a940
mov esi, dword [ebp - 0x1c]
test al, al
jne 0x45b6d4
xor bl, bl
jmp 0x45b6e6
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push ebx
push esi
call fcn.0045b570
test eax, eax
setne bl
push esi
call fcn.00682d6d
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45b750
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e195e
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x60], ebx
push 3
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.00455f70
push edi
push ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0045b610
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov cl, byte [ebp - 0x58]
mov esi, dword [ebp - 0x54]
test al, al
je 0x45b8dd
test cl, cl
je 0x45b7f5
push 0
push esi
call ebx
test eax, eax
jne 0x45b7db
xor cl, cl
jmp 0x45b7e7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne cl
xor cl, 1
sete al
test al, al
je 0x45b8dd
mov dword [ebp - 4], 0xffffffff
test cl, cl
je 0x45b81e
push 0
push esi
call ebx
test eax, eax
jne 0x45b80d
xor al, al
jmp 0x45b819
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
xor al, 1
mov byte [ebp - 0x58], al
push esi
call fcn.00682d6d
mov esi, dword [edi]
lea ecx, [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 3
call fcn.00455f70
mov dword [ebp - 4], 1
mov dword [ebp - 0x5c], 0xffffffff
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.0045bec0
mov bl, al
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xffffffff
je 0x45b87c
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call fcn.00682d6d
add esp, 4
test bl, bl
jne 0x45b8ad
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45b8d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45b8fa
push 3
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.00455f70
push edi
push dword [ebp - 0x60]
jmp 0x45b7a7
mov al, 1
jmp 0x45b8fc
test cl, cl
je 0x45b8f1
push 0
push esi
call ebx
test eax, eax
je 0x45b8f1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00682d6d
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
Function at 0x45d500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e1bf8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x7b088c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0045cde0
push dword [edi + 0x48]
call fcn.00682d6d
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0045cde0
push dword [edi + 0x34]
call fcn.00682d6d
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0045cde0
push dword [edi + 0x20]
call fcn.00682d6d
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0045cde0
push dword [edi + 0xc]
call fcn.00682d6d
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x466150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [eax]
and eax, 7
mov dword [ebp - 4], esi
cmp edx, 5
jae 0x466174
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
add edx, 0xfffffffc
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 0xc], edx
add esi, ebx
mov dword [ebp - 8], esi
cmp esi, edx
jae 0x4661a2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x46619f
inc esi
cmp esi, edx
jb 0x466190
mov dword [ebp - 8], esi
mov ebx, esi
sub ebx, dword [ebp - 4]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x4662cc
cmp ecx, 3
jbe 0x4661e2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x18], edi
test cl, cl
je 0x466220
cmp cl, 0xff
je 0x466220
mov edx, dword [ebp - 0xc]
and eax, 3
mov esi, dword [ebp - 4]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x466184
dec ecx
shl eax, cl
and eax, 7
je 0x4661ba
movzx ecx, byte [eax + 0x7656b8]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x7656b0], 0
mov cl, byte [edx + 4]
je 0x46620a
test cl, cl
je 0x46620a
cmp cl, 0xff
jne 0x4661ba
mov edx, dword [ebp - 0xc]
and eax, 3
mov esi, dword [ebp - 4]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x466184
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 8]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x10], 0
je 0x46624e
lea edx, [edi + ebx]
add edx, esi
jmp 0x466254
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x466292
movzx edi, byte [eax + 0x7656b8]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0x14], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 0x10], edi
test cl, cl
je 0x46627e
cmp cl, 0xff
jne 0x466292
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0x14]
shl edi, cl
dec edi
xor edi, edx
jmp 0x466241
mov esi, dword [ebp - 8]
mov ecx, edx
mov edi, dword [ebp - 0x18]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 0xc]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp - 4]
add ebx, ecx
jmp 0x466184
pop edi
cmp ecx, 3
jbe 0x4662e1
mov ecx, dword [ebp + 0xc]
xor eax, eax
pop esi
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
pop esi
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d9d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 0xc]
push 0x46da30
push 0
push 0
call fcn.006ad77b
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x46da00
xor eax, eax
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x471a29
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
and dword [esi + 0xc], 0
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x471a70
cmp dword [esi + 8], 0
je 0x471a70
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x471a70
lea eax, [esi + 0xc]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x471ec5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0xac12f8]
test eax, eax
jne 0x472025
push edi
push 0x28
mov eax, 0xac13b0
xor edi, edi
push edi
push eax
mov dword [0xac12f8], eax
call fcn.00689b00
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.imagehlp.dll
mov dword [0xac13b0], eax
call sym.txupd.exe_struct_HINSTANCE______cdecl_Util::Sys::SafeLoadLibrary_char_const__
mov dword [0xac13b4], eax
pop ecx
test eax, eax
je 0x472024
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
push str.SymInitialize
push dword [0xac13b4]
mov dword [0xac13b8], eax
call esi
push str.SymSetOptions
push dword [0xac13b4]
mov dword [0xac13bc], eax
call esi
push str.SymGetOptions
push dword [0xac13b4]
mov dword [0xac13c0], eax
call esi
push str.SymLoadModule
push dword [0xac13b4]
mov dword [0xac13c4], eax
call esi
push str.SymGetModuleInfo
push dword [0xac13b4]
mov dword [0xac13c8], eax
call esi
push str.SymGetSymFromName
push dword [0xac13b4]
mov dword [0xac13cc], eax
call esi
push str.BindImage
push dword [0xac13b4]
mov dword [0xac13d0], eax
call esi
push 8
mov dword [0xac13d4], eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.00689b00
mov eax, dword [0xac13b8]
add esp, 0xc
push 0xb
pop esi
mov word [ebp - 8], si
test eax, eax
je 0x47200f
lea ecx, [ebp - 8]
push ecx
call eax
cmp dword [0xac13b8], edi
je 0x47200f
cmp word [ebp - 8], si
jb 0x47200f
mov eax, dword [0xac13bc]
test eax, eax
je 0x471feb
push edi
push edi
push dword [0xac13b0]
call eax
mov eax, dword [0xac13c4]
test eax, eax
je 0x472008
cmp dword [0xac13c0], edi
je 0x472008
call eax
and eax, 7
push eax
call dword [0xac13c0]
mov eax, dword [0xac12f8]
jmp 0x472023
push dword [0xac13b4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0xac13b4], edi
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x472408
Capabilities:
Parse pe header

Disassembly:
push 0x14
push 0x77e260
call fcn.00683d90
mov edi, ecx
test edi, edi
jne 0x472423
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
and dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [edi], ax
je 0x472448
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4724fa
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x47245c
push 0xbf
jmp 0x472436
movzx eax, word [ebx + 0x14]
test ax, ax
jne 0x47246c
push 0xc0
jmp 0x472436
lea edx, [ebx + 0x18]
add edx, eax
mov dword [ebp - 0x24], edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
movzx eax, word [ebx + 6]
cmp ecx, eax
jae 0x4724e8
imul eax, ecx, 0x28
add eax, edx
mov dword [ebp - 0x20], eax
push str..detour
push eax
call fcn.006acc70
pop ecx
pop ecx
test eax, eax
jne 0x4724d8
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4724e8
cmp dword [eax + 0x10], 0
je 0x4724e8
add edi, ecx
mov eax, dword [edi]
cmp eax, 0x30
jb 0x4724e8
cmp dword [edi + 4], 0x727444
jne 0x4724e8
cmp dword [edi + 8], 0
jne 0x4724c5
mov dword [edi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, edi
jmp 0x4724fc
mov ecx, dword [ebp - 0x1c]
inc ecx
mov edx, dword [ebp - 0x24]
jmp 0x472476
mov dword [ebp - 4], 0xfffffffe
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
call fcn.00683dd6
ret

Function at 0x474134
Capabilities:
Get storage device properties

Disassembly:
push 0x41c
mov eax, 0x6e41d5
call fcn.00682c92
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x428], esi
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ecx
jb 0x474168
mov eax, dword [esi]
jmp 0x47416a
mov eax, esi
mov byte [eax], cl
push ecx
push ecx
push 3
push ecx
push 3
push ecx
push 0x6f4208
mov dword [ebp - 4], ecx
mov dword [ebp - 0x420], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47422c
xor edi, edi
lea eax, [ebp - 0x41c]
push 0xc
push edi
push eax
mov dword [ebp - 0x424], edi
call fcn.00689b00
mov dword [ebp - 0x41c], edi
lea eax, [ebp - 0x410]
mov dword [ebp - 0x418], edi
mov edi, 0x400
push edi
push 0
push eax
call fcn.00689b00
add esp, 0x18
lea eax, [ebp - 0x424]
push 0
push eax
push edi
lea eax, [ebp - 0x410]
push eax
push 0xc
lea eax, [ebp - 0x41c]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x474225
lea edi, [ebp - 0x410]
add edi, dword [ebp - 0x400]
movsx eax, byte [edi]
push eax
call fcn.006a35bc
pop ecx
test eax, eax
je 0x474225
push edi
call fcn.004185ba
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004192a1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00682c3c
ret