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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00527873
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x527a66
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x527a66
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x527a1b
jg 0x527953
test eax, eax
je 0x527a11
push 1
push 0x1000
call fcn.00525e49
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x527976
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x527a08
push 0x8000
push ebx
call fcn.0051e820
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x52799f
jg 0x52799a
cmp ecx, 0x1000
jb 0x52799f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005213e4
add esp, 0x10
cmp eax, 0xffffffff
je 0x5279e4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x52799a
jl 0x5279cb
test ecx, ecx
jne 0x52798c
push dword [ebp - 0xc]
push ebx
call fcn.0051e820
push esi
call fcn.0052442b
add esp, 0xc
xor ebx, ebx
jmp 0x527a74
cmp byte [edi + 0x24], 0
je 0x5279fb
cmp dword [edi + 0x20], 5
jne 0x5279fb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x527a06
mov ebx, dword [edi + 0x18]
jmp 0x527a08
xor ebx, ebx
push esi
call fcn.0052442b
pop ecx
jmp 0x527a74
test ecx, ecx
jg 0x5279dd
jl 0x527a1b
test eax, eax
jae 0x5279dd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0051c6a6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x527a3b
cmp byte [edi + 0x1c], 0
je 0x5279dd
jmp 0x527a6c
push ebx
call fcn.00527809
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5279dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x527a74
cmp byte [edi + 0x1c], 0
je 0x527a71
mov ebx, dword [edi + 0x18]
jmp 0x527a74
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0051c6a6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x529504
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x56c3f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x52954f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0052969f
test al, al
jne 0x529549
sub edx, 2
cmp edx, edi
jne 0x52952f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x529571
lea eax, [edi + 2]
cmp edx, eax
je 0x529571
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00529450
add esp, 0x10
jmp 0x52966b
push esi
lea ecx, [ebp - 0x255]
call fcn.0052969f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5295b4
push dword [ebp - 0x25c]
jmp 0x529561
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5295f1
cmp word [ebp - 0x226], 0
je 0x529612
cmp word [ebp - 0x226], ax
jne 0x5295f1
cmp word [ebp - 0x224], 0
je 0x529612
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00529450
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x52965e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5295cb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x529646
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x52966b
push 0x529280
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00519790
add esp, 0x10
jmp 0x52963b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504c38
leave
ret

Function at 0x529f81
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x529f92
pop esi
ret
push ebx
push edi
push esi
call fcn.00529f4a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005244ce
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x529fba
push ebx
push esi
push edi
call fcn.00506e30
add esp, 0xc
push 0
call fcn.0052442b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x52a38a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00529fcf
Function at 0x52c912
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00523fb9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x52c981
cmp esi, dword [ebp - 4]
je 0x52c97c
cmp dword [ebp + 0xc], 0
je 0x52c97c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x52c959
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0052c464
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x52c983
xor eax, eax
inc eax
jmp 0x52c983
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x52c9e8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x56c3f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00523fb9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00523fb9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x52ca5f
cmp word [ecx], dx
je 0x52ca5f
mov eax, dword [0x55a584]
push edi
dec eax
push eax
push 0x55a470
call fcn.0052c987
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x52cad2
cmp word [eax], dx
je 0x52cad2
mov eax, dword [edi]
test eax, eax
je 0x52ca83
cmp word [eax], dx
je 0x52ca83
lea eax, [ebp - 0x10]
push eax
call fcn.0052c36a
jmp 0x52ca8c
lea eax, [ebp - 0x10]
push eax
call fcn.0052c405
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x52cafc
mov eax, dword [0x55a46c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x55a160
call fcn.0052c987
add esp, 0xc
test al, al
je 0x52cafc
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x52cac7
cmp word [eax], di
je 0x52cac7
lea eax, [ebp - 0x10]
push eax
call fcn.0052c36a
pop ecx
jmp 0x52cafe
lea eax, [ebp - 0x10]
push eax
call fcn.0052c405
jmp 0x52cac4
mov eax, dword [edi]
test eax, eax
je 0x52cae9
cmp word [eax], dx
je 0x52cae9
lea eax, [ebp - 0x10]
push eax
call fcn.0052c31f
pop ecx
jmp 0x52cafc
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x52cbc7
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0052c80c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x52cbc7
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x52cbc7
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x52cbc7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x52cb54
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005265b9
test ebx, ebx
je 0x52cbc2
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005265b9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x52cbc7
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x52cbc7
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0051cf11
add esp, 0x10
xor eax, eax
inc eax
jmp 0x52cbc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504c38
leave
ret
Function at 0x530cdb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x56c3f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x530d1e
call fcn.0050b6ee
mov dword [eax], 0xf
call fcn.0050b701
mov dword [eax], 0xd
call fcn.0050b39f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00504c38
leave
ret
test eax, eax
jne 0x530d25
inc eax
jmp 0x530d12
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x530d10
xor eax, eax
cmp ecx, 1
setne al
jmp 0x530d12

Function at 0x531e70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x531e9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x531e9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1a174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x1a17a6
cmp eax, 0xffffffff
je 0x1a17a6
cmp dword [ebp + 8], ebx
je 0x1a17a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1af302
cmp esi, dword [ebp - 4]
jne 0x1af31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x1a179e

Function at 0x1a227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x1b621c
call fcn.001a1350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x1bb458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.001a2097
test eax, eax
jne 0x1a23c4
lea eax, [ebp - 0x20]
push eax
push dword [0x1bb45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.001a23dc
test eax, eax
jne 0x1a23c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.001a13e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x1a23c4
lea eax, [ebp - 0x20]
push eax
push dword [0x1bb45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.001a23dc
test eax, eax
jne 0x1a23bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x1a23bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.001a13e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1a23bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x1a23b2
cmp dword [ebp + 8], ebx
je 0x1aea08
push dword [0x1bb460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.001a13e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x1a23b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.001a21cb
push dword [0x1bb460]
push edi
push dword [ebp - 0x18]
call fcn.001a2436
push dword [ebp - 0x14]
call fcn.001a13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.001a13c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.001a1f10
mov eax, dword [ebp - 0x18]
call fcn.001a1390
ret 4
Function at 0x1a23dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x1a242c
cmp dword [ebp - 4], 2
ja 0x1ae965
mov ecx, dword [edi]
test cl, 1
jne 0x1a242c
cmp esi, ebx
je 0x1a2425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x1a242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x1a2425

Function at 0x1a24ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x1b6b05
call fcn.001a1350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x1a2519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x1a265b
cmp dword [ebp + 0xc], edi
je 0x1a265b
push 1
call fcn.001a227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x1a264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.001a13e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1a259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.001a21cb
mov ebx, eax
test ebx, ebx
jl 0x1a259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.001a2436
mov ebx, eax
test ebx, ebx
jl 0x1a259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x1a2632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.001a13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1a2654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.001a21cb
mov ebx, eax
test ebx, ebx
jl 0x1a2623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.001a2436
mov ebx, eax
test ebx, ebx
jl 0x1a2623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x1a2623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1af3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x1a2632
push dword [ebp - 0x14]
call fcn.001a13c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x1a2641
push dword [ebp - 0x18]
call fcn.001a13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.001a13c0
pop ecx
mov eax, ebx
call fcn.001a1390
ret 8
mov ebx, 0x8007000e
jmp 0x1a25fe
mov ebx, 0x80070057
jmp 0x1a264a
Function at 0x1a3a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1a3ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1a3ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1a3ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0x1ae30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0x1a4267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x1bb00c], esi
jne 0x1a42be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1a2c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1bb00c], eax
cmp eax, esi
je 0x1ae4ec
push 0xffffffffffffffff
push dword [0x1bb014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x1bb014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x1bb018], esi
jl 0x1ae50a
pop esi
leave
ret

Function at 0x1a4441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1a4498
call fcn.001a2712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1a4490
cmp ecx, 0xffffffff
je 0x1a4490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1a4489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x1a4489
cmp edx, 0x10000000
jae 0x1a4489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x1ae892
mov dword [ebp - 4], 0xfffffffe
call fcn.001a2757
ret 4

Function at 0x1a681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1bb004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x1a6933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x1aed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.001a21cb
test eax, eax
jl 0x1a6932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x1a68c3
push 0x1a6994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.001a2436
test eax, eax
jl 0x1a6932
push 0x1a6980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.001a2436
test eax, eax
jl 0x1a6932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x1aed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1a6970
push eax
call edi
push 0x1a695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x1a6948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x1a6940
cmp dword [esi + 0x34], 0
je 0x1a6940
test eax, eax
je 0x1a6940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.001a20d4
leave
ret
mov eax, 0x8007007f
jmp 0x1a6932
Function at 0x1a71f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x1b608c
call fcn.001a39dd
lea ecx, [ebp - 0x34]
call fcn.001a6c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.001a758b
test eax, eax
jl 0x1a722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.001a72a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x1a7298
cmp ax, si
jne 0x1ae4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.001a1451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.001a758b
mov esi, eax
test esi, esi
jl 0x1a7280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.001a72a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.001a760b
mov eax, esi
call fcn.001a2b9f
ret

Function at 0x1a791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x1adc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x1a7900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x1a79a8
push 1
lea ecx, [ebp - 0x20]
call fcn.001a79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x1a78ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.001a71e0
cmp esi, ebx
jl 0x1a79a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x1a7992
push 0x24
mov eax, 0x1b5c85
call fcn.001a26dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x1a7854
push 1
lea ecx, [ebp - 0x20]
call fcn.001a79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x1a3984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x1a79a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x1a79d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.001a7455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.001a71e0
mov eax, esi
call fcn.001a1390
ret 0xc
Function at 0x1a7b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x1b5fc0
call fcn.001a39dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.001a7c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x1a7b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x1a7b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x1a7b5b
inc esi
cmp esi, edi
jb 0x1a7b46
cmp esi, edi
jb 0x1a7c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x1a7c0e
cmp word [edx], 0x30
jne 0x1a7b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x1a7b6f
cmp eax, edi
jae 0x1a7c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1a7b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x1a7c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x1a7c03
movzx eax, ax
movzx eax, ax
push eax
push 0x1a7c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.001a1451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.001a6c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.001a760b
mov eax, dword [ebp - 0x54]
call fcn.001a2b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x1a7bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x1a7be9