joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002724
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x1007064], esi
jne 0x1002742
call fcn.010023af
cmp eax, esi
jl 0x10027f5
push ebx
push edi
push esi
push 1
mov edi, 0x8ba
push edi
push 2
push 0x1007014
call fcn.010025fc
mov ebx, eax
cmp ebx, esi
jl 0x10027c5
push esi
push esi
push esi
push 2
push 0x1007018
call fcn.010025fc
mov ebx, eax
cmp ebx, esi
jl 0x10027c5
push 1
push esi
push edi
push 1
push 0x1007408
call fcn.010025fc
mov ebx, eax
cmp ebx, esi
jl 0x10027c5
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10022e2
push esi
push esi
call edi
mov dword [0x100740c], eax
cmp eax, esi
je 0x10027c0
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1002d92
push esi
push esi
call edi
mov dword [0x10073f0], eax
cmp eax, esi
jne 0x10027e7
mov ebx, 0x80004005
push 0x1007014
call fcn.010026f5
push 0x1007018
call fcn.010026f5
push 0x1007408
call fcn.010026f5
mov eax, ebx
jmp 0x10027f3
mov dword [0x1007060], 1
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100306f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x100701c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001448
push 0x80000002
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], 0x50
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x78], esi
call ebx
test eax, eax
je 0x10030db
xor eax, eax
jmp 0x10031a0
push edi
mov eax, dword [ebp + 0x10]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x70]
inc dword [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1003184
lea eax, [ebp - 0x68]
push eax
push 0x20019
push esi
push dword [ebp - 0x80]
push dword [ebp - 0x6c]
call ebx
test eax, eax
jne 0x10030dc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
push 0x1001440
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100314b
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10030dc
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 5], 0
call fcn.01002ff2
mov edi, dword [ebp + 8]
push 4
pop ecx
lea esi, [ebp - 0x64]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x100317b
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x10030dc
mov dword [ebp - 0x78], 1
xor esi, esi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
pop edi
cmp eax, esi
je 0x10031a0
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x84]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010036a4
leave
ret 0x10
Function at 0x1003695
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1006230
call fcn.01003854
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x10074e0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x100344c
cmp eax, esi
jne 0x100343f
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100344f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003426
xor esi, esi
inc esi
mov eax, dword [0x10074dc]
cmp eax, esi
jne 0x1003462
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003491
mov eax, dword [0x10074dc]
test eax, eax
jne 0x100348b
mov dword [0x10074dc], esi
push 0x10011a4
push 0x1001198
call fcn.0100338b
pop ecx
pop ecx
test eax, eax
je 0x1003491
jmp 0x10035b9
mov dword [0x1007088], esi
mov eax, dword [0x10074dc]
cmp eax, esi
jne 0x10034b5
push 0x1001194
push 0x100118c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10074dc], 2
test ebx, ebx
jne 0x10034c1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10074e4], 0
je 0x10034e5
push 0x10074e4
call fcn.010037c9
pop ecx
test eax, eax
je 0x10034e5
push 0
push 2
push 0
call dword [0x10074e4]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1003541
test al, al
je 0x10034ff
cmp dword [ebp - 0x1c], 0
jne 0x1003541
mov al, byte [esi]
test al, al
je 0x100350f
cmp al, 0x20
ja 0x100350f
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10034ff
test byte [ebp - 0x3c], 1
je 0x100351b
movzx eax, word [ebp - 0x38]
jmp 0x100351e
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1007084], eax
cmp dword [0x1007078], 0
jne 0x1003595
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1003550
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1003563
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10034ec
cmp dword [0x1007088], 0
jne 0x10035a4
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1007084]
jmp 0x10035c5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01003899
ret
call fcn.010039a1
jmp 0x10033ec
Function at 0x1004170
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x10073bc], 0
push ebx
jne 0x10041ed
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
je 0x10041e1
cmp dword [ebp - 8], 0x660
jae 0x10041e1
xor eax, eax
mov eax, dword [eax*4 + 0x1007030]
mov dword [0x10073bc], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405220
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42fa05
push eax
mov dword fs:[0], esp
lea eax, [ebp - 0x278]
sub esp, 0x270
push ebx
push esi
push edi
push 0x207
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4053cb
lea edi, [ebp - 0x278]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405266
mov ecx, 6
mov esi, str._regedit.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x4053de
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x4053e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4052d0
sub ecx, edx
lea eax, [ebp - 0x278]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00401840
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push ebx
push edi
push str.__s___e___s___HKEY_LOCAL_MACHINESoftwareMicrosoftWindows_NTCurrentVersionMultimedia_
push eax
call fcn.00402f40
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
jle 0x405326
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401ab0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0x208
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40537c
push 0x2710
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40537c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x18], 0
jne 0x40537c
mov bl, 1
jmp 0x40537e
xor bl, bl
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40539c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4053b8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
push 0x80004005
call fcn.00401f80
int3
Function at 0x4065d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push edi
mov edi, dword [ebp + 0xc]
push 0x800
push 0
push eax
call fcn.0041e140
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x3ff
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40665c
cmp word [ebp - 0x804], 0
je 0x40665c
push 0x3ff
push edi
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00420145
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c66f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0041c66f
mov esp, ebp
pop ebp
ret

Function at 0x407390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fba1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43f440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x407495
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea esi, [edi + 0x34]
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
push 0x20
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041c3f4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 1
push 0x1c
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041c3f4
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov byte [ebp - 4], 3
mov ecx, edi
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0xffffffff
mov dword [edi + 0x5c], 0xffffffff
call fcn.004075e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
int3
Function at 0x407e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
xor edx, edx
push edi
xor edi, edi
movzx ecx, ax
cmp eax, 0xffffffff
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
cmove ecx, edx
movzx eax, cx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
test eax, eax
je 0x407f04
mov edx, dword [ebp - 0xc]
push ebx
mov ebx, dword [ebp - 8]
push esi
push dword [ebp - 4]
mov eax, edi
xor ecx, ecx
bts ecx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
cmp eax, 0x40
cmovae esi, ecx
or edx, ecx
mov dword [ebp + 8], edx
or ebx, esi
inc edi
call dword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov edx, dword [ebp + 8]
cmp edi, eax
jb 0x407ec8
pop esi
mov eax, edx
mov edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x408a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x81000000
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push eax
mov dword [ebp - 0xc], eax
mov eax, 0x80000001
cmovne eax, esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408ab7
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
test eax, eax
je 0x408a9c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c66f
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c66f
mov esp, ebp
pop ebp
ret 0x14
cmp esi, 0x81000000
jne 0x408a87
push dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
push ebx
push edi
push dword [ebp - 0xc]
push 0x80000002
call fcn.00408a10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c66f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x408af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov word [esi], dx
lea edx, [ebp - 0x10]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408b56
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
test eax, eax
je 0x408b6a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c66f
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0041c66f
mov esp, ebp
pop ebp
ret 0x14

Function at 0x408b90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 8]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edx
lea edx, [ebp - 0xc]
push edx
push 0
push 2
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408be9
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
test eax, eax
je 0x408bfc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c66f
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0041c66f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x408d90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fc90
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0xfc], 0
je 0x408f0f
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041e140
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00409e10
add esp, 0x14
test eax, eax
jne 0x408dff
mov word [ebp - 0x810], ax
mov ecx, dword [ebx + 0xf4]
xor esi, esi
cmp dword [ecx], esi
je 0x408f4e
mov edx, dword [ebx + 0xfc]
xor eax, eax
mov edi, dword [ebp + 8]
nop word [eax + eax]
cmp dword [eax + edx], 0
je 0x408f4e
cmp dword [eax + ecx], edi
je 0x408e44
inc esi
lea eax, [esi*4]
cmp dword [eax + ecx], 0
jne 0x408e20
xor al, al
jmp 0x408f11
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x408f52
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
cmp word [ebp - 0x810], 0
lea edi, [esi*4]
mov eax, dword [ebx + 0xfc]
mov dword [ebp - 4], 0
push dword [eax + edi]
je 0x408e9f
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push str._s_s
push eax
call fcn.00402f40
add esp, 0x10
jmp 0x408eaa
lea ecx, [ebp - 0x814]
call fcn.00401800
mov esi, dword [ebp - 0x814]
cmp dword [esi - 4], 1
jle 0x408eca
push dword [esi - 0xc]
lea ecx, [ebp - 0x814]
call fcn.00401ab0
mov esi, dword [ebp - 0x814]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408ef0
mov eax, dword [ebx + 0xfc]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x408f2f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408f0f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c66f
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408f4e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x408f11
push 0x80004005
call fcn.00401f80
int3
Function at 0x408f60
Capabilities:
Identify system language via api
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fccd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x4090b4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
push str.Software_s
push eax
call fcn.00402f40
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov ebx, section..data
nop
mov edi, dword [ebx]
lea eax, [ebp - 0x14]
push 0
push eax
push edi
push esi
push 0x80000001
mov ecx, 0x4439b8
mov dword [ebp - 0x14], 0
call fcn.00408a10
cmp al, 1
je 0x40900f
push 0
lea eax, [ebp - 0x14]
mov ecx, 0x4439b8
push eax
push edi
push esi
push 0x80000002
call fcn.00408a10
cmp al, 1
jne 0x409016
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x40906f
add ebx, 4
cmp ebx, 0x43f00c
jne 0x408fd0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0xf8]
test ebx, ebx
je 0x40906d
mov eax, dword [eax + 0xf4]
and edx, 0x3ff
mov dword [ebp - 0x18], eax
nop dword [eax + eax]
movzx edi, word [eax + ecx*4]
mov eax, edi
and eax, 0x3ff
cmp ax, dx
je 0x4090ac
inc ecx
mov eax, ecx
shr eax, 0x1f
cmp eax, ebx
mov eax, dword [ebp - 0x18]
jne 0x409050
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40908e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.0041c66f
mov esp, ebp
pop ebp
ret
and edi, 0x3ff
jmp 0x40906f
push 0x80004005
call fcn.00401f80
int3
Function at 0x409480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd4d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0xf8]
lea ebx, [esi + 0xf8]
test edi, edi
jne 0x4094c4
xor al, al
jmp 0x409672
cmp edi, 0x409
jne 0x4094da
call fcn.00408f60
cmp eax, edi
mov dword [ebx], eax
mov ecx, edi
cmove edi, ecx
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x40968e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [esi + 4]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push str.Software_s
push eax
call fcn.00402f40
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, 0x4439b9
push 0
push edi
push str.Language
push esi
push 0x80000001
call fcn.00408b90
push 0
push edi
push str.Language
push esi
push 0x80000002
mov ecx, 0x4439b9
call fcn.00408b90
push 0
push edi
push str.InstallerLanguageDWORD
push str.SoftwareProcessLasso
push 0x80000001
mov ecx, 0x4439b9
call fcn.00408b90
push 0
push edi
push str.InstallerLanguageDWORD
push str.SoftwareProcessLasso
push 0x80000002
mov ecx, 0x4439b9
call fcn.00408b90
push 0
push edi
push str.Language
push str.SoftwareProcessLasso
push 0x80000001
mov ecx, 0x4439b9
call fcn.00408b90
push 0
push edi
push str.Language
push str.SoftwareProcessLasso
push 0x80000002
mov ecx, 0x4439b9
call fcn.00408b90
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x4431b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 0x20]
test eax, eax
jne 0x409602
push 4
push ebx
push 3
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x4431b8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40964f
push 4
push ebx
push 3
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x409651
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409670
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c66f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
int3