joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d3cc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47d486
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040475c
mov eax, dword [0x4937a4]
cmp byte [eax], 0
je 0x47d43b
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404b4c
mov eax, dword [ebx]
call fcn.004048e8
push eax
mov eax, dword [ebx]
call fcn.004048d8
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.004048e8
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404b4c
jmp 0x47d46d
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00408fbc
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004048c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d48d
lea eax, [ebp - 0x3f0]
call fcn.00404050
ret

Function at 0x47d494
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00408fbc
add esp, 0x3ec
pop ebx
ret

Function at 0x47d654
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x47d71a
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00451058
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.0047d310
mov edi, eax
test edi, edi
je 0x47d6b3
mov al, byte [0x47d728]
cmp al, bl
jne 0x47d6b3
mov edx, edi
mov eax, ebp
call fcn.0047d248
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x47d71a
cmp byte [ebp + 0x171], 2
jne 0x47d6de
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x493bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov edx, 0xb006
call fcn.0043b5d8
test eax, eax
jne 0x47d71a
jmp 0x47d715
mov edx, dword [0x493ab0]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
mov eax, dword [ebp + 0x138]
cmp edx, eax
je 0x47d715
test byte [eax + 0x2f4], 8
jne 0x47d715
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x493ab0]
mov eax, edx
mov edx, 0xb006
call fcn.0043b5d8
xor eax, eax
mov dword [esi + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x483b9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x493bd8]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x483c42
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x483be1
cmp eax, dword [esp]
pop edx
pop eax
jae 0x483c1d
jmp 0x483be5
pop edx
pop eax
jge 0x483c1d
mov eax, dword [0x493bd8]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0047e448
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x483c42
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x483c42
cmp dword [ebx + 0x12c], 0
je 0x483c42
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0042e448
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x13c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x48e700
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x98], 0
je 0x48e726
push 0
mov eax, dword [ebx + 0x94]
call fcn.00440c0c
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x98], 0
pop ebx
ret

Function at 0x48e7e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48e951
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x48e936
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00408fbc
mov dl, 1
mov eax, dword [0x464c28]
call fcn.00464c80
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x416460]
call fcn.0040324c
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.00464cfc
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x48e933
mov dl, 1
mov eax, dword [0x46605c]
call fcn.004660c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, 0x48e968
call fcn.00465464
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040435c
xor eax, eax
push ebp
push 0x48e92c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004663c4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0048e970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e933
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.0040327c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.0040327c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0040327c
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e958
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404074
ret
Function at 0x10002119
Capabilities:
Contain obfuscated stackstrings

Disassembly:
enter 0x45c6, 0xffffffffffffffb9
cmpsd dword [esi], dword es:[edi]
call fcn.10001e7f
dec edx
xchg dl, ah
lea eax, cs:[ebp - 0x58]
push eax
call fcn.10001e8f
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10001e44
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1000216d
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10001e7f
daa
cmp byte [edx + 0x4e], 0x8d
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x10002513
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10002533
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1000252e
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10002518
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
or byte [ecx], al
adc ebx, ebp
invalid
or byte [ecx], al
adc ebx, ebp
or byte [ebx], bh
ror dword [edi], cl
test dword [esi + 1], ecx
add byte [eax], al
cmp edx, ebx
jne 0x1000266e
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x100024ef
add eax, dword [eax + 4]
jmp 0x100024dc
mov dword [ebp + 0xc], ebx
jmp fcn.1000253e
Function at 0x1000253e
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10002556
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10002574
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100025d2
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100025b9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100025c2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100025cc
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100025ae
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10002538
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000261f
dec eax
je 0x10002616
sub eax, 3
je 0x1000260d
mov dword [ebp - 4], 0x40
jmp 0x1000263c
mov dword [ebp - 4], 4
jmp 0x10002622
mov dword [ebp - 4], 0x20
jmp 0x10002622
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000266e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x100025ee
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10001e7f
cwde
insb byte es:[edi], dx
shl dword [eax - 1], 0x75
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x1000267a
Function at 0x1000468d
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov word [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x80000002
call fcn.1000484a
add esp, 8
test eax, eax
jne 0x100046b6
jmp 0x10004844
mov word [ebp - 4], 0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000483e
push str.GetUserDefaultUILanguage
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100046f8
call dword [ebp - 0xc]
mov word [ebp - 4], ax
jmp 0x10004834
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 4], ax
mov dword [ebp - 0xa0], 0x94
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10004834
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0xa4], 0x200
mov dword [ebp - 0x2ac], 1
cmp dword [ebp - 0x90], 2
jne 0x100047b7
lea eax, [ebp - 0x2a8]
push eax
push str..DEFAULTControl_PanelInternational
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100047a8
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x2ac]
push eax
push 0
push str.Locale
mov ecx, dword [ebp - 0x2a8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100047a8
lea edx, [ebp - 4]
push edx
push 0x1001aff8
lea eax, [ebp - 0x2a4]
push eax
call fcn.100060c4
add esp, 0xc
mov ecx, dword [ebp - 0x2a8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004834
mov dword [ebp - 0x90], 1
cmp dword [ebp - 0x90], 0
je 0x10004834
lea edx, [ebp - 0x2a8]
push edx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10004827
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x2ac]
push edx
push 0
push 0
mov eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004827
lea ecx, [ebp - 4]
push ecx
push 0x1001b040
lea edx, [ebp - 0x2a4]
push edx
call fcn.100060c4
add esp, 0xc
mov eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ax, word [ebp - 4]
jmp 0x10004846
jmp 0x1000483e
mov esp, ebp
pop ebp
ret
Function at 0x40112e
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x42077c
call fcn.004174f8
sub esp, 0x3c
test byte [ebp + 0xd], 1
je 0x4011cf
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.0040163f
and dword [ebp - 4], 0
push 1
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x10], 0x5c
call fcn.00401754
cmp eax, 0xffffffff
je 0x4011b6
push edi
push eax
lea edi, [eax + 1]
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401662
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40118c
lea eax, [ebp - 0x28]
push eax
call fcn.0041feba
pop ecx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017ef
push 1
push edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x10], 0x5c
call fcn.00401754
cmp eax, 0xffffffff
jne 0x40116e
pop edi
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or byte [ebp + 0xd], 2
push 1
lea ecx, [ebp - 0x48]
call fcn.004017ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414d70
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
leave
ret
Function at 0x40276b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
je 0x4027fe
test edi, edi
je 0x4027fe
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
jbe 0x4027f7
push eax
call fcn.00414170
mov esi, eax
test esi, esi
pop ecx
jne 0x4027a6
mov eax, 0x8007000e
jmp 0x402803
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4027f0
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x424334
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4027f0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4027f0
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
push esi
mov dword [edi], eax
call fcn.00415610
pop ecx
xor eax, eax
jmp 0x402803
push esi
call fcn.00415610
pop ecx
mov eax, 0x80004005
jmp 0x402803
mov eax, 0x80070057
pop esi
leave
ret
Function at 0x405218
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x420cd1
call fcn.004174f8
sub esp, 0xcc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
push ebx
push esi
push edi
jne 0x405239
xor edi, edi
jmp 0x40523b
mov edi, dword [eax]
cmp edi, eax
je 0x40536f
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea esi, [edi + 8]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00404ae0
and dword [ebp - 4], 0
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00404ae0
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00404ae0
push 0x3c
lea eax, [ebp - 0xa0]
push 0
push eax
mov byte [ebp - 4], 2
call fcn.004155b0
mov eax, dword [ebp - 0x28]
add esp, 0x24
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0xa0], 0x3c
mov dword [ebp - 0x94], str.open
jae 0x4052af
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x44]
jae 0x4052c1
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x60]
jae 0x4052d3
lea eax, [ebp - 0x60]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0x84], 5
mov dword [ebp - 0x9c], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x405333
mov esi, dword [ebp - 0x68]
jmp 0x40531d
cmp dword [ebp - 0x10], 0x103
jne 0x40532a
cmp byte [0x429d08], 0
jne 0x405380
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x405303
jmp 0x40533f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40533f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x54], 0
je 0x405398
mov edi, dword [edi]
push 1
lea ecx, [ebp - 0x64]
call fcn.004017ef
push 1
lea ecx, [ebp - 0x48]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017ef
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 4]
jne 0x405249
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push 1
lea ecx, [ebp - 0x64]
call fcn.004017ef
push 1
lea ecx, [ebp - 0x48]
call fcn.004017ef
push 1
jmp 0x4053fe
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xd8]
push str.Failed_to_execute_
push eax
call fcn.00404898
push 0x424320
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 3
call fcn.0040484c
push eax
mov byte [ebp - 4], 4
call fcn.004050a8
xor esi, esi
add esp, 0x1c
inc esi
push esi
lea ecx, [ebp - 0xbc]
call fcn.004017ef
push esi
lea ecx, [ebp - 0xd8]
call fcn.004017ef
push esi
lea ecx, [ebp - 0x64]
call fcn.004017ef
push esi
lea ecx, [ebp - 0x48]
call fcn.004017ef
push esi
lea ecx, [ebp - 0x2c]
call fcn.004017ef
xor al, al
jmp 0x405371
Function at 0x40541d
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x420c99
call fcn.004174f8
mov eax, 0x4038
call fcn.00417160
push 0x4000
lea eax, [ebp - 0x4044]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x4044]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040163f
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404ae0
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x405473
mov eax, dword [eax + 4]
jmp 0x405476
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea ecx, [ebp - 0x44]
call fcn.004017ef
push 1
lea ecx, [ebp - 0x28]
call fcn.004017ef
push 0
push 0x40540d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x408015
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408071
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
cmp dword [esi + 0x18], 0x10
jb 0x40804c
mov esi, dword [esi + 4]
jmp 0x40804f
add esi, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
call eax
test eax, eax
jne 0x408069
or edx, 0xffffffff
mov eax, edx
jmp 0x4080ac
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x4080ac
cmp dword [esi + 0x18], 0x10
jb 0x40807c
mov esi, dword [esi + 4]
jmp 0x40807f
add esi, 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x408062
mov eax, dword [ebp - 4]
mul dword [ebp - 8]
push 0
push dword [ebp - 0x10]
push edx
push eax
call fcn.00417120
pop esi
leave
ret
Function at 0x40a60a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x40a645
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x40a622
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x40a661
dec esi
je 0x40a65a
dec esi
jne 0x40a666
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x410f30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4202a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x427354]
xor eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x14]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x38], ebx
jbe 0x410fba
push ebp
lea ebp, [edi + 4]
cmp dword [edi + 0x18], 0x10
jb 0x410f8e
mov eax, dword [ebp]
jmp 0x410f90
mov eax, ebp
movsx eax, byte [eax + esi]
push eax
call fcn.004172b5
mov byte [esp + 0x4c], al
mov ecx, dword [esp + 0x4c]
add esp, 4
push ecx
push 1
lea ecx, [esp + 0x1c]
call fcn.00408d06
mov eax, dword [edi + 0x14]
inc esi
cmp esi, eax
jb 0x410f83
pop ebp
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004016a8
cmp dword [esp + 0x28], 0x10
jb 0x410fee
mov eax, dword [esp + 0x14]
push eax
call fcn.00415610
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x38]
mov eax, esi
pop esi
pop ebx
add esp, 0x30
jmp fcn.00416fe5