joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445400
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x49f1f0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor ebx, ebx
push 0xffffffffffffffff
mov edi, 7
push ebx
mov eax, ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.00401b70
mov dword [esp + 0x5c], ebx
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
call fcn.00401b70
push 0x5c
push 0x2f
lea edi, [esp + 0x20]
mov byte [esp + 0x64], 1
call fcn.00404060
push 0x5c
push 0x2f
lea edi, [esp + 0x44]
call fcn.00404060
mov edi, dword [esp + 0x2c]
add esp, 0x10
cmp dword [esp + 0x30], 8
jae 0x4454a7
lea edi, [esp + 0x1c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4454c2
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
cmp al, bl
jne 0x4454e0
mov eax, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x4454d5
lea eax, [esp + 0x1c]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
jmp 0x4454e5
mov edi, 8
push esi
mov ecx, ebp
call fcn.0044c800
add esp, 4
cmp dword [esp + 0x4c], edi
mov byte [esp + 0x17], al
jb 0x445507
mov eax, dword [esp + 0x38]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x30], edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x44552b
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0045a870
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00478599
add esp, 0x50
ret
Function at 0x448580
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ca61
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push 0
push 0x4c49d0
push 0x4c49b8
push 0
push eax
call fcn.0047aa10
mov ebx, dword [eax + 0x18]
add esp, 0x14
lea edi, [esp + 0x20]
call fcn.00434010
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
lea esp, [esp]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4486e7
mov esi, dword [esp + 0x28]
sub esi, eax
sar esi, 2
cmp dword [esp + 0x40], esi
jae 0x4486da
push 0x64
call fcn.0045a845
add esp, 4
cmp eax, ebx
je 0x44863d
mov ecx, 7
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ebx
mov word [eax + 0x20], bx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x4c], ebx
mov word [eax + 0x3c], bx
mov dword [eax + 0x58], ebx
mov dword [eax + 0x5c], ebx
mov dword [eax + 0x60], ebx
mov edi, eax
jmp 0x44863f
xor edi, edi
cmp dword [esp + 0x40], esi
mov byte [esp + 0x38], bl
mov dword [esp + 0x44], edi
jb 0x448652
call fcn.00478a25
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov eax, dword [ecx + edx*4]
push ebx
push 0x4c49d0
push 0x4c49b8
push ebx
push eax
call fcn.0047aa10
add esp, 0x14
push eax
push edi
call fcn.00448960
mov eax, dword [ebp + 4]
cmp eax, ebx
jne 0x448684
xor edx, edx
jmp 0x44868c
mov edx, dword [ebp + 8]
sub edx, eax
sar edx, 2
cmp eax, ebx
je 0x4486b1
mov ecx, dword [ebp + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x4486b1
mov eax, dword [ebp + 8]
mov dword [eax], edi
add eax, 4
add dword [esp + 0x40], 1
mov dword [ebp + 8], eax
jmp 0x4485e0
mov esi, dword [ebp + 8]
cmp eax, esi
jbe 0x4486bd
call fcn.00478a25
push esi
push ebp
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, ebp
call fcn.00444fa0
add dword [esp + 0x40], 1
jmp 0x4485e0
cmp eax, ebx
je 0x4486e7
push eax
call fcn.0045a870
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x44e300
Capabilities:
Send icmp echo request

Disassembly:
sub esp, 0x18
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov ebx, 3
call sub.iphlpapi.dll_IcmpCreateFile
mov edi, eax
cmp edi, 0xffffffff
jne 0x44e33a
pop edi
pop ebp
or eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00478599
add esp, 0x18
ret
mov eax, dword [0x4ad65c]
mov ecx, dword [0x4ad660]
mov edx, dword [0x4ad664]
push esi
push 0x28
mov byte [esp + 0x14], 0x32
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call fcn.004795c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x44e3a0
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00478599
add esp, 0x18
ret
mov edx, dword [ebp]
push 0x3e8
push 0x28
push esi
lea eax, [esp + 0x1c]
push eax
push 0xc
lea ecx, [esp + 0x2c]
push ecx
push edx
push edi
call sub.iphlpapi.dll_IcmpSendEcho
test eax, eax
jne 0x44e3e8
sub ebx, 1
jne 0x44e3a0
or edi, 0xffffffff
push esi
call fcn.004797af
mov ecx, dword [esp + 0x28]
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00478599
add esp, 0x18
ret
test ebx, ebx
jbe 0x44e3c7
xor eax, eax
cmp dword [esi + 4], eax
sete al
mov edi, eax
jmp 0x44e3ca

Function at 0x44e400
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push esi
push ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x12], ax
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e451
or eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00478599
add esp, 0x14
ret
push 0x10
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x44e476
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00478599
add esp, 0x14
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00478599
add esp, 0x14
ret
Function at 0x44e930
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x49b788
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call fcn.0046242d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x44e970
push 0x80004005
call fcn.00424490
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.0044e780
add esp, 4
test al, al
jne 0x44e9dc
or ebx, 0xffffffff
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44e9c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
cmp dword [esp + 0x14], 1
jne 0x44ea1f
or ebx, 0xffffffff
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x44ea07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov esi, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x18]
call fcn.0044ded0
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ea5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x44ea76
lea eax, [esi - 0x10]
mov dword [esp + 0x24], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x44e9bb
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x18]
push eax
call fcn.0044e400
mov edi, eax
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x24], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x44eaa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x454210
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x23
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x454256
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00478599
add esp, 0x20c
ret
lea eax, [esp + 4]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454260
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00401c20
push 0x37
push str.Canon_Inc_ICAutoUpdateCanonAutoUpdateLog_v_2_0_0.dat
mov ecx, esi
call fcn.004035d0
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
mov al, 1
call fcn.00478599
add esp, 0x20c
ret

Function at 0x4542a0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push 0x20
mov esi, eax
call fcn.0045a845
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4542d4
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], vtable.CXMLElement.0
mov dword [eax + 0x10], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], ebx
mov edi, eax
jmp 0x4542d6
xor edi, edi
mov eax, dword [edi]
mov edx, dword [eax + 4]
push str.AutoUpdateInfo
mov ecx, edi
mov dword [edi + 4], 2
call edx
cmp dword [esi + 0x14], ebx
je 0x454312
cmp dword [esi + 0x18], 8
jb 0x4542fb
mov eax, dword [esi + 4]
jmp 0x4542fe
lea eax, [esi + 4]
push eax
push str.Region
call fcn.00454160
add esp, 8
push eax
call fcn.00453bd0
cmp dword [esi + 0x30], ebx
je 0x454339
cmp dword [esi + 0x34], 8
jb 0x454322
mov esi, dword [esi + 0x20]
jmp 0x454325
add esi, 0x20
push esi
push str.Country
call fcn.00454160
add esp, 8
push eax
call fcn.00453bd0
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x454340
Capabilities:
Get geographical location

Disassembly:
test eax, eax
push esi
jne 0x45434c
mov eax, 3
pop esi
ret
push 0
push 0x4c49d0
push 0x4c49b8
push 0
push eax
call fcn.0047aa10
add esp, 0x14
mov esi, eax
push str.Region
push esi
call fcn.00453c50
test eax, eax
je 0x454388
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00401b70
push str.Country
push esi
call fcn.00453c50
test eax, eax
je 0x4543ac
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x1c]
call fcn.00401b70
xor eax, eax
pop esi
ret
Function at 0x457ab0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x98
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x90], eax
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push eax
mov esi, ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0xc]
push 0xa
push 0x32
lea ecx, [esp + 0x30]
shr eax, 0x14
push ecx
push eax
call fcn.0047a528
lea eax, [esp + 0x38]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
add esp, 0x10
mov word [esi + 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457b30
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00401c20
mov ecx, dword [esp + 0x94]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00478599
add esp, 0x98
ret

Function at 0x457b70
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x298], eax
push esi
push 0x104
lea eax, [esp + 0x94]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x2c], 0
call fcn.0047dfc0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 3
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x4ac1dc
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0xa
shrd eax, ecx, 0x14
push 0x32
lea edx, [esp + 0x30]
push edx
push eax
shr ecx, 0x14
call fcn.0047a528
lea eax, [esp + 0x38]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
add esp, 0x10
mov word [esi + 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457c34
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00401c20
mov ecx, dword [esp + 0x29c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00478599
add esp, 0x2a0
ret
Function at 0x457c70
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x298], eax
push esi
push 0x104
lea eax, [esp + 0x94]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x2c], 0
call fcn.0047dfc0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 3
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x4ac1dc
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0xa
shrd eax, ecx, 0x14
push 0x32
lea edx, [esp + 0x30]
push edx
push eax
shr ecx, 0x14
call fcn.0047a528
lea eax, [esp + 0x38]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
add esp, 0x10
mov word [esi + 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457d34
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00401c20
mov ecx, dword [esp + 0x29c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00478599
add esp, 0x2a0
ret

Function at 0x457d70
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x49a178
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.0046242d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x457de9
push 0x80004005
call fcn.00424490
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], ebx
call fcn.004248a0
movzx ecx, word [esp + 0x36]
push ecx
lea edx, [esp + 0x14]
push str.0x_04X
push edx
call fcn.0042a630
mov edi, dword [esp + 0x1c]
mov eax, edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
add esp, 0xc
mov word [esi + 4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x457e35
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401c20
lea eax, [edi - 0x10]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457e6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x458460
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x49a0bb
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
xor ebx, ebx
push 0x11c
lea eax, [esp + 0x1c]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x20], ebx
call fcn.0047dfc0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [esp + 0x14], ebx
call fcn.0046242d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4584e6
push 0x80004005
call fcn.00424490
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x140], ebx
call fcn.004248a0
mov eax, dword [esp + 0x1c]
cmp eax, 6
jb 0x45854d
movzx edx, word [esp + 0x12e]
lea ecx, [esp + 0x14]
push ecx
movzx ecx, word [esp + 0x130]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
call dword [0x4c862c]
movzx eax, byte [esp + 0x132]
push eax
lea ecx, [esp + 0x14]
push str.0x_08X
push ecx
call fcn.0042a630
add esp, 0xc
mov edi, dword [esp + 0x10]
mov eax, edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x458564
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401c20
lea eax, [edi - 0x10]
mov dword [esp + 0x140], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4585a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.00478599
add esp, 0x134
ret

Function at 0x4585d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x10], 0
call fcn.0047dfc0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 8]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458630
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00401c20
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00478599
add esp, 0x210
ret
Function at 0x458670
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x49a088
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x10], ebx
call fcn.0046242d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4586b6
push 0x80004005
call fcn.00424490
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebx
call fcn.004248a0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
push ecx
lea edx, [esp + 0x14]
push str.0x_04X
push edx
call fcn.0042a630
mov edi, dword [esp + 0x1c]
mov eax, edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
add esp, 0xc
mov word [esi + 4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x458706
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401c20
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x458760
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x49a088
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x10], ebx
call fcn.0046242d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4587a6
push 0x80004005
call fcn.00424490
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebx
call fcn.004248a0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
push ecx
lea edx, [esp + 0x14]
push str.0x_04X
push edx
call fcn.0042a630
mov edi, dword [esp + 0x1c]
mov eax, edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
add esp, 0xc
mov word [esi + 4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4587f6
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401c20
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458830
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret