joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44651c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x446554]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446535
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446544
or bl, 4
test esi, 0x20000000
je 0x44654f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44cc18
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44cc2a
add esp, 0xfffffff0
call fcn.00403b00
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419a0c
mov eax, dword [0x451e04]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cfbc
mov eax, dword [0x451e10]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cfc8
mov eax, ebx
call fcn.0044cfd4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411c24]
call fcn.004037b0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411c24]
call fcn.004037b0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411c24]
call fcn.004037b0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411c24]
call fcn.004037b0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411c24]
call fcn.004037b0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4493ec
push eax
push 0
push 0
mov eax, dword [0x451f40]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b434]
call fcn.0041c89c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b434]
call fcn.0041c89c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b434]
call fcn.0041c89c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044d424
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d2ec
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d2ec
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d2ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44cd67
call fcn.00403b58
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44d0d0
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 0x44d27b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44d25c
mov dl, 1
mov eax, dword [0x412040]
call fcn.004037b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404554
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44d24b
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.0043afe8
test al, al
je 0x44d23e
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, 0x44d28c
lea eax, [ebp - 0x254]
call fcn.00409018
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d23e
xor eax, eax
push ebp
push 0x44d237
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 0x44d2c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d220
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047c4
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 0x44d220
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d23e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44d141
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415ba4
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 0x44d282
lea eax, [ebp - 0x260]
call fcn.00404554
ret

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

Disassembly:
push ecx
mov eax, dword [0x453b44]
cmp byte [eax + 0xa5], 0
jne 0x44dc35
cmp dword [0x453b5c], 0
jne 0x44dbf6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44db80
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453b5c], eax
cmp dword [0x453b58], 0
jne 0x44dc11
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453b58], eax
cmp dword [0x453b60], 0
jne 0x44dc35
push esp
push 0
push 0
push 0x44db24
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453b60], eax
pop edx
ret
Function at 0x44e2c8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453b44]
cmp dword [eax + 0x30], 0
je 0x44e372
cmp dword [ebx + 0x94], 0
jne 0x44e36c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e258
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e36c
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 0x44e332
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e36c
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.00413fa0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e341
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44eed0
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 0x44ef05
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.00404644
jmp 0x44ef12
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045a8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450024
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450065
mov eax, esi
call fcn.004365c4
test al, al
je 0x450065
mov eax, dword [ebx + 0x84]
call fcn.004362c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450065
push 0
mov eax, dword [ebx + 0x84]
call fcn.004362c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405790
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d3c5
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x46b238]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x10], 0
je 0x4058c5
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4057db
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4058c5
push edi
lea ecx, [ebp - 0x40]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004017f0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.enableetw
push eax
call fcn.004221da
add esp, 8
test eax, eax
je 0x40582e
push 0xb
push str.__enableetw
lea ecx, [ebp - 0x28]
call fcn.00402f00
xor eax, eax
mov dword [ebp - 0x94], 0x44
push 0x40
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x90]
push eax
call fcn.00422080
add esp, 0xc
cmp dword [esi + 0x10], 0
jne 0x405862
xor esi, esi
jmp 0x40586a
cmp dword [esi + 0x14], 8
jb 0x40586a
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x94]
push edx
push 0
push 0
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0
cmovae eax, dword [ebp - 0x40]
push esi
push ecx
push eax
call fcn.00419780
add esp, 0x20
test eax, eax
je 0x4058ae
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4058ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
call fcn.00401fd0
lea ecx, [ebp - 0x40]
call fcn.00401fd0
mov eax, esi
jmp 0x4058c7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004203b0
mov esp, ebp
pop ebp
ret

Function at 0x4060a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x4060dc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4060b7
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4060dc
cmp dword [esi + 0x14], 8
jb 0x4060ca
mov esi, dword [esi]
push esi
call fcn.0041bab0
add esp, 4
test eax, eax
je 0x4060dc
mov al, 1
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x407f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d685
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x46b238]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x407f9d
push dword [0x46b048]
call fcn.00407240
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 4], 0
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x407f7c
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00407220
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x407f9d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x14
call fcn.00420113
mov esi, eax
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 4], 1
push ecx
mov dword [eax], ecx
push ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push ecx
mov dword [eax + 0xc], ecx
push ecx
mov dword [eax + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, esi
mov byte [ebp - 4], 2
mov dword [edx + 0x10], eax
mov dword [edx + 8], ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x408018
push dword [0x46b048]
call fcn.00407240
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov byte [ebp - 4], 3
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x408014
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00407220
mov eax, dword [ebx + 0x2c]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x10]
push edi
push 0
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408044
mov eax, dword [ebp + 8]
push eax
push str._ld_not_overlapped
call fcn.00408590
add esp, 8
mov bl, 1
jmp 0x40806b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x408080
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str._ld_readfile_failed:__ld
call fcn.00408590
add esp, 0xc
xor bl, bl
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4080cd
cmp eax, 0xffffffff
je 0x4080cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4080cd
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0xc]
xor esi, esi
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], esi
cmp eax, dword [ebx + 0x14]
je 0x40809b
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x4080a5
lea edx, [ebp + 8]
push edx
push eax
call fcn.00407260
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov dword [ebp + 8], eax
cmp edx, dword [ebx + 0x20]
je 0x4080c1
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x4080cb
lea eax, [ebp + 8]
push eax
push edx
call fcn.00407260
mov bl, 1
test esi, esi
je 0x4080dc
push 0x14
push esi
call fcn.00420143
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4085a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40860c
mov esi, dword [ebp + 0x18]
mov dword [ebp - 8], 3
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 3
jne 0x40860c
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40864f
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
test esi, esi
pop esi
cmove eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4086a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call fcn.00427e40
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408707
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x409dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x46b238]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [ecx + 0x4bc], 0
lea esi, [ecx + 0x4bc]
mov edi, dword [ebp + 8]
je 0x409ec7
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e31
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004088f0
push edi
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00408880
add esp, 0x18
mov ecx, edi
push eax
call fcn.004022e0
lea ecx, [ebp - 0x40]
call fcn.00401fd0
lea ecx, [ebp - 0x58]
call fcn.00401fd0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x409f79
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409f6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f98
jmp 0x409f6f
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x409eed
push 0x208
push eax
push esi
call fcn.00422080
add esp, 0xc
xor al, al
jmp 0x409f7b
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409f10
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004088f0
push edi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.00408880
add esp, 0x18
mov ecx, edi
push eax
call fcn.004022e0
lea ecx, [ebp - 0x70]
call fcn.00401fd0
lea ecx, [ebp - 0x88]
jmp 0x409e85
push edx
push ecx
call fcn.00420143
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004203b0
mov esp, ebp
pop ebp
ret 4
call fcn.00424aaf
int3
Function at 0x409fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x46b238]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [ecx + 0x2b4], 0
lea esi, [ecx + 0x2b4]
mov edi, dword [ebp + 8]
je 0x40a097
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a001
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004088f0
push edi
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00408880
add esp, 0x18
mov ecx, edi
push eax
call fcn.004022e0
lea ecx, [ebp - 0x40]
call fcn.00401fd0
lea ecx, [ebp - 0x58]
call fcn.00401fd0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40a179
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a16f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a198
jmp 0x40a16f
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x40a0e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40a0d2
push 0x208
push 0
push esi
call fcn.00422080
add esp, 0xc
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40a0e9
push 0x208
push 0
push esi
call fcn.00422080
add esp, 0xc
xor al, al
jmp 0x40a17b
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a110
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004088f0
push edi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.00408880
add esp, 0x18
mov ecx, edi
push eax
call fcn.004022e0
lea ecx, [ebp - 0x70]
call fcn.00401fd0
lea ecx, [ebp - 0x88]
jmp 0x40a055
push edx
push ecx
call fcn.00420143
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004203b0
mov esp, ebp
pop ebp
ret 4
call fcn.00424aaf
int3

Function at 0x40a590
Capabilities:
Get common file path

Disassembly:
cmp word [ecx + 0xc], 0
push esi
lea esi, [ecx + 0xc]
jne 0x40a5a8
push 0
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, esi
pop esi
ret
Function at 0x40c220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dc68
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x46b238]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
xor eax, eax
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], ax
lea esi, [edi + 0x28]
mov dword [edi + 0x24], eax
push 0x40
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00420113
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x30], 0
mov word [edi + 0x30], ax
mov eax, edi
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret