joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006950
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x100310c0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, ecx
mov esi, dword [eax + 4]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edx
xor edi, edi
or esi, 0x2001f
push esi
push edi
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x100069d5
xor eax, eax
cmp ecx, edi
je 0x100069bd
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov ebx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
cmp eax, edi
je 0x100069f9
cmp ecx, edi
je 0x100069e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1001475c
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x10006a5b
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
call fcn.10006950
mov ebx, eax
cmp ebx, edi
jne 0x10006aa9
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x10006a21
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x10006a6e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
call fcn.10006790
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x10006a90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1001475c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x10006ab8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1001475c
mov esp, ebp
pop ebp
ret 4
Function at 0x10006f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100267e6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100310c0]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, edi
jne 0x10007010
call fcn.10006420
mov edi, eax
jmp 0x10007129
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x1000702f
call fcn.10006420
jmp 0x10007120
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x1000704b
call fcn.10006420
jmp 0x10007120
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x1000706c
mov edi, 0x8007000e
jmp 0x10007122
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x10007081
cmp eax, 0xffffffff
jbe 0x1000708b
push 0x80070216
call fcn.10003c10
cmp eax, 0x400
jbe 0x100070bd
lea ecx, [ebp - 0x418]
push ecx
call fcn.1000e5e0
jmp 0x100070c9
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, edi
jne 0x100070e1
mov edi, 0x8007000e
jmp 0x10007122
push ebx
push eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x100070ff
call fcn.10006420
jmp 0x10007120
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x42c]
call fcn.10007d00
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x10007142
lea eax, [ebp - 0x418]
call fcn.1000e410
mov eax, edi
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.1001475c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100152ba
Capabilities:
Encode data using xor

Disassembly:
cmpsb byte [esi], byte es:[edi]
add bh, bl
sahf
mov dh, 0xf5
neg dword [ebx + ebp*8]
outsd dx, dword [esi]
adc esi, dword [esi]
invalid
xor byte [ecx - 0x6aa41474], cl
mov ebx, gs
pop ebx
xchg ebp, eax
fmul qword [edx + 0x2f]
dec edx
das
jo 0x100152c1
push esi
aas
jge 0x10015286
fist dword [ecx + esi*2 - 0x1b]
mov ebp, 0x8b530bbd
adc eax, 0xebfdd8b3
outsb dx, byte [esi]
adc ebx, dword [ecx - 0x76]
call 0x3ef1c063
cmpsd dword [esi], dword es:[edi]
test ecx, esp
xchg edx, eax
mov ecx, 0x855bfba3
pop ecx
div dword [ecx]
lahf
pop ds
mov eax, 0xdc36767e
sbb dword [edi + 0x51], ebp
test dword [ecx - 9], ebx
xor dword [edi + 0x767eb81f], ebx
fcomp qword ss:[ecx]
outsd dx, dword [esi]
push ecx
jno 0x100152e9
arpl word [edx + 0x7b], bp
loop 0x100152bc
into
arpl word [ebx], sp
outsd dx, dword [esi]
cmp byte [eax], bh
leave
or eax, 0x1687338a
fdiv qword [esi - 0x1ec3f48b]
aas
cmpsd dword [esi], dword es:[edi]
add eax, 0x3592de7
pop ecx
sbb byte [ebx - 0x1529c3dd], ah
fistp dword [edx + 0x54f196e1]
pop esi
div byte [edi - 0x39df3cf1]
or al, 0xba
cli
xor eax, ecx
stosd dword es:[edi], eax
outsd dx, dword [esi]
pop ss
outsd dx, dword [esi]
pop ds
inc edi
insd dword es:[edi], dx
sbb al, dl
cld
jle 0x10015357
mov dh, byte [edi]
shl ebx, cl
test dword [ebp + 0x70263df7], 0xb7203832
sbb eax, 0x4627593d
salc
imul esi, esi, 0xb7231ef0
dec eax
mov bh, 0x48
sti
sahf
mov dh, 0x4e
aaa
iretd
Function at 0x1005318
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1012d80]
mov dword [ebp - 4], eax
mov eax, dword [0x101220c]
cmp eax, 0xffffffff
je 0x100533c
test eax, eax
setne al
jmp 0x10053a6
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x100539d
cmp dword [ebp - 0x114], 5
jb 0x100539d
and dword [ebp - 0x11c], 0
push 0
push 4
lea eax, [ebp - 0x11c]
push eax
push 0x1a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x101245c]
test eax, eax
jl 0x100539d
cmp dword [ebp - 0x11c], 0
je 0x100539d
xor eax, eax
inc eax
mov dword [0x101220c], eax
jmp 0x10053a6
and dword [0x101220c], 0
xor al, al
mov ecx, dword [ebp - 4]
call fcn.0100f1d6
leave
ret

Function at 0x100628a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1012d80]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
mov byte [ebp - 0x205], 1
xor ebx, ebx
jmp 0x100634d
mov eax, dword [esi]
add esi, 4
push dword [esi]
mov dword [ebp - 0x20c], ebx
push eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.01005a9e
add esp, 0x10
add esi, 4
test eax, eax
jl 0x1006368
mov eax, dword [esi]
push ebx
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x204]
add esi, 4
mov edi, dword [esi]
push eax
push 0x80000000
add esi, 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100633b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x210]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1006341
mov byte [ebp - 0x205], bl
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], ebx
jne 0x10062b1
mov al, byte [ebp - 0x205]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f1d6
leave
ret
xor al, al
jmp 0x100635b

Function at 0x1006371
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1012d80]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov bl, 1
jmp 0x10063d4
mov eax, dword [esi]
add esi, 4
push dword [esi]
push eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.01005a9e
add esp, 0x10
test eax, eax
jl 0x10063e7
lea eax, [ebp - 0x204]
push eax
push 0x80000000
add esi, 0xc
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x10063d4
cmp eax, 2
je 0x10063d4
test eax, eax
je 0x10063d4
xor bl, bl
cmp dword [esi], 0
jne 0x100638d
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100f1d6
leave
ret
xor al, al
jmp 0x10063db
Function at 0x1006919
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x1012d80]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], 0x1011178
mov ebx, 0x10013c4
push dword [ebx]
mov esi, 0x1011050
push 0x1001880
push 0x28
push 0x1013180
call fcn.01005a9e
add esp, 0x10
cmp eax, edi
jl 0x1006aa3
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax]
cmp eax, edi
je 0x100698a
push eax
push 0x28
push 0x1012d98
call fcn.010041e5
cmp eax, edi
jl 0x1006aa3
cmp dword [0x1011050], edi
je 0x10069f1
lea ecx, [esi + 4]
cmp dword [ecx], edi
je 0x10069ed
cmp dword [esi + 8], edi
je 0x10069ed
mov eax, dword [esi]
mov esi, ecx
mov ecx, dword [esi]
push ecx
push eax
lea eax, [ebp - 0xa4]
push 0x50
push eax
add esi, 4
call fcn.01005a9e
add esp, 0x10
cmp eax, edi
jl 0x1006aa3
lea eax, [ebp - 0xa4]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x10069ea
cmp eax, 2
je 0x10069ea
cmp eax, edi
je 0x10069ea
inc dword [ebp - 0xac]
add esi, 0xc
cmp dword [esi], edi
jne 0x1006992
add dword [ebp - 0xa8], 4
add ebx, 0x10
cmp ebx, 0x10013d4
jl 0x1006946
mov esi, 0x2001f
call fcn.01005318
movzx ebx, al
cmp ebx, edi
je 0x1006a1d
mov esi, 0x2011f
lea eax, [ebp - 0xa8]
push eax
push esi
push edi
mov edi, 0x1001818
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006a64
test ebx, ebx
jne 0x1006a47
push 0x10017f0
jmp 0x1006a4c
push 0x10017d8
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1006a70
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
call fcn.010053b5
test al, al
je 0x1006a84
push 0x1011140
call fcn.01006371
pop ecx
call fcn.010053b5
test al, al
jne 0x1006a96
call fcn.01005318
test al, al
je 0x1006aa1
push 0x1011164
call fcn.01006371
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f1d6
leave
ret
Function at 0x1006f58
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x1012d80]
push edi
push 0x103
push 0x1012e38
push dword [0x10131d0]
xor edi, edi
mov dword [ebp - 4], eax
mov word [0x101303e], di
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1006f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10070e1
cmp dword [0x10110ac], edi
push esi
mov word [0x101303e], di
mov dword [ebp - 0x80c], edi
mov esi, 0x10110a8
je 0x10070bf
push ebx
push 4
pop ebx
mov edi, 0x401
mov eax, dword [esi]
add esi, ebx
test eax, eax
jne 0x10070af
mov ecx, dword [esi]
add esi, ebx
mov edx, dword [esi]
add esi, ebx
mov eax, dword [esi]
add esi, ebx
test eax, eax
je 0x1006ff3
push eax
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01005a9e
add esp, 0x14
jmp 0x1007005
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01005a9e
add esp, 0x10
xor ecx, ecx
cmp eax, ecx
jge 0x1007019
inc dword [ebp - 0x80c]
add esi, 8
jmp 0x10070b2
push ecx
lea eax, [ebp - 0x810]
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
lea eax, [ebp - 0x808]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1007046
inc dword [ebp - 0x80c]
mov eax, dword [esi]
test eax, eax
je 0x100709e
add esi, ebx
push dword [esi]
push eax
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01005a9e
add esp, 0x10
add esi, ebx
test eax, eax
jl 0x1007096
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push 0
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10070a1
inc dword [ebp - 0x80c]
jmp 0x10070a1
add esi, 8
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10070b2
add esi, 0x14
cmp dword [esi + 4], 0
jne 0x1006fc2
xor edi, edi
pop ebx
push edi
push edi
push 0x1000
push 0x8000000
call dword [0x101238c]
mov eax, dword [ebp - 0x80c]
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100f1d6
leave
ret
Function at 0x10070f1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1012d80]
push ebx
push esi
xor ebx, ebx
cmp dword [0x10110ac], ebx
mov dword [ebp - 4], eax
push edi
mov esi, 0x10110ac
je 0x10071d5
mov edi, 0x401
mov ecx, dword [esi]
add esi, 4
mov edx, dword [esi]
add esi, 4
mov eax, dword [esi]
add esi, 4
cmp eax, ebx
je 0x1007147
push eax
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01005a9e
add esp, 0x14
jmp 0x1007159
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01005a9e
add esp, 0x10
cmp eax, ebx
jl 0x10071f6
lea eax, [ebp - 0x80c]
push eax
push 0x20008
push ebx
lea eax, [ebp - 0x808]
push eax
push 0x80000000
mov dword [ebp - 0x80c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10071ca
push 0x50
lea eax, [ebp - 0x808]
push eax
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x10071b8
push 0x1001598
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], ebx
add esi, 0xc
cmp dword [esi], ebx
jne 0x100711f
push ebx
push ebx
push 0x1000
push 0x8000000
call dword [0x101238c]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f1d6
leave
ret
mov eax, 0x80004005
jmp 0x10071e9
Function at 0x1007202
Capabilities:
Get geographical location
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x1012d80]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x200
lea edi, [ebp - 0x81a]
mov word [ebp - 0x81c], bx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
cmp edi, 0x641
mov dword [ebp - 0x820], ebx
mov esi, 0x401
jb 0x1007265
push ebx
push esi
lea eax, [ebp - 0x81c]
push eax
push edi
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
cmp eax, ebx
mov dword [ebp - 0x824], eax
jne 0x10072fc
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0x1001964
mov dword [ebp - 0x824], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x1001948
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10072b6
call eax
push 0xa
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x820], eax
push ecx
movzx eax, ax
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10072b6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x824], eax
push ebx
push esi
lea eax, [ebp - 0x81c]
push eax
movzx eax, word [ebp - 0x820]
push eax
push edi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, ebx
je 0x10072e2
mov word [ebp + eax*2 - 0x820], bx
jmp 0x10072fc
push edi
push 0x1001924
lea eax, [ebp - 0x81c]
push esi
push eax
call fcn.01005a9e
add esp, 0x10
test eax, eax
jl 0x1007378
cmp dword [0x10131e8], ebx
mov eax, dword [0x1013704]
jne 0x100732b
cmp eax, ebx
je 0x1007312
cmp eax, 0xffffffff
jne 0x100732b
push ebx
push dword [ebp - 0x824]
lea eax, [ebp - 0x81c]
push 0x30
push ebx
push eax
push ebx
call sub.msi.dll_MsiProvideQualifiedComponentExW
jmp 0x1007378
cmp eax, ebx
je 0x1007378
cmp eax, 0xffffffff
je 0x1007378
push ebx
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
shl eax, 1
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [0x1013704]
call esi
push ebx
lea eax, [ebp - 0x820]
push eax
push 4
push 0x10014f4
push dword [0x1013704]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f1d6
leave
ret
Function at 0x10074ab
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1012d80]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x58]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x64], eax
push ebx
inc edi
lea eax, [ebp - 0x48]
mov esi, 0x1388
push esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], eax
call fcn.01005704
test al, al
je 0x1007593
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.01005704
test al, al
je 0x1007593
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x64]
push 0xa
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
push 0x1588
push 0xfa1
push edi
push 3
push 0x1001994
mov esi, eax
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.01005a9e
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.01005a9e
add esp, 0x2c
cmp esi, 0x4e8
mov dword [ebp - 0x68], 0x69
je 0x1007562
cmp esi, 0x4e7
jne 0x1007569
mov dword [ebp - 0x68], 0x78
push 0x1001978
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push dword [ebp - 0x68]
mov edi, eax
push dword [ebp - 0x6c]
push esi
push ebx
push ebx
push dword [ebp - 0x54]
push ebx
call sub.msi.dll_MsiBeginTransactionA
cmp edi, ebx
je 0x1007593
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x54]
call fcn.010073b2
lea ecx, [ebp - 0x64]
call fcn.010073b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, 0x8000
pop ebx
call fcn.0100f1d6
leave
ret
Function at 0x1007fec
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1012d80]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
mov esi, 0x104
push edi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, esi
jle 0x100804b
push 0
push eax
lea ecx, [ebp - 0x218]
call fcn.010057b6
test al, al
jne 0x100804b
push 0xe
pop esi
jmp 0x1008170
push edi
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.01005a26
test eax, eax
jl 0x1008043
xor ebx, ebx
xor esi, esi
cmp edi, ebx
mov eax, edi
je 0x100808b
mov cx, word [edi]
cmp cx, bx
je 0x1008087
push eax
call fcn.01004ae7
pop ecx
mov cx, word [eax]
cmp cx, 0x5c
jne 0x100806e
mov esi, eax
jmp 0x100806e
cmp esi, ebx
jne 0x1008093
xor esi, esi
inc esi
jmp 0x1008170
mov eax, dword [ebp - 0x218]
sub esi, edi
sar esi, 1
push ebx
mov word [eax + esi*2], bx
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
cmp esi, ebx
jne 0x1008170
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21c], eax
mov ebx, 0x80070000
je 0x10080e1
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x10080f9
call edi
test eax, eax
jg 0x10080ed
call edi
mov esi, eax
jmp 0x10080f9
call edi
mov esi, eax
and esi, 0xffff
or esi, ebx
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x100811f
call edi
test eax, eax
jg 0x1008113
call edi
mov esi, eax
jmp 0x100811f
call edi
mov esi, eax
and esi, 0xffff
or esi, ebx
test esi, esi
jne 0x1008155
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1008151
call edi
test eax, eax
jg 0x1008143
call edi
jmp 0x1008153
call edi
mov esi, eax
and esi, 0xffff
or esi, ebx
jmp 0x1008155
call eax
mov esi, eax
cmp dword [ebp - 0x21c], 0
je 0x100816a
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x218]
call fcn.01005988
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0100f1d6
leave
ret
Function at 0x10081c5
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x1012d80]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp dword [0x1012218], 0xffffffff
mov dword [ebp - 0x870], eax
jne 0x10082a9
lea eax, [ebp - 0x868]
push eax
mov dword [0x1012218], ebx
mov dword [ebp - 0x86c], ebx
mov dword [ebp - 0x868], 0x20019
call fcn.01004365
pop ecx
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x868]
push ebx
push 0x1001ad0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10082a9
lea eax, [ebp - 0x858]
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x858]
push eax
push ebx
push ebx
push 0x1001ac0
push dword [ebp - 0x86c]
mov dword [ebp - 0x860], 0x28
mov dword [ebp - 0x868], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1008292
mov eax, dword [ebp - 0x864]
mov eax, dword [eax]
and eax, 3
mov dword [0x1012218], eax
push dword [ebp - 0x86c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x864]
call fcn.01005a00
test dword [0x1012218], 3
je 0x1008315
push edi
xor eax, eax
cmp dword [ebp + 0xc], ebx
mov ecx, 0x200
lea edi, [ebp - 0x806]
mov word [ebp - 0x808], bx
rep stosd dword es:[edi], eax
pop edi
lea eax, [ebp - 0x808]
push esi
je 0x10082f1
push dword [ebp + 0xc]
push 0x1001a9c
push 0x401
push eax
call fcn.01005a9e
add esp, 0x14
jmp 0x1008304
push 0x1001a90
push 0x401
push eax
call fcn.01005a9e
add esp, 0x10
cmp eax, ebx
jl 0x1008315
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100f1d6
leave
ret