joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5550
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac946
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x60e070]
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 dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x818], ebx
test ebx, ebx
je 0x4a562e
lea edi, [ebp - 0x810]
mov dword [ebp - 0x814], 0
xor esi, esi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x4a564c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00540145
add esp, 4
mov dword [ebp - 0x81c], eax
mov edi, eax
mov esi, edi
mov dword [ebp - 0x814], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4a561a
cmp eax, ebx
ja 0x4a561a
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x818], ebx
jmp 0x4a567a
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4a562e
push edi
call fcn.0053fb54
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.0053f5d9
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x4a5705
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x4a5705
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x4a56ea
mov esi, dword [ebp - 0x81c]
mov ebx, 2
mov eax, dword [ebp - 0x818]
cmp word [esi + ebx - 2], 0
jne 0x4a56dc
cmp ecx, edi
je 0x4a56dc
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.00403be0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.0040d140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.00403b90
mov eax, dword [ebp - 0x818]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x4a5693
mov esi, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a56fe
push esi
call fcn.0053fb54
add esp, 4
mov al, 1
jmp 0x4a5630
call fcn.0053fc7a
int3
Function at 0x4a6e80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ace90
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x60e070]
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, ecx
call fcn.0040d380
test eax, eax
jne 0x4a6ebd
xor al, al
jmp 0x4a7069
mov ecx, edi
call fcn.004a62f0
test al, al
je 0x4a6ecf
mov al, 1
jmp 0x4a7069
push 0
mov ecx, edi
call fcn.00403b20
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4a6f1e
lea ecx, [ebp - 0x28]
call fcn.00403c30
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004d8560
test al, al
je 0x4a6f0f
push 0
lea ecx, [ebp - 0x28]
call fcn.00403b20
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403b90
mov ecx, edi
call fcn.004a62f0
test al, al
jne 0x4a6ec8
mov ecx, edi
call fcn.0040d380
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4a700e
mov ecx, edi
call fcn.00403f80
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x4a6f52
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x4a6f75
mov eax, ebx
cmp ecx, 8
jb 0x4a6f6b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4a6ffe
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00428b40
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040d380
test eax, eax
je 0x4a6fef
lea ecx, [ebp - 0x28]
call fcn.004a60e0
test al, al
jne 0x4a6fef
push 0
lea ecx, [ebp - 0x28]
call fcn.00403b20
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a6fef
lea ecx, [ebp - 0x40]
call fcn.00403c30
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004d8560
test al, al
je 0x4a6fe3
push 0
lea ecx, [ebp - 0x40]
call fcn.00403b20
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403b90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403b90
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x4a6f46
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.004a60e0
test al, al
jne 0x4a7062
push 0
mov ecx, edi
call fcn.00403b20
push eax
call ebx
test eax, eax
jne 0x4a7062
lea ecx, [ebp - 0x40]
call fcn.00403c30
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004d8560
test al, al
je 0x4a7053
push 0
lea ecx, [ebp - 0x40]
call fcn.00403b20
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403b90
mov ecx, edi
call fcn.004a62f0
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.0053f5d9
mov esp, ebp
pop ebp
ret
Function at 0x4a8a90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.0040d390
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.005431f0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4a8aec
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0053f5d9
add esp, 0x418
ret
cmp eax, 0x208
jae 0x4a8ad4
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00404660
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.004040a0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0053f5d9
add esp, 0x418
ret
Function at 0x4aa450
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5f9298
push 0x541f40
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x60e070]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.0040d390
mov ecx, edi
call fcn.004aa570
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4aa4e3
test bl, bl
jne 0x4aa552
cmp edi, 0x1a
jne 0x4aa552
mov ecx, esi
call fcn.0040d390
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.005431f0
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.00404660
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.004040a0
mov ecx, esi
call fcn.0040d380
movzx ebx, bl
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0053f5d9
mov esp, ebp
pop ebp
ret
Function at 0x4b0750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4b077b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b17f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4b079d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4b079f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4b0823
jg 0x4b07b4
test esi, esi
je 0x4b0823
test ecx, ecx
jl 0x4b07fd
jg 0x4b07be
test eax, eax
je 0x4b07fd
cmp edi, ecx
jg 0x4b07d2
jl 0x4b07c8
cmp esi, eax
jae 0x4b07d2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.005426f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4b0800
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4b0823
jg 0x4b080a
test esi, esi
je 0x4b0823
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4b0823
push eax
push esi
push 1
push edx
call fcn.0055f85e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b0840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4b086b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b18d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4b088d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4b088f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x4b092e
jg 0x4b08ac
test esi, esi
je 0x4b092e
test ecx, ecx
jl 0x4b08f9
jg 0x4b08b6
test eax, eax
je 0x4b08f9
cmp ebx, ecx
jg 0x4b08ca
jl 0x4b08c0
cmp esi, eax
jae 0x4b08ca
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.005426f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4b0900
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x4b092e
jg 0x4b090a
test esi, esi
je 0x4b092e
cmp dword [edi + 0x4c], 0
je 0x4b092e
mov ecx, edi
call fcn.004b22c0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0055fa9f
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b0c40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4b0c70
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0053f5d9
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4b0cad
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4b0cad
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0053f5d9
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x4b0d9d
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4b0cd5
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b0d09
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005637b3
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0053f5d9
add esp, 0x30
ret 4
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4b0d9d
cmp eax, 1
jle 0x4b0d6c
cmp eax, 3
jne 0x4b0d9d
mov edx, dword [esi + 0x4c]
mov cl, byte [esp + 0x17]
call fcn.004aefb0
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0053f5d9
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x4b0d8b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0055f85e
add esp, 0x10
cmp edi, eax
jne 0x4b0d9d
lea eax, [esp + 0x17]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
jne 0x4b0c97
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053f5d9
add esp, 0x30
ret 4
Function at 0x4b8a00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af4eb
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x60e070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4b8a39
call fcn.004b8c50
cmp byte [0x611b14], 0
jne 0x4b8a4c
mov eax, 0x80000001
jmp 0x4b8b7c
mov eax, dword [esi]
test eax, eax
jne 0x4b8acc
push 8
call fcn.0053f5f8
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.0053f5f8
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.005431f0
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b8abb
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4b8b6b
call fcn.004d14b0
test al, al
jne 0x4b8b06
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004d26c0
test al, al
je 0x4b8b6b
mov ecx, dword [esi]
add ecx, 4
call fcn.004d0df0
call fcn.004d14b0
test al, al
je 0x4b8b6b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.00403be0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.004bb6f0
mov ecx, eax
call fcn.004bb7c0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00403b90
test edi, edi
je 0x4b8b6b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b8b6b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x4b8b6b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4b8b7a
mov dword [eax], SysStringLen
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053f5d9
mov esp, ebp
pop ebp
ret 4
Function at 0x4b8f90
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x5af680
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x60e070]
xor eax, ebp
mov dword [ebp + 0x624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x630]
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp + 0x634]
call fcn.00403c30
mov dword [ebp - 4], 0
mov eax, dword [0x611c08]
mov dword [ebp], 0
mov dword [ebp], 0x611c08
test eax, eax
je 0x4b9004
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x611c18
call fcn.0040d380
test eax, eax
je 0x4b9048
mov ecx, 0x611c18
call fcn.00404950
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x4b90fd
mov ecx, 0x611c18
call fcn.00403f80
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4b903f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x4b90f5
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.005431f0
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4b9199
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.005431f0
add esp, 0xc
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4b90de
test eax, eax
je 0x4b90de
add eax, eax
cmp eax, 0x412
jae 0x4b91ec
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.00404660
add esp, 4
push eax
lea eax, [ebp + 4]
jmp 0x4b90f4
lea eax, [ebp + 0x418]
push eax
call fcn.00404660
add esp, 4
push eax
lea eax, [ebp + 0x418]
push eax
lea ecx, [ebp - 0x24]
call fcn.004040a0
mov byte [ebp - 4], 0
mov eax, dword [0x611c08]
test eax, eax
je 0x4b9111
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push edi
lea eax, [ebp - 0x24]
mov dword [ebp], 0
push eax
mov ecx, esi
call fcn.004b8f20
test al, al
je 0x4b9130
mov bl, 1
jmp 0x4b91b6
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.005431f0
add esp, 0xc
lea eax, [ebp + 0x418]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4b91b4
xor eax, eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 0x418]
push eax
call fcn.00404660
add esp, 4
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp + 0x418]
push eax
call fcn.004040a0
push ebx
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004b8f20
mov bl, al
jmp 0x4b91b6
mov byte [ebp - 4], 0
mov eax, dword [0x611c08]
test eax, eax
je 0x4b91ad
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00403b90
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x624]
xor ecx, ebp
call fcn.0053f5d9
lea esp, [ebp + 0x628]
pop ebp
ret 8
call fcn.0053fc7a
int3
Function at 0x4c03e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b054f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x60e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00403b90
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00403b90
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00403b90
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00403b90
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00403b90
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00403b90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c0470
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b05af
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x60e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00403b90
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00403b90
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00403b90
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00403b90
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00403b90
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00403b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c2910
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b094f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0040e060
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.0040e060
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.0040e060
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.0040e060
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.0040e060
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.0040e060
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 4
Function at 0x4c5a80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b108f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00403c50
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00403c50
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00403c50
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00403c50
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00403c50
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00403c50
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 4
Function at 0x4c80f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b178f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x60e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00403c30
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00403c30
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00403c30
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00403c30
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00403c30
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00403c30
mov byte [ebp - 4], 5
mov byte [esi + 0x60], 0
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

Function at 0x4c8e10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x4c8e92
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x4c8e92
test ecx, ecx
je 0x4c8e8e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4c8e50
xor eax, eax
jmp 0x4c8e97
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4c8ea1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053f5d9
add esp, 0xc
ret 0xc