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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x483a08
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 0x432359
inc eax
mov dword [esi + 0x10], eax
jmp 0x43246c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43236d
mov eax, 0xffffffc7
jmp 0x43246e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43237e
cmp dword [esi + 8], eax
jne 0x43236d
cmp dword [esi + 8], eax
jne 0x432397
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x432397
mov eax, 0xffffffc7
jmp 0x43246e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4323ab
push eax
mov ecx, ebx
call fcn.00431b50
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.00401a70
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4323dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401a90
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004312c0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43240f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x48ba50
call fcn.00401c70
mov eax, dword [esp + 0x38]
jmp 0x43246e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00432180
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x432453
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004321a0
mov esi, eax
test esi, esi
jne 0x432483
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00432180
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x432425
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x48ba50
call fcn.00401c70
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], 0x48ba50
call fcn.00401c70
mov eax, esi
jmp 0x43246e

Function at 0x436e80
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x436ee0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x436ee0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x436ee0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x436ee0
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 0x436f20
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 0x4421c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4842f8
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.0047cc63
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00441b20
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.0047cb91
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.00479457
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.00479457
push 1
push 0
push 0
mov ecx, esi
call fcn.004793ff
push 1
push 0
push 1
mov ecx, esi
call fcn.004793ff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047ccd5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442340
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484318
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.0047cc63
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00441b20
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.0047cb91
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 0x442404
cmp dword [esp + 0x40], 1
jne 0x442402
cmp ecx, eax
jge 0x442404
mov eax, ecx
cmp eax, 0xc8
jge 0x442410
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004421c0
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.0047ccd5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x442c00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4843c3
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.00477872
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.0047cf0b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047e427
test eax, eax
je 0x442d1c
mov ecx, dword [esp + 0x3c]
call fcn.0047cf38
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 0x442ce0
push edi
mov ecx, esi
call fcn.0047a59e
mov ecx, esi
call fcn.00442ec0
cmp dword [esp + 0x38], 1
jne 0x442d15
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.0047a6d9
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 0x444f00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444f33
push esi
call fcn.004532c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444f2c
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 0x444fb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444fa2
mov eax, dword [esi + 8]
test eax, eax
je 0x444f57
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 0x444f9e
cmp eax, 2
je 0x444fa2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444f4a
cmp eax, 3
je 0x444f7d
cmp eax, 1
jne 0x444f4a
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 0x444f4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444f4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444fe0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444fc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444fe0
add esp, 4
pop esi
ret

Function at 0x445860
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x445881
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x445881
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445881
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 0x461f10
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f4d0
push 0x4689b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.00466890
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4620c0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x462101
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x46216e
cmp dword [esp + 0x1c], 2
jne 0x46216e
cmp dword [esp + 0x10], 5
jne 0x46216e
cmp dword [esp + 0x14], 1
jne 0x46216e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x462158
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x462149
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x462151
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x46216e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x478668
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4786a0
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.0047671f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004766f7
jmp 0x4786ac
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x479d5b
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 0x479d9d
call fcn.0047f817
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x479d9d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479d94
xor eax, eax
jmp 0x479da5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00479dab
pop edi
pop esi
pop ebx
ret 4

Function at 0x47fd47
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47fd75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47fd93
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047fcad
jmp 0x47fd93
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47fd93
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047fcad
test edi, edi
mov eax, edi
jne 0x47fd7d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10004102
Capabilities:
Create thread

Disassembly:
push 0x30
mov eax, 0x1001bf44
call fcn.1001a118
mov ebx, ecx
mov eax, dword [ebx + 0xcc]
cmp eax, 1
jne 0x100041c7
mov eax, dword [ebp + 8]
cmp dword [eax], 7
jne 0x1000429f
cmp dword [ebx + 0x238], 0
je 0x1000429f
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
xor eax, eax
push 0x10021020
mov word [ebp - 0x3c], ax
call fcn.100070d8
xor eax, eax
mov byte [ebp - 4], 1
push str._self
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x2c], ax
call fcn.100070d8
mov ecx, dword [ebx + 0x238]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x100042a7
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
push edx
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x3c]
push edx
push ecx
call dword [eax + 0xd0]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2c]
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
call esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
call esi
mov eax, dword [ebx + 0xcc]
cmp eax, 2
je 0x1000429f
cmp eax, 1
je 0x1000429f
mov eax, dword [ebx + 0x234]
lea ecx, [ebp - 0x18]
and dword [ebp - 0x14], 0
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x18], eax
call fcn.100087c1
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0xe0]
push esi
push dword [ecx]
mov dword [ebp - 4], 3
call fcn.1000648b
push dword [ebx + 0xbc]
lea edi, [ebx + 0x230]
mov eax, dword [edi]
mov dword [ebp + 8], eax
call dword [sym.imp.kernel32.dll_SetEvent]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x10004234
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp dword [esi], 1
jne 0x1000425e
xor eax, eax
cmp dword [ebx + 0x22c], eax
jne 0x10004292
push edi
push eax
push ebx
push 0x10003bf6
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebx + 0x22c], eax
jmp 0x1000429f
cmp dword [esi], 0xa
jne 0x10004292
lea esi, [ebx + 0x22c]
xor edi, edi
cmp dword [esi], edi
je 0x10004292
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push esi
push 1
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
test eax, eax
jne 0x1000429f
push dword [esi]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x1000429f
cmp dword [ebp + 8], 0
jne 0x1000429f
mov ecx, ebx
call fcn.100042b2
call fcn.1001a0e1
ret 4
push 0x80004003
call fcn.1000c482
int3
Function at 0x10005c74
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor esi, esi
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [esp + 0x34]
push esi
and ebx, 1
mov dword [esp + 0x14], eax
push ebx
push dword [esp + 0x48]
push dword [esp + 0x48]
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x10005cc9
call dword [sym.imp.kernel32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push esi
push 0x10021078
call fcn.10017717
pop ecx
pop ecx
jmp 0x10005db2
cmp eax, 0x102
jne 0x10005dac
mov ebp, dword [esp + 0x38]
push 0x4bf
push ebp
push ebx
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x10005d17
call dword [sym.imp.kernel32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push esi
push 0x10021098
call fcn.10017717
pop ecx
pop ecx
jmp 0x10005d8c
cmp ecx, 0x102
je 0x10005da5
cmp dword [esp + 0x3c], ecx
jne 0x10005d9d
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edi, eax
mov dword [esp + 0x34], eax
sub edi, dword [esp + 0x10]
jmp 0x10005d5a
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edi, eax
mov dword [esp + 0x34], eax
sub edi, dword [esp + 0x10]
cmp edi, ebp
ja 0x10005d96
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x10005d3b
mov eax, dword [esp + 0x34]
test esi, esi
js 0x10005db2
cmp edi, ebp
ja 0x10005da5
mov dword [esp + 0x10], eax
mov eax, ebp
sub eax, edi
cmp ebp, 0xffffffff
cmove eax, ebp
mov ebp, eax
test esi, esi
jns 0x10005cd8
jmp 0x10005db2
mov esi, 0x80010115
jmp 0x10005d74
mov eax, dword [esp + 0x44]
mov dword [eax], ecx
jmp 0x10005db2
mov esi, 0x80010115
jmp 0x10005db2
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x1000d4ea
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, 0x84
test esi, esi
lea edx, [esi + 0xc]
cmove edx, eax
push edx
mov eax, dword [edx]
call dword [eax + 0x18]
push 0x50
test esi, esi
lea eax, [esi - 0x28]
pop ecx
cmove eax, ecx
pop esi
cmp dword [eax], 0
je 0x1000d51b
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret 8

Function at 0x1000fd3c
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1003e4c0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.1000c482
mov esi, eax
test esi, esi
jne 0x1000fdeb
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000fdc6
lea eax, [esp + 0x28]
push eax
call fcn.1000fd3c
mov esi, eax
test esi, esi
jne 0x1000fdeb
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x100
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x1000fda1
call fcn.1000ce21
push ebx
mov ecx, edi
call fcn.1000d242
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.1000ce21
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10019a3d
add esp, 0x11c
ret 4
Function at 0x10010f2f
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10011061
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10011071
push 0xd
pop eax
jmp 0x100110a7
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001107d
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10011078
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x100111f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push edi
push 7
pop ecx
push eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
push 0x10021730
xor esi, esi
lea ecx, [eax - 0x78]
push 4
test eax, eax
mov dword [ebp + 0xc], esi
pop ebx
cmove ecx, ebx
call fcn.1000eb0d
mov ecx, eax
mov eax, dword [ebp + 0xc]
test ecx, ecx
js 0x10011278
test eax, eax
je 0x10011275
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
xor ecx, ecx
inc ecx
test ax, ax
push 0x11
cmovs esi, ecx
call edi
test ax, ax
jns 0x10011255
add esi, 2
push 0x12
call edi
test ax, ax
jns 0x10011260
add esi, ebx
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, eax
mov eax, dword [ebp + 0xc]
jmp 0x10011278
xor ecx, ecx
inc ecx
xor ebx, ebx
test ecx, ecx
setne bl
test eax, eax
je 0x10011289
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1001378d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001cb47
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1003e4c0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1001387a
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10006c78
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100072f5
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x10013850
call fcn.100089ba
jmp 0x10013850
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10019a3d
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.10017717
pop ecx
pop ecx
push ebx
push esi
call fcn.1000c482
int3

Function at 0x1001388f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001cb77
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1003e4c0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1001397c
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10006c78
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100072f5
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x10013952
call fcn.100089ba
jmp 0x10013952
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10019a3d
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.10017717
pop ecx
pop ecx
push ebx
push esi
call fcn.1000c482
int3