joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa53f7a
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00a96ec3
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00a96ec3
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x10
call fcn.00a96ec3
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x8d4
call fcn.00a9c5f0
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
je 0xa54033
mov eax, 0
jmp 0xa5419f
cmp dword [ebp + 0xc], 0
jne 0xa54069
mov dword [ebp - 0x18], esp
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0xa54066
push 0xa0
push 0x40282e5
push 6
call fcn.00a96ecf
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0xa54091
mov eax, 0xc3df01
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0xa5408b
push ebx
call fcn.00a96ec9
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_OpenProcessToken]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0xa540c6
push 0x104
push 0x40282e5
push 6
call fcn.00a96ecf
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0xafa514
call dword [sym.imp.advapi32.dll_LookupPrivilegeValueA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0xa540fc
push 0x12e
push 0x40282e5
push 6
call fcn.00a96ecf
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov dword [ebp - 0x18], esp
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0xa5419a
push 0x225
push 0x40282e5
push 6
call fcn.00a96ecf
add esp, 0xc
jmp 0xa5419f
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00a96ec9
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00a96ec9
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00a96ec9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0xa562b2
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0xa562bc
add dword [esp], 5
retf
Function at 0xa628c9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0xa62900
push 0x12
push 0x4026fa1
push 6
call fcn.00a96ecf
add esp, 0xc
jmp 0xa62905
mov esp, ebp
pop ebp
ret 4
Function at 0xa7b76b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000005
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0xa7b790
mov eax, 0xafa51d
push eax
push 1
mov ebx, 0x194
call fcn.00a97d20
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push 0x1000
push dword [ebp - 8]
push 0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0xa7b7e4
push 0x3b
push 0x4028140
push 6
call fcn.00a96ecf
add esp, 0xc
mov dword [ebp - 4], eax
push 0x80000005
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0xa7b7fc
mov eax, 0xafa51d
push eax
push 1
mov ebx, 0x194
call fcn.00a97d20
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0xa7b830
add eax, 8
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0xa7b85d
push 0x90
push 0x4028140
push 6
call fcn.00a96ecf
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0xa7b865
mov esp, ebp
pop ebp
ret 8

Function at 0xa7d1df
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0xa7d217
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0xa7d205
mov al, 1
jmp 0xa7d276
cmp dword [ebx + 0x54], ecx
jne 0xa7d20e
mov al, 2
jmp 0xa7d276
cmp dword [ebx + 0x7c], ecx
jne 0xa7d276
mov al, 3
jmp 0xa7d276
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0xa7d22c
mov al, 4
jmp 0xa7d276
cmp ecx, 5
jne 0xa7d24c
cmp ebx, 0
jne 0xa7d23a
mov al, 5
jmp 0xa7d276
cmp ebx, 1
jne 0xa7d243
mov al, 6
jmp 0xa7d276
cmp ebx, 2
jne 0xa7d24c
mov al, 7
jmp 0xa7d276
cmp ecx, 6
jne 0xa7d274
cmp ebx, 0
jne 0xa7d25a
mov al, 8
jmp 0xa7d276
cmp ebx, 1
jne 0xa7d261
mov al, 9
cmp ebx, 2
jne 0xa7d268
mov al, 0xa
cmp ebx, 3
jne 0xa7d26f
mov al, 0xb
cmp ebx, 4
jne 0xa7d276
mov al, 0xc
pop ebx
leave
ret

Function at 0xa81128
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.00a98e30
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0xa8116d
push ebx
call fcn.00a96ec9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0xa811a5
push 0x36
push 0x4028965
push 6
call fcn.00a96ecf
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0xa811c1
push eax
mov ebx, eax
call fcn.00a04238
inc eax
push eax
call fcn.00a96ec3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0xa811c6
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0xa811d7
push ebx
call fcn.00a96ec9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0xa96607
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000005
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0xa9662c
mov eax, 0xafa51d
push eax
push 1
mov ebx, 0x194
call fcn.00a97d20
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push 0x1000
push dword [ebp - 8]
push 0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0xa96680
push 0x4e
push 0x4028148
push 6
call fcn.00a96ecf
add esp, 0xc
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00a7c7e3
mov eax, dword [ebp - 4]
jmp 0xa96699
mov esp, ebp
pop ebp
ret 8

Function at 0xa98a90
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0xa98af9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00a97a30
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0xa99740
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0xa997d2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0xa997c4
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0xa997bc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0xa99785
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0xa99f10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0xa99f51.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0xa99f51.2
jmp dword [eax*4 + 0xa99fdc]
mov word [esp + 0x48], di
jmp 0xa99f8a
mov word [esp + 0x48], 2
jmp 0xa99f8a
mov word [esp + 0x48], 3
jmp 0xa99f8a
mov word [esp + 0x48], 4
jmp 0xa99f8a
mov word [esp + 0x48], 7
jmp 0xa99f8a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.kernel32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0xa99fd4
cmp dword [esp + 0x70], edi
je 0xa99fc0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0xa9a280
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x11c
test eax, eax
jne 0xa9a2a4
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0xa9a302
jmp 0xa9a2c6
mov edx, dword [esp + 0x124]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0xa9a302
mov cl, byte [edx]
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x18], cl
lea edx, [esp + 8]
lea eax, [esp]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2a], 0
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0xa9a302
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, 0xa
call fcn.00a9fb90
add esp, 0x11c
ret
or eax, 0xffffffff
add esp, 0x11c
ret

Function at 0xa9a310
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0xa9a32e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0xa9a323
pop esi
ret
Function at 0xa9a5a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00a9e8e0
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0xa9a6f0
test ecx, ecx
je 0xa9a6f0
inc ecx
push ecx
call fcn.00a9fbe7
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00a9fbc0
mov edi, eax
add esp, 0xc
test edi, edi
je 0xa9a619
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0xa9a6dd
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.00a9fbe7
add esp, 4
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0xa9a6a1
cmp eax, 0xea
jne 0xa9a6c9
push esi
call fcn.00a9fbaf
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00a9fbe7
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0xa9a66c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0xa9a6af
cmp eax, 2
jne 0xa9a6c9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.00a9e1f0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.00a9fbaf
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebp
call fcn.00a9fbaf
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0xa9a71e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0xa9a72a
mov edx, dword [esp + 0x40]
test edx, edx
je 0xa9a72a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00a9e1f0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0xa9c670
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret
Function at 0xa9c8c0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0xa9c940
je 0xa9c931
cmp eax, 0x80000101
ja 0xa9c92a
je 0xa9c931
cmp eax, 0x80000004
je 0xa9c90d
cmp eax, 0x80000005
jne 0xa9c955
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0xa9c99b
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0xa9c99b
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0xa9c99b
cmp eax, 0x80000201
jne 0xa9c955
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0xa9c99b
cmp eax, 0x80000401
je 0xa9c986
cmp eax, 0x80000501
je 0xa9c972
cmp eax, 0x80000601
je 0xa9c95e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.00a9f6c4
jmp 0xa9c993
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.00a9f6c4
jmp 0xa9c993
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00a9e8e0
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0xa9ca76
test ecx, ecx
je 0xa9ca76
inc ecx
push esi
push ecx
call fcn.00a9fbe7
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00a9fbc0
mov esi, eax
add esp, 0xc
test esi, esi
je 0xa9ca18
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0xa9ca6c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0xa9ca61
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edi
call fcn.00a9fbaf
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0xa9caa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0xa9cadd
lea ecx, [esp + 4]
push ecx
call fcn.00a9dbc0
lea edx, [esp + 8]
push eax
push edx
call fcn.00a9e1f0
add esp, 0xc
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0xa9cb00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.00a9e8e0
mov esi, dword [esp + 0x138]
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], edx
test ebp, ebp
je 0xa9cbee
test ecx, ecx
je 0xa9cbee
inc ecx
push ebx
push ecx
call fcn.00a9fbe7
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00a9fbc0
mov esi, eax
add esp, 0xc
test esi, esi
je 0xa9cb82
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0xa9cbd6
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0xa9cbc3
cmp eax, 0xea
jne 0xa9cbcb
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebx
call fcn.00a9fbaf
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
pop edi
pop esi
mov eax, edx
pop ebp
add esp, 0x114
ret
Function at 0xa9ccf0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0xa9cd6f
push edi
call fcn.00a9dbc0
add esp, 4
test eax, eax
jbe 0xa9cd6f
test esi, esi
je 0xa9cd2d
cmp esi, 0xffffffff
je 0xa9cd2d
push esi
call dword [sym.imp.kernel32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0xa9cdb1
mov eax, dword [esp + 0x15c]
test eax, eax
je 0xa9cd5b
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0xa9cd6f
jmp 0xa9cd6a
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0xa9cd6f
mov ebp, 1
test esi, esi
je 0xa9cdb1
cmp esi, 0xffffffff
je 0xa9cdb1
test ebp, ebp
jne 0xa9cde8
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0xa9cdbe
call edi
test eax, eax
je 0xa9cdb1
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0xa9cde8
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0xa9cd99
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0xa9cdb1
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0xa9cde8
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0xa9cdcb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call fcn.00a9dbc0
inc eax
push eax
call fcn.00a97a30
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0xaab560
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xddab6c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0xaab573
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0xaab5b4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xddac14]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0xaab5e6
mov bl, byte [esp + ecx + 0x4c]
jmp 0xaab5ea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0xaab5db
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0xaab608
mov bl, byte [esp + ecx + 0x4c]
jmp 0xaab60c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0xaab5fd
xor ecx, ecx
mov eax, 0xddab7c
xor ebx, ebx
mov bl, byte [ecx + 0xddac24]
cmp byte [esp + ebx + 0x14], 0
je 0xaab637
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xddac3c]
cmp byte [esp + ebx + 0x14], 0
je 0xaab64e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0xaab61e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0xaab5a7
lea edx, [esp + 0x84]
push edx
call fcn.00aab690
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0xac0582
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0xac05ba
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.00abe639
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00abe611
jmp 0xac05c6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0xac1c77
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 0xac1cb9
call fcn.00ac7727
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0xac1cb9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0xac1cb0
xor eax, eax
jmp 0xac1cc1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00ac1cc7
pop edi
pop esi
pop ebx
ret 4

Function at 0xac7c57
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_1]
cmp dword [esp + 0x10], 0
jne 0xac7c85
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0xac7ca3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00ac7bbd
jmp 0xac7ca3
mov eax, dword [esi + 0x14]
test eax, eax
je 0xac7ca3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00ac7bbd
test edi, edi
mov eax, edi
jne 0xac7c8d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8