joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000eada
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x1000eb1f
call fcn.10006522
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000eb1f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1000eb3b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.100186f9
mov ebx, eax
test edi, edi
je 0x1000eb39
test esi, esi
je 0x1000eb39
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10018aee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.10006522
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10018b25
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10018b46
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1001b0e6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.100131ba
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1001b122
call fcn.1001b305
mov dword [esi + 0xc], 1
jmp 0x1001b127
call fcn.1001b305
cmp dword [esi], 0
je 0x1001b170
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1001b14a
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10007b31
jmp 0x1001b15b
push 0xff
mov ecx, esi
call fcn.10002df7
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10004afc
jmp 0x1001b194
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x1001b194
push dword [esi]
push dword [ebp - 4]
call fcn.100090d3
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001b25a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1001b305
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1001b2a2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10007b31
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10004afc
jmp 0x1001b2ad
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.100090d3
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1002b02a
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10061a6c
call fcn.10006576
cmp dword [eax + 0x14], 0
jne 0x1002b045
mov ecx, esi
pop esi
jmp fcn.1002a430
pop esi
ret

Function at 0x1002bd60
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.100a3b21
call fcn.10006576
cmp dword [eax + 0x14], 0
jne 0x1002bd7b
mov ecx, esi
pop esi
jmp fcn.1002b649
pop esi
ret
Function at 0x401490
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x409b7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esp + 4], esi
mov dword [esi], eax
mov dword [esp + 0x10], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov ecx, 0x81650
push eax
mov byte [esp + 0x14], 0xc
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov byte [esi + 0x3c], al
mov byte [esi + 0x3d], al
mov dword [esi + 0x44], 0x1b
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], 0x35b60
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, esi
call fcn.00401660
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402260
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
ret 0xc

Function at 0x402290
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc
Function at 0x4049d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30c
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SoftwareUSB2800BDA
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404b37
lea ecx, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push edi
push str.RealDSName
push ecx
mov dword [esp + 0x20], 0x100
call esi
test eax, eax
jne 0x404a8a
mov eax, dword [esp + 8]
lea edx, [esp + 0x114]
push 0x104
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp + 0x318]
test edx, edx
je 0x404a76
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x31c]
test eax, eax
je 0x404b1c
jmp 0x404b0b
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.DSName
push edx
mov dword [esp + 0x20], 0x100
call esi
test eax, eax
jne 0x404b21
mov ecx, dword [esp + 8]
lea eax, [esp + 0x114]
push 0x104
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp + 0x318]
test edx, edx
je 0x404b00
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x31c]
test eax, eax
je 0x404b1c
lea ecx, [esp + 0x114]
push ecx
push eax
call fcn.004053ee
add esp, 8
mov edi, 1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop esi
pop edi
add esp, 0x30c
ret
mov eax, edi
pop edi
add esp, 0x30c
ret
Function at 0x404de0
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x12c
lea eax, [esp + 0xc]
push esi
push eax
push 0x40a228
push 1
push 0
mov esi, ecx
push 0x40a268
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov dword [esi + 0x14], eax
jl 0x404f98
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404f98
mov ecx, dword [eax]
lea edx, [esp + 8]
push 0
push edx
lea edx, [esp + 0x13c]
push edx
push eax
call dword [ecx + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x14]
test eax, eax
jl 0x404f98
mov eax, dword [esp + 8]
test eax, eax
je 0x404f98
mov edx, dword [eax]
push ebx
push ebp
push edi
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x404f7d
mov ebx, dword [esp + 0x150]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push 0x40a158
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
mov dword [esi + 0x14], eax
jl 0x404f49
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push 0
mov word [esp + 0x2c], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x404ef9
mov ecx, dword [esp + 0x30]
push eax
push eax
lea eax, [esp + 0x40]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call fcn.00405620
add esp, 0xc
test eax, eax
jne 0x404f49
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0x40a218
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x20]
test eax, eax
mov dword [esi + 0x14], eax
jl 0x404f49
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x404f73
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
je 0x404e8e
jmp 0x404f7d
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x12c
ret 0x14
xor eax, eax
pop esi
add esp, 0x12c
ret 0x14
Function at 0x40732d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c8e8
cmp edx, dword [eax]
je 0x40734f
add eax, 8
inc ecx
cmp eax, 0x40c978
jl 0x407340
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c8e8]
jne 0x40747d
mov eax, dword [0x40d128]
cmp eax, 1
je 0x407457
test eax, eax
jne 0x407380
cmp dword [0x40c828], 1
je 0x407457
cmp edx, 0xfc
je 0x40747d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4073b7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408af0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004084f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4073fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.004084f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a668
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408af0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408b00
lea eax, [ebp - 0xa0]
push 0x40a648
push eax
call fcn.00408b00
push dword [esi + 0x40c8ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408b00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408f15
add esp, 0x2c
pop edi
jmp 0x40747d
lea eax, [ebp + 8]
lea esi, [esi + 0x40c8ec]
push 0
push eax
push dword [esi]
call fcn.004084f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d48
xor eax, eax
push ebp
push 0x402d41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40d00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4033b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40e038], 0
je 0x403411
cmp word [0x40e20c], 0xd7b2
jne 0x4033d9
cmp dword [0x40e214], 0
jbe 0x4033d9
mov eax, 0x40e208
call dword [0x40e224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40d058
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403438
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x40d018], 0
jne 0x40342d
push 0
push 0x40d050
push 0x40d058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403ac4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403b2a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040369c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004029cc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403b14
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b31
lea eax, [ebp - 0x10]
call fcn.0040354c
ret

Function at 0x405838
Capabilities:
Get file attributes

Disassembly:
call fcn.004042a0
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
inc eax
je 0x40584c
dec eax
and al, 0x10
sete al
ret

Function at 0x406480
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x40648c
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x4064a8
push eax
je 0x4064a9
call dword [0x40d100]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x174], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x40d100]
ret
Function at 0x40713c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x105]
xor eax, eax
push ebp
push 0x4071c6
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push edi
push 0
push 0x4071d4
push edi
call sub.KERNEL32.DLL_GetTempFileNameA
lea eax, [ebp - 0x10c]
mov edx, edi
mov ecx, 0x105
call fcn.0040369c
mov eax, dword [ebp - 0x10c]
mov ecx, ebx
mov edx, esi
call fcn.0040476c
mov eax, dword [ebx]
call fcn.00405838
test al, al
jne 0x407168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4071cd
lea eax, [ebp - 0x10c]
call fcn.0040354c
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x409f00
Capabilities:
Encode data using xor

Disassembly:
add byte [eax + 8], dh
mov esi, esi
or byte [ecx - 0x3e87fbb8], cl
mov ecx, dword [ebp + 0xc]
not eax
and eax, ecx
neg eax
sbb eax, eax
and eax, 0x11178
or eax, 0x9090ca6d
lgs edx, [ebp - 0x75]
in al, dx
push ebx
mov esi, 0x8b560cad
jne 0x409f33
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x18
xor esp, dword [0xabf3fe8b]
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x4d]
xor ebp, dword [ecx]
mov ecx, 0xe820
mov dword [eax + 0x3874890c], eax
pop eax
cdq
sub ch, byte [edi]
dec esp
sbb dword [ebp + 0x32], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov ecx, dword [ebx + 0xc]
mov edx, eax
mov eax, dword [esi + 0x3c]
xor edi, edi
or edx, ecx
or eax, edi
mov dword [esi + 0x38], edx
mov dword [esi - 2], eax
push edi
mov edx, eax
mov eax, dword [esi + 0x38]
push 0x1a
push edx
push eax
sub al, 0x68
push ss
add byte [eax], al
mov dword [esi + 0x3c], edx
mov ecx, dword [esi + 0x54]
mov edx, eax
mov dword [esi + 0x38], eax
and dword [ebx], 0x8eb779a6
salc
imul edx, dword [ebx], 0x56890dd6
cmp byte [ecx + 0x4b8b314e], cl
movsd dword es:[edi], dword ds:[esi]
dec esi
jnp 0x409f27
ror dword [ebx + 0xbfb91c], 0
add byte [ecx - 0x4f10b382], cl
sbb byte [ebx + 0x14], ah
fiadd word [esi + 0x48]
mov dword [esi - 0x29], edx
mov ebx, dword [ecx + 4]
dec ebx
dec esi
dec esp
or esp, dword [ebx + 0xb]
iretd
Function at 0x106c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0106c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x106c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106c06a
add dl, dl
jne 0x106c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106c0dc
xor eax, eax
add dl, dl
jne 0x106c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106c17d
add dl, dl
jne 0x106c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x106c075
mov eax, 1
add dl, dl
jne 0x106c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106c0e1
sub eax, ebx
mov ebx, 1
jne 0x106c128
mov ecx, 1
add dl, dl
jne 0x106c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x106c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x106c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x106c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106c136
cmp eax, 0x7d00
jae 0x106c16d
cmp eax, 0x500
jb 0x106c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106c075
cmp eax, 0x7f
ja 0x106c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x106c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x106c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40406b
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 0x4040a3
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 0x474f16
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 0x4040a2
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4040a2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4040a2
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 0x4040a2

Function at 0x4044ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x474fc0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042381e
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 0x404513

Function at 0x4049fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
call fcn.0040bcce
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 0x4741cc
xor al, al
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push str.Include
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474246
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.0041f4ea
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004047b7
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push str.Include
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47423d
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.00406a63
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.004047e2
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x404a2d
Function at 0x45528c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x4552c9
cmp byte [ebp + 8], 0
je 0x4552c9
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.004542ef
push esi
push 0
push 0x45535a
call fcn.00423ecd
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
jmp 0x4552d1
push dword [ebp + 8]
call fcn.004544c1
pop esi
pop ebp
ret 4