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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.0042ac70
mov ebx, eax
test ebx, ebx
jne 0x430403
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid__The_current_thread_will_exit.
call fcn.004296d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43040f
jmp dword [eax*4 + 0x4305f0]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x43042b
push eax
xor eax, eax
call fcn.0044a5e0
add esp, 4
jmp 0x430431
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4a13a4]
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
xor eax, eax
call fcn.0044a5e0
mov ebx, eax
add esp, 4
test ebx, ebx
je case.0x4304e5.67
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je case.0x4304e5.67
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4a13a4]
push 0x18
push 0
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [edi]
push ecx
call fcn.00479f90
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4304e5.67
movzx edx, byte [eax + 0x430620]
jmp dword [edx*4 + 0x430604]
mov esi, 0x40
jmp 0x430514
mov esi, 0x4000
jmp 0x430514
mov esi, 0x20
jmp 0x430514
mov esi, 0x8000
jmp 0x430514
mov esi, 0x80
jmp 0x430514
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x430529
push eax
xor eax, eax
call fcn.0044a5e0
add esp, 4
jmp 0x43052f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je case.0x4304e5.67
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je case.0x4304e5.67
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x43047f
cmp byte [edi], 0
je 0x430588
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.00411d00
fmul qword [0x497bd8]
call fcn.00489fa0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x430590
mov byte [esp + 0x13], 1
xor edi, edi
nop
mov eax, dword [ebp + 0xc]
push eax
xor eax, eax
call fcn.0044a5e0
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x4305af
test esi, esi
jne 0x43048e
jmp 0x4305b7
test esi, esi
je case.0x4304e5.67
cmp byte [esp + 0x13], 0
jne 0x4305d5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x43048e
push 1
push 0x64
call fcn.00401340
add esp, 8
jmp 0x430590
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x434590
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREAutoHotkey
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43461f
mov eax, dword [esp + 0xc]
push edi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.InstallDir
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop edi
jne 0x43461f
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x43461f
dec eax
cmp byte [esp + eax + 0x10], bl
jne 0x434611
cmp eax, ebx
je 0x434625
lea ecx, [esp + 0x10]
cmp byte [ecx + eax - 1], bl
jne 0x434625
dec eax
jne 0x434606
jmp 0x434625
inc eax
cmp eax, 0x104
jae 0x43461f
mov byte [esp + eax + 0x10], bl
jmp 0x434625
mov byte [esp + 0x10], bl
xor eax, eax
cmp esi, ebx
je 0x43463b
lea ecx, [esp + 0x10]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x434631
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x4492f0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4a13a4]
sub esp, 0x214
push esi
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
mov esi, eax
call fcn.004668b0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x48d710
push 1
push 0
push 0x48d720
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4494bc
mov eax, dword [esp + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
cmp byte [esi], 0
je 0x449360
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
cmp byte [edi], 0
je 0x449372
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push edi
push eax
call edx
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
je 0x449387
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov esi, dword [ebp + 0x14]
cmp byte [esi], 0
je 0x4493cb
cmp byte [ebx], 0
je 0x4493bb
mov eax, ebx
call fcn.0040c270
test al, al
je 0x4493af
push 0x10
push 0
push ebx
call fcn.00478594
add esp, 0xc
dec eax
jmp 0x4493bd
push ebx
call fcn.00478196
add esp, 4
dec eax
jmp 0x4493bd
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x44]
push esi
push ecx
call eax
mov esi, dword [ebp + 0x18]
cmp byte [esi], 0
je 0x44940c
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 0
xor edx, edx
mov eax, esi
call fcn.00410f30
add esp, 8
test al, al
je 0x44940c
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
movzx eax, al
mov esi, 0x600
or ax, si
movzx eax, ax
push eax
push ecx
mov ecx, dword [edx + 0x34]
call ecx
mov esi, dword [ebp + 0x1c]
cmp byte [esi], 0
je 0x449444
mov eax, esi
call fcn.0040c270
test al, al
je 0x44942e
push 0x10
push 0
push esi
call fcn.00478594
add esp, 0xc
jmp 0x449437
push esi
call fcn.00478196
add esp, 4
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x3c]
push ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x48d730
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4494b0
mov edx, dword [ebp + 0xc]
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x4494a4
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x45b9d0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], 0x80000000
cmp eax, 8
ja case.0x45b9f1.12
jmp dword [eax*4 + 0x45baf0]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x45ba9e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x45ba9e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x45ba9e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x45ba9e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x45ba9e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x45ba9e
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 8], 0x80000000
jne 0x45bab8
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x45baca
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4

Function at 0x4613f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push esi
mov dword [esp + 0x30], 0xff
call edi
cmp eax, 0x103
je 0x4614a2
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebp
test eax, eax
jne 0x4614af
mov edx, dword [esp + 0x14]
push edx
call fcn.004613f0
mov bl, al
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4614af
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4614af
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push esi
mov dword [esp + 0x30], 0xff
call edi
cmp eax, 0x103
jne 0x461436
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
Function at 0x4614c0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push esi
mov esi, eax
test edi, edi
je 0x4614d6
cmp byte [edi], 0
jne 0x4614df
test esi, esi
je 0x461536
cmp byte [esi], 0
je 0x461536
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x461536
test esi, esi
je 0x461543
cmp byte [esi], al
je 0x461543
push str.ahk_default
push esi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x461519
mov esi, 0x49588a
mov edx, dword [esp + 0xc]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x461570
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004613f0
mov edx, dword [esp + 0x10]
add esp, 4
push edx
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x461536
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x461536
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x461e40
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esi + 0x20]
push ebx
push ebp
xor ebp, ebp
push edi
cmp eax, ebp
je 0x461e6f
sub eax, dword [esi + 0x24]
mov edi, dword [esi]
sub eax, dword [esi + 8]
push 1
cdq
xor ecx, ecx
push edx
mov edx, dword [edi + 0x14]
mov word [esi + 0x1a], cx
push eax
mov ecx, esi
mov dword [esi + 0x1c], ebp
call edx
mov dword [esi + 0x20], ebp
mov dword [esi + 8], ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push ebp
mov ebx, edx
mov edx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
test al, al
je 0x461ed6
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x461ed6
cmp ebp, ebx
jg 0x461eb6
jl 0x461eae
cmp dword [esp + 0x10], edi
jae 0x461eb6
mov eax, dword [esp + 0x10]
mov ecx, ebp
jmp 0x461eba
mov eax, edi
mov ecx, ebx
mov edx, dword [esi]
push 0
push ecx
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
pop edi
pop ebp
pop ebx
ret 8
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
ret 8
Function at 0x464ce0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x148
push edi
test esi, esi
je 0x464d60
cmp byte [esi], 0
je 0x464d60
push 4
push 0x49665c
push esi
call fcn.00478e34
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x464d09
lea eax, [esi + 4]
mov edi, 0x495114
call fcn.00408bf0
test eax, eax
je 0x464d43
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x464d60
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x464d39
mov ecx, dword [esp + 8]
mov dword [ebx], ecx
mov al, 1
pop edi
add esp, 0x148
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test ebx, ebx
je 0x464d50
mov dword [ebx], eax
xor edx, edx
cmp eax, 0xffffffff
setne al
pop edi
add esp, 0x148
ret
xor al, al
pop edi
add esp, 0x148
ret

Function at 0x464f70
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x464fa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x464fa4
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret
Function at 0x467f31
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8014
call fcn.00488480
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x467f50
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004668b0
mov eax, 0x4916f4
jmp 0x467f55
mov eax, 0x491918
mov ecx, dword [0x4a13a4]
mov edi, 1
push edi
push 0
push 0xffffffffffffffff
push eax
call fcn.004668b0
cmp dword [ebp + 0x14], 0
jne 0x467f78
mov dword [ebp + 0x14], 0x1f4
cmp dword [ebp + 0x18], edi
jge 0x467f84
mov dword [ebp + 0x18], 0x32
cmp dword [ebp + 0xc], edi
jge 0x467f8c
mov dword [ebp + 0xc], edi
test esi, esi
je 0x468128
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [esp + 0x1c]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x468128
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esp + 0x1c]
jg 0x468128
push 0x8000
mov ecx, esi
lea edi, [esp + 0x18]
call fcn.004653f0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x468128
mov edi, dword [ebp + 0xc]
dec edi
mov byte [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
lea esp, [esp]
lea edx, [esp + 0xc]
push edx
push 0x7d0
push 2
push 0
push edi
push 0x403
push esi
call ebx
test eax, eax
je 0x46807b
mov eax, 0x7fff
cmp word [esp + 0xc], ax
ja 0x4680be
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x7d0
push 2
push edx
push edi
push 0x402
push esi
call ebx
test eax, eax
je 0x46807b
movzx eax, word [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
inc eax
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4680b9
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x20]
call fcn.004674b0
test al, al
jne 0x4680db
cmp dword [ebp + 8], 0
jne 0x4680c4
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x468109
cmp dword [ebp + 0x14], 0
jl 0x4680a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, dword [ebp + 0x14]
sub ecx, eax
cmp ecx, 5
jle 0x4680f3
mov eax, dword [ebp + 0x18]
push 1
push eax
call fcn.00401340
add esp, 8
jmp 0x468000
mov byte [esp + 0x20], 0
cmp dword [ebp + 8], 0
je 0x468109
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004668b0
mov edi, eax
jmp 0x46810e
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
jmp 0x4680be
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
call fcn.004668b0
mov edi, 1
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push edx
call fcn.00465470
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb94058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb941a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb9407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9406a
add dl, dl
jne 0xb94089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb940dc
xor eax, eax
add dl, dl
jne 0xb94096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9417d
add dl, dl
jne 0xb940a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb940b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb940bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb940c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb940d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb94075
mov eax, 1
add dl, dl
jne 0xb940ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb940f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb940e1
sub eax, ebx
mov ebx, 1
jne 0xb94128
mov ecx, 1
add dl, dl
jne 0xb9410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb94119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb94105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb94075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb9413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb9414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb94136
cmp eax, 0x7d00
jae 0xb9416d
cmp eax, 0x500
jb 0xb94168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb94075
cmp eax, 0x7f
ja 0xb94170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb94075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb9419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb94075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x8db370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x8db38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x904074
push ecx
mov edi, eax
call fcn.008ef198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8db3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.008ef02e
push esi
call fcn.008eefb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x8de850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8de8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x909720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8de8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008ef1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8de8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x909720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8de92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.008f0082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x8de957
mov word [eax], si
add eax, 2
push eax
call fcn.008f0030
add esp, 4
jmp 0x8de959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8de8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8de8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x8deff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x8df080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8df0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x904458
push ecx
call fcn.008ef1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008ef1e1
add esp, 0x10
jmp 0x8df0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.008ef20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.008eedff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.008df050
mov eax, dword [0x909728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x8df13b
push esi
call fcn.008defb0
add esp, 4
mov dword [0x909728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x8df14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.008deff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x8e2440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8e24b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x8e248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8e2471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8e247e
add edx, ecx
cmp ebx, edx
jb 0x8e248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8e2467
xor ecx, ecx
jmp 0x8e24a2
test eax, eax
jne 0x8e2492
xor ecx, ecx
jmp 0x8e24a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008e23c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret