joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ff0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bd9b
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x439b10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x145], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40903e
xor al, al
jmp 0x40911a
mov dword [ebp - 0x140], 0x128
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40906d
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40911a
mov dword [ebp - 0x144], 0
push 4
lea ecx, [ebp - 0x14c]
call fcn.0040ad70
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00407a00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.00408560
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.004160c0
add esp, 8
test eax, eax
je 0x4090e0
mov byte [ebp - 0x145], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.004082a0
jmp 0x40910a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.004082a0
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40906d
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x145]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412da9
mov esp, ebp
pop ebp
ret
Function at 0x409550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42be5b
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x439b10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0x42d29c
push 0x43c3e8
call fcn.00401340
add esp, 8
movzx eax, al
test eax, eax
je 0x4095b2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402160
jmp 0x409739
lea eax, [ebp - 0x3c]
push eax
call fcn.00411520
add esp, 4
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040dc70
add esp, 8
mov ax, word [0x42d538]
mov word [ebp - 0x50], ax
xor eax, eax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x46], eax
mov dword [ebp - 0x42], eax
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0x76c
push edx
push str._.4d__.2d__.2d__.2d:_.2d:_.2d
push 0x14
lea eax, [ebp - 0x50]
push eax
call fcn.00415bb3
add esp, 0x24
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401f00
mov byte [ebp - 4], 1
push 0x42d354
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0xf8]
push edx
call fcn.00401450
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x100]
push ecx
lea edx, [ebp - 0xe0]
push edx
call fcn.00406b70
add esp, 0xc
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
push eax
lea ecx, [ebp - 0x68]
call fcn.00402230
lea ecx, [ebp - 0xe0]
call fcn.00402160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf8]
call fcn.00402160
push str.connectLog.txt
push 0x43c3e8
lea eax, [ebp - 0x84]
push eax
call fcn.00406bc0
add esp, 0xc
push 0x42d570
lea ecx, [ebp - 0x84]
call fcn.004054f0
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0041561c
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00406760
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x6c]
push eax
push 1
mov ecx, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x68]
call fcn.004054f0
push eax
call fcn.00415a2b
add esp, 0x10
mov eax, dword [ebp - 0x6c]
push eax
call fcn.004151a3
add esp, 4
lea ecx, [ebp - 0x84]
call fcn.00402160
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00402160
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402160
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412da9
mov esp, ebp
pop ebp
ret
Function at 0x409a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bec8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x439b10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x40], 0
je 0x409ab5
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x45]
test ecx, ecx
jne 0x409ac1
mov al, 1
jmp 0x409c85
mov dword [ebp - 0x18], 8
call fcn.0040b9a0
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x94], eax
call fcn.0040b9a0
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x90]
push edx
call fcn.0040b9f0
add esp, 8
movzx eax, al
test eax, eax
je 0x409b10
xor al, al
jmp 0x409c85
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004074d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004054c0
mov ecx, eax
call fcn.004023d0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00406760
add esi, eax
push esi
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x34]
call fcn.004054c0
mov ecx, eax
call fcn.004023d0
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x48
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x40]
call fcn.0040d860
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x409b9d
cmp dword [ebp - 0x98], 1
je 0x409ba4
cmp dword [ebp - 0x98], 3
je 0x409c41
jmp 0x409c59
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x45], 0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x34]
call fcn.004054c0
mov ecx, eax
call fcn.004023d0
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x38], ecx
je 0x409c0a
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x34]
call fcn.004054c0
mov ecx, eax
call fcn.004023d0
push eax
call fcn.00415a2b
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x409c0a
mov byte [ebp - 0x7c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402160
mov al, byte [ebp - 0x7c]
jmp 0x409c85
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x45]
test ecx, ecx
jne 0x409c2d
mov byte [ebp - 0x7b], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402160
mov al, byte [ebp - 0x7b]
jmp 0x409c85
cmp dword [ebp - 0x38], 0
jne 0x409c3f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040ae20
jmp 0x409c71
mov byte [ebp - 0x7a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402160
mov al, byte [ebp - 0x7a]
jmp 0x409c85
mov byte [ebp - 0x79], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402160
mov al, byte [ebp - 0x79]
jmp 0x409c85
jmp 0x409b23
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412da9
mov esp, ebp
pop ebp
ret
Function at 0x40bc70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c000
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x439b10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ac], 0
push 0x42d29c
lea ecx, [ebp - 0x28]
call fcn.00401f00
mov dword [ebp - 4], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsqdfpzs.exe
lea ecx, [ebp - 0x44]
call fcn.00401f00
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
lea ecx, [ebp - 0x44]
call fcn.004054f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd51
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x4c], 0x104
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push str.Path
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bd51
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x1a8]
call fcn.00401f00
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x1b0]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402230
lea ecx, [ebp - 0x1a8]
call fcn.00402160
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401e00
mov ecx, dword [ebp - 0x1ac]
or ecx, 1
mov dword [ebp - 0x1ac], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00402160
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402160
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412da9
mov esp, ebp
pop ebp
ret
Function at 0x4275b2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00418df7
mov dword [ebp - 0x14], eax
cmp dword [0x43d45c], esi
jne 0x4276a5
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x427632
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x427785
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x427785
push 0x433ed8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x427785
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43d45c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43d460], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43d464], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43d46c], eax
test eax, eax
je 0x4276a2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43d468], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4276ca
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4276bd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4276df
push 4
pop eax
jmp 0x427787
cmp dword [ebp - 0x14], esi
je 0x4276df
push dword [0x43d45c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4276c4
mov eax, dword [0x43d468]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42773d
cmp dword [0x43d46c], edi
je 0x42773d
push eax
call ebx
push dword [0x43d46c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42773d
test eax, eax
je 0x42773d
call ecx
test eax, eax
je 0x427732
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x427732
test byte [ebp - 8], 1
jne 0x42773d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42776d
mov eax, dword [0x43d460]
cmp eax, edi
je 0x42776a
push eax
call ebx
test eax, eax
je 0x42776a
call eax
mov esi, eax
test esi, esi
je 0x42776a
mov eax, dword [0x43d464]
cmp eax, edi
je 0x42776a
push eax
call ebx
test eax, eax
je 0x42776a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43d45c]
call ebx
test eax, eax
je 0x427785
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x427787
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412da9
mov esp, ebp
pop ebp
ret
Function at 0x10004f0c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10004f4b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004f4b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004f4b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10004f4b
cmp dword [ecx + 0x74], 0xe
jbe 0x10004f4b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10007b33
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10007bd0
push ebx
push esi
call fcn.10007afc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10007a90
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007b7d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007bcf
push edi
push eax
call fcn.10006563
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007b9d
call fcn.1000665a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007bce
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10007a90
add esp, 0x20
test eax, eax
jne 0x10007bbc
push edi
call fcn.1000665a
jmp 0x10007bc4
push ebx
call fcn.1000665a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10007e3d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f9f8
push 0x1000f9f0
push str.FlsAlloc
push 0x1f
call fcn.10007d59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007e71
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e11c]
call esi
jmp 0x10007e77
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007ebb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa08
push 0x1000fa00
push str.FlsGetValue
push 0x21
call fcn.10007d59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007ef2
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e11c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007efa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa10
push 0x1000fa08
push str.FlsSetValue
push 0x22
call fcn.10007d59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007f34
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e11c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000d890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d8bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000d8bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x45b700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x121c
call fcn.004db810
push ebx
push ebp
push esi
push edi
mov eax, ecx
mov byte [esp + 0x13], dl
push eax
push dword [0x4fe0b0]
mov dword [esp + 0x1c], eax
lea ebx, [esp + 0x230]
push str.__s_s
mov eax, ebx
mov ebp, 0x4e3371
push 0x800
push eax
call fcn.004aba90
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45b76d
lea eax, [esp + 0x229]
push eax
call edi
cmp eax, 0xffffffff
je 0x45b76d
mov edi, dword [0x4fe0b0]
jmp 0x45b81b
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push ecx
call fcn.004acdc0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45b7a4
test esi, esi
jne 0x45b7a4
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push ecx
call fcn.004acdc0
mov edx, eax
add esp, 0x10
test edx, edx
je 0x45b785
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0x18]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x11f], al
test al, al
jne 0x45b7b0
test edx, edx
je 0x45b8be
push dword [esp + 0x14]
lea eax, [esp + 0x124]
push eax
push str.__s_s
lea eax, [esp + 0x234]
push 0x800
push eax
call fcn.004aba90
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45b8be
lea eax, [esp + 0x229]
push eax
call edi
cmp eax, 0xffffffff
je 0x45b8be
lea edi, [esp + 0x120]
cmp byte [esp + 0x13], 0
mov word [esp + esi + 0x228], 0x22
je 0x45b894
push str.AutoHotkey.exe
push edi
push str.__s_s
lea eax, [esp + 0xa34]
push 0x800
push eax
call fcn.004aba90
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45b87f
lea eax, [esp + 0xa29]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45b87f
mov word [esp + esi + 0xa28], 0x22
lea ebx, [esp + 0xa28]
jmp 0x45b88d
cmp edi, dword [0x4fe0b0]
jne 0x45b894
mov ebx, dword [0x4fe0ac]
lea ebp, [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
mov ecx, 0x4fda88
call fcn.0044eac0
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x121c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x121c
ret
Function at 0x401fe9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d110]
jne 0x401ff3
repz ret
jmp fcn.00402e96

Function at 0x40ffbc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403a1a
and dword [ebp - 4], 0
cmp dword [0x42e920], 0
mov ebx, eax
jne 0x41006d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41011e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41011e
push eax
call fcn.004039a8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42e920], eax
call esi
push eax
call fcn.004039a8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42e924], eax
call esi
push eax
call fcn.004039a8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42e928], eax
call esi
push eax
call fcn.004039a8
pop ecx
mov dword [0x42e930], eax
test eax, eax
je 0x41006d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004039a8
pop ecx
mov dword [0x42e92c], eax
mov eax, dword [0x42e92c]
cmp eax, ebx
je 0x4100c5
cmp dword [0x42e930], ebx
je 0x4100c5
push eax
call fcn.00403a23
push dword [0x42e930]
mov esi, eax
call fcn.00403a23
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4100c5
test edi, edi
je 0x4100c5
call esi
test eax, eax
je 0x4100bc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4100bc
test byte [ebp - 0xc], 1
jne 0x4100c5
or dword [ebp + 0x10], 0x200000
jmp 0x4100fe
mov eax, dword [0x42e924]
cmp eax, ebx
je 0x4100fe
push eax
call fcn.00403a23
pop ecx
test eax, eax
je 0x4100fe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4100fe
mov eax, dword [0x42e928]
cmp eax, ebx
je 0x4100fe
push eax
call fcn.00403a23
pop ecx
test eax, eax
je 0x4100fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42e920]
call fcn.00403a23
pop ecx
test eax, eax
je 0x41011e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410120
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053e8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.004046ab
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491df4
call fcn.00407360
push esi
push edi
push 0x491cf0
call fcn.00407360
push esi
push edi
push 0x491bec
call fcn.00407360
push esi
push edi
push 0x491ae8
call fcn.00407360
push esi
push edi
push 0x4919e4
call fcn.00407360
add esp, 0x40
push 0x40e0d0
push 0x1f16
push str.mqdt
call fcn.00403529
push 0x491f00
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491f08], edi
mov dword [0x491ef8], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4054a8
cmp dword [ebp - 0x8c], ebx
jne 0x4054a8
mov dword [0x491f08], ebx
call fcn.004048ef
mov esi, 0x7d000
push esi
call fcn.00407bff
cmp eax, edi
pop ecx
mov dword [0x4919e0], eax
jne 0x4054c6
xor eax, eax
jmp 0x4054ea
push esi
push edi
push eax
call fcn.00407360
call fcn.004055a8
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.0040530f
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4055a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x40560d
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491f10], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491f0c], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491f14], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x405637
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491f18], eax
mov edi, 0x40fda4
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x405658
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491f1c], eax
pop edi
pop esi
pop ebp
pop ebx
ret