joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470710
Capabilities:
Clear file content

Disassembly:
push 0xffffffffffffffff
push 0x4db5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x2c], xmm0
xor bl, bl
call fcn.00470430
mov ebp, dword [esp + 0x44]
test al, al
lea eax, [esp + 0x24]
movzx ecx, bl
mov ebx, dword [esp + 0x48]
mov edx, 1
push eax
push 0
cmovne ecx, edx
xorps xmm0, xmm0
push ebx
mov dword [esp + 0x24], ecx
mov ecx, edi
push ebp
movlpd qword [esp + 0x34], xmm0
call fcn.00470430
test al, al
je 0x4708ac
cmp dword [esp + 0x24], ebp
jne 0x4708ac
cmp dword [esp + 0x28], ebx
jne 0x4708ac
mov ebp, dword [esp + 0x4c]
mov eax, dword [edi]
test ebp, ebp
jne 0x4707e1
cmp eax, 0xffffffff
jne 0x4707c4
xor al, al
xor ecx, ecx
test al, al
mov esi, 0x80004005
cmovne esi, ecx
jmp 0x470882
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
mov esi, 0x80004005
setne al
xor ecx, ecx
test al, al
cmovne esi, ecx
jmp 0x470882
mov ebx, dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 0xffffffff
jne 0x4707f0
xor al, al
jmp 0x4707f8
push eax
call ebx
test eax, eax
setne al
xor ecx, ecx
mov esi, 0x80004005
test al, al
cmovne esi, ecx
test esi, esi
je 0x470882
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
push dword [esp + 0x50]
xor eax, eax
push dword [esp + 0x50]
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x74], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [edi + 4]
push eax
call fcn.004029b0
mov dword [esp + 0x64], 0
mov eax, dword [ebp]
mov dword [esp + 0x64], 0xffffffff
mov ecx, ebp
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
jne 0x470882
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x47086a
xor al, al
jmp 0x470872
push eax
call ebx
test eax, eax
setne al
xor ecx, ecx
mov esi, 0x80004005
test al, al
cmovne esi, ecx
test esi, esi
jne 0x470808
cmp byte [esp + 0x18], 0
je 0x4708a8
lea eax, [esp + 0x44]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x28]
mov ecx, edi
movlpd qword [esp + 0x50], xmm0
push dword [esp + 0x28]
call fcn.00470430
mov eax, esi
jmp 0x4708d7
cmp byte [esp + 0x18], 0
je 0x4708d2
lea eax, [esp + 0x44]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x28]
mov ecx, edi
movlpd qword [esp + 0x50], xmm0
push dword [esp + 0x28]
call fcn.00470430
mov eax, 0x80004005
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
Function at 0x4709c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4db64f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00401b50
mov dword [esp + 0x18], 0
lea eax, [esi + 0x38]
mov byte [eax], 0
xor ecx, ecx
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], 0
mov dword [esp + 0xc], eax
mov word [eax + 4], cx
mov byte [esp + 0x18], 1
mov dword [eax + 0x30], 7
mov dword [eax + 0x2c], ecx
mov word [eax + 0x1c], cx
mov byte [esp + 0x18], 2
mov dword [eax + 0x48], 7
mov dword [eax + 0x44], ecx
mov word [eax + 0x34], cx
mov byte [esp + 0x18], 3
mov dword [eax + 0x60], 7
mov dword [eax + 0x5c], ecx
mov word [eax + 0x4c], cx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x48e0e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4df270
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], eax
mov word [esp + 0xc], ax
mov byte [esp + 0x48], 1
mov dword [esp + 8], eax
lea eax, [esp + 8]
push edx
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x30]
call fcn.0048dbc0
add esp, 0xc
mov bl, al
mov byte [esp + 0x48], 0
cmp dword [esp + 0x20], 8
jb 0x48e18d
push dword [esp + 0xc]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x48e1bf
push dword [esp + 0x24]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x44
ret
Function at 0x48e480
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4d29b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004029b0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0xc]
call fcn.00417190
mov eax, dword [esp + 0x1c]
cmp eax, 2
jbe 0x48e5cc
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
mov edx, dword [esp + 0xc]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x5c
jne 0x48e534
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax + 2], 0x5c
jne 0x48e534
mov bl, 1
jmp 0x48e63c
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x2f
jne 0x48e559
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax + 2], 0x2f
je 0x48e63a
push 0x5c
mov edx, 0x2f
lea ecx, [esp + 0x10]
call fcn.00417000
mov edx, dword [esp + 0x10]
mov eax, ecx
mov ecx, dword [esp + 0x24]
add esp, 4
cmp ecx, 8
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x48e63a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax + 4], 0x5c
jne 0x48e63a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x61
jb 0x48e63a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x7a
ja 0x48e63a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
jmp 0x48e623
jne 0x48e63a
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
mov edx, dword [esp + 0xc]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x48e63a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x61
jb 0x48e63a
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x7a
ja 0x48e63a
push 0x4ed190
lea ecx, [esp + 0x10]
call fcn.00406010
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48e63a
shr eax, 4
mov bl, 1
and al, 1
mov byte [esi], al
jmp 0x48e63c
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x48e657
push dword [esp + 0xc]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x28
ret
Function at 0x492160
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x114], eax
push pe_nt_image_headers32
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004b5340
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4921bc
cmp dword [esp + 4], 6
jb 0x4921bc
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004b0ff2
add esp, 0x118
ret
Function at 0x493ec0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4dfe11
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x38]
mov esi, dword [esp + 0x50]
mov ecx, edi
push 1
push 0
mov dword [esp + 0x20], 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], 0x25
call fcn.0040ef40
push 0xffffffffffffffff
push 0
push edi
cmp eax, 0xffffffff
jne 0x493f57
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
call fcn.004029b0
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], 1
jmp 0x494058
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.004029b0
mov dword [esp + 0x48], 1
cmp dword [edi + 0x14], 8
jb 0x493f99
mov eax, dword [edi]
jmp 0x493f9b
mov eax, edi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test ebp, ebp
jne 0x493fc6
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push edi
mov word [esi], ax
call fcn.004029b0
jmp 0x494025
xor ecx, ecx
lea eax, [ebp + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ad321
add esp, 4
mov ebx, eax
cmp dword [edi + 0x14], 8
jb 0x493fec
mov edi, dword [edi]
lea eax, [ebp + 1]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x494010
cmp eax, ebp
ja 0x494010
xor ecx, ecx
mov word [ebx + eax*2], cx
lea ecx, [esp + 0x20]
push ebx
call fcn.00402510
push ebx
call fcn.004b1ec2
add esp, 4
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00405650
mov dword [esp + 0x18], 1
mov byte [esp + 0x48], 0
cmp dword [esp + 0x34], 8
jb 0x494045
push dword [esp + 0x20]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
mov dword [esp + 0x30], eax
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x38
ret 8
Function at 0x494f70
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4dff8c
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28c]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x74], ax
lea eax, [esp + 0x76]
push eax
call fcn.004b5340
add esp, 0xc
lea eax, [esp + 0x6c]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, str.MacromedFlashFlashHelperService.exe
mov dword [esp + 0x34], 0
xor eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495010
sub ecx, edx
sar ecx, 1
push ecx
push str.MacromedFlashFlashHelperService.exe
lea ecx, [esp + 0x2c]
call fcn.00402ad0
mov dword [esp + 0x284], 0
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
cmp word [esp + 0x6c], ax
jne 0x49506b
xor ecx, ecx
jmp 0x495081
lea ecx, [esp + 0x6c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495072
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x14]
call fcn.00402ad0
mov byte [esp + 0x284], 1
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0040d9b0
add esp, 0xc
mov byte [esp + 0x284], 3
cmp dword [esp + 0x20], 8
jb 0x4950ca
push dword [esp + 0xc]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov byte [esp + 0x284], 4
cmp dword [esp + 0x38], 8
jb 0x4950fc
push dword [esp + 0x24]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
lea ecx, [esp + 0x54]
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call fcn.004102a0
test al, al
jne 0x495124
xor bl, bl
jmp 0x49518c
lea edx, [esp + 0x54]
lea ecx, [esp + 0x3c]
call fcn.0040f370
mov byte [esp + 0x284], 5
cmp dword [esp + 0x4c], 0
jne 0x495144
xor bl, bl
jmp 0x49515a
lea eax, [esp + 0x3c]
cmp esi, eax
je 0x495158
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004029b0
mov bl, 1
mov byte [esp + 0x284], 4
cmp dword [esp + 0x50], 8
jb 0x495175
push dword [esp + 0x3c]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
mov dword [esp + 0x284], 0xffffffff
cmp dword [esp + 0x68], 8
jb 0x4951aa
push dword [esp + 0x54]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov word [esp + 0x54], ax
mov al, bl
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x27c
ret 4
Function at 0x4951f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4dffe1
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov esi, dword [esp + 0x274]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x5e]
push eax
call fcn.004b5340
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, str.MacromedFlashFlashHelperService.exe
mov dword [esp + 0x1c], 0
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495290
sub ecx, edx
sar ecx, 1
push ecx
push str.MacromedFlashFlashHelperService.exe
lea ecx, [esp + 0x14]
call fcn.00402ad0
mov dword [esp + 0x26c], 0
xor eax, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp word [esp + 0x54], ax
jne 0x4952eb
xor ecx, ecx
jmp 0x495301
lea ecx, [esp + 0x54]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4952f2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402ad0
mov byte [esp + 0x26c], 1
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0040d9b0
add esp, 0xc
mov byte [esp + 0x26c], 3
cmp dword [esp + 0x38], 8
jb 0x49534a
push dword [esp + 0x24]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov byte [esp + 0x26c], 4
cmp dword [esp + 0x20], 8
jb 0x49537c
push dword [esp + 0xc]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
call fcn.004102a0
test al, al
jne 0x4953a4
xor bl, bl
jmp 0x4953b1
mov edx, esi
lea ecx, [esp + 0x3c]
call fcn.004945c0
mov bl, al
mov dword [esp + 0x26c], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x4953cf
push dword [esp + 0x3c]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov word [esp + 0x3c], ax
mov al, bl
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x264
ret 4
Function at 0x4959e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ce231
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x44]
push 0
push edi
push dword [esp + 0x48]
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x44]
push ecx
push esi
call fcn.00495ae0
mov dword [esp + 0x30], 0
cmp dword [esi + 0x10], 0
mov dword [esp + 0xc], 1
jne 0x495abe
push 0x100
push edi
push dword [esp + 0x48]
lea eax, [esp + 0x1c]
push ecx
push eax
call fcn.00495ae0
mov edi, eax
mov dword [esp + 0x30], 1
cmp esi, edi
je 0x495a8f
cmp dword [esi + 0x14], 8
jb 0x495a74
push dword [esi]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004026a0
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x495aa7
push dword [esp + 0x10]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x10
Function at 0x496810
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4e02bb
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, ecx
push 1
mov dword [esp + 0x14], 0
call fcn.004b1806
add esp, 4
mov dword [esp + 0x10], eax
mov byte [eax], 0
lea eax, [esp + 0x14]
push 0x11c
push 0
push eax
call fcn.004b5340
add esp, 0xc
mov dword [esp + 0x14], 0x11c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49689e
cmp dword [esp + 0x18], 6
mov eax, dword [esp + 0x10]
setae cl
mov byte [eax], cl
mov dword [esp + 0x140], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x14]
call fcn.00418d70
test al, al
je 0x4968d1
lea ecx, [esp + 0x10]
call fcn.00417fb0
test al, al
jne 0x4968d1
xor bl, bl
jmp 0x49696f
lea esi, [edi + 4]
xor ecx, ecx
mov edx, esi
call fcn.00437fa0
test al, al
jne 0x4968f5
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4968f0
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x1c]
mov ecx, 0x1a
mov edx, esi
call fcn.00437fa0
test al, al
jne 0x49691c
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x496917
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x34]
mov ecx, 2
mov edx, esi
call fcn.00437fa0
test al, al
jne 0x496943
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x49693e
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x4c]
mov ecx, 0xb
mov edx, esi
call fcn.00437fa0
test al, al
jne 0x49696a
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x496965
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov byte [edi], 1
mov bl, 1
mov dword [esp + 0x140], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004176e0
mov al, bl
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x134
ret
Function at 0x4970d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e0432
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
push 0
mov dword [esp + 0x10], esi
call fcn.004ad7a9
mov dword [esp + 0x2c], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [esp + 0x2c], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [esp + 0x2c], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [esp + 0x2c], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [esp + 0x2c], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [esp + 0x2c], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esp + 0x2c], 6
test edi, edi
jne 0x4971a8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], str.bad_locale_name
push eax
lea ecx, [esp + 0x14]
call fcn.004b3bd3
mov byte [esp + 0x2c], 7
mov dword [esp + 0x10], vtable.std::runtime_error.0
mov byte [esp + 0x2c], 6
lea eax, [esp + 0x10]
push 0x50a4b8
push eax
call fcn.004b53e5
push edi
push esi
call fcn.004ad5aa
add esp, 8
mov dword [esp + 0x2c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x24
ret 4

Function at 0x497970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e0679
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 0x30], 1
cmp dword [esp + 0x50], 0
je 0x4979c1
push 2
push 0x4f23cc
lea ecx, [esp + 0x48]
call fcn.00449280
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00497900
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
push 0
push eax
call fcn.004491d0
mov byte [esp + 0x30], 1
cmp dword [esp + 0x24], 0x10
jb 0x4979fa
push dword [esp + 0x10]
call fcn.004b17b6
add esp, 4
lea eax, [esp + 0x40]
mov dword [esp + 0x24], 0xf
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.004226f0
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
cmp dword [esp + 0x54], 0x10
jb 0x497a3b
push dword [esp + 0x40]
call fcn.004b17b6
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x497a70
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4e06c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
push 0
push dword [esp + 0x5c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402560
mov dword [esp + 0x4c], 0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00497970
add esp, 0x20
mov dword [esp + 0x34], 1
cmp dword [eax + 0x14], 0x10
jb 0x497af5
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [esp + 0x3c]
push eax
call fcn.004b3bd3
mov byte [esp + 0x34], 2
mov dword [esi], vtable.std::runtime_error.0
mov byte [esp + 0x34], 4
cmp dword [esp + 0x24], 0x10
jb 0x497b28
push dword [esp + 0x10]
call fcn.004b17b6
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], eax
mov dword [esp + 0x34], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x30
ret 0xc

Function at 0x497ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e0849
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [ecx + 0x30]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4