joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4532a4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45344f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453430
mov dl, 1
mov eax, dword [0x412a38]
call fcn.004036c8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404508
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45341f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004411c8
test al, al
je 0x453412
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x453460
lea eax, [ebp - 0x254]
call fcn.004093f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453412
xor eax, eax
push ebp
push 0x45340b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x453498
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4533f4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404778
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4533f4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453412
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453315
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416570
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453456
lea eax, [ebp - 0x260]
call fcn.00404508
ret

Function at 0x453d98
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x486bb4]
cmp byte [eax + 0xa5], 0
jne 0x453e09
cmp dword [0x486bcc], 0
jne 0x453dca
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453d54
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x486bcc], eax
cmp dword [0x486bc8], 0
jne 0x453de5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x486bc8], eax
cmp dword [0x486bd0], 0
jne 0x453e09
push esp
push 0
push 0
push 0x453cf8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x486bd0], eax
pop edx
ret
Function at 0x45449c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x486bb4]
cmp dword [eax + 0x30], 0
je 0x454546
cmp dword [ebx + 0x94], 0
jne 0x454540
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45442c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454540
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454506
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454540
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004149e0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454515
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4550a4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4550d9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004045f8
jmp 0x4550e6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040455c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456208
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456249
mov eax, esi
call fcn.0043c888
test al, al
je 0x456249
mov eax, dword [ebx + 0x84]
call fcn.0043c584
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456249
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c584
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x459934
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x459962
mov eax, ebx
call fcn.0045a3e8
cmp dword [ebx + 0x40], 0
je 0x45995b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4599d3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4599c5
cmp dword [ebx + 8], 0
je 0x459984
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x459996
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4599c5
cmp dword [ebx + 8], 0
je 0x459977
cmp eax, 3
je 0x4599a9
dec eax
jne 0x459977
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x459977
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x459977
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4599f1
cmp dword [ebx + 0x14], 0xcc
je 0x4599f1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004599fc
pop ebx
ret
Function at 0x46c0b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x46c0e1
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x46c160
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0046a098
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x46c12e
mov cx, word [esp]
sub cx, si
jmp 0x46c130
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x46c117
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x46c156
mov cx, word [esp]
sub cx, si
jmp 0x46c158
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x46c13f
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x46c1bd
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0046bd88
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x46c1a8
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x46c1bd
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x46c0be
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x471d18
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x486bec
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x471d3a
shr eax, 1
xor eax, 0xedb88320
jmp 0x471d3c
shr eax, 1
dec edx
jne 0x471d28
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x471d21
mov byte [0x486fec], 1
pop esi
pop ebx
ret

Function at 0x471d58
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x486fec], 0
jne 0x471d6f
call fcn.00471d18
mov eax, edi
dec eax
test eax, eax
jl 0x471d98
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x486bec]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x471d79
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4748b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x4748e5
dec al
je 0x474921
dec al
je 0x474965
dec al
je 0x4749d0
jmp 0x474a5a
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x474a5a
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4748f5
jmp 0x474a5a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x474a5a
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x474931
jmp 0x474a5a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x474a5a
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x474993
xor ebp, ebp
jmp 0x4749a4
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4749ad
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x474975
jmp 0x474a5a
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x474a5a
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x474a28
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00471da0
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4749e4
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5cfd30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1ca000]
push edi
jmp 0x5cfd4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5cfd51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cfd40
mov eax, 1
add ebx, ebx
jne 0x5cfd63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5cfd74
jne 0x5cfd93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cfd93
dec eax
add ebx, ebx
jne 0x5cfd80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5cfd58
add ebx, ebx
jne 0x5cfd8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5cfde5
xor ecx, ecx
sub eax, 3
jb 0x5cfdab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5cfe1a
sar eax, 1
mov ebp, eax
jmp 0x5cfdb6
add ebx, ebx
jne 0x5cfdb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cfd84
inc ecx
add ebx, ebx
jne 0x5cfdc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cfd84
add ebx, ebx
jne 0x5cfdd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5cfdc6
jne 0x5cfde2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5cfdc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5cfe04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5cfdf6
jmp 0x5cfd46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5cfe04
add edi, ecx
jmp 0x5cfd46
pop esi
mov edi, esi
mov ecx, 0x255
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5cfe22
cmp byte [edi], 1
jne 0x5cfe22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5cfe27
lea edi, [esi + 0x1cd000]
mov eax, dword [edi]
or eax, eax
je 0x5cfe9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f274c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f2800]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5cfe54
mov ecx, edi
jns 0x5cfe83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f2804]
or eax, eax
je 0x5cfe99
mov dword [ebx], eax
add ebx, 4
jmp 0x5cfe71
call dword [esi + 0x1f2814]
mov ebp, dword [esi + 0x1f2808]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5cfed3
sub esp, 0xffffff80
jmp 0x40354b
Function at 0x1001f52a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001f569
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001f569
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001f569
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001f569
cmp dword [ecx + 0x74], 0xe
jbe 0x1001f569
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10021ef4
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 0x10021f91
push ebx
push esi
call fcn.10021ebd
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.10021e51
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10021f3e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10021f90
push edi
push eax
call fcn.100207f2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10021f5e
call fcn.10020840
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10021f8f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10021e51
add esp, 0x20
test eax, eax
jne 0x10021f7d
push edi
call fcn.10020840
jmp 0x10021f85
push ebx
call fcn.10020840
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 0x100221fe
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a810
push 0x1002a808
push str.FlsAlloc
push 0x1f
call fcn.1002211a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10022232
push dword [ebp + 8]
mov ecx, esi
call dword [0x10028154]
call esi
jmp 0x10022238
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002227c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a820
push 0x1002a818
push str.FlsGetValue
push 0x21
call fcn.1002211a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100222b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10028154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100222bb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a828
push 0x1002a820
push str.FlsSetValue
push 0x22
call fcn.1002211a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100222f5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10028154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10027800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002782d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002782d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40b9f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 8], 0
je 0x40ba5f
push edi
xor edi, edi
test ebx, ebx
je 0x40ba20
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x40ba30
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov al, byte [ecx + edx]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
inc dword [esi + 0xc]
inc edi
cmp edi, ebx
jb 0x40ba01
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x10000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ba20
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ba20
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x40ba09
push esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0040f170
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jmp 0x40b9fa
Function at 0x40e570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
call fcn.0040bfd0
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c16a
mov edx, dword [ebp - 8]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0
push 0x49922c
push edx
xor bl, bl
call edi
test eax, eax
jne 0x40e624
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413649
add esp, 4
lea esi, [ebp - 0x10]
call fcn.00411560
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push 0x49922c
push ecx
call edi
test eax, eax
jne 0x40e61c
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [ebp + 8]
mov ebx, esi
call fcn.0040d3d0
mov bl, 1
lea esi, [ebp - 0x10]
call fcn.00410100
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ea20
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.004021f0
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x433f4f
mov eax, dword [0x4bc12c]
test eax, eax
je 0x433f68
mov byte [ebp - 1], 0
mov esi, 0x4bd2e0
cmp eax, 1
je 0x433f7e
push 0x4bc12c
lea ecx, [ebp - 1]
mov eax, 0x4bc144
call fcn.004102f0
test al, al
je 0x433fa5
mov cl, byte [0x4bd2e0]
mov bl, byte [0x4bd2e1]
push 0x4bc128
lea edx, [ebp - 0x438]
push edx
push 0x104
push 0x4bc144
mov byte [0x4bc130], cl
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [0x4bc12c]
push eax
push 0x4bc144
call fcn.00401480
test eax, eax
jne 0x433fbb
cmp bl, 1
je 0x433fe1
call fcn.004112b0
call fcn.00411490
cmp byte [0x4bc130], 0
jne 0x40eaf9
mov ebx, 0x4bc8e8
call fcn.0040edb0
push 1
mov ecx, 0x4bc350
call fcn.00403870
cmp byte [0x4bc130], 0
jne 0x40eb18
mov ecx, 0x4bc8e8
call fcn.0040eea0
mov ebx, 0x4bd2e0
call fcn.0040f7f0
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
push 0x498832
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 0x40eb2f
lea ecx, [ebp - 0x228]
mov dword [0x4ab6dc], 0xffffffff
push ecx
jmp 0x40eb29
mov ebx, dword [0x4bc134]
push 0xffffffffffffffff
push 1
mov byte [ebp - 2], 0
call fcn.0040b8a0
mov dl, byte [0x4ab6d0]
mov bl, byte [ebp - 2]
mov byte [0x4bd2e3], dl
jmp 0x40eabb
lea eax, [ebp - 0x228]
mov dword [0x4ab6dc], 1
push eax
jmp 0x40eb29
mov ebx, 0x4bd2e0
call fcn.0040f7f0
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4ab6dc], 1
jmp 0x40eb2f
call fcn.00438a7a
test al, al
jne 0x40eadc
push 0x104
lea edx, [ebp - 0x438]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [ebp - 1], 0
je 0x43405f
mov edi, 0x4988a0
lea esi, [ebp - 0x14]
call fcn.00401ec0
mov edi, 0x4bc144
mov eax, esi
call fcn.0040dfa0
mov edi, 0x4988a0
mov eax, esi
call fcn.0040dfa0
mov ecx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x228]
push eax
push ecx
lea edx, [ebp - 0x438]
push edx
push 0x4988a4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, esi
call fcn.00402610
jmp 0x40eb18
push 1
lea eax, [ebp - 0x228]
push eax
push edi
lea ecx, [ebp - 0x438]
push ecx
push 0x4988a4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40eb18