joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463850
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
lea eax, [ebp - 0x15c]
mov edx, dword [0x408048]
call fcn.004055cc
xor eax, eax
push ebp
push 0x463a28
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00409580
test al, al
jne 0x4638ad
mov eax, ebx
call fcn.004099dc
lea eax, [ebp - 0x160]
mov ecx, 0x463a40
mov edx, esi
call fcn.00404e50
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x15c]
mov edx, 0x3f
call fcn.00409630
test eax, eax
jne 0x4639f1
xor eax, eax
push ebp
push 0x4639ea
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x154], 0x10
je 0x46396d
mov eax, dword [ebp - 0x150]
mov edx, 0x463a4c
call fcn.00404f50
je 0x4639be
mov eax, dword [ebp - 0x150]
mov edx, 0x463a58
call fcn.00404f50
je 0x4639be
push ebx
push 0x463a64
push dword [ebp - 0x150]
lea eax, [ebp - 0x164]
mov edx, 3
call fcn.00404ec4
mov eax, dword [ebp - 0x164]
push eax
push esi
push 0x463a64
push dword [ebp - 0x150]
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00404ec4
mov eax, dword [ebp - 0x168]
pop edx
call fcn.00463850
jmp 0x4639be
push ebx
push 0x463a64
push dword [ebp - 0x150]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ec4
push 0
mov eax, dword [ebp - 4]
call fcn.00405004
push eax
push esi
push 0x463a64
push dword [ebp - 0x150]
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00404ec4
mov eax, dword [ebp - 0x16c]
call fcn.00405004
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x15c]
call fcn.00409680
test eax, eax
je 0x4638eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4639f1
lea eax, [ebp - 0x15c]
call fcn.004096a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463a2f
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.00404b68
lea eax, [ebp - 0x15c]
mov edx, dword [0x408048]
call fcn.0040569c
lea eax, [ebp - 4]
call fcn.00404b44
ret

Function at 0x463d40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop ebp
ret 0xc
Function at 0x4659b4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ff4
mov eax, dword [ebp - 8]
call fcn.00404ff4
mov eax, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp + 0x10]
call fcn.00404ff4
xor eax, eax
push ebp
push 0x465a8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
call fcn.0040270c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x465a61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x10]
call fcn.00405004
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405004
push eax
mov eax, dword [ebp - 8]
call fcn.00405004
push eax
mov eax, dword [ebp - 4]
call fcn.00405004
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404c34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465a68
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040272c
ret
Function at 0x4687f4
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe4c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x194], eax
xor eax, eax
push ebp
push 0x4688cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x190]
push eax
push 2
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp + 8]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4688a9
mov ebx, eax
lea eax, [ebp - 0x194]
push eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 0x1b0], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x1a8], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 0x1a0], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x19c], eax
mov byte [ebp - 0x198], 0
lea edx, [ebp - 0x1b4]
mov ecx, 3
mov eax, 0x4688e8
call fcn.0040a0ec
mov eax, dword [ebp - 0x194]
call fcn.00405004
mov ebx, eax
jmp 0x4688ae
mov ebx, 0x4688f4
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4688d3
lea eax, [ebp - 0x194]
call fcn.00404b44
ret
Function at 0x468cb4
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x468cbd
mov eax, dword [ebp - 4]
add esp, 0xfffff7d0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4834], ecx
mov dword [ebp - 0x4830], ecx
mov dword [ebp - 0x482c], ecx
mov dword [ebp - 0x4828], ecx
mov dword [ebp - 0x4824], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ff4
xor eax, eax
push ebp
push 0x468ee5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00405004
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x468eab
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x14], 0
jne 0x468d4e
call fcn.00404584
jmp 0x468eb2
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4800
lea eax, [ebp - 0x4820]
push eax
push 3
push 0x30
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_EnumServicesStatusA
mov esi, dword [ebp - 0x1c]
dec esi
test esi, esi
jl 0x468e86
inc esi
lea ebx, [ebp - 0x4820]
lea eax, [ebp - 0xc]
mov edx, dword [ebx]
call fcn.00404d3c
mov al, byte [0x468ef8]
push eax
lea eax, [ebp - 0x4824]
push eax
mov ecx, 0x468f04
mov edx, 0x468f10
mov eax, dword [ebp - 0xc]
call fcn.0040deb0
mov edx, dword [ebp - 0x4824]
lea eax, [ebp - 0xc]
call fcn.00404bdc
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 4]
call fcn.00404d3c
mov al, byte [0x468ef8]
push eax
lea eax, [ebp - 0x4828]
push eax
mov ecx, 0x468f1c
mov edx, 0x468f10
mov eax, dword [ebp - 0x10]
call fcn.0040deb0
mov edx, dword [ebp - 0x4828]
lea eax, [ebp - 0x10]
call fcn.00404bdc
mov al, byte [0x468ef8]
push eax
lea eax, [ebp - 0x482c]
push eax
mov ecx, 0x468f2c
mov edx, 0x468f10
mov eax, dword [ebp - 0x10]
call fcn.0040deb0
mov edx, dword [ebp - 0x482c]
lea eax, [ebp - 0x10]
call fcn.00404bdc
mov al, byte [0x468ef8]
push eax
lea eax, [ebp - 0x4830]
push eax
mov ecx, 0x468f38
mov edx, 0x468f10
mov eax, dword [ebp - 0x10]
call fcn.0040deb0
mov edx, dword [ebp - 0x4830]
lea eax, [ebp - 0x10]
call fcn.00404bdc
push dword [ebp - 0x10]
push 0x468f10
push dword [ebp - 0xc]
lea eax, [ebp - 0x4834]
mov edx, 3
call fcn.00404ec4
mov edx, dword [ebp - 0x4834]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 0x24
dec esi
jne 0x468d8b
cmp dword [ebp - 0x18], 0
jne 0x468d53
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468eb2
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468eec
lea eax, [ebp - 0x4834]
mov edx, 5
call fcn.00404b68
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404b68
lea eax, [ebp - 4]
call fcn.00404b44
ret
Function at 0x468fc4
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4690bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x4690cc
lea eax, [ebp - 0x24]
mov edx, edi
call fcn.00404d3c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408eb4
cmp dword [ebp - 0x20], 0
je case.0x46904a.0
push 1
push 0x4690d4
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x469042
push 4
push edi
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
je 0x46903c
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x18]
cmp eax, 7
ja case.0x46904a.0
jmp dword [eax*4 + 0x469051]
mov esi, 0x4690e4
jmp case.0x46904a.0
mov esi, 0x4690ec
jmp case.0x46904a.0
mov esi, 0x4690e4
jmp case.0x46904a.0
mov esi, 0x4690ec
jmp case.0x46904a.0
mov esi, 0x4690f4
jmp case.0x46904a.0
mov esi, 0x4690fc
jmp case.0x46904a.0
mov esi, 0x4690fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4690c2
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404b68
ret

Function at 0x469114
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4691f6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x4691e8
push 2
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4691e8
xor edx, edx
push ebp
push 0x4691c5
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 0
push 0
push esi
push 1
push 2
push 0x110
push 0xf01ff
mov eax, ebx
push eax
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
ja 0x4691a2
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4691e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov dword [ebp - 4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4691e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4691fd
ret
Function at 0x46920c
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4692be
push 0xf0000
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4692be
xor edx, edx
push ebp
push 0x46929b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_DeleteService
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x469278
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x46927f
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4692be
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4692cc
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x469384
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x469384
xor edx, edx
push ebp
push 0x469361
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x46933e
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x469345
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x469384
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x469390
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x469448
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x469448
xor edx, edx
push ebp
push 0x469425
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x469402
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x469409
mov dword [ebp - 4], 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x469448
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x469454
Capabilities:
Change user account password

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x469528
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x469544
call fcn.00404bdc
mov eax, 0x32
call fcn.0040270c
mov edi, eax
mov eax, 0x32
call fcn.0040270c
mov ebx, eax
mov eax, 0x32
call fcn.0040270c
mov esi, eax
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
call fcn.00404d3c
mov eax, dword [ebp - 8]
call fcn.00404e04
inc eax
push eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
call fcn.00404d3c
mov eax, dword [ebp - 0xc]
mov edx, edi
pop ecx
call fcn.00405a48
mov ecx, 1
mov edx, ebx
xor eax, eax
call fcn.00405a48
mov eax, dword [ebp - 4]
call fcn.00404e04
mov ecx, eax
inc ecx
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00405a48
push esi
push ebx
push edi
push 0
call sub.Netapi32.dll_NetUserChangePassword
test eax, eax
jne 0x469509
push ebx
push esi
push edi
push 0
call sub.Netapi32.dll_NetUserChangePassword
xor ebx, ebx
jmp 0x46950d
mov bx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46952f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b68
ret

Function at 0x469554
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4695ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0x4695dc
push 0x4695dc
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_LogonUserA
test eax, eax
je 0x46959d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ebx, 0x4695e0
jmp 0x4695b4
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 8]
call fcn.0040c198
mov eax, dword [ebp - 8]
call fcn.00405004
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4695d1
lea eax, [ebp - 8]
call fcn.00404b44
ret
Function at 0x408230
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
xor al, al
cmp dword [0x4a0b68], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408254
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4a0b6c], 0
je 0x408263
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408470
test al, al
jne 0x4082a6
cmp byte [ebp + 0xc], al
jne 0x4082a6
push 0x49f928
push 0
push 0
push 0x408540
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a3314], eax
test eax, eax
je 0x408337
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx ebx, byte [ebp + 8]
xor eax, eax
xor esi, esi
cmp byte [ebp + 0xc], al
sete al
mov edi, eax
mov ecx, dword [0x49f928]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x4082dc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4082b6
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x408343
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x4083aa
cmp dword [esp + 0x2c], 0
je 0x408352
mov byte [esp + 0x1f], 1
call fcn.004088e0
test al, al
jne 0x408352
cmp byte [ebp + 0xc], al
jne 0x40843e
mov byte [ebp + 8], al
jmp 0x4082f1
call fcn.00408900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40838e
call fcn.004088e0
test al, al
jne 0x4083aa
cmp byte [ebp + 0xc], 0
jne 0x408437
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4a0b68], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x4083e2
test byte [esp + 0x1e], 1
jne 0x4083fb
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4a14c4], eax
jmp 0x4083fb
mov ecx, dword [0x4a3314]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x4083c2
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408352
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4082f1
mov edx, dword [0x4a3314]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4a3314], 0
call fcn.00408900
jmp 0x408362
test byte [esp + 0x1e], 1
je 0x4083fb
mov eax, dword [0x4a14c4]
push eax
call edi
mov dword [0x4a14c4], 0
cmp dword [0x4a0b6c], 0
je 0x40841d
test byte [esp + 0x1e], 2
jne 0x408437
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4a14c8], eax
jmp 0x408437
test byte [esp + 0x1e], 2
je 0x408437
mov ecx, dword [0x4a14c8]
push ecx
call edi
mov dword [0x4a14c8], 0
cmp byte [esp + 0x1f], 0
je 0x408470
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 0x10000
push str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
mov dword [0x49d328], 0
call fcn.00468330
add esp, 0x18
mov dword [0x49d328], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ba70
Capabilities:
Encode data using xor

Disassembly:
bound esp, qword [eax - 0xdab4cd7]
js 0x40bab8
bound esi, qword [ebx]
add dword [eax - 0x79ed093a], esi
mov dword [edx + 0xd8b01e5], eax
cmpsb byte [esi], byte es:[edi]
adc dword [eax - 0x1ace8cc4], ebx
push esp
or ebx, dword [ebx + esi*2]
dec eax
xor al, 0x9a
jbe 0x40ba7a
add al, 0xcf
inc edx
sal byte [ecx], 1
lahf
push esp
or byte [esi], bh
dec esp
adc byte [eax], cl
insb byte es:[edi], dx
adc eax, 0x908509e4
in eax, 0xae
retf
dec ebx
inc eax
test dword [edx + 6], ebp
scasd eax, dword es:[edi]
inc edx
invalid
Function at 0x445e10
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x445e17
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x445e3f
dec eax
je 0x445e31
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x445e4c
cmp bl, 3
jne 0x445e53
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x445e79
cmp dword [0x4a0b6c], 0
je 0x445e69
movzx ecx, bl
mov al, byte [ecx + 0x4a0a58]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4a0b68], 0
je 0x445ea8
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00410a20
test al, al
je 0x445e9b
push 1
call fcn.00410850
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4a0a58]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret

Function at 0x44a1d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44a253
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x44a23e
dec eax
jne 0x44a260
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a1f7
sub eax, edx
cmp eax, 0x104
ja 0x44a260
inc eax
call fcn.004854f0
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44a215
push 0x5c
push esi
call fcn.00478bf7
add esp, 8
test eax, eax
je 0x44a260
push esi
mov byte [eax], 0
call fcn.0044a1d0
add esp, 4
test al, al
je 0x44a260
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x44a260
mov al, 1
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

Function at 0x44a270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x144
push 0x2a
push esi
call fcn.00477c01
add esp, 8
test eax, eax
jne 0x44a2a8
push 0x3f
push esi
call fcn.00477c01
add esp, 8
test eax, eax
jne 0x44a2a8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
add esp, 0x144
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44a2c1
xor al, al
add esp, 0x144
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add esp, 0x144
ret
Function at 0x44a470
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x44a4c1
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x44a4c1
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x44a4c1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x45ac70
Capabilities:
Get keyboard layout

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebx
push esi
shr eax, 8
push edi
mov esi, ebp
test al, 1
je 0x45ac8e
mov byte [ebp], 0x2b
lea esi, [ebp + 1]
test al, 2
je 0x45ac96
mov byte [esi], 0x5e
inc esi
test al, 4
je 0x45ac9e
mov byte [esi], 0x21
inc esi
test al, 8
je 0x45acee
push ebx
xor bl, bl
call fcn.00411340
mov ecx, dword [esp + 0x18]
push ecx
mov bl, 1
movzx edi, ax
call fcn.00411340
movzx eax, ax
add esp, 8
mov ecx, eax
test eax, 0x100
jne 0x45acca
mov ecx, edi
test ecx, 0x100
je 0x45acea
cmp di, ax
je 0x45acea
mov eax, 0x64
mov edx, esi
call fcn.00410e30
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp byte [eax*8 + 0x49e10c], bl
je 0x45ad4c
inc eax
cmp eax, 0x6d
jl 0x45acf0
push 0x64
push ebx
xor eax, eax
call fcn.00411260
add esp, 8
cmp byte [esi], 0
je 0x45ad74
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
jne 0x45ad74
movzx edi, bl
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov byte [esi], al
test al, al
je 0x45ad65
pop edi
mov byte [esi + 1], 0
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov edx, dword [eax*8 + 0x49e108]
push 0x63
push edx
push esi
call fcn.0047a8e0
add esp, 0xc
mov byte [esi + 0x63], 0
jmp 0x45ad0c
push edi
push str.vk_02X
push esi
call fcn.00477162
add esp, 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret