joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ba20
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0050d9b0
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x808]
mov dword [ebp - 0x100c], 0
push edx
lea edx, [ebp - 0x1010]
mov dword [ebp - 0x1010], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x100c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x45bbbe
mov ecx, dword [ebp - 0x1010]
cmp ecx, 1
jne 0x45bb02
cmp word [ebp - 0x808], ax
jne 0x45bac0
xor ecx, ecx
lea eax, [ebp - 0x808]
push ecx
push eax
mov ecx, edi
call fcn.00405941
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bad0
sub ecx, edx
lea eax, [ebp - 0x808]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00405941
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x45bbb9
push 0x400
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x45bba2
cmp eax, 0x400
ja 0x45bba2
cmp word [ebp - 0x1008], 0
jne 0x45bb64
xor ecx, ecx
lea eax, [ebp - 0x1008]
push ecx
push eax
mov ecx, edi
call fcn.00405941
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1008]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bb70
sub ecx, edx
lea eax, [ebp - 0x1008]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00405941
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8

Function at 0x45bc00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45bc20
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45bf10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push esi
push 0x20019
push 0
push dword [ebp + 0xc]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45bf5b
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x45bf6e
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
dec ecx
mov dword [esi + 4], ecx
test edx, edx
je 0x45bfa4
test ecx, ecx
js 0x45bfa4
lea eax, [ebp - 8]
mov dword [ebp + 0xc], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x45bfaa
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45c550
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [edi + 0x14]
imul ecx, edx, 0x1000193
mov edx, esi
xor ecx, eax
imul eax, ecx, 0x1000193
and edx, eax
cmp dword [edi + 0x18], edx
ja 0x45c5a8
shr esi, 1
or ecx, 0xffffffff
sub ecx, esi
pop edi
pop esi
lea eax, [ecx + edx]
pop ebp
ret 4
pop edi
mov eax, edx
pop esi
pop ebp
ret 4
Function at 0x45ebf0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
call fcn.005026c6
add esp, 4
test eax, eax
je 0x45ec1e
push ecx
mov ecx, eax
call fcn.0045e910
mov dword [0x768cd0], eax
jmp 0x45ec28
mov dword [0x768cd0], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 8], 7
xor eax, eax
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
cmp word [edx], ax
jne 0x45ec4d
xor ecx, ecx
jmp 0x45ec61
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ec52
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00405941
mov ecx, dword [0x768cd0]
lea eax, [ebp - 0x1c]
push eax
call fcn.0045f630
cmp dword [ebp - 8], 8
jb 0x45ec8b
push dword [ebp - 0x1c]
call fcn.0050269b
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret

Function at 0x45f630
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x3c], 0
mov ecx, str._t_n_v_f_r
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], eax
lea edx, [ecx + 2]
mov word [ebp - 0x38], ax
jmp 0x45f680
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f680
sub ecx, edx
sar ecx, 1
push ecx
push str._t_n_v_f_r
lea ecx, [ebp - 0x38]
call fcn.00405941
lea eax, [ebp - 0x20]
push eax
push ecx
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.0045a980
add esp, 8
cmp dword [ebp - 0x24], 8
jb 0x45f6c0
push dword [ebp - 0x38]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x45f6f7
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x3c]
call fcn.0045eca0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 8
jb 0x45f708
push dword [ebp - 0x20]
call fcn.0050269b
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret 4
Function at 0x462340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x462367
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x462362
mov eax, dword [ebx]
jmp 0x462364
mov eax, ebx
mov byte [eax], 0
call fcn.00459f50
test al, al
je 0x462379
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004584a0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x462370
push 0x10000
call fcn.0050283e
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.00502d14
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x46240f
mov eax, dword [ebp + 8]
lea esp, [esp]
test ebx, ebx
je 0x4623e2
sub eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
cmovae ecx, edx
push dword [ecx]
mov ecx, ebx
push esi
call fcn.004051e9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x462425
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.00502d14
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x4623c0
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00507896
add esp, 4
test eax, eax
jne 0x462428
mov byte [ebp - 1], 1
jmp 0x46242c
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.005035e9
add esp, 4
test esi, esi
je 0x462442
push esi
call fcn.005028a5
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, 0x4001
cmp dword [esi + 0x14], 8
jb 0x462536
mov eax, dword [esi]
jmp 0x462538
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x462551
shr eax, 4
and al, 1
mov eax, 0x24001
cmovne edi, eax
mov ecx, dword [0x768f80]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test ecx, ecx
je 0x46257f
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
call dword [eax + 4]
push edi
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], 0
mov word [ebp - 0xc], 0
call fcn.00472150
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4625bb
cmp eax, 0xffffffff
je 0x4625bb
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
push dword [eax + 4]
push dword [eax]
push dword [ebx + 4]
push dword [ebx]
call fcn.004716c0
mov bl, al
jmp 0x4625bd
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.00472000
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x463760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5c2460]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x46392a
cmp byte [ebx + 0x45], 0
je 0x46392a
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4637ad
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
cmp ecx, 0x10
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x14]
mov byte [eax + 8], 0
mov edx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x18]
cmp edx, 0x10
lea esi, [esp + 0x18]
mov edx, dword [ecx]
cmovae edi, dword [esp + 0x18]
cmovae esi, dword [esp + 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x46382a
dec eax
je 0x46382e
mov edx, dword [esp + 0x28]
sub eax, 2
je 0x463903
xor bl, bl
jmp 0x463905
mov byte [ebx + 0x45], 0
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x14]
cmp edx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, ecx
sub esi, eax
je 0x463869
push dword [ebx + 0x50]
cmp edx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.00507a15
mov edx, dword [esp + 0x38]
add esp, 0x10
cmp esi, eax
jne 0x463823
cmp byte [ebx + 0x45], 0
je 0x463903
test esi, esi
jne 0x4637e0
mov ecx, dword [esp + 0x24]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x46393e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x46393e
cmp edx, esi
jae 0x4638e7
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.004055dd
mov edx, dword [esp + 0x28]
test esi, esi
je 0x4637e0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
cmp edx, 0x10
xorps xmm0, xmm0
cmovae ecx, dword [esp + 0x14]
movq qword [eax + ecx], xmm0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x24], esi
cmovae eax, dword [esp + 0x14]
mov byte [esi + eax], 0
jmp 0x4637dc
test esi, esi
jne 0x4638b4
cmp edx, 0x10
mov dword [esp + 0x24], esi
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
mov byte [eax], 0
jmp 0x4637dc
mov bl, 1
cmp edx, 0x10
jb 0x463916
push dword [esp + 0x14]
call fcn.0050269b
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0051feb5
int3
Function at 0x4647b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x16b]
mov byte [ebp - 0x16c], 0
push 0
push eax
mov ebx, edx
mov esi, ecx
call fcn.005091d0
push esi
push 0x5502c0
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x1d0], 0
push 0x104
push eax
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1cc], 0x67452301
mov dword [ebp - 0x1c8], 0xefcdab89
mov dword [ebp - 0x1c4], 0x98badcfe
mov dword [ebp - 0x1c0], 0x10325476
call fcn.00464670
lea ecx, [ebp - 0x16c]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x464843
sub ecx, edx
lea edx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x1d4]
call fcn.0040c8c0
lea ecx, [ebp - 0x1d4]
call fcn.0040c95e
lea ecx, [ebp - 0x1d4]
call fcn.0040c95e
movdqu xmm0, xmmword [ebp - 0x17c]
push 0x40
lea eax, [ebp - 0x64]
push 0
push eax
movdqu xmmword [ebp - 0x20], xmm0
call fcn.005091d0
add esp, 0x10
xor esi, esi
movzx eax, byte [ebp + esi - 0x20]
xorps xmm0, xmm0
push eax
push str._02x
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push 8
push eax
call fcn.00464670
lea eax, [ebp - 0x64]
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4648c0
sub eax, edx
lea ecx, [ebp - 0x10]
mov edx, 0x40
lea edi, [ecx + 1]
sub edx, eax
mov dword [ebp - 0x1d8], edx
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4648e0
sub ecx, edi
lea eax, [ebp - 0x1dc]
cmp ecx, edx
mov dword [ebp - 0x1dc], ecx
lea edi, [ebp - 0x1d8]
cmovge eax, edi
push dword [eax]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x64]
push 0x40
push eax
call fcn.00507c55
inc esi
add esp, 0x10
cmp esi, 0x10
jl 0x464893
test ebx, ebx
je 0x46494b
mov esi, dword [ebp + 8]
push esi
push 0
push ebx
call fcn.005091d0
lea eax, [ebp - 0x64]
push eax
push 0x5502c0
lea eax, [esi - 1]
push eax
push ebx
call fcn.00464670
push esi
push ebx
call fcn.00507c0c
add esp, 0x24
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x464dd0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d14
call fcn.0050d9b0
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x2d10], edx
mov dword [ebp - 0x2d0c], eax
test eax, eax
je 0x464f60
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push edi
push str..PhysicalDrive_d
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.004646e0
add esp, 0x10
lea eax, [ebp - 0x204]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x464f43
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2d14], 0
lea eax, [ebp - 0x2cfc]
movq qword [ebp - 0x2d08], xmm0
push 0
push eax
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x2d08], 0
mov dword [ebp - 0x2d04], 0
call fcn.005091d0
add esp, 0xc
lea eax, [ebp - 0x2d14]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x464f38
push 0x3e8
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.005091d0
mov edx, dword [ebp - 0x2ce4]
lea eax, [ebp - 0x5ec]
add esp, 0xc
push eax
push ecx
lea ecx, [ebp - 0x2cfc]
call fcn.0040bfc6
mov ecx, dword [ebp - 0x2d10]
xor eax, eax
add esp, 8
mov edx, 0x80070057
cmp ecx, 0x7fffffff
cmova eax, edx
test eax, eax
js 0x464f21
push SysReAllocString
lea eax, [ebp - 0x5ec]
mov edx, ecx
push eax
push ecx
mov ecx, dword [ebp - 0x2d0c]
call fcn.00464760
jmp 0x464f2e
test ecx, ecx
je 0x464f2e
mov ecx, dword [ebp - 0x2d0c]
mov byte [ecx], 0
test eax, eax
mov eax, 1
cmove esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x464f4d
inc edi
cmp edi, 0x10
jl 0x464e04
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x4652a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f8
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x4ec], esi
push edi
mov edi, edx
mov dword [ebp - 0x4f0], edi
test esi, esi
je 0x465480
push ebx
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.005091d0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x4e0]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x465453
xor esi, esi
mov dword [ebp - 0x4e4], 0x104
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push esi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x46543f
lea esp, [esp]
lea eax, [ebp - 0x4e8]
push eax
push 1
push 0
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e0]
call ebx
test eax, eax
jne 0x465409
lea eax, [ebp - 0x4f4]
mov dword [ebp - 0x4f8], 1
push eax
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x4f4], 0x208
push eax
lea eax, [ebp - 0x4f8]
push eax
push 0
push 0x5502e0
push dword [ebp - 0x4e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x465401
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.005091d0
add esp, 8
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x4dc]
call fcn.00465180
add esp, 4
test eax, eax
je 0x465401
cmp byte [ebp - 0x68], 0
je 0x4653e7
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x465401
push SysReAllocString
lea eax, [ebp - 0xcc]
mov edx, 0x64
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00464760
push dword [ebp - 0x4e8]
call edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4e4]
mov dword [ebp - 0x4e4], 0x104
push eax
lea eax, [ebp - 0x2d4]
inc esi
push eax
push esi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x465340
push dword [ebp - 0x4e0]
call edi
mov esi, dword [ebp - 0x4ec]
mov edi, dword [ebp - 0x4f0]
cmp byte [ebp - 0x68], 0
pop ebx
je 0x465480
lea eax, [ebp - 0x68]
mov edx, edi
push eax
mov ecx, esi
call fcn.00464630
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x4656f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x465828
push 0x400
lea eax, [ebp - 0x508]
mov dword [ebp - 0x510], 1
push 0
push eax
mov dword [ebp - 0x50c], 0x400
call fcn.005091d0
add esp, 0xc
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x510]
push eax
push 0x5502d4
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x465828
lea ecx, [ebp - 0x508]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x465773
sub ecx, edx
cmp ecx, 0x40
jne 0x465828
push 0x20
lea eax, [ebp - 0x508]
push eax
push ecx
lea edx, [ecx + 0x40]
lea ecx, [ebp - 0x88]
call fcn.00464760
push SysReAllocString
lea eax, [ebp - 0x4e8]
mov edx, 0x80
push eax
push ecx
lea ecx, [ebp - 0x108]
call fcn.00464760
push 0x400
lea eax, [ebp - 0x508]
push 0
push eax
call fcn.005091d0
add esp, 0xc
lea edx, [ebp - 0x508]
lea ecx, [ebp - 0x88]
push 0x400
call fcn.004647b0
add esp, 4
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x465828
lea eax, [ebp - 0x88]
mov edx, 0x80
push eax
mov ecx, esi
call fcn.00464630
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret

Function at 0x467aa0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x467ab2
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x467ac9
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.00507e7d
mov esi, eax
add esp, 8
test esi, esi
je 0x467b42
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x467b39
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x467b39
cmp dword [ebp - 4], 0
je 0x467b39
push 0x10
call fcn.005026c6
add esp, 4
test eax, eax
je 0x467b42
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.004679e0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00502847
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467de0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.005038e8
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x467eb4
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x467ece
cmp esi, 8
jb 0x467e50
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x467ef8
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.00405941
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x467f00
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00405941
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8