joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x4cc220
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x92000]
push edi
jmp 0x4cc23a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4cc241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cc230
mov eax, 1
add ebx, ebx
jne 0x4cc253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4cc264
jne 0x4cc283
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cc283
dec eax
add ebx, ebx
jne 0x4cc270
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4cc248
add ebx, ebx
jne 0x4cc27f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4cc2d5
xor ecx, ecx
sub eax, 3
jb 0x4cc29b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cc30a
sar eax, 1
mov ebp, eax
jmp 0x4cc2a6
add ebx, ebx
jne 0x4cc2a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cc274
inc ecx
add ebx, ebx
jne 0x4cc2b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cc274
add ebx, ebx
jne 0x4cc2c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cc2b6
jne 0x4cc2d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cc2b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cc2f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cc2e6
jmp 0x4cc236
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cc2f4
add edi, ecx
jmp 0x4cc236
pop esi
mov edi, esi
mov ecx, 0x3975
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cc312
cmp byte [edi], 0x1b
jne 0x4cc312
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4cc317
lea edi, [esi + 0xc9000]
mov eax, dword [edi]
or eax, eax
je 0x4cc38f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xddbec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xddcb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cc344
mov ecx, edi
jns 0x4cc373
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xddcb8]
or eax, eax
je 0x4cc389
mov dword [ebx], eax
add ebx, 4
jmp 0x4cc361
call dword [esi + 0xddcc8]
mov ebp, dword [esi + 0xddcbc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4cc3c3
sub esp, 0xffffff80
jmp 0x44825b
Function at 0x438c81
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
sub edi, ebx
and edi, edi
call fcn.00438cc2
inc ebx
sub edi, 0x787de4ba
and edi, edi
xor dword [esi], edx
push ebx
mov ebx, dword [esp]
add esp, 4
add ebx, 0xa9c15464
inc esi
push 0x4ef4684a
pop ebx
cmp esi, ecx
jne fcn.00438c81
mov edi, 0xfca28a15
sub edi, 0x58fbfa94
sub ebx, ebx
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401c6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401c6b
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 0x401c5a
cmp esi, edx
jae 0x401c6b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401c48
cmp esi, edx
jae 0x401c6b
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x402100
Capabilities:
Terminate process

Disassembly:
push 1
push 0
mov ecx, 0x445278
call fcn.00409140
mov dword [0x43feb8], eax
jmp fcn.00402120
Function at 0x403410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
je 0x403451
cmp byte [esi + 0xc], 0
je 0x403451
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403458
mov byte [esi + 0xc], 0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esi + 0x10]
push 4
push eax
push 4
push 0
push str.Affinity
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x18]
push eax
push 4
push 0
push str.Clock_Rate
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x1c]
push eax
push 4
push 0
push str.GPU_Priority
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x20]
push eax
push 4
push 0
push str.Priority
push dword [ebp - 4]
call edi
cmp byte [esi + 0xd], 0
je 0x4034ca
push 4
lea eax, [esi + 0x2c]
push eax
push 4
push 0
push str.BackgroundPriority
push dword [ebp - 4]
call edi
mov eax, dword [esi + 0x30]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 8], ecx
jle 0x4034e5
push ecx
lea ecx, [esi + 0x30]
call fcn.00401ab0
mov ecx, dword [ebp - 8]
lea eax, [ecx + ecx]
push eax
push dword [esi + 0x30]
push 1
push 0
push str.Background_Only
push dword [ebp - 4]
call edi
mov eax, dword [esi + 0x34]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 8], ecx
jle 0x403515
push ecx
lea ecx, [esi + 0x34]
call fcn.00401ab0
mov ecx, dword [ebp - 8]
lea eax, [ecx + ecx]
push eax
push dword [esi + 0x34]
push 1
push 0
push str.Scheduling_Category
push dword [ebp - 4]
call edi
mov eax, dword [esi + 0x38]
cmp dword [eax - 4], 1
mov ebx, dword [eax - 0xc]
jle 0x40353f
push ebx
lea ecx, [esi + 0x38]
call fcn.00401ab0
lea eax, [ebx + ebx]
push eax
push dword [esi + 0x38]
push 1
push 0
push str.SFIO_Priority
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
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 0x42fa45
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.0041e180
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.00420185
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.0041c6ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret

Function at 0x407390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fbe1
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.0041c431
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.0041c431
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.0041c6ac
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.0041c6ac
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.0041c6ac
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.0041c6ac
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.0041c6ac
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.0041c6ac
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.0041c6ac
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 0x42fcd0
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.0041e180
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.0041c6ac
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 0x42fd0d
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.0041c6ac
mov esp, ebp
pop ebp
ret
and edi, 0x3ff
jmp 0x40906f
push 0x80004005
call fcn.00401f80
int3