joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10204f00
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.10107170
mov eax, dword [0x102c6100]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa4]
test eax, eax
je 0x10205091
push ebx
push esi
mov esi, dword [esp + 0xb0]
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x14], eax
nop dword [eax + eax]
movzx eax, byte [esi + 1]
lea esi, [esi + 8]
movzx ebx, byte [esi - 8]
movzx ecx, byte [esi - 4]
shl eax, 8
or ebx, eax
movzx eax, byte [esi - 6]
shl eax, 0x10
or ebx, eax
movzx eax, byte [esi - 5]
shl eax, 0x18
or ebx, eax
movzx eax, byte [esi - 3]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [esi - 2]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], ebx
movzx eax, byte [esi - 1]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edi]
and al, 0xdf
mov dword [esp + 0x10], ecx
or al, 0x40
mov dword [esp + 0x1c], ecx
mov byte [edi], al
movzx eax, byte [ebp]
and al, 0xbf
mov dword [esp + 0x24], ecx
or al, 0x20
push edi
mov byte [ebp], al
call fcn.10181380
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.10181140
push 1
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.10002440
push ebp
call fcn.10181380
lea eax, [esp + 0x44]
push eax
push ebp
call fcn.10181140
push 1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.10002440
mov eax, dword [esp + 0x40]
add esp, 0x30
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor eax, dword [esp + 0x24]
xor edx, ebx
xor ebx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, ebx
shr eax, 8
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ecx
mov byte [edi], bl
shr ebx, 0x18
shr eax, 8
mov byte [edi + 5], al
mov eax, ecx
mov byte [edi + 3], bl
mov byte [edi + 4], cl
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
mov byte [ebp + 2], al
mov byte [edi + 7], cl
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 8
mov byte [ebp + 5], al
mov eax, ecx
mov byte [ebp], dl
shr edx, 0x18
mov byte [ebp + 4], cl
shr eax, 0x10
shr ecx, 0x18
sub dword [esp + 0x14], 1
mov byte [ebp + 3], dl
mov byte [ebp + 6], al
mov byte [ebp + 7], cl
jne 0x10204f50
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9c]
pop ebp
xor ecx, esp
call fcn.101064d2
add esp, 0x9c
ret
Function at 0x102103b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021e490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 8
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.101064e0
mov edi, eax
add esp, 4
test edi, edi
je 0x10210450
push 1
mov dword [ebp - 4], 0
call fcn.10103135
add esp, 4
mov dword [edi + 4], eax
jmp 0x10210452
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.10055090
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], 0xffffffff
mov byte [esi + 0x3c], 0
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov dword [esi], vtable.Poco::HexBinaryEncoderBuf.0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0x48
mov dword [esi + 0x48], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x38]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x4c], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x10210950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021e490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 8
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.101064e0
mov edi, eax
add esp, 4
test edi, edi
je 0x102109f0
push 1
mov dword [ebp - 4], 0
call fcn.10103135
add esp, 4
mov dword [edi + 4], eax
jmp 0x102109f2
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.10055090
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], 0xffffffff
mov byte [esi + 0x3c], 0
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov dword [esi], vtable.Poco::HexBinaryDecoderBuf.0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x38]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10211b45
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102c6100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x102ac078
push esi
call fcn.101550b8
pop ecx
pop ecx
test eax, eax
jne 0x10211b73
xor al, al
jmp 0x10211bf0
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.10211886
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10211bad
push dword [ebp - 0x210]
call fcn.10138290
xor al, al
jmp 0x10211bee
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10211bb3
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10211bd3
push edx
call fcn.10211a7c
pop ecx
test al, al
je 0x10211b9e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10211be1
mov bl, 1
push dword [ebp - 0x210]
call fcn.10138290
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101064d2
leave
ret

Function at 0x10214075
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102c6100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x102140b8
call fcn.101458c3
mov dword [eax], 0xf
call fcn.101458d6
mov dword [eax], 0xd
call fcn.1013822f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101064d2
leave
ret
test eax, eax
jne 0x102140bf
inc eax
jmp 0x102140ac
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x102140aa
xor eax, eax
cmp ecx, 1
setne al
jmp 0x102140ac
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813004]
jne 0x401010
repz ret
jmp fcn.0040137b

Function at 0x4089c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404ae5
and dword [ebp - 4], 0
cmp dword [0x815798], 0
mov ebx, eax
jne 0x408a74
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408b25
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408b25
push eax
call fcn.00404a73
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x815798], eax
call esi
push eax
call fcn.00404a73
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x81579c], eax
call esi
push eax
call fcn.00404a73
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x8157a0], eax
call esi
push eax
call fcn.00404a73
pop ecx
mov dword [0x8157a8], eax
test eax, eax
je 0x408a74
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404a73
pop ecx
mov dword [0x8157a4], eax
mov eax, dword [0x8157a4]
cmp eax, ebx
je 0x408acc
cmp dword [0x8157a8], ebx
je 0x408acc
push eax
call fcn.00404aee
push dword [0x8157a8]
mov esi, eax
call fcn.00404aee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408acc
test edi, edi
je 0x408acc
call esi
test eax, eax
je 0x408ac3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408ac3
test byte [ebp - 0xc], 1
jne 0x408acc
or dword [ebp + 0x10], 0x200000
jmp 0x408b05
mov eax, dword [0x81579c]
cmp eax, ebx
je 0x408b05
push eax
call fcn.00404aee
pop ecx
test eax, eax
je 0x408b05
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408b05
mov eax, dword [0x8157a0]
cmp eax, ebx
je 0x408b05
push eax
call fcn.00404aee
pop ecx
test eax, eax
je 0x408b05
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x815798]
call fcn.00404aee
pop ecx
test eax, eax
je 0x408b25
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408b27
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404427
Capabilities:
Encode data using xor

Disassembly:
sub al, 0x9d
inc edi
mov dword [0xd11d0393], eax
mov edx, 0xce1f2380
pop dword [ecx + 0x47]
jno 0x404453
movsd dword es:[edi], dword [esi]
invalid
push eax
inc ecx
dec bh
mov eax, dword [0xdf90a8c0]
push 0xc8516c28
rdpmc
adc al, 0xc4
or byte [ecx - 0x38], dl
and ebx, dword [edi]
jecxz 0x4044bc
or dword [eax - 0x71f152ec], esp
xor eax, 0x5413c5b8
js 0x40448f
adc al, 0xbb
cmp eax, 0x4866de54
or dword [ecx + 0x3b57841], esi
lea edx, [eax + 0x2607f012]
int3
add eax, dword [ecx]
or byte [ebp - 0x3ef7df9f], bh
frstor dword [ebx + 0x70]
loope 0x404439
arpl word [eax - 0x3f], dx
popfd
arpl ax, dx
ret 0x63bd
test dword [0xa0161fc2], 0x18f111
invalid
dec esp
sub byte [ebx + 0xf98484a], al
outsd dx, dword gs:[esi]
sbb ecx, dword [eax]
outsb dx, byte [esi]
push esp
mov ebx, 0x5274080
test byte [edi + 0x34], bh
xchg ebp, eax
aaa
xor eax, 0x4a97952b
shl byte [eax], 1
xchg ebp, eax
loope 0x4044a7
cmovle ecx, dword [esi + eax*4 + 0x6eafe3b0]
scasd eax, dword es:[edi]
outsb dx, byte [esi]
or edx, 0xd98a30c
and ecx, 0x72
jns 0x4044e3
cli
push edx
mov dh, 0xcd
pushal
cmp cl, byte [ecx]
jns 0x404545
inc ecx
dec eax
in al, 0xa
sbb cl, byte [ebx]
push 0x21e9748c
xor dword [0x121e9f48], ebp
aam 0xc5
je 0x4044fa
and dword [ecx + 0x1ebf482d], edx
adc bl, al
xor byte [ebp + ebp*8 + 0x21], 0xb1
sub eax, 0x121ef748
fild word [edx + 0x3841e9f4]
mov edi, 0x84f30d02
sbb ecx, dword [ecx]
or al, 0x15
or byte [ebx - 7], 0x43
invalid
pop ecx
aad 0x48
into
adc byte ss:[edi + 0x27], bh
mov byte [esp + ecx*4], dl
add al, byte fs:[edx]
adc dl, byte [ecx + 0x7a]
scasd eax, dword es:[edi]
xchg ebx, eax
add dword [ebx], 0xc11a9eae
inc esi
mov esi, 0x4375f18a
xchg ebx, eax
or bl, byte [ebp - 0x62370fef]
mov dword [0xb8b145b1], eax
cmp al, 0xa
std
cmpsd dword [esi], dword es:[edi]
aaa
pop ecx
sbb ecx, esi
adc eax, 0xb3338d3b
sal dword [eax - 0x4f3e5c1], 0xa3
sar eax, 1
inc ebx
outsb dx, byte [esi]
sti
mov dword [0x6e43f8d1], eax
outsb dx, byte [esi]
sub dh, byte [edi]
push ss
pop esp
jle 0x404583
pop eax
mov ah, 0xe0
mov ebp, 0x3784c163
mov word [ebp + 0x70], es
pushfd
mov edi, 0xaea6e75b
inc ebp
out 0x46, eax
invalid
Function at 0x401f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44072a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x459070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004213b7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401fce
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
mov dword [ebp - 0x18], str.bad_locale_name
mov byte [ebp - 0x14], 1
call fcn.00424f26
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x457594
push eax
call fcn.00425640
push edi
push esi
call fcn.004216ff
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422a60
mov esp, ebp
pop ebp
ret 4

Function at 0x408c60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440886
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x459070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00422a71
mov esi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push 1
mov dword [ebp - 4], eax
call fcn.004215fc
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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
Function at 0x408e80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440886
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x459070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00422a71
mov esi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push 1
mov dword [ebp - 4], eax
call fcn.004215fc
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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
Function at 0x40af70
Capabilities:
Get disk information
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x459070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [edi + 4], eax
lea esi, [edi + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
test edx, edx
je 0x40afa1
mov byte [edx], al
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40afbf
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40afef
push str.UuidCreateSequential
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40afef
lea ecx, [ebp - 0x98]
push ecx
call eax
test eax, eax
jne 0x40afef
mov eax, dword [ebp - 0x8e]
mov dword [esi], eax
mov ax, word [ebp - 0x8a]
mov word [esi + 4], ax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [edi + 0xa]
push eax
push 0
push 0
push 0x45088c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0xe
lea eax, [ebp - 0x70]
mov dword [ebp - 0x68], 0x67452301
push edi
push eax
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
mov dword [ebp - 0x58], 0xc3d2e1f0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call fcn.00420b10
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00420bb0
push 0xa
lea eax, [ebp - 0x88]
mov dword [ebp - 0xf0], 0x67452301
push eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xec], 0xefcdab89
push eax
mov dword [ebp - 0xe8], 0x98badcfe
mov dword [ebp - 0xe4], 0x10325476
mov dword [ebp - 0xe0], 0xc3d2e1f0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
call fcn.00420b10
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00420bb0
lea eax, [ebp - 0x110]
add esp, 8
cmp esi, eax
je 0x40b119
mov eax, dword [ebp - 0x110]
mov dword [esi], eax
mov eax, dword [ebp - 0x10c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x108]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x104]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x100]
mov dword [esi + 0x10], eax
push 4
lea eax, [ebp - 0x70]
mov dword [ebp - 0x68], 0x67452301
push edi
push eax
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
mov dword [ebp - 0x58], 0xc3d2e1f0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call fcn.00420b10
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00420bb0
add esp, 8
xor ecx, ecx
jmp 0x40b180
mov eax, dword [ebp + ecx - 0x88]
add dword [esi + ecx], eax
add ecx, 4
cmp ecx, 0x14
jne 0x40b180
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00422a60
mov esp, ebp
pop ebp
ret
Function at 0x40b1b0
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441002
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x459070]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x428], esi
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x450890
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [esi + 0x10], 0
mov edx, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40b261
mov eax, dword [esi]
jmp 0x40b263
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [edx], cx
je 0x40b281
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b272
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004066a0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x424], 1
jb 0x40b2a5
mov eax, dword [esi]
jmp 0x40b2a7
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x40b3b3
push 4
push str..old
mov ecx, esi
call fcn.00408930
cmp dword [esi + 0x14], 8
jb 0x40b2d5
mov eax, dword [esi]
jmp 0x40b2d7
mov eax, esi
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x40b3b3
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40b3ae
cmp dword [0x45cbc0], 8
mov eax, dword [0x45cbac]
jae 0x40b315
mov eax, 0x45cbac
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call edi
mov edx, eax
cmp word [edx], 0
jne 0x40b338
xor ecx, ecx
jmp 0x40b355
mov ecx, edx
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b340
sub ecx, edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004066a0
cmp dword [esi + 0x14], 8
jb 0x40b368
mov eax, dword [esi]
jmp 0x40b36a
mov eax, esi
push 0x450890
push eax
lea eax, [ebp - 0x420]
push eax
call edi
mov edx, eax
cmp word [edx], 0
jne 0x40b391
xor ecx, ecx
push ecx
push edx
mov ecx, esi
call fcn.004066a0
mov byte [ebx], 0
jmp 0x40b3ce
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b396
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004066a0
mov byte [ebx], 0
jmp 0x40b3ce
cmp dword [esi + 0x14], 8
jb 0x40b3bd
mov eax, dword [esi]
jmp 0x40b3bf
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
sete al
or byte [ebx], al
mov eax, esi
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.00422a60
mov esp, ebp
pop ebp
ret