joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480220
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f136f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x52f068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 4]
push eax
lea ecx, [eax + 0x94]
call fcn.00480900
mov esi, dword [edi + 4]
add esp, 4
sub esi, 0x94
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.004027f0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004027f0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004027f0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004027f0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004027f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add dword [edi + 4], 0xffffff6c
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x480ed0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f155f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x52f068]
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.004027f0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004027f0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004027f0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004027f0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004027f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4821b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f16ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x52f068]
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.00404060
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00404060
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00404060
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00404060
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.00404060
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00404060
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 0x484df0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x52f068]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004b906a
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004bbb00
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x484e4c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004b9059
add esp, 0x120
ret
Function at 0x48a6a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x48a6d8
mov edx, dword [esp + 4]
test edx, edx
je 0x48a6d8
cmp dword [eax], 0xffffffff
je 0x48a6d8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48a6d8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x48a6e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x48a71a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x48a71a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x48a71a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48a71a
cmp edi, dword [esi]
jne 0x48a71a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x48a760
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x52f068]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x48a7c3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x48a7c3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48a79e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48a7c3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004b9059
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004b9059
add esp, 8
ret 4
Function at 0x48b660
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2996
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x52f068]
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 0x48b73e
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 0x48b75c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b97b5
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 0x48b72a
cmp eax, ebx
ja 0x48b72a
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x818], ebx
jmp 0x48b78a
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48b73e
push edi
call fcn.004b97b0
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.004b9059
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x48b815
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x48b815
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x48b7fa
mov esi, dword [ebp - 0x81c]
mov ebx, 2
mov eax, dword [ebp - 0x818]
cmp word [esi + ebx - 2], 0
jne 0x48b7ec
cmp ecx, edi
je 0x48b7ec
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.00402800
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.0040a1f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.004027f0
mov eax, dword [ebp - 0x818]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x48b7a3
mov esi, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x48b80e
push esi
call fcn.004b97b0
add esp, 4
mov al, 1
jmp 0x48b740
call fcn.004b96d6
int3
Function at 0x48e900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3228
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x52f068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.0048a7e0
test al, al
jne 0x48e960
mov eax, 1
jmp 0x48eadd
push 0x10000
call fcn.004b97b5
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.004bbb00
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x48eab6
test ebx, ebx
je 0x48eab6
cmp dword [eax], 0xffffffff
je 0x48eab6
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48eab6
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x48eaac
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.004b2530
test al, al
je 0x48ea9f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x48ea52
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x48ea41
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x48eaac
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x48ea5c
add ebx, eax
cmp ebx, 0x8000
je 0x48ea6c
cmp dword [ebp - 0x28], 0xf
ja 0x48ea95
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x48e9f0
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x48ea8e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x48ea76
mov esi, 4
jmp 0x48eac7
mov esi, 5
jmp 0x48eac7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x48eac7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x48eac1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x48eac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x48eadb
push ebx
call fcn.004b97b0
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.004b9059
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48eb00
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3268
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x52f068]
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
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], 0
call fcn.00405530
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
push 0x50f5f4
lea ecx, [ebp - 0x58]
mov dword [edi + 0xb4], 0
call fcn.00405670
mov byte [ebp - 4], 2
lea eax, [edi + 0x40]
push ecx
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [edi + 0x58]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push dword [ebp + 0x10]
push eax
push dword [ebx + 4]
call fcn.004b12f0
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00405620
test bl, bl
jne 0x48ebc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x48ec7e
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push ecx
push eax
push 0x13
mov ecx, ebx
mov dword [ebp - 0x14], 0
call fcn.0042da90
test al, al
jne 0x48ebf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x48ec7e
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xb4], eax
cmp eax, 0xc8
je 0x48ec6b
cmp eax, 0xce
je 0x48ec6b
cmp eax, 0x12e
jne 0x48ec9f
mov ecx, 0x400
mov dword [ebp - 0x34], ecx
test esi, esi
jne 0x48ec33
push 0x800
call fcn.004b97b5
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x34]
add ecx, ecx
push ecx
push 0
push esi
call fcn.004bbb00
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
push esi
push 0x21
call fcn.0042db00
test al, al
je 0x48ec9f
push esi
call fcn.00402af0
add esp, 4
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004028e0
mov ebx, dword [ebp - 0x38]
jmp 0x48ec8f
cmp dword [ebp + 0x14], 0
ja 0x48ec77
cmp dword [ebp + 0x10], 0
jbe 0x48eca3
cmp eax, 0xce
je 0x48eca3
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 4], 0
je 0x48ec9f
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp eax, 3
jb 0x48eb63
xor bl, bl
jmp 0x48ecaf
mov dword [edi + 0xb0], 0
mov bl, 1
mov byte [ebp - 4], 0
test esi, esi
je 0x48ecc0
push esi
call fcn.004b97b0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004027f0
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 - 0x10]
xor ecx, ebp
call fcn.004b9059
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48f7b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7128
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52f068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x48f7e7
xor al, al
jmp 0x48f84a
and esi, 0xffffb1af
push esi
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x48f802
mov al, 1
jmp 0x48f84a
lea ecx, [ebp - 0x28]
call fcn.00402850
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0048ffd0
test al, al
je 0x48f837
push esi
lea ecx, [ebp - 0x28]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x48f837
mov bl, 1
jmp 0x48f839
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9059
mov esp, ebp
pop ebp
ret

Function at 0x48f870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7128
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52f068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48f8ee
lea ecx, [ebp - 0x28]
call fcn.00402850
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0048ffd0
test al, al
je 0x48f8dd
lea ecx, [ebp - 0x28]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9059
mov esp, ebp
pop ebp
ret
Function at 0x48fa20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3488
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x52f068]
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 esi, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.004027b0
push eax
mov ecx, edi
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x48fa72
mov al, 1
jmp 0x48fb60
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.00402850
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.0048ffd0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.00402850
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0048ffd0
test al, al
jne 0x48fab8
test bl, bl
je 0x48fad6
push 0xb
lea ecx, [ebp - 0x40]
call fcn.004027b0
push eax
lea ecx, [ebp - 0x58]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x48fb2a
mov ecx, esi
call fcn.0048f870
cmp eax, 0xffffffff
je 0x48fb41
push esi
lea ecx, [ebp - 0x28]
call fcn.00405530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0048fd90
test al, al
je 0x48fb35
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0048f910
test al, al
je 0x48fb35
mov edx, esi
mov ecx, edi
call fcn.0048f910
lea ecx, [ebp - 0x28]
test al, al
je 0x48fb2e
call fcn.0048fb80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004027f0
mov bl, 1
jmp 0x48fb43
mov edx, esi
call fcn.0048f910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004027f0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004027f0
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 - 0x10]
xor ecx, ebp
call fcn.004b9059
mov esp, ebp
pop ebp
ret
Function at 0x48fb80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f34d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x52f068]
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 esi, ecx
call fcn.004027b0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x48fbc6
mov al, 1
jmp 0x48fcbb
mov ecx, esi
call fcn.004027b0
push eax
lea ecx, [ebp - 0x28]
call fcn.00402800
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0048f870
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
cmp ebx, 0xffffffff
jne 0x48fc05
xor al, al
jmp 0x48fcbb
mov ecx, esi
call fcn.004027b0
push eax
lea ecx, [ebp - 0x28]
call fcn.00402800
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.0048f7b0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
test bl, bl
je 0x48fbfe
mov ecx, esi
call fcn.004027b0
push eax
call edi
test eax, eax
jne 0x48fbbf
lea ecx, [ebp - 0x28]
call fcn.00402850
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0048ffd0
test al, al
je 0x48fc7d
lea ecx, [ebp - 0x28]
call fcn.004027b0
push eax
call edi
test eax, eax
je 0x48fc7d
mov bl, 1
jmp 0x48fcaa
mov ecx, esi
call fcn.004027b0
push eax
lea ecx, [ebp - 0x44]
call fcn.00402800
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.0048f7b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.004027f0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
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 - 0x10]
xor ecx, ebp
call fcn.004b9059
mov esp, ebp
pop ebp
ret

Function at 0x48fce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x52f068]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.004bbb00
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.004027b0
push eax
mov ecx, edi
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x48fd75
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.00402af0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004028e0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004b9059
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b9059
add esp, 0x210
ret
Function at 0x493930
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x52f068]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
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 byte [esi], 0
call fcn.004bbb00
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4939c7
cmp dword [esp + 8], 6
jb 0x4939c7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004b9059
add esp, 0x118
ret

Function at 0x4939e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3a80
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x52f068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.00402800
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0047e920
mov ecx, eax
call fcn.0047e9e0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00402800
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.0047e920
mov ecx, eax
call fcn.0047e9e0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004027f0
test ebx, ebx
je 0x493af5
test esi, esi
je 0x493af5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x498760
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f136f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x52f068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
push 0x94
call fcn.004020b0
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x10], edi
push esi
call fcn.00405530
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.00405530
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00405530
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00405530
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.00405530
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00405530
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49a300
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x52f068]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x49a365
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49a340
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49a365
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004b9059
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004b9059
add esp, 8
ret 4