joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a9a6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3a7c
call fcn.004122f0
mov eax, dword [0x439164]
xor eax, esp
mov dword [esp + 0x3a78], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x10], eax
mov ebx, ecx
mov dword [esp + 0x14], edi
call fcn.004296cb
test eax, eax
je 0x42a9e7
or eax, 0xffffffff
jmp 0x42ab7a
cmp dword [0x442410], 1
jne 0x42aa4d
lea eax, [esp + 0x18]
call fcn.0042a95c
test eax, eax
jne 0x42a9df
lea eax, [esp + 0x18]
call fcn.004267d9
mov esi, dword [esp + 0x10]
push ebx
lea ebx, [esp + 0x1284]
lea ecx, [esp + 0x1c]
call fcn.00427e23
mov eax, ebx
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42aa21
sub eax, edx
push eax
lea eax, [esp + 0x1284]
push eax
lea ecx, [esp + 0x20]
call fcn.00429ec1
test eax, eax
pop ecx
pop ecx
je 0x42aa67
lea esi, [esp + 0x18]
call fcn.00426b52
jmp 0x42a9df
push 1
push dword [0x441f5c]
lea esi, [esp + 0x20]
mov ecx, 0x4421f8
call fcn.0042a76a
pop ecx
pop ecx
jmp 0x42a9f9
mov esi, edi
lea ecx, [esp + 0x18]
call fcn.0042a80e
lea esi, [esp + 0x18]
mov ebx, eax
call fcn.00426b52
test ebx, ebx
jl 0x42a9df
push ebx
mov ebx, dword [edi]
mov ecx, str.iaop
call fcn.00427d18
cmp eax, 0xffffffff
pop ecx
mov dword [esp + 0x10], eax
jne 0x42ab00
mov edi, dword [edi]
xor esi, esi
push esi
call fcn.0042740f
pop ecx
push esi
mov edi, str.iao_post:_response_not_IAOP_compliant
call fcn.0042740f
mov eax, dword [esp + 0x18]
pop ecx
push dword [eax]
call fcn.0040f418
mov eax, dword [0x442418]
inc dword [0x442418]
cmp eax, 0x7d0
pop ecx
jne 0x42a9df
push esi
mov edi, str.iao_post:_response_not_IAOP_compliant_for_200_times_in_a_row
call fcn.0042740f
pop ecx
push esi
mov edi, str.iao_post:_There_could_be_a_firewall_issue.
call fcn.0042740f
pop ecx
push esi
mov edi, str.iao_post:_Bailing_out.
call fcn.0042740f
pop ecx
push 0xffffffffffffffff
call fcn.0040f93c
push 7
push str._error_
push dword [edi]
xor ebx, ebx
mov dword [0x442418], ebx
call fcn.0040f087
add esp, 0xc
test eax, eax
jne 0x42ab31
mov ecx, dword [edi]
call fcn.004282d4
push dword [edi]
call fcn.0040f418
pop ecx
jmp 0x42a9df
mov ecx, str._directive_die:
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x42ab3b
sub eax, esi
push eax
push ecx
push dword [edi]
call fcn.0040f087
add esp, 0xc
test eax, eax
jne 0x42ab76
mov edi, dword [edi]
push ebx
call fcn.0042740f
pop ecx
push ebx
mov edi, str.iao_post:_Was_asked_to_die_by_server._Bailing_out...
call fcn.0042740f
mov eax, dword [esp + 0x18]
pop ecx
push dword [eax]
call fcn.0040f418
jmp 0x42aaf8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3a84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041070b
mov esp, ebp
pop ebp
ret
Function at 0x42abd5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x439164]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x218], 0
push ebx
push esi
push edi
mov esi, ecx
push str.AUTHENTIC_TAG
lea ebx, [ebp - 0x20c]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x21c], eax
call fcn.004274a9
test eax, eax
pop ecx
jne 0x42ac22
mov eax, ebx
mov dword [ebp - 0x218], eax
jmp 0x42ac2f
push 0
mov edi, str.iao_getbinary:_AUTHENIC_TAG_variable_not_embedded
call fcn.0042740f
pop ecx
push esi
push str._getbinary___
push 0x441148
call fcn.0042ab8f
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x42ac50
or eax, 0xffffffff
jmp 0x42ad84
mov eax, dword [esi]
push str._binary_authentic_
lea esi, [ebp - 0x210]
mov dword [ebp - 0x210], eax
call fcn.00426686
test eax, eax
pop ecx
je 0x42ac8f
mov edi, str.iao_getbinary:__binary__tag_invalid
push 0
call fcn.0042740f
mov eax, dword [ebp - 0x214]
pop ecx
push dword [eax]
call fcn.0040f418
or eax, 0xffffffff
jmp 0x42ad83
cmp dword [ebp - 0x218], 0
mov ebx, 0x43c22c
je 0x42acd5
push dword [ebp - 0x218]
lea esi, [ebp - 0x210]
call fcn.00426686
test eax, eax
pop ecx
je 0x42ace9
push 0
mov edi, str.iao_getbinary:_binary_not_authentic
call fcn.0042740f
mov eax, dword [ebp - 0x214]
pop ecx
push dword [eax]
call fcn.0040f418
pop ecx
push 0xffffffffffffffff
call fcn.0040f93c
push ebx
push dword [ebp - 0x210]
call fcn.00410720
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
push ebx
lea esi, [ebp - 0x210]
call fcn.00426686
test eax, eax
pop ecx
je 0x42ad04
mov edi, str.iao_getbinary:__binary__tag__invalid__closing_
jmp 0x42ac72
mov ecx, str.__binary_
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42ad0e
sub eax, esi
mov esi, dword [ebp - 0x214]
mov ebx, eax
mov eax, dword [esi]
sub eax, ebx
push ebx
add eax, edi
push eax
push ecx
call fcn.0040f087
add esp, 0xc
test eax, eax
je 0x42ad48
push 0
mov edi, str.iao_getbinary:___binary__tag_invalid
call fcn.0042740f
pop ecx
push dword [esi]
jmp 0x42ac82
mov eax, dword [esi]
sub eax, ebx
push edi
mov byte [eax + edi], 0
call fcn.0040feba
pop ecx
push dword [ebp - 0x210]
mov edi, eax
push edi
call fcn.004277d2
mov ecx, dword [ebp - 0x21c]
mov dword [ecx], eax
push eax
mov ecx, edi
call fcn.00427c19
add esp, 0xc
push dword [esi]
call fcn.0040f418
mov dword [esi], edi
xor eax, eax
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041070b
leave
ret
Function at 0x42bf97
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0042bce0
pop ecx
push 9
mov esi, eax
pop ecx
mov edi, 0x43e494
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
call fcn.004289bf
cmp dword [ebp + 8], 1
jle 0x42c050
mov eax, dword [esi + 4]
push 2
pop esi
mov edx, str.service
mov ecx, eax
push ebx
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x42bff5
test bl, bl
je 0x42bff1
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x42bff5
add ecx, esi
add edx, esi
test bl, bl
jne 0x42bfd7
xor ecx, ecx
jmp 0x42bffa
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
pop ebx
jne 0x42c010
push ecx
mov edi, str.Starting_agent_service...
call fcn.0042740f
pop ecx
jmp fcn.0042bf59
mov ecx, str.uninstall
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42c033
test dl, dl
je 0x42c02f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42c033
add eax, esi
add ecx, esi
test dl, dl
jne 0x42c015
xor eax, eax
jmp 0x42c038
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42c050
call fcn.00428b51
push 0
mov edi, str.Uninstalled
call fcn.0042740f
pop ecx
jmp 0x42c06e
call fcn.0042a012
cmp eax, 0xffffffff
jne 0x42c06e
push str.Installation_has_failed._Would_you_like_to_see_the_log_file_
call fcn.00426494
test eax, eax
pop ecx
je 0x42c06e
call fcn.004273b9
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x401c50
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 0x401cab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401cab
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 0x401c9a
cmp esi, edx
jae 0x401cab
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401c88
cmp esi, edx
jae 0x401cab
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 0x402140
Capabilities:
Terminate process

Disassembly:
push 1
push 0
mov ecx, 0x446278
call fcn.00409180
mov dword [0x440eb8], eax
jmp fcn.00402160
Function at 0x403450
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 0x403491
cmp byte [esi + 0xc], 0
je 0x403491
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 0x403498
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 0x40350a
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 0x403525
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 0x403555
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 0x40357f
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 0x405260
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4300b5
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 0x40540b
lea edi, [ebp - 0x278]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4052a6
mov ecx, 6
mov esi, str._regedit.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x40541e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x405428
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 0x405310
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.00402f80
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 0x405366
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 0x4053bc
push 0x2710
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4053bc
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 0x4053bc
mov bl, 1
jmp 0x4053be
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 0x4053dc
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 0x4053f8
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.00401fc0
push 0x80004005
call fcn.00401fc0
int3
Function at 0x406610
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x440440]
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.0041e7e0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x3ff
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40669c
cmp word [ebp - 0x804], 0
je 0x40669c
push 0x3ff
push edi
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.004207e5
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.0041cd0c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0041cd0c
mov esp, ebp
pop ebp
ret

Function at 0x4073d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430251
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x440440]
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.00401ec0
mov ecx, eax
test ecx, ecx
je 0x4074d5
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.0041ca91
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.0041ca91
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.00407620
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.00401fc0
int3
Function at 0x407b80
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0041ce70
mov eax, dword [0x440440]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx + 4]
push ebx
lea ebx, [ecx + 4]
push esi
mov eax, dword [edx - 0xc]
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x407c08
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x407d27
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x407bff
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x407bfc
push ecx
call fcn.004025a0
add esp, 4
mov dword [ebp - 0x2010], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x407bf2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2010]
add eax, 0x10
mov dword [edi], eax
jmp 0x407d27
mov eax, dword [edx - 0xc]
push eax
push edx
mov ecx, edi
jmp 0x407d22
push 0x2000
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2010], 0
push 0
push eax
call fcn.0041e7e0
add esp, 0xc
lea eax, [ebp - 0x2010]
push eax
push 1
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c8f
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0x1fff
push eax
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], 1
push eax
lea eax, [ebp - 0x2008]
push eax
push 0
push str.ProcessorNameString
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ca0
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00401840
push 0x43c1a8
push 0x43c1ac
mov ecx, edi
call fcn.00408300
mov ecx, dword [edi]
mov esi, dword [ebx]
sub esi, 0x10
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x407d27
cmp dword [esi + 0xc], 0
jl 0x407d1c
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x407d1c
push edx
call fcn.004025a0
add esp, 4
mov dword [ebp - 0x2008], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d15
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2008]
add eax, 0x10
mov dword [ebx], eax
jmp 0x407d27
push dword [ecx - 0xc]
push ecx
mov ecx, ebx
call fcn.00401840
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
cmp dword [eax - 0xc], 0
pop ebx
setne al
xor ecx, ebp
call fcn.0041cd0c
mov esp, ebp
pop ebp
ret 4
Function at 0x407ed0
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 0x407f44
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 0x407f08
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 0x408a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x440440]
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 0x408af7
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 0x408adc
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.0041cd0c
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.0041cd0c
mov esp, ebp
pop ebp
ret 0x14
cmp esi, 0x81000000
jne 0x408ac7
push dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
push ebx
push edi
push dword [ebp - 0xc]
push 0x80000002
call fcn.00408a50
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cd0c
mov esp, ebp
pop ebp
ret 0x14
Function at 0x408b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x440440]
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 0x408b96
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 0x408baa
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cd0c
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.0041cd0c
mov esp, ebp
pop ebp
ret 0x14

Function at 0x408bd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x440440]
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 0x408c29
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 0x408c3c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cd0c
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.0041cd0c
mov esp, ebp
pop ebp
ret 0x14
Function at 0x408dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430340
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x440440]
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 0x408f4f
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041e7e0
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00409b20
add esp, 0x14
test eax, eax
jne 0x408e3f
mov word [ebp - 0x810], ax
mov ecx, dword [ebx + 0xf4]
xor esi, esi
cmp dword [ecx], esi
je 0x408f8e
mov edx, dword [ebx + 0xfc]
xor eax, eax
mov edi, dword [ebp + 8]
nop word [eax + eax]
cmp dword [eax + edx], 0
je 0x408f8e
cmp dword [eax + ecx], edi
je 0x408e84
inc esi
lea eax, [esi*4]
cmp dword [eax + ecx], 0
jne 0x408e60
xor al, al
jmp 0x408f51
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x408f92
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 0x408edf
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push str._s_s
push eax
call fcn.00402f80
add esp, 0x10
jmp 0x408eea
lea ecx, [ebp - 0x814]
call fcn.00401800
mov esi, dword [ebp - 0x814]
cmp dword [esi - 4], 1
jle 0x408f0a
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 0x408f30
mov eax, dword [ebx + 0xfc]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x408f6f
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 0x408f4f
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.0041cd0c
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 0x408f8e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x408f51
push 0x80004005
call fcn.00401fc0
int3