joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6cfe95d1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6d9f6018]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x6d9f6018]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x6cfe969f
jmp 0x6cfe974d
jmp 0x6cfe97fb
jmp 0x6cfe98a9
jmp 0x6cfe9957
jmp 0x6cfe9a05
jmp 0x6cfe9ab3
jmp 0x6cfe9b61
jmp 0x6cfe9c0f
jmp 0x6cfe9cbd
jmp 0x6cfe9d6b
jmp 0x6cfe9e19
jmp 0x6cfe9ec7
jmp 0x6cfe9f75
mov dword [ebp - 0x14], 0
jmp 0x6cfea02a
jmp 0x6cfea0d8
jmp 0x6cfea186
jmp 0x6cfea234
jmp 0x6cfea2e2
jmp 0x6cfea390
jmp 0x6cfea43e
jmp 0x6cfea4ec
jmp 0x6cfea59a
jmp 0x6cfea648
jmp 0x6cfea6f6
jmp 0x6cfea7a4
jmp 0x6cfea852
jmp 0x6cfea900
mov dword [ebp - 0x18], 0
jmp 0x6cfea9b5
jmp 0x6cfeaa63
jmp 0x6cfeab11
jmp 0x6cfeabbf
jmp 0x6cfeac6d
jmp 0x6cfead1b
jmp 0x6cfeadc9
jmp 0x6cfeae77
jmp 0x6cfeaf25
jmp 0x6cfeafd3
jmp 0x6cfeb081
jmp 0x6cfeb12f
jmp 0x6cfeb1dd
jmp 0x6cfeb28b
mov dword [ebp - 0x10], 0
jmp 0x6cfeb340
jmp 0x6cfeb3ee
jmp 0x6cfeb49c
jmp 0x6cfeb54a
jmp 0x6cfeb5f8
jmp 0x6cfeb6a6
jmp 0x6cfeb754
jmp 0x6cfeb802
jmp 0x6cfeb8b0
jmp 0x6cfeb95e
jmp 0x6cfeba0c
jmp 0x6cfebaba
jmp 0x6cfebb68
jmp 0x6cfebc16
mov dword [ebp - 0x10], 0
jmp 0x6cfeebfe
jmp 0x6cfebcd0
jmp 0x6cfebd7e
jmp 0x6cfebe2c
jmp 0x6cfebeda
jmp 0x6cfebf88
jmp 0x6cfec036
jmp 0x6cfec0e4
jmp 0x6cfec192
jmp 0x6cfec240
jmp 0x6cfec2ee
jmp 0x6cfec39c
jmp 0x6cfec44a
jmp 0x6cfec4f8
jmp 0x6cfec5a6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x6d9f6014]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x6cfec665
jmp 0x6cfec713
jmp 0x6cfec7c1
jmp 0x6cfec86f
jmp 0x6cfec91d
jmp 0x6cfec9cb
jmp 0x6cfeca79
jmp 0x6cfecb27
jmp 0x6cfecbd5
jmp 0x6cfecc83
jmp 0x6cfecd31
jmp 0x6cfecddf
jmp 0x6cfece8d
jmp 0x6cfecf3b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x6d9f601c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x6cfecffa
jmp 0x6cfed0a8
jmp 0x6cfed156
jmp 0x6cfed204
jmp 0x6cfed2b2
jmp 0x6cfed360
jmp 0x6cfed40e
jmp 0x6cfed4bc
jmp 0x6cfed56a
jmp 0x6cfed618
jmp 0x6cfed6c6
jmp 0x6cfed774
jmp 0x6cfed822
jmp 0x6cfed8d0
mov eax, dword [0x6d9f6008]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call eax
jmp 0x6cfed99c
jmp 0x6cfeda4a
jmp 0x6cfedaf8
jmp 0x6cfedba6
jmp 0x6cfedc54
jmp 0x6cfedd02
jmp 0x6cfeddb0
jmp 0x6cfede5e
jmp 0x6cfedf0c
jmp 0x6cfedfba
jmp 0x6cfee068
jmp 0x6cfee116
jmp 0x6cfee1c4
jmp 0x6cfee272
add dword [ebp - 0xc], 0x28
jmp 0x6cfee324
jmp 0x6cfee3d2
jmp 0x6cfee480
jmp 0x6cfee52e
jmp 0x6cfee5dc
jmp 0x6cfee68a
jmp 0x6cfee738
jmp 0x6cfee7e6
jmp 0x6cfee894
jmp 0x6cfee942
jmp 0x6cfee9f0
jmp 0x6cfeea9e
jmp 0x6cfeeb4c
jmp 0x6cfeebfa
add dword [ebp - 0x10], 1
mov eax, dword [0x6d9f6018]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x6cfebc22
nop
leave
ret
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x43b63b
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
sub eax, esi
call fcn.0043b67f
sub esi, 0x6221e431
sub esi, 0xdb11a5eb
xor dword [ecx], edi
add eax, esi
mov eax, esi
inc ecx
add esi, 0x1cf19d66
sub eax, 1
cmp ecx, edx
jne fcn.0043b63b
mov esi, esi
or eax, eax
sub eax, 1
ret
Function at 0x40cbc7
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41a2f8
call fcn.00413724
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41b69c
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41b754
push 4
mov ebx, 0x41b68c
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00403291
mov dword [esi + 0x3c], 0x41b804
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.00403291
mov dword [edi], 0x41b80c
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040c1be
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040c1be
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040c1be
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040c1be
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040c1be
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x412ff0
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call fcn.0041468e
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x413018
xor eax, eax
ret 4
call dword [0x41b0b0]
test eax, eax
jne 0x413027
mov eax, 1
ret 4
Function at 0x4010b6
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov eax, 0x455c74
call fcn.00454158
sub esp, 0x224
push ebx
push esi
push edi
lea eax, [ebp - 0x128]
push eax
push 0x104
mov ebx, ecx
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
push ebx
call fcn.00401401
lea edi, [ebx + 0x10]
cmp dword [edi], 0
jne 0x401103
mov eax, dword [ebx + 0x14]
push 0xffffffffffffffff
push eax
push 1
mov esi, 0x46fd68
call fcn.0040cee2
jmp 0x40113e
push edi
lea esi, [ebx + 0x20]
push 0x46fd68
lea eax, [ebp - 0xd]
call fcn.0040d346
test al, al
jne 0x401127
mov dword [0x463b08], 1
jmp 0x401280
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
mov esi, 0x46fd68
call fcn.0040d315
push dword [edi]
lea eax, [ebx + 0x20]
mov esi, 0x46e1b8
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0041c2dd
test eax, eax
je 0x401187
mov esi, 0x46fd68
call fcn.0040d092
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov dword [0x463b08], 1
jmp 0x40128d
cmp byte [0x463b00], 1
jne 0x401250
cmp byte [0x46dfdd], 1
jne 0x401250
call fcn.00412bdb
test al, al
jne 0x401250
push 0x105
lea eax, [ebp - 0x230]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
cmp byte [ebp - 0xd], 0
je 0x401226
mov edi, 0x459330
push edi
lea esi, [ebp - 0x20]
call fcn.00413053
push dword [ebp - 0x14]
and dword [ebp - 4], 0
or eax, 0xffffffff
mov ecx, esi
call fcn.00413379
push edi
or eax, 0xffffffff
mov ecx, esi
call fcn.00413379
push 1
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x230]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call fcn.0044624a
pop ecx
jmp 0x401276
push 1
lea eax, [ebp - 0x128]
push eax
push dword [0x46fc50]
lea eax, [ebp - 0x230]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x401276
call fcn.0040129c
call fcn.00401390
cmp byte [0x463aee], 1
jne 0x40126d
mov ebx, 0x46eaa0
call fcn.0040f5c6
push 1
mov ecx, esi
call fcn.0041c522
mov esi, 0x46fd68
call fcn.0040d092
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4037ff
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x411c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4120], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0x4124]
cmp ecx, dword [eax]
jne 0x403847
cmp edx, dword [esi + 0x4128]
je 0x403863
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [esi + 0x4128], edx
jne 0x403863
push edx
push ecx
mov ecx, dword [ebp + 8]
push esi
push 0xfffffffffffffff5
pop ebx
call fcn.00402254
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 1
call ebx
mov edi, 0x8000
test di, ax
jne 0x40388b
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x40388b
and dword [ebp - 8], 0
jmp 0x403892
mov dword [ebp - 8], 1
push 2
call ebx
test di, ax
jne 0x4038ae
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x4038ae
and dword [ebp - 4], 0
jmp 0x4038b5
mov dword [ebp - 4], 1
mov edi, dword [ebp - 8]
cmp edi, dword [esi + 0x412c]
je 0x403917
cmp dword [ebp + 0xc], 1
jne 0x403917
test edi, edi
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x10]
push esi
je 0x4038d8
push 0xfffffffffffffff9
jmp 0x40390a
push 0xfffffffffffffff8
pop ebx
call fcn.00402254
cmp byte [esi + 0x4134], 0
je 0x403910
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x1000000
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x10]
push esi
je 0x403908
push 0xfffffffffffffffa
jmp 0x40390a
push 0xfffffffffffffff4
pop ebx
call fcn.00402254
mov byte [esi + 0x4134], 0
cmp dword [ebp + 0xc], 0
je 0x403923
mov dword [esi + 0x412c], edi
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x4130]
pop edi
je 0x403955
cmp dword [ebp + 0xc], 1
jne 0x403955
test eax, eax
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x10]
push esi
je 0x40394d
push 0xfffffffffffffff7
pop ebx
call fcn.00402254
jmp 0x40395b
push 0xfffffffffffffff6
pop ebx
call fcn.00402254
cmp dword [ebp + 0xc], 0
je 0x403964
mov eax, dword [ebp - 4]
mov dword [esi + 0x4130], eax
pop ebx
leave
ret 8
Function at 0x4087b8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4088bf
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40885a
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 8]
push eax
push 0x457c60
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x408861
xor eax, eax
jmp 0x4088eb
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, ebx
mov eax, dword [ebp + 0x10]
jne 0x408896
cmp dword [eax], ebx
jne 0x408896
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40889e
mov dword [ebp - 0x28], edx
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
push 0x2000
push dword [eax]
push dword [ecx]
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4088c2
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x4088d3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
push eax
push ebx
mov dword [esi + 0x44], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4090a6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov esi, eax
mov eax, dword [esi + 0x4140]
cmp eax, dword [ebp + 8]
push edi
je 0x409131
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x409128
lea edi, [esi + 0x4c]
mov eax, dword [edi]
test eax, eax
je 0x40911a
cmp byte [eax + 0x78], 0xb
je 0x40911a
mov cl, byte [eax + 0x7a]
movzx edx, cl
cmp edx, dword [esi + 0x4140]
je 0x4090fc
cmp byte [esi + 0x4148], 0
je 0x40911a
cmp cl, 0xff
je 0x40911a
cmp byte [eax + 0x78], 0xa
je 0x40911a
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x79], 0x40
je 0x40911a
cmp byte [eax + 0x78], 0x1a
jne 0x40911a
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x4090ce
mov eax, dword [ebp + 8]
mov dword [esi + 0x4140], eax
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x409191
lea edi, [esi + 0x4c]
mov eax, dword [edi]
test eax, eax
je 0x409183
cmp byte [eax + 0x78], 0xb
je 0x409183
movzx ecx, byte [eax + 0x7a]
cmp ecx, dword [esi + 0x4140]
jne 0x409183
test byte [eax + 0x79], 0x20
jne 0x409183
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
push 4
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x79], 0x40
je 0x409183
cmp byte [eax + 0x78], 0x1a
jne 0x409183
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x40913f
add esi, 0x4138
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40cca2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.0044f570
push ebx
xor ebx, ebx
push edi
push 0x400
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x210], ebx
mov dword [esi + 0x218], ebx
call fcn.00446648
pop ecx
mov dword [esi + 0x214], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00446e39
push edi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.00446f90
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004470c5
push 0x105
call fcn.00446648
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x218], eax
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.00446250
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ceab
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10324]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cea2
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x10324], bl
mov byte [ebp + eax - 0x10323], bl
lea eax, [ebp - 0x10324]
mov byte [ebp - 0x118], bl
mov dword [ebp - 8], eax
mov cl, byte [eax]
cmp cl, bl
mov byte [ebp - 4], cl
mov byte [ebp - 3], bl
je 0x40ce0c
cmp cl, 0x3b
je 0x40ce0c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00446260
pop ecx
pop ecx
jmp 0x40ce97
lea eax, [ebp - 0x118]
push eax
call fcn.004466d0
test eax, eax
pop ecx
je 0x40ce4a
lea eax, [ebp - 0x118]
push eax
call fcn.004466d0
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40ce4a
lea eax, [ebp - 0x118]
push 0x4598b8
push eax
call fcn.00446260
pop ecx
pop ecx
push 0x105
call fcn.00446648
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x218], eax
push edi
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.004467e0
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x40cea2
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
jmp 0x40cde4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x40dbb8
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov esi, eax
push 5
pop eax
xor ebx, ebx
push ebx
push 0x5b
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov byte [esi + 8], 1
mov byte [esi + 9], bl
call edi
push ebx
push 0x10
mov dword [esi + 0x20], eax
call edi
push ebx
push 0x11
mov dword [esi + 0x1c], eax
call edi
push ebx
push 0x12
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
xor eax, eax
lea esi, [edi + 0x4628bc]
mov al, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x40dc24
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x40dc0a
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x40dc6c
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.004472f0
add esp, 0xc
test eax, eax
mov byte [0x4628c1], 0x20
mov byte [0x4628be], 0x20
je 0x40dcfe
jmp 0x40dce9
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
je 0x40dcb1
lea eax, [ebp - 6]
push 0x45990c
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
jne 0x40dc9d
mov byte [0x4628c1], 0x20
jmp 0x40dcf7
lea eax, [ebp - 6]
push 0x459908
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
jne 0x40dcba
mov byte [0x4628be], 0x20
jmp 0x40dce2
lea eax, [ebp - 6]
push 0x459904
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
je 0x40dcf7
lea eax, [ebp - 6]
push 0x459900
push eax
call fcn.004464a0
test eax, eax
pop ecx
pop ecx
jne 0x40dcfe
mov byte [0x4628c1], 0x20
mov byte [0x4628bf], 0x20
mov byte [0x4628c2], 0x20
mov byte [0x4628c0], 0x20
leave
ret