joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a030
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1000ef00
call fcn.100028f8
xor esi, esi
cmp dword [0x10015834], esi
jne 0x1000a074
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1000a05f
mov dword [0x10015834], edi
jmp 0x1000a074
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1000a074
mov dword [0x10015834], 2
mov eax, dword [0x10015834]
cmp eax, 2
je 0x1000a155
cmp eax, esi
je 0x1000a155
cmp eax, 1
jne 0x1000a0b9
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x1000a0a2
mov eax, dword [0x10015738]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x1000a0c0
xor eax, eax
jmp 0x1000a167
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.10002710
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1000a0f6
cmp edi, esi
jne 0x1000a111
lea eax, [ebx + ebx]
push eax
call fcn.100018f8
pop ecx
mov edi, eax
cmp edi, esi
je 0x1000a0b9
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1000a144
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x1000a12e
push esi
push esi
jmp 0x1000a134
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x1000a150
push edi
call fcn.1000190a
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1000a167
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.10002933
ret
Function at 0x1000a977
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x1000a990
or eax, 0xffffffff
jmp 0x1000a9f1
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x1000a9ed
push 0x3d
push esi
call fcn.1000ab78
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1000a9ed
cmp esi, eax
je 0x1000a9ed
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x100153d8]
sete cl
cmp eax, dword [0x100153dc]
mov dword [ebp - 4], ecx
jne 0x1000a9d3
mov edi, eax
call fcn.1000a916
mov dword [0x100153d8], eax
cmp eax, ebx
jne 0x1000aa2c
cmp dword [ebp + 0xc], ebx
je 0x1000a9f5
cmp dword [0x100153e0], ebx
je 0x1000a9f5
call fcn.1000a493
test eax, eax
je 0x1000aa2c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x1000a9fe
xor eax, eax
jmp 0x1000a9f0
push 4
call fcn.100018f8
cmp eax, ebx
pop ecx
mov dword [0x100153d8], eax
je 0x1000a9ed
mov dword [eax], ebx
cmp dword [0x100153e0], ebx
jne 0x1000aa2c
push 4
call fcn.100018f8
cmp eax, ebx
pop ecx
mov dword [0x100153e0], eax
je 0x1000a9ed
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x100153d8]
sub edi, esi
push esi
call fcn.1000a8c9
mov edi, eax
test edi, edi
pop ecx
jl 0x1000aa93
cmp dword [ebx], 0
je 0x1000aa93
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.1000190a
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x1000aa73
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x1000aad4
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x1000aa6a
mov eax, edi
shl eax, 2
push eax
push dword [0x100153d8]
call fcn.10005e6d
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x1000aad4
jmp 0x1000aacf
cmp dword [ebp - 4], 0
jne 0x1000ab3b
test edi, edi
jge 0x1000aaa3
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x100153d8]
call fcn.10005e6d
test eax, eax
pop ecx
pop ecx
je 0x1000a9ed
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x100153d8], eax
cmp dword [ebp + 0xc], 0
je 0x1000ab26
push esi
call fcn.10005160
inc eax
inc eax
push eax
call fcn.100018f8
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1000ab26
push esi
push edi
call fcn.10005060
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1000ab1f
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.1000190a
pop ecx
cmp dword [ebp - 4], 0
je 0x1000ab33
push esi
call fcn.1000190a
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1000a9f0
push esi
call fcn.1000190a
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x1000a9fa
Function at 0x408fc2
Capabilities:
Encode data using xor

Disassembly:
push 4
mov eax, 0xecd
call 0x6fbbd4
cmpsb byte [esi], byte es:[edi]
add dword [eax], ecx
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
add dh, dh
je 0x408ff0
mov eax, dword [ebp - 0x55]
add dword [eax], eax
sub eax, 0x10
push eax
call 0xff40902d
call 0x6fbb9d
ret 8

Function at 0x456d5f
Capabilities:
Encode data using xor

Disassembly:
dec ecx
mov eax, 0x136ab5aa
enter 0xffffffffffff9bc0, 0xffffffffffffffb8
sub byte [0x3ac1a600], al
mov ebp, 0x40ad00fa
mov esi, esi
mov dl, 0xec
les edx, [eax]
cmp dword [ebp - 0x7d460abc], ebx
frstor dword [ebx - 0x5c135b07]
mov edi, 0xc2008f8d
invalid

Function at 0x458c51
Capabilities:
Encode data using xor

Disassembly:
fst qword [esi + 0x73a2670c]
xor al, 0x67
mov eax, dword [0x4c5ceb68]
jae 0x458c8c
mov eax, dword [0xeb68]
pop esp
dec esp
mov al, byte [0xc86cc0bd]
push esp
scasb al, byte es:[edi]
adc cl, ah
cmp al, 0xeb
sahf
pop es
loope 0x458c56
sub esp, edx
push eax
and esp, edx
rcr byte [ebx + esi*4 - 0x50], cl
fld st(4)
push es
and eax, 0xe29a4fbb
and al, 0x20
xchg dword [esi], esp
adc eax, dword [esi]
mov bl, 0x8e
out dx, eax
ror dword [edi + 0x449d4299], 0xc5
jae 0x458d0d
popfd
inc esp
lds esi, [ebx + 0x7c]
invalid

Function at 0x62516c
Capabilities:
Encode data using xor

Disassembly:
rcr esi, 0xcb
xchg esi, eax
lea edx, [esi - 0x11]
cmp eax, 0x59c9385b
sahf
std
stosd dword es:[edi], eax
push edi
outsd dx, dword [esi]
pushfd
cmp esi, dword [ebx]
xor bh, byte [edx - 0xf]
mov ch, byte [edx - 0x2788d3e0]
jl 0x625178
int3
Function at 0x627585
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x62e3d0
cmp edx, dword [eax]
je 0x6275a7
add eax, 8
inc ecx
cmp eax, 0x62e460
jl 0x627598
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x62e3d0]
jne 0x6276d5
mov eax, dword [0x636d78]
cmp eax, 1
je 0x6276af
test eax, eax
jne 0x6275d8
cmp dword [0x62e2f8], 1
je 0x6276af
cmp edx, 0xfc
je 0x6276d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62760f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00627f70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00628400
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x627652
lea eax, [ebp - 0x1a4]
push eax
call fcn.00628400
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62c6e4
push edi
call fcn.0062a2d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00627f70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00627f80
lea eax, [ebp - 0xa0]
push 0x62c6c4
push eax
call fcn.00627f80
push dword [esi + 0x62e3d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00627f80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062a244
add esp, 0x2c
pop edi
jmp 0x6276d5
lea eax, [ebp + 8]
lea esi, [esi + 0x62e3d4]
push 0
push eax
push dword [esi]
call fcn.00628400
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x408966
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edi
sub eax, 1
call fcn.00408994
dec edx
add eax, 1
xor dword [esi], edi
and edx, edx
inc esi
cmp esi, ecx
jne fcn.00408966
sub edx, eax
dec eax
ret

Function at 0x710c6d
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x7109ec
add ebx, ecx
mov ebx, ecx
push ecx
pop ebx
call fcn.00710ca0
add ebx, 1
xor dword [edx], edi
or ebx, ebx
add edx, 1
mov ebx, 0x6ded24fc
cmp edx, esi
jne fcn.00710c6d
add ecx, 0x31b10271
inc ebx
ret
Function at 0x454869
Capabilities:
Encode data using xor

Disassembly:
pop ss
sal dword [eax], 1
mov bh, 0x3c
call 0xd231e7be
invalid

Function at 0x480d59
Capabilities:
Encode data using xor

Disassembly:
adc eax, 0x51f78011
xor eax, 0x6f17e3b9
pushfd
push ecx
and al, 0xa9
jb 0x480d8c
sbb al, 0xaa
xchg ecx, eax
cmp al, 0x20
aam 0x23
salc
insb byte es:[edi], dx
out 0x79, eax
mov ch, bh
cmp bl, byte [eax - 0x31a93200]
imul eax, dword [esi + 0x2ff26846], 0x1caefdd1
cmp al, 0xcf
test dword [ebx + edi - 0x4c12afc6], ebp
lodsb al, byte [esi]
cmp edi, dword [edx]
push eax
in eax, dx
mov bl, 0x34
sub dword [edx], 0x43
fmul dword [ebx - 0x7e6b48b3]
in al, dx
mov bh, 7
in al, 0x21
lodsb al, byte [esi]
cmp edi, dword [edx]
push eax
in eax, dx
mov bl, 0x34
sub dword [edx], 0x43
fmul dword [ebx - 0x7e6b48b3]
in al, dx
mov bh, 7
in al, 0x21
jecxz 0x480d3d
xchg esp, eax
mov byte [0xef17ad84], al
shr ah, cl
jecxz 0x480d28
aas
scasd eax, dword es:[edi]
imul ebp, edi, 0x58
xor cl, byte [esi - 0x7a]
aas
sub dl, al
mov byte [edx + 0x266b813f], al
fsub st(7), st(0)
std
retf
Function at 0x401810
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40186b
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40186b
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x10], 0
mov dword [ebp + 8], 0
test edx, edx
jne 0x401850
lea edx, [ebp + 8]
push edx
lea edx, [ebp + 0x10]
push edx
push ecx
push 0
push 1
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
pop ebp
ret 0xc
push esi
lea esi, [ebp + 8]
push esi
lea esi, [ebp + 0x10]
push esi
push ecx
push edx
push 1
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
pop esi
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x4022f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push 0x20119
push edi
push edi
mov esi, ecx
mov dword [ebp - 4], edi
push edi
push dword [esi + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x402359
push edi
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
push ecx
push edi
push 0x4900d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x402350
cmp dword [ebp - 8], 3
mov eax, 1
cmove edi, eax
push dword [ebp - 4]
call ebx
test edi, edi
jne 0x4023aa
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x1c]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push dword [esi + 0x24]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4023aa
push dword [ebp - 8]
push edi
push 3
push 0
push 0x4900d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call ebx
mov ecx, esi
call fcn.00402430
test eax, eax
jne 0x4023c1
push eax
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00402800
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push 0x20119
push edi
push edi
push edi
push dword [esi + 0x24]
mov dword [ebp - 4], edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402419
push edi
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
push ecx
push edi
push 0x4900b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x402410
cmp dword [ebp - 8], 1
mov eax, 1
cmove edi, eax
push dword [ebp - 4]
call ebx
test edi, edi
jne 0x402424
lea eax, [esi + 0x10]
mov ecx, esi
push eax
call fcn.004028b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0x20119
push esi
push esi
push esi
push dword [ecx + 0x24]
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40248e
push esi
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push esi
push 0x4900c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x402485
mov eax, 1
cmp dword [ebp - 8], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cd50
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
push esi
push 0x20119
push esi
push esi
push esi
push dword [edi + 0x24]
mov dword [ebp - 0x10], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x10]
lea ebx, [esi + 1]
test eax, eax
je 0x4027cf
push esi
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push ecx
push esi
push 0x4900b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x40269a
cmp dword [ebp - 0x14], ebx
cmove esi, ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4027cf
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x20119
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push dword [edi + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00402f70
test eax, eax
je 0x4026e7
xor edi, edi
jmp 0x4027a1
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402703
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, 0x104
or eax, ebx
mov dword [ebp - 0x14], 0x104
jge 0x40273a
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00403880
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
push 0x4900b8
lea ecx, [ebp - 0x20]
call fcn.00402ef0
push dword [esi - 8]
mov edi, eax
push esi
call fcn.0045ed24
add esp, 8
test eax, eax
js 0x4027c5
cmp eax, dword [esi - 8]
jg 0x4027c5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x402774
xor edi, edi
jmp 0x402785
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402e10
mov edi, 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4027a1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4027af
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004039a0
lea ecx, [edi + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402e10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402800
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x103
push 0
push 0
push 0
push dword [ecx + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 4]
test edx, edx
je 0x4028aa
cmp byte [ebp + 0xc], 0
je 0x402856
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push 0x4900c8
push edx
jmp 0x40289b
push 0
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push 0x4900c8
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x40287e
cmp dword [ebp + 0xc], 1
je 0x4028a1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push 0x4900c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8

Function at 0x4028b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x103
push 0
push 0
push 0
push dword [ecx + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402939
push 0
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0
push 0x4900b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x40290d
cmp dword [ebp - 8], 1
je 0x402930
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push 0x4900b8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x4029d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cd78
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 8]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00402ab0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x402a7b
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0xc]
call fcn.00402e10
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push 0x103
push 0
push 0
push 0
push dword [esi + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp + 8]
test edx, edx
je 0x402a7b
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push 0x4900c8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402a9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402f61
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x402f2f
cmp eax, 2
jne 0x402f4b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x402f5b
test ecx, ecx
je 0x402f56
test cl, 1
jne 0x402f4b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x402f5b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x403570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403585
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4035c6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4035c2
nop word [eax + eax]
cmp esi, edx
jae 0x4035c6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4035b0
cmp esi, edx
jb 0x4035cb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x403d50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ce28
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x403e09
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403da8
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.Installer
push 0x4907c0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push str._ls_ls
push eax
call fcn.004040a0
mov esi, dword [ebp - 0x10]
push esi
push 0x104
push dword [ebp + 8]
call fcn.00461656
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x403e07
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x403e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ce50
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403f81
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x403f81
lea eax, [ebp + 8]
mov dword [ebx], 0
push eax
push 0x400000
xor edi, edi
mov dword [esi], 0
push 6
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x403f3e
push str.PUBLICKEY
push 0x3f0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403f3e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
test eax, eax
je 0x403f3e
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x403f3e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403f3e
mov dword [ebp - 4], 0
push dword [esi]
call fcn.00459284
add esp, 4
mov dword [ebx], eax
mov edx, dword [esi]
mov ecx, eax
push edx
push dword [ebp - 0x14]
call fcn.00403bb0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x403f61
mov eax, 0x80040104
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, eax
jle 0x403f86
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8