joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006a640
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100be8c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x1006a679
inc eax
mov dword [esi + 0x10], eax
jmp 0x1006a78c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x1006a68d
mov eax, 0xffffffc7
jmp 0x1006a78e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x1006a69e
cmp dword [esi + 8], eax
jne 0x1006a68d
cmp dword [esi + 8], eax
jne 0x1006a6b7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x1006a6b7
mov eax, 0xffffffc7
jmp 0x1006a78e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1006a6cb
push eax
mov ecx, ebx
call fcn.10069e70
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.10035450
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x1006a6fc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.10035470
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.100695e0
test eax, eax
mov dword [esp + 0x38], eax
je 0x1006a72f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x100cf000
call fcn.10035650
mov eax, dword [esp + 0x38]
jmp 0x1006a78e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.1006a4a0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x1006a773
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.1006a4c0
mov esi, eax
test esi, esi
jne 0x1006a7a3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.1006a4a0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x1006a745
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x100cf000
call fcn.10035650
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x100cf000
call fcn.10035650
mov eax, esi
jmp 0x1006a78e

Function at 0x1006f1a0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x1006f200
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x1006f200
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x1006f200
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x1006f200
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x1006f240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x1007af90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100bf1b8
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.100b7279
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.1007a8f0
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.100b71a7
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.100b3a51
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.100b3a51
push 1
push 0
push 0
mov ecx, esi
call fcn.100b39f9
push 1
push 0
push 1
mov ecx, esi
call fcn.100b39f9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.100b72eb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x1007b110
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100bf1d8
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.100b7279
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.1007a8f0
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.100b71a7
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 0x1007b1d4
cmp dword [esp + 0x40], 1
jne 0x1007b1d2
cmp ecx, eax
jge 0x1007b1d4
mov eax, ecx
cmp eax, 0xc8
jge 0x1007b1e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.1007af90
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.100b72eb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x1007b9d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100bf283
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.100b1e6e
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.100b7521
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.100b8a80
test eax, eax
je 0x1007baec
mov ecx, dword [esp + 0x3c]
call fcn.100b754e
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 0x1007bab0
push edi
mov ecx, esi
call fcn.100b4b9f
mov ecx, esi
call fcn.1007bc90
cmp dword [esp + 0x38], 1
jne 0x1007bae5
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.100b4cda
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 0x1007dd00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1007dd33
push esi
call fcn.1008c0b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1007dd2c
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 0x1007ddb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1007dda2
mov eax, dword [esi + 8]
test eax, eax
je 0x1007dd57
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 0x1007dd9e
cmp eax, 2
je 0x1007dda2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1007dd4a
cmp eax, 3
je 0x1007dd7d
cmp eax, 1
jne 0x1007dd4a
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 0x1007dd4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1007dd4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1007dde0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1007ddc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1007dde0
add esp, 4
pop esi
ret

Function at 0x1007e650
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1007e671
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1007e671
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1007e671
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 0x1007eac0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1007eacb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1007ebce
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 + 0x100d0cd0]
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 + 0x100d0cd0]
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 + 0x100d0cd0]
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 + 0x100d0cd0]
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 + 0x100d0cd0]
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 + 0x100d0cd0]
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 + 0x100d0cd0]
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 + 0x100d0cd0]
xor eax, edx
inc ecx
dec edi
jne 0x1007eae6
pop edi
test esi, esi
je 0x1007ebf0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100d0cd0]
xor eax, edx
inc ecx
dec esi
jne 0x1007ebd2
pop esi
pop ebx
not eax
ret
Function at 0x10099370
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x100bf5a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x100f2ac8]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
xor ebp, ebp
mov ecx, 0x40
xor eax, eax
mov edi, 0x101074dc
push ebp
push 0x10099440
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], ebp
mov dword [0x101074d8], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x101074d8]
cmp eax, ebp
jl 0x10099411
push ebx
mov ebx, dword [esp + 0x24]
mov esi, 0x101074dc
sub esi, ebx
mov dword [esp + 0x24], esi
jmp 0x100993d7
mov esi, dword [esp + 0x24]
push 0x14
call fcn.100a1327
mov dword [ebx], eax
mov ecx, dword [esi + ebx]
push ecx
lea edx, [esp + 0x18]
push 0x100f16f0
push edx
call fcn.100ae3b9
mov esi, dword [esp + 0x20]
mov edi, dword [ebx]
mov ecx, 5
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x101074d8]
inc ebp
add ebx, 4
cmp ebp, eax
jle 0x100993d3
pop ebx
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
call fcn.100b0896
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x1009ae50
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x1009aef3
test eax, eax
jbe 0x1009aef3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x1009aef3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x1009ae9e
xor esi, esi
jmp 0x1009aea4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x1009aecf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.10035e90
add esi, eax
push esi
mov ebx, esi
call fcn.10035e90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x1009aeb0
pop ebp
test edi, edi
pop edi
jne 0x1009aef3
test ebx, ebx
je 0x1009aef3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.100a1140
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x1009b010
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1009b12d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1009b12d
mov eax, dword [esi + 0x3c]
push eax
call fcn.100b22c0
mov esi, eax
test esi, esi
je 0x1009b12d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x1009b12d
mov ecx, esi
call fcn.1009afa0
cmp edi, eax
jge 0x1009b12d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x1009b0b3
mov dword [esp + 0x34], 1
jmp 0x1009b10e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x1009b12d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.1009a570
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x100b2c64
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100b2c9c
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.100b0cf1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100b0cc9
jmp 0x100b2ca8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100b4359
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 0x100b439b
call fcn.100b9e6b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100b439b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100b4392
xor eax, eax
jmp 0x100b43a3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100b43a9
pop edi
pop esi
pop ebx
ret 4
Function at 0x401167
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13a4
call fcn.004435c0
mov eax, dword [0x473060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x13a4], eax
mov esi, ebx
push edi
mov edi, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401193
sub esi, ecx
cmp esi, 0x139c
jb 0x4011b9
push 0x9d
mov edx, 0x470c58
mov ecx, str.Assertion_failed__tcslen_pMsgFormat____sizeof_pTempBuffer_
call fcn.00401377
pop ecx
xor esi, esi
cmp edi, 2
jne 0x4011f4
push dword [0x475f2c]
lea eax, [ebp - 0x13a0]
push dword [0x475f28]
push str._s___d__:
push 0x139b
push eax
call fcn.004014c8
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
jne 0x4011f4
push 2
pop eax
jmp 0x4012c7
push dword [ebp - 0x13a4]
mov eax, 0x139b
push 0
sub eax, esi
push ebx
push eax
lea eax, [ebp - 0x13a0]
add eax, esi
push eax
call fcn.00401496
add esp, 0x14
cmp eax, 0xffffffff
je 0x4011ec
add esi, eax
cmp esi, 0x139c
jb 0x40123a
push 0xb5
mov edx, 0x470c58
mov ecx, str.Assertion_failed_len__sizeof_pMsgFormat____sizeof_pTempBuffer_
call fcn.00401377
pop ecx
cmp edi, 2
jne 0x401263
lea eax, [ebp - 0x13a0]
add eax, esi
push 0x470d8c
push eax
call fcn.0040147b
pop ecx
add esi, eax
lea eax, [ebp - 0x13a0]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, 0x139b
jb 0x401280
push 0xc1
mov edx, 0x470c58
mov ecx, str.Assertion_failed__uint32_t_len____sizeof_pTempBuffer____sizeof_pTempBuffer_0_____1_
call fcn.00401377
pop ecx
lea eax, [ebp - 0x13a0]
push eax
push 0x470ca0
call fcn.004014ea
pop ecx
xor ebx, ebx
pop ecx
cmp edi, 2
je 0x4012a1
cmp edi, 3
sete bl
inc ebx
mov eax, ebx
sub eax, 0
je 0x4012bf
dec eax
sub eax, 1
jne 0x4012c5
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4012c5
cmp edi, 2
je 0x4012c5
int3
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004428c2
mov esp, ebp
pop ebp
ret
Function at 0x4022a2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x473060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4022ce
mov al, 1
jmp 0x4023e3
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4022f3
cmp eax, 2
sete al
jmp 0x4023e3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [edi + eax]
cmp byte [esi - 1], 0x5c
je 0x40238b
mov byte [esi], 0x5c
inc esi
xor ecx, ecx
mov byte [esi], cl
jmp 0x40238d
mov ecx, edi
mov byte [esi], 0
call fcn.00401120
lea ecx, [ebp - 0x108]
call fcn.00401120
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40232c
sub edx, ecx
lea ecx, [ebp - 0x108]
lea eax, [ecx + 1]
mov dword [ebp - 0x114], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402344
sub ecx, dword [ebp - 0x114]
lea eax, [ecx + edx]
cmp eax, 0x208
jb 0x402362
mov ecx, 0x207
sub ecx, edx
test ecx, ecx
je 0x40237e
push ecx
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.004490c0
add esp, 0xc
mov byte [eax + 0x207], 0
mov edx, edi
mov ecx, ebx
call fcn.004022a2
test al, al
je 0x4023c4
xor ecx, ecx
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x10c], 0x104
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ecx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402312
mov byte [esi - 1], 0
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop esi
sbb al, al
inc al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004428c2
mov esp, ebp
pop ebp
ret

Function at 0x402456
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 0x14], 0
jne 0x402466
xor eax, eax
jmp 0x402497
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402462
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp dword [ebp - 0xc], 4
cmovne eax, ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x406fa7
Capabilities:
Create thread
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x473060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
xor ebx, ebx
mov dword [ebp - 0x2c], 0x9188869a
pop eax
mov dword [ebp - 0x28], 0xdb8997
mov edi, ecx
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov esi, ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 5
mov dword [ebp - 8], 6
test eax, eax
je 0x40701a
mov ecx, dword [edx]
lea edx, [edx + 4]
lea eax, [ecx - 0x2b]
xor byte [ebp + ecx - 0x2c], al
inc esi
cmp esi, 7
jne 0x407008
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], 1
push eax
mov ecx, 0x473de8
call fcn.00402456
cmp eax, 1
jne 0x407038
xor al, al
jmp 0x4070c9
push 7
pop eax
mov dword [ebp - 0x2c], 0x9188869a
lea edx, [ebp - 0x20]
mov dword [ebp - 0x28], 0xdb8997
mov esi, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 5
mov dword [ebp - 8], 6
test eax, eax
je 0x407097
push eax
pop ebx
mov ecx, dword [edx]
lea edx, [edx + 4]
lea eax, [ecx - 0x2b]
xor byte [ebp + ecx - 0x2c], al
inc esi
cmp esi, ebx
jne 0x407084
xor ebx, ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], 1
push eax
mov ecx, 0x473de8
call fcn.00402456
cmp eax, 2
je 0x407031
push ebx
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push ecx
push 0x403802
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004428c2
mov esp, ebp
pop ebp
ret