joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ecdc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415fe2
and dword [ebp - 0x14], 0
cmp dword [0x46c070], 0
mov dword [ebp - 0x18], eax
jne 0x41ed8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ee37
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41ee37
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46c070], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46c074], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46c078], eax
call edi
push eax
call esi
mov dword [0x46c080], eax
test eax, eax
je 0x41ed8f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46c07c], eax
mov eax, dword [0x46c07c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ede8
cmp dword [0x46c080], ecx
je 0x41ede8
push eax
call esi
push dword [0x46c080]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ede8
test ebx, ebx
je 0x41ede8
call edi
test eax, eax
je 0x41eddf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41eddf
test byte [ebp - 8], 1
jne 0x41ede8
or dword [ebp + 0x10], 0x200000
jmp 0x41ee1b
mov eax, dword [0x46c074]
cmp eax, dword [ebp - 0x18]
je 0x41ee1b
push eax
call esi
test eax, eax
je 0x41ee1b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ee1b
mov eax, dword [0x46c078]
cmp eax, dword [ebp - 0x18]
je 0x41ee1b
push eax
call esi
test eax, eax
je 0x41ee1b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46c070]
call esi
test eax, eax
je 0x41ee37
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ee39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041071c
leave
ret

Function at 0xde13f4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xde13fe
pushal
call 0xde1404
pop ebp
sub ebp, 0x10
sub ebp, 0x9e13f4
jmp 0xde141a
mov eax, 0x9e13f4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cf
mov edx, 0xe85f700b
xor byte [eax], dl
inc eax
dec ecx
jne 0xde1431
jmp 0xde1444
add dh, 0x80
xor byte [edi], 0xb
or ecx, dword [ebx]
mov cl, dl
or ecx, dword [ebx]
or ecx, dword [eax]
invalid
Function at 0x40ba30
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00404b60
call sub.kernel32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.kernel32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ba66
jmp 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba63
cmp al, 0x20
je 0x40ba63
cmp al, 0x22
jne 0x40ba89
jmp 0x40baf4
cmp al, 0x20
lea esi, [esi]
je 0x40ba90
test al, al
je 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40ba77
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x40bb0a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba97
cmp al, 0x20
je 0x40ba97
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40bab4
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.kernel32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401803
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x40bafe
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x40baf0
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x40ba90
cmp al, 9
je 0x40ba97
jmp 0x40baa5

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..retplne
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4cdc65b1
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x6548615c
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401d18
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push edi
mov edi, ecx
push 5
pop eax
xor ebx, ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
push ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret
Function at 0x402fd6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
xor edx, edx
xor ebx, ebx
push esi
inc ebx
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
cmp dword [eax + 4], edx
je 0x474d8d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x14]
mov dword [edi], edx
mov byte [ecx], dl
mov byte [eax], dl
mov dword [ebp - 0xc], 0x2b
mov dword [ebp - 8], 0x23
mov edi, edx
push edi
mov ecx, esi
call fcn.00403141
movzx eax, word [eax]
push 0x2b
pop ecx
push 0x5e
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x474d94
cmp ax, cx
je 0x474d94
cmp ax, dx
je 0x474d94
cmp ax, word [ebp - 8]
je 0x474d94
push edi
inc edi
mov ecx, esi
mov dword [ebp + 0x1c], edi
call fcn.00403141
movzx eax, word [eax]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
cmp eax, 0x7b
jne 0x474e0f
push 0x40
lea ecx, [ebp - 0x20]
call fcn.00408db7
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x7d
call fcn.004030eb
test al, al
je 0x4030e7
push dword [ebp - 0x20]
push dword [esi*4 + 0x4bc5d0]
call fcn.004226b7
pop ecx
pop ecx
test eax, eax
je 0x4030b5
inc esi
cmp esi, 0x62
jl 0x40309a
cmp esi, 0x62
je 0x474dc6
cmp byte [esi + 0x4bc568], 0
jne 0x4030e7
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x20]
call fcn.00406ea2
and dword [edi], 0xff
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x18
xor bl, bl
jmp 0x4030d0
lea ecx, [ebp - 0x20]
call fcn.00406ea2
xor al, al
jmp 0x4030e0
cmp ax, word [ebp - 0xc]
jne 0x474d9f
mov eax, dword [ebp + 0x10]
jmp 0x474dbe
cmp ax, cx
jne 0x474da9
mov eax, dword [ebp + 0x14]
jmp 0x474dbe
cmp ax, dx
jne 0x474db3
mov eax, dword [ebp + 0x18]
jmp 0x474dbe
push 0x23
pop ecx
cmp ax, cx
jne 0x474dc0
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
inc edi
jmp 0x403022
push 0
lea ecx, [ebp - 0x20]
call fcn.0040b59e
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x474d85
test eax, 0x200
je 0x474dee
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x474dfa
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x4030d0
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x4030d0
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x474d8d
test eax, 0x200
je 0x474e2e
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x474e3a
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x4030d8
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x4030d8
Function at 0x40315e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x475555
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x47556d
or eax, eax
jmp 0x40317d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
jmp 0x40317d

Function at 0x4039dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x403a15
push edi
push 0
push str.SCRIPT
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x4762dd
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x403a14
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x403a14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x403a14
mov ecx, dword [ebx]
push 0
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
mov ecx, dword [eax]
push edx
push edx
push edx
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x403a14
Function at 0x404b0b
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
push eax
xor bl, bl
push 0x104
mov byte [ebp - 5], bl
xor bh, bh
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 6]
push eax
push dword [ebp + 8]
call fcn.0040544c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x472d63
mov eax, dword [0x4c2124]
test eax, eax
je 0x404c2a
xor edi, edi
inc edi
mov esi, 0x4c32e8
cmp eax, edi
je 0x472d7c
lea eax, [ebp - 5]
push eax
push ecx
push 0x4c2124
push 0x4c213c
mov ecx, esi
call fcn.00404c3b
test al, al
je 0x404c33
mov al, byte [0x4c32e8]
mov bh, byte [0x4c32e9]
push 0x4c2120
mov byte [0x4c2128], al
lea eax, [ebp - 0x43c]
push eax
push 0x104
push 0x4c213c
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov bl, byte [ebp - 5]
push dword [0x4c2124]
push 0x4c213c
call fcn.00404225
test eax, eax
jne 0x472d9b
cmp bh, 1
je 0x472dba
call fcn.00404140
call fcn.00403552
cmp byte [0x4c2128], 0
mov ebx, 0x4c28f0
jne 0x404bf4
mov ecx, ebx
call fcn.00403ae8
push edi
mov ecx, 0x4c2348
call fcn.0040f3c0
cmp byte [0x4c2128], 0
jne 0x404c0f
mov ecx, ebx
call fcn.00403700
mov ecx, esi
call fcn.00403fda
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
leave
ret 4
or dword [0x4c20bc], 0xffffffff
jmp 0x404c16
mov dword [0x4c20bc], edi
jmp 0x404c16
push 0x10
push 0x4b393c
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404c23
push 0xffffffffffffffff
push dword [0x4c212c]
mov ecx, esi
push edi
call fcn.00443a31
mov al, byte [0x4c20c2]
mov byte [0x4c32ea], al
jmp 0x404bb4
mov ecx, esi
call fcn.00403fda
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4c20bc], edi
jmp 0x404c23
call fcn.0043c943
test al, al
jne 0x404bd5
cmp byte [ebp - 6], al
jne 0x404bd5
push 0x104
lea eax, [ebp - 0x43c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x49eaa4
lea ecx, [ebp - 0x18]
call fcn.0040dc83
lea ecx, [ebp - 0x18]
test bl, bl
je 0x472e1d
mov edi, 0x4b39a8
push edi
call fcn.00403f04
push 0x4c213c
lea ecx, [ebp - 0x18]
call fcn.00403f04
push edi
lea ecx, [ebp - 0x18]
call fcn.00403f04
push 1
jmp 0x472e26
push dword [ebp + 8]
call fcn.00403f04
push edi
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x43c]
push eax
push 0x4b39ac
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x18]
call fcn.00406ea2
jmp 0x404c0f
Function at 0x4053dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x476387
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00424f9e
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x405403

Function at 0x405f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x405ff4
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x405fb7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x405fc7
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
inc edi
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx - 1], al
inc dword [esi + 0xc]
cmp edi, ebx
jb 0x405f97
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405fb7
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405fb7
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x405f9f
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.004060a1
jmp 0x405f8e
Function at 0x41d1fd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
mov esi, dword [edi]
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 8]
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x170], eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp ecx, dword [edi + 0x174]
jne 0x41d2a2
cmp eax, dword [edi + 0x178]
jne 0x41d2a2
push dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
push dword [ebx + 0x1c]
movzx eax, ax
shr eax, 0xf
mov dword [ebp + 8], eax
call esi
movzx esi, ax
mov eax, dword [ebp + 8]
shr esi, 0xf
cmp eax, dword [edi + 0x17c]
jne 0x47fadc
cmp dword [ebp + 0xc], 0
je 0x41d283
mov dword [edi + 0x17c], eax
cmp esi, dword [edi + 0x180]
jne 0x47fb48
cmp dword [ebp + 0xc], 0
je 0x41d29b
mov dword [edi + 0x180], esi
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x174], ecx
mov dword [edi + 0x178], eax
jl 0x41d249
jmp 0x47facb
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00469944
jmp 0x41d249
cmp dword [ebp + 0xc], 1
jl 0x41d277
cmp byte [edi + 0x1a8], 0
je 0x41d277
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, eax
je 0x47fb04
push 0xfffffffffffffff9
jmp 0x47fb34
push 0xfffffffffffffff8
call fcn.00469944
cmp byte [edi + 0x184], 0
je 0x47fb39
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, 0x1000000
je 0x47fb32
push 0xfffffffffffffffa
jmp 0x47fb34
push 0xfffffffffffffff4
call fcn.00469944
mov eax, dword [ebp + 8]
mov byte [edi + 0x184], 0
jmp 0x41d277
cmp dword [ebp + 0xc], 1
jl 0x41d28f
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test esi, esi
je 0x47fb63
push 0xfffffffffffffff7
jmp 0x47fb65
push 0xfffffffffffffff6
call fcn.00469944
jmp 0x41d28f

Function at 0x41e6ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x41e769
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41e769
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e769
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + eax]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e750
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x41e760
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x41e74e
xor al, al
jmp 0x41e75c
Function at 0x41ec5c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 0xc]
mov ecx, esi
call fcn.0040e959
lea eax, [ebp - 0x15c]
push eax
mov byte [ebx + 0x30], 0
mov dword [ebp - 0x15c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x158]
mov dword [ebx], eax
mov eax, dword [ebp - 0x154]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x150]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x148]
push eax
mov ecx, esi
call fcn.00408f96
push ecx
mov ecx, esi
call fcn.0041eed3
push 0x49ec28
mov ecx, esi
call fcn.0041edcd
mov eax, dword [ebx]
xor edx, edx
push 1
mov word [ebx + 0x2b], dx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov word [ebx + 0x28], dx
mov byte [ebx + 0x2a], dl
pop ecx
sub eax, 5
je 0x473526
dec eax
jne 0x41ed22
mov eax, dword [ebx + 4]
mov byte [ebx + 0x1d], cl
mov byte [ebx + 0x1f], cl
test eax, eax
je 0x4734d6
cmp eax, ecx
je 0x4734f1
cmp eax, 2
jne 0x473512
mov byte [ebx + 0x28], cl
mov byte [ebx + 0x29], cl
mov byte [ebx + 0x27], cl
mov byte [ebx + 0x25], cl
mov byte [ebx + 0x21], cl
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
call fcn.0041ee0c
test al, al
je 0x41ed57
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041edf4
call eax
cmp dword [ebp - 4], 1
jne 0x41ed57
mov byte [ebx + 0x2c], 1
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
push 8
xor edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x40], edx
rep stosd dword es:[edi], eax
pop edi
cmp byte [ebx + 0x2c], al
je 0x41edc1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edx
call fcn.0041ee61
test al, al
lea eax, [ebp - 0x40]
push eax
je 0x41edb9
lea ecx, [ebp - 0x1c]
call fcn.0041ee49
call eax
cmp dword [ebp - 0x1c], 0
je 0x41ed9e
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x10], 0
mov ax, word [ebp - 0x40]
mov word [ebx + 0x2e], ax
je 0x41edb1
push dword [ebp - 0x10]
call esi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x41ed93
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x41ed9e
mov byte [ebx + 0x21], cl
cmp byte [ebp - 0x42], cl
jne 0x4734e6
mov byte [ebx + 0x20], cl
jmp 0x41ed22
mov byte [ebx + 0x23], cl
mov byte [ebx + 0x22], cl
jmp 0x41ed22
mov byte [ebx + 0x21], cl
mov byte [ebx + 0x23], cl
mov byte [ebx + 0x25], cl
cmp byte [ebp - 0x42], cl
jne 0x473507
mov byte [ebx + 0x24], cl
jmp 0x41ed22
mov byte [ebx + 0x27], cl
mov byte [ebx + 0x26], cl
jmp 0x41ed22
cmp eax, 3
jne 0x41ed22
mov byte [ebx + 0x2b], cl
mov byte [ebx + 0x2a], cl
jmp 0x41ed16
cmp dword [ebx + 4], ecx
jne 0x473542
mov byte [ebx + 0x1d], cl
mov byte [ebx + 0x1c], cl
movzx eax, byte [ebp - 0x44]
shr eax, 6
and eax, ecx
mov byte [ebx + 0x30], al
jmp 0x41ed22
cmp dword [ebx + 4], 2
jne 0x473531
mov byte [ebx + 0x1d], cl
mov byte [ebx + 0x1f], cl
cmp byte [ebp - 0x42], cl
je 0x47352e
mov byte [ebx + 0x1e], cl
jmp 0x473531
Function at 0x41f324
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
call fcn.0040d4dd
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4755ef
xor al, al
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push 0x49ec40
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x475669
mov eax, dword [ebp - 4]
push esi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420bfa
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00403182
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push 0x49ec40
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x475660
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00408f96
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.0040331d
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x41f356

Function at 0x41f9bc
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c20c1]
push ebx
push esi
push edi
mov esi, ecx
push 0x8000
push esi
mov edi, edx
mov byte [ebp - 1], al
call fcn.004240b6
pop ecx
push eax
call fcn.00423ee5
pop ecx
pop ecx
push 0xb
mov ecx, edi
mov ebx, eax
call fcn.0040e479
test al, al
jne 0x475679
lea ecx, [ebp - 0x18]
call fcn.0040b70e
mov ecx, edi
call fcn.0040957a
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.0041fa63
push dword [ebp - 0x18]
push 0x4afc3c
push esi
call fcn.004242af
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [ebp - 8], eax
jne 0x475699
lea ecx, [ebp - 0x18]
call fcn.00406ea2
mov edi, dword [ebp - 8]
push esi
call fcn.00424474
pop ecx
cmp ebx, 0xffffffff
je 0x4756b0
push ebx
push esi
call fcn.004240b6
pop ecx
push eax
call fcn.00423ee5
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push esi
mov ecx, edi
call fcn.0044ca2e
push eax
push 1
call fcn.0044c9e5
push eax
call fcn.00424231
add esp, 0x10
mov edi, eax
jmp 0x41fa3c
mov ecx, edi
call fcn.0040957a
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41fa31
push 0x4000
jmp 0x41fa4d