joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ef00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007bbc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.10074c78
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.1003e860
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10074ba6
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.1007147e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.1007147e
push 1
push 0
push 0
mov ecx, esi
call fcn.10071426
push 1
push 0
push 1
mov ecx, esi
call fcn.10071426
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10074cea
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x1003f080
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007bbe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.10074c78
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.1003e860
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.10074ba6
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x1003f144
cmp dword [esp + 0x40], 1
jne 0x1003f142
cmp ecx, eax
jge 0x1003f144
mov eax, ecx
cmp eax, 0xc8
jge 0x1003f150
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.1003ef00
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10074cea
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x1003f940
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007bc93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.1006f8b9
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.10074f20
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.1007643c
test eax, eax
je 0x1003fa5c
mov ecx, dword [esp + 0x3c]
call fcn.10074f4d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x1003fa20
push edi
mov ecx, esi
call fcn.10072598
mov ecx, esi
call fcn.1003fc00
cmp dword [esp + 0x38], 1
jne 0x1003fa55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.100726d3
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x10041c60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10041c93
push esi
call fcn.10050000
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x10041c8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x10041d19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10041d02
mov eax, dword [esi + 8]
test eax, eax
je 0x10041cb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x10041cfe
cmp eax, 2
je 0x10041d02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10041caa
cmp eax, 3
je 0x10041cdd
cmp eax, 1
jne 0x10041caa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x10041caa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x10041caa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10041d40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10041d28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10041d40
add esp, 4
pop esi
ret

Function at 0x100425b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100425d1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x100425d1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100425d1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10042a20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10042a2b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x10042b2e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x10140260]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10140260]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10140260]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10140260]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10140260]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10140260]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10140260]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10140260]
xor eax, edx
inc ecx
dec edi
jne 0x10042a46
pop edi
test esi, esi
je 0x10042b50
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10140260]
xor eax, edx
inc ecx
dec esi
jne 0x10042b32
pop esi
pop ebx
not eax
ret
Function at 0x10070694
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100706cc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1006e765
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1006e73d
jmp 0x100706d8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10071d86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x10071dc8
call fcn.1007771c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10071dc8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10071dbf
xor eax, eax
jmp 0x10071dd0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10071dd6
pop edi
pop esi
pop ebx
ret 4
Function at 0x10552b14
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10552b1e
pushal
call 0x10552b24
pop ebp
sub ebp, 0x10
sub ebp, 0x552b14
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10552b48
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10552b51
mov eax, 0x552b14
add eax, ebp
add eax, 0x63
mov ecx, 0x624
mov edx, 0x1d7d98b7
xor byte [eax], dl
inc eax
dec ecx
jne 0x10552b68
jmp 0x10552b7b
cmp al, 0x7a
cmp al, 0x3e
mov esi, dword [edi + 0x7636b7b7]
dec edi
mov bh, 0xb7
mov bh, 0xb4
jp 0x10552b9b
mov ebp, 0xdb7b7b7
lahf
mov bh, 0xb7
mov bh, 0x40
push ebp
mov ah, 0x7f
cmp al, 0x36
mov ebx, 0xb4b7b7b7
jb 0x10552bdc
rcl dword [ebx - 0x6c4cc1b5], cl
out 0xdf, eax
inc ebx
sbb bh, byte [ecx - 0x35572049]
int1
mov bh, 0xb6
wait
xchg ebx, eax
fisttp word [ebp - 0x17]
sub edx, dword [ecx + 0x5f]
mov dl, 0xb7
mov bh, 0xb7
pop esi
xor dword [edi - 0x2cc54849], 0xffffff93
dec ebx
wait
xchg ebx, eax
jecxz 0x10552bb8
jmp 0xc2b47ce8
cmp al, 0x32
mov edi, 0x3cb7b7b7
and bh, byte [ebx + 0x3cb7b7b7]
cmp ah, byte [edi + 0x76b7b7b7]
cmpsd dword [esi], dword es:[edi]
mov bh, 0xb7
mov bh, 0x76
pop esi
mov ch, 0x86
mov ch, 0x34
jne 0x10552b9b
invalid
Function at 0x401b15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b6b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b5d
cmp esi, ecx
jae 0x401b6b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b4b
cmp esi, ecx
jae 0x401b6b
cmp word [esi], 0
je 0x401b6b
mov eax, esi
jmp 0x401b6d
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret

Function at 0x40ba40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 9
mov esi, ecx
lea edi, [ebp - 0x44]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x40]
lea ebx, [edi - 1]
not ebx
and ebx, dword [ebp + 8]
je 0x40ba91
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0xc]
call fcn.0040c482
cmp eax, dword [esi + 0xc]
je 0x40ba85
cmp ebx, dword [eax + 0x10]
jae 0x40ba88
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x40ba9a
sub ebx, edi
jne 0x40ba6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 7
lea esi, [eax + 0x14]
pop ecx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
add ecx, ebx
cmp ecx, dword [ebp + 8]
jbe 0x40ba91
mov eax, ebx
jmp 0x40ba93

Function at 0x40f246
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x2c
push ebx
mov dword [ebp - 8], ebx
lea esi, [edi + 0xa0]
push esi
call fcn.004165f0
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x40f295
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebp - 1]
mov ebx, eax
test cl, cl
jne 0x40f2ac
cmp ebx, 0x3e5
je 0x40f2ac
push 0xa
mov ecx, edi
call fcn.0040f4d7
jmp 0x40f2b6
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412d63
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.00401371
push eax
lea ecx, [ebp - 4]
call fcn.00401791
push dword [esi]
lea eax, [ebp - 4]
push str.__s__r_n
push eax
call fcn.00407fe9
mov esi, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x412dc4
push dword [eax + 0x14]
push dword [eax + 0x10]
lea eax, [ebp - 4]
push str._s_s_r_n
push eax
call fcn.00407fe9
add esp, 0x10
lea ecx, [ebp + 8]
call fcn.00404117
mov eax, dword [ebp + 8]
cmp eax, dword [esi]
jne 0x412d9e
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
xor edi, edi
push edi
mov dword [ebp - 8], edi
mov eax, dword [esi - 0xc]
push ecx
add eax, eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412dea
call fcn.004084b5
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004015ce
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413215
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov byte [ebp - 1], cl
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00412df9
test eax, eax
js 0x413337
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
je 0x413337
call fcn.0041226e
cmp byte [ebp - 1], 0
mov eax, str.HKLMSoftwareGoogleUpdate_
jne 0x41325d
mov eax, str.HKCUSoftwareGoogleUpdate_
push eax
lea ecx, [ebp - 8]
call fcn.00403f54
push 0x43c300
lea ecx, [ebp - 0xc]
call fcn.00403f54
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.00403854
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.004015e6
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00407a85
test al, al
jne 0x4132be
mov cl, byte [ebp - 1]
mov dl, 1
call fcn.00413349
mov edi, eax
jmp 0x413329
push 1
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x439948
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x200
call fcn.004075d5
mov edi, eax
test edi, edi
js 0x41331a
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub ebx, eax
sar ebx, 2
test ebx, ebx
je 0x41330e
push 0
push 0
push 0
push 0
push dword [eax + edi*4]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x413333
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, ebx
jb 0x4132ee
mov cl, byte [ebp - 1]
xor dl, dl
call fcn.00413349
mov edi, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x439948
call fcn.00407478
lea ecx, [esi - 0x10]
call fcn.004015ce
jmp 0x41333a
xor edi, edi
jmp 0x41331a
xor edi, edi
inc edi
lea ecx, [ebp - 0x1c]
call fcn.00404b21
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41455d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x43fa1c
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
push 0x43fa1c
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 0
jne 0x41459f
test ebx, ebx
je 0x4145fd
lea ebx, [edi + 0x1c]
mov ecx, edi
push ebx
push str.Counts
call fcn.00414534
test al, al
je 0x4145fd
push dword [esi + 4]
lea ecx, [ebp - 4]
call fcn.0040529a
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x10]
xor edi, edi
mov edx, esi
push eax
mov ecx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.00414826
mov eax, dword [ebp + 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
adc dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
pop ecx
push 8
push eax
push 3
push edi
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.004015ce
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414604
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x43f008]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x43fa1c
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
pop ecx
lea eax, [esi + 0x18]
push 0x20
mov esi, eax
lea edi, [esp + 0x34]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004165f0
add esp, 0xc
push 0x43fa1c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x30], 0
je 0x414735
lea edi, [ebx + 0x28]
mov ecx, ebx
push edi
push str.Timings
call fcn.00414534
test al, al
je 0x414735
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push dword [eax + 4]
call fcn.0040529a
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov edx, esi
mov ecx, edi
call fcn.00414872
pop ecx
test al, al
jne 0x4146b5
push 0x20
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00417a40
add esp, 0xc
jmp 0x414719
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
adc dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x24]
jg 0x4146e3
mov eax, dword [esp + 0x40]
jl 0x4146eb
cmp eax, dword [esp + 0x20]
jb 0x4146eb
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x2c], ecx
jg 0x414709
mov eax, dword [esp + 0x48]
jl 0x414711
cmp dword [esp + 0x28], eax
jb 0x414711
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
push 0x20
lea eax, [esp + 0x14]
push eax
push 3
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.004015ce
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00415a6f
mov esp, ebp
pop ebp
ret 4

Function at 0x414826
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 8
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41485f
cmp dword [ebp - 8], 3
jne 0x41485f
test eax, eax
jne 0x41485f
cmp dword [ebp - 4], esi
jne 0x41485f
mov al, 1
jmp 0x41486f
push esi
push 0
push dword [ebp + 8]
call fcn.004165f0
add esp, 0xc
xor al, al
pop esi
leave
ret
Function at 0x414872
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4148ab
cmp dword [ebp - 8], 3
jne 0x4148ab
test eax, eax
jne 0x4148ab
cmp dword [ebp - 4], esi
jne 0x4148ab
mov al, 1
jmp 0x4148bb
push esi
push 0
push dword [ebp + 8]
call fcn.004165f0
add esp, 0xc
xor al, al
pop esi
leave
ret
Function at 0x4157ee
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 0xc
lea edx, [ebx + 0x1c]
lea ecx, [ebx + 0x40]
mov esi, eax
lea eax, [ebx + 0x38]
push edx
push ecx
lea ecx, [ebx + 0x3c]
push ecx
push eax
push edi
push esi
push ecx
lea ecx, [ebp - 0x88]
call fcn.004156af
lea ecx, [ebp - 0x30]
call fcn.0040ee5b
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push 0x2c
mov eax, ecx
mov dword [ebp - 4], esi
push eax
push 0x2c
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x4158b1
cmp dword [ebp - 0x30], 2
jne 0x4158b1
cmp dword [ebp - 0x2c], esi
je 0x4158b1
cmp dword [ebp - 0x10], esi
je 0x4158b1
cmp dword [ebp - 0xc], esi
je 0x4158b1
cmp dword [ebp - 8], esi
je 0x4158b1
lea ecx, [ebp - 0x5c]
call fcn.0040ee5b
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x5c], 3
push eax
push 0x2c
mov eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4158b1
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x34], eax
mov al, 1
jmp 0x4158b3
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401a80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
fldz
push ebx
push esi
fstp qword [esp + 0xc]
push edi
mov edi, dword [esp + 0x20]
xor eax, eax
xor ecx, ecx
mov word [esp + 0xc], ax
mov word [esp + 0xc], cx
push edi
call fcn.0040ab13
movzx edx, word [esp + 0x10]
mov ebx, dword [esp + 0x20]
push edi
mov esi, eax
add edx, 0x62cb37eb
push ebx
push esi
mov word [esp + 0x1c], dx
call fcn.0040abe0
mov eax, dword [0x4267e4]
sub eax, 0x422004
add edi, esi
add esp, 0x10
add eax, ebx
mov ecx, esi
cmp esi, edi
je 0x401af4
lea esp, [esp]
mov dl, byte [eax]
xor byte [ecx], dl
mov dx, word [esp + 0xc]
inc ecx
inc eax
mov word [esp + 0xc], dx
cmp ecx, edi
jne 0x401ae0
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret