joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100107a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x1009f040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x1012266c]
lea eax, [esp + 0x24]
push esi
push edi
push eax
push dword [0x10122684]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
movd xmm1, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, dword [0x10122688]
mov esi, dword [esp + 0x24]
mov edx, esi
sbb edx, dword [0x1012268c]
call fcn.1004e8d0
mov edx, dword [0x10122694]
mov ecx, dword [0x10122690]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.1004e8d0
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x1012268c], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x10122688], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xf1], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xf2], al
call esi
mov ecx, dword [0x1012266c]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xf4], 0
mov byte [ebx + 0xf3], al
cmp byte [ecx + 0x36f], 0
lea esi, [ecx + 0xd8]
je 0x100108da
cvttss2si eax, dword [esi]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [ecx + 0xdc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [0x10122684]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi], 0xff7fffff
mov dword [esi + 4], 0xff7fffff
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [0x10122684]
jne 0x10010934
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10010934
lea eax, [esp + 0x18]
push eax
push dword [0x10122684]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x10010934
movd xmm0, dword [esp + 0x18]
movd xmm1, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
cmp byte [ebx + 0xf0], 0
je 0x10010942
or eax, 0xffffffff
jmp 0x1001094d
mov eax, dword [0x1012266c]
mov eax, dword [eax + 0x1bd4]
cmp dword [0x100ac8a0], eax
je 0x1001095f
mov dword [0x100ac8a0], eax
call fcn.10010680
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004d560
mov esp, ebp
pop ebp
ret
Function at 0x10012520
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x101226ec], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x100125da
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x101226e8], eax
inc ebx
cmp ebx, 0x100
jb 0x10012540
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x10012606
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101226e8]
sub edi, 1
jne 0x100125e5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10012638
nop dword [eax]
cmp cl, 0x23
jne 0x1001261f
cmp byte [esi], cl
jne 0x1001261f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x101226e8]
test cl, cl
jne 0x10012610
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10012ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10012ef2
mov dword [edi], 0
mov edx, 0x1009ac30
call fcn.10012db0
mov esi, eax
test esi, esi
jne 0x10012f06
pop edi
pop esi
pop ebp
ret
push ebx
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10012fa0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x10012fa0
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10012fa0
inc dword [0x10122698]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10012fa0
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, ebx
je 0x10012f89
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp + 8]
dec dword [0x10122698]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x10012f98
mov dword [edi], ebx
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10018e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1009f040]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], edi
xor ecx, ecx
mov dword [esp + 0x34], 0x948187ba
mov dword [esp + 0x38], 0x100859e
lea eax, [ecx - 0x13]
xor byte [esp + ecx + 0x34], al
inc ecx
cmp ecx, 6
jb 0x10018e86
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x948187ba
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x38], 0x100859e
nop dword [eax]
lea eax, [ecx - 0x13]
xor byte [esp + ecx + 0x34], al
inc ecx
cmp ecx, 6
jb 0x10018eb0
push 0
xor edx, edx
mov byte [esp + 0x3f], 0
lea ecx, [esp + 0x38]
call fcn.10012520
mov ecx, dword [edi + 0x2b78]
lea esi, [edi + 0x2b74]
mov dword [esp + 0x18], eax
add esp, 4
mov eax, dword [esi]
mov dword [esp + 0x18], 0x10018920
mov dword [esp + 0x1c], 0x10018990
mov dword [esp + 0x20], 0x10018b20
test eax, eax
jne 0x10018f4b
cmp eax, ecx
jne 0x10018f2c
lea edi, [eax + 1]
test ecx, ecx
je 0x10018f16
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10018f1b
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.10033960
mov edi, dword [esp + 0xc]
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [eax + ecx*8 + 0x10], xmm0
jmp 0x10018faa
cmp eax, ecx
jne 0x10018f77
lea edi, [eax + 1]
test ecx, ecx
je 0x10018f61
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10018f66
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.10033960
mov edi, dword [esp + 0xc]
mov eax, dword [esi]
test eax, eax
jle 0x10018f94
mov ecx, dword [esi + 8]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push ecx
lea eax, [ecx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [esi + 8]
movups xmm0, xmmword [esp + 0x10]
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [eax + 0x10], xmm0
inc dword [esi]
mov ecx, dword [esp + 0x3c]
mov byte [edi], 1
pop edi
pop esi
xor ecx, esp
call fcn.1004d560
mov esp, ebp
pop ebp
ret
Function at 0x100192f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x1012266c]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2b64], 0
test eax, eax
je 0x100193ac
push ebx
push edi
push 0
lea ecx, [esi + 0x2b68]
mov dword [esi + 0x2b64], 0
call fcn.10033520
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push eax
lea ecx, [esi + 0x2b68]
call fcn.10033730
xor ebx, ebx
cmp dword [esi + 0x2b74], ebx
jle 0x10019375
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0x2b7c]
lea ecx, [esi + 0x2b68]
add eax, edi
push ecx
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
inc ebx
add esp, 0xc
add edi, 0x18
cmp ebx, dword [esi + 0x2b74]
jl 0x10019350
mov edi, dword [esi + 0x2b68]
mov edx, 0x1009ac34
mov ecx, dword [ebp - 8]
dec edi
mov ebx, dword [esi + 0x2b70]
call fcn.10012db0
mov esi, eax
test esi, esi
je 0x100193aa
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100330d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 6], 0
je 0x100330f2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 5
jb 0x100330e0
mov byte [esi + 6], 0
pop esi
ret

Function at 0x10039000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x1009f040]
xor eax, esp
mov dword [esp + 0x28], eax
movaps xmm0, xmmword [0x1009bd30]
push ebx
movups xmmword [esp + 4], xmm0
mov ebx, ecx
mov dword [esp + 0x24], 0x78607054
movaps xmm0, xmmword [0x1009b840]
xor ecx, ecx
push esi
push edi
movups xmmword [esp + 0x1c], xmm0
mov word [esp + 0x30], 0x14
mov byte [esp + 0x32], 1
mov al, cl
sub al, 0x10
xor byte [esp + ecx + 0xc], al
inc ecx
cmp ecx, 0x25
jb 0x10039047
xor esi, esi
mov byte [esp + 0x32], 0
cmp byte [esp + 0xc], 0
lea edx, [esp + 0xc]
je 0x10039081
mov eax, edx
lea edi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10039070
sub eax, edi
inc edx
add edx, eax
inc esi
cmp byte [edx], cl
jne 0x10039067
push ecx
push esi
lea eax, [esp + 0x14]
mov edx, 0x100aca1c
push eax
push 0x1002c6f0
mov ecx, ebx
call fcn.1002c750
add esp, 0x10
test al, al
je 0x10039117
mov eax, dword [0x100aca1c]
cmp eax, 3
ja case.default.0x100390aa
jmp dword [eax*4 + 0x1003912c]
call fcn.100437f0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004d560
mov esp, ebp
pop ebp
ret
xor ecx, ecx
call fcn.10043140
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004d560
mov esp, ebp
pop ebp
ret
call fcn.10044d10
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004d560
mov esp, ebp
pop ebp
ret
call fcn.10044660
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004d560
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004d560
mov esp, ebp
pop ebp
ret
Function at 0x1003bec0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x34], 0
je 0x1003bee2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x33
jb 0x1003bed0
mov byte [esi + 0x34], 0
pop esi
ret

Function at 0x1003bef0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x1003bf12
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x23
jb 0x1003bf00
mov byte [esi + 0x24], 0
pop esi
ret

Function at 0x1003bf20
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a5], 0
je 0x1003bf47
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x1a4
jb 0x1003bf30
mov byte [esi + 0x1a5], 0
pop esi
ret

Function at 0x1003bf50
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
je 0x1003bf72
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x2b
jb 0x1003bf60
mov byte [esi + 0x2c], 0
pop esi
ret

Function at 0x1003bf80
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x22], 0
je 0x1003bfa2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x21
jb 0x1003bf90
mov byte [esi + 0x22], 0
pop esi
ret

Function at 0x1003bfb0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1d], 0
je 0x1003bfd2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x1c
jb 0x1003bfc0
mov byte [esi + 0x1d], 0
pop esi
ret

Function at 0x1003bfe0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x5f], 0
je 0x1003c002
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x5e
jb 0x1003bff0
mov byte [esi + 0x5f], 0
pop esi
ret

Function at 0x1003c010
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3c], 0
je 0x1003c032
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x3b
jb 0x1003c020
mov byte [esi + 0x3c], 0
pop esi
ret

Function at 0x1003c040
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2b], 0
je 0x1003c062
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x2a
jb 0x1003c050
mov byte [esi + 0x2b], 0
pop esi
ret

Function at 0x1003c070
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x68], 0
je 0x1003c092
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x67
jb 0x1003c080
mov byte [esi + 0x68], 0
pop esi
ret
Function at 0x1003c0a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x41], 0
je 0x1003c0c2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x40
jb 0x1003c0b0
mov byte [esi + 0x41], 0
pop esi
ret

Function at 0x1003c0d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x8b], 0
je 0x1003c0f7
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x8a
jb 0x1003c0e0
mov byte [esi + 0x8b], 0
pop esi
ret

Function at 0x1003c100
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1e], 0
je 0x1003c122
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x1d
jb 0x1003c110
mov byte [esi + 0x1e], 0
pop esi
ret

Function at 0x1003c130
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x17], 0
je 0x1003c152
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x10]
inc eax
xor byte [edx], cl
cmp eax, 0x16
jb 0x1003c140
mov byte [esi + 0x17], 0
pop esi
ret
Function at 0x100495b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fcd6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1009f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.100496e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004acd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1004ae80
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1004ad9d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1004ad1a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1009f004]
ja 0x1004ad1a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004acea
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004ad40
jmp 0x1004ad9d
cmp dword [ebp - 0x14], 0x10000
jne 0x1004ad83
cmp dword [ebp - 0x18], 0x10000
jb 0x1004ad83
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004ad76
mov eax, dword [ebp - 8]
jmp 0x1004ad9f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004ad98
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1004ae80
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004acea
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1004adb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1004aeb0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1004ae75
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1004adf5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1009f004]
ja 0x1004adf5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004adc5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004ae1b
jmp 0x1004ae75
cmp dword [ebp - 0x14], 0x10000
jne 0x1004ae5e
cmp dword [ebp - 0x18], 0x10000
jb 0x1004ae5e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004ae51
mov eax, dword [ebp - 8]
jmp 0x1004ae77
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004ae70
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1004aeb0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004adc5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4092f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421c88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x426648
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.00409790
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x4093f6
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004094d0
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x4093e9
test ebx, ebx
je 0x4093f4
mov edx, dword [section..reloc]
mov eax, dword [edx + 0xc]
mov ecx, section..reloc
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4266a8
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406de0
mov edi, dword [ebp - 0x14]
mov eax, edi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093a0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x4093f4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40943c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x42b468
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00409790
add esp, 8
lea ecx, [ebp - 0x18]
push 0x42b4cc
push ecx
mov byte [ebp - 4], 1
call fcn.00409790
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [section..reloc]
mov eax, dword [edx + 0xc]
mov ecx, section..reloc
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00406e80
add esp, 4
cmp eax, ebx
je 0x40f191
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.004069d0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40f21d
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x40f21d
cmp dword [esi - 0xc], ebx
je 0x40f21d
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x40f21d
xor ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.0040f080
test eax, eax
jne 0x40f201
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40f201
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40f204
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x40f212
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x40f1b0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f23d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f260
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f282
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret