joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43be2d
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a6ad
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x47c0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00439d28
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CComboDialog.0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00439aa0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0040f8d6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0040f8d6
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0040f8d6
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040e5ee
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret

Function at 0x43bebf
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a6ad
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x47c0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040e638
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0040e2ca
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0040e2ca
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0040e2ca
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.00439d47
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x43ecb5
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ae2e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x47c0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 2], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 3], 0
mov eax, dword [ebp - 0x10]
or dword [eax + 8], 0xffffffff
or dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
or dword [eax + 0x18], 0xffffffff
or dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x10]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov eax, dword [ebp - 0x10]
or dword [eax + 0x28], 0xffffffff
or dword [eax + 0x2c], 0xffffffff
mov eax, dword [ebp - 0x10]
or dword [eax + 0x30], 0xffffffff
or dword [eax + 0x34], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.0040f8d6
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0040f8d6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.0040f8d6
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.0040e5ee
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.0043eb83
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x98
call fcn.0041854d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret

Function at 0x442767
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x47c0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x47ef51]
test eax, eax
jne 0x442818
push dword [ebp + 8]
lea eax, [ebp - 0x440]
push eax
call fcn.00410482
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x434], eax
and dword [ebp - 4], 0
push 0x4010
push 0x160
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x80
push eax
mov ecx, dword [ebp - 0x434]
call fcn.0040e357
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x430], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0040e2ca
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x16c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x430]
jmp 0x442851
push 0x4010
push 0x2b4
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x80
push eax
push dword [ebp + 8]
call fcn.0044273e
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x420]
mov dword [eax], ecx
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a9b0
leave
ret 0xc
Function at 0x442b46
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x47c0a0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
test eax, eax
je 0x442b6d
mov dword [ebp - 0x168], 1
jmp 0x442b77
mov dword [ebp - 0x168], pe_nt_image_headers32
mov eax, dword [ebp - 0x168]
or eax, 0x4010
push eax
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x90
push 0x471d5c
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a9b0
leave
ret 4

Function at 0x442e43
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468766
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x47c0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0xd66
mov ecx, dword [ebp - 0x10]
call fcn.0043e544
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x30], al
lea ecx, [ebp - 0x1c]
call fcn.0040f8d6
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0041811c
lea ecx, [ebp - 0x1c]
call fcn.0040e3f4
lea eax, [ebp - 0x1c]
push eax
call fcn.00415ce5
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0040fb3c
mov ecx, dword [ebp - 0x10]
call fcn.004398a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040e2ca
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret

Function at 0x443019
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b251
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x47c0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00439d28
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CExtractDialog.0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00439aa0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0040f8d6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0040f8d6
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x24], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x25], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0042d9e5
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x30], 1
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x444e11
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x444e3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x444e3e
xor al, al
jmp 0x444e5b
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.00464d60
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
leave
ret 8

Function at 0x44508c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x47c0a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00461210
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x44515c
push dword [ebp + 0xc]
push dword [ebp - 0x210]
call fcn.00444e11
and dword [ebp - 0x218], 0
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0045a806
pop ecx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x214]
mov dword [eax], ecx
push 0
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a9b0
leave
ret 8
Function at 0x461026
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47c0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0045e995
mov dword [ebp - 0x14], eax
cmp dword [0x47eef0], edi
jne 0x461117
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4610a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4611f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4611f7
push 0x46e444
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4611f7
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x47eef0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x47eef4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x47eef8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47ef00], eax
test eax, eax
je 0x461114
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47eefc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x46113c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46112f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x461151
push 4
pop eax
jmp 0x4611f9
cmp dword [ebp - 0x14], edi
je 0x461151
push dword [0x47eef0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x461136
mov eax, dword [0x47eefc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4611af
cmp dword [0x47ef00], esi
je 0x4611af
push eax
call ebx
push dword [0x47ef00]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4611af
test eax, eax
je 0x4611af
call ecx
test eax, eax
je 0x4611a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4611a4
test byte [ebp - 8], 1
jne 0x4611af
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4611df
mov eax, dword [0x47eef4]
cmp eax, esi
je 0x4611dc
push eax
call ebx
test eax, eax
je 0x4611dc
call eax
mov edi, eax
test edi, edi
je 0x4611dc
mov eax, dword [0x47eef8]
cmp eax, esi
je 0x4611dc
push eax
call ebx
test eax, eax
je 0x4611dc
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x47eef0]
call ebx
test eax, eax
je 0x4611f7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4611f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a9b0
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x60cd2813
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x1807ecb
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
adc eax, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xchg edi, eax
adc al, 0x89
inc ebp
sub dword [ebx], edi
dec ecx
dec ebx
add byte [eax], dl
mov dword [0x410ba0], eax
lds edx, [0x410ba4]
sbb dword [ebx + ecx*4 + 0x58], esi
arpl word [ebp + 0x75fa8b91], ax
inc eax
mov ecx, dword [esi + 4]
push 0x51
push 0
push ecx
call fcn.00408c70
or byte [ebx], al
cmp byte [eax], cl
add byte [eax], al
mov dword [esi + 0x81a], edi
mov dword [esi + 0x18], 0x4c3ffc
mov edx, dword [0x4117ec]
mov dword [esi + 0x14], edx
mov eax, dword [0x8641024c]
test eax, eax
je 0x401f3a
mov eax, dword [0x410201]
mov ecx, edx
add ecx, eax
mov dword [eax - 0x304f14ec], ebp
mov ss, word [edx]
or byte [eax], al
add dh, al
sub al, dl
inc eax
add byte [ebx + 0x40d02c15], cl
add byte [ebx], al
enter 0x4cce, 0xd
or byte [eax], al
add bh, bl
ret 0xf83b
xchg esp, edx
or al, byte [eax]
add byte [ebx + 0x2e8b1856], cl
mov edx, dword [esi + 0x18]
mov ebp, dword [esi]
xor al, dl
inc eax
add byte [ebx + 0x4d8d0446], cl
in al, 3
add dl, byte [ecx + 0x52]
jg 0x401f37
insd dword es:[edi], dx
imul eax, dword [eax], 0
test dword [ebx], ebp
je 0x401f8a
cmp eax, 0xb
je 0x401f99
cmp eax, 0x900afd68
adc eax, 0xfcd93dbc
or cl, bl
je 0x401f9d
in al, dx
push edi
std
or bl, byte [ecx + 0xa]
sbb edx, eax
and al, 0xfd
and al, 0
jne 0x401f04
cmp eax, 0xafca1
cmp dword [ebx], ecx
cmp eax, 0xb23b3
jne 0x401fa3
inc ebp
or byte [ebp + 0x4102a01d], bl
add cl, bl
cmp eax, 0xd102a4
add edx, ebp
adc edi, 0
mov dword [ebx - 0x60], esi
add bl, al
add byte [ecx - 0x27fd5f8d], cl
add byte [esi], cl
jle 0x401f35
imul eax, dword [ecx], 0x7b3568b
dec esi
adc al, 3
shr byte [ebx], 1
push ebp
mov dword [edx], ebx
ror byte [ecx - 0x7af00db2], 1
in al, dx
movsb byte es:[edi], byte [esi]
inc dword [edx]
mov dword [esi + 8], 3
call fcn.00406a00
mov dword [0x95410b30], eax
jmp 0x401f78
Function at 0x40ae50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov esp, 0x56530cec
mov esi, dword [ebp + 0x10]
push edi
cmp dword [esi], 0
ja 0x40ae72
mov dword [esi], 0xd29a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
les edi, [eax + 8]
mov eax, dword [ebx + 0x18]
test ah, 0x17
je 0x40aee2
mov eax, dword [ebx + 0xc]
sti
ror byte [eax + 0x6a038b3b], 0x14
push eax
xor esi, dword [0xc29bd0e8]
dec dword [ebx - 0x76c77638]
js 0x40ae88
mov dword [eax + 0x2a], edi
mov dword [eax + 0xc], edi
adc byte [edi + edx*2], ah
js 0x40aeb3
push edi
mov dword [0xa05aff0c], ebx
rol byte [eax - 0x69], 0x8b
push ebx
or al, 0x37
inc edx
adc byte [ebp + 0x488b0c43], al
dec edi
test dword [ebx + 0xc], eax
mov ecx, dword [eax + 0x4f]
test ecx, ecx
jne 0x40aee2
mov ecx, dword [edi]
cmp byte [edi + 0x5bff0040], dl
test eax, eax
jne 0x40aed2
pop edi
pop esi
loop 0x40ae58
in eax, 0x5d
outsd dx, dword [esi]
or al, 0
call esi
rcr byte [esi + 5], 0x80
push es
or ch, bh
and ecx, dword [ebx + 0xcc25de5]
add byte [ebx - 0x307ccfbd], cl
invalid
mov eax, dword [ebx + 0x30]
or edi, 0xffffffff
cmp edi, dword [edx - 0x75]
inc ebp
or al, 0x74
sub byte [edx + 0x888304b], cl
mov edx, dword [esi]
in al, dx
dec edx
mov dword [esi], edx
mov dword [ebx + 0x30], edi
mov ecx, dword [esi]
mov dword [ebp + 0x1c], eax
test ecx, ecx
jne 0x40af17
mov dword [esi], 0xf9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov cl, byte [ebx - 0x24]
invalid
Function at 0x4011b3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
cmp byte [edx + 4], 0
je 0x4011e3
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x4011e2
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x4011d2
pop edi
pop esi
pop ebp
ret 8
Function at 0x403cbb
Capabilities:
Accept command line arguments

Disassembly:
push 0x34
mov eax, 0x42a80a
call fcn.00406a80
mov ebx, ecx
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x38]
push ecx
xor edi, edi
push eax
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], edi
mov ecx, ebx
mov esi, dword [ebx]
push dword [esi + 4]
call fcn.00404061
mov ecx, dword [ebx]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ecx + 4], esi
mov eax, dword [ebx]
mov dword [eax], esi
mov eax, dword [ebx]
mov dword [eax + 8], esi
mov dword [ebx + 4], edi
mov esi, edi
mov dword [ebp - 4], 1
cmp dword [ebp - 0x38], esi
jle 0x403d6a
mov ebx, edi
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
push dword [eax + esi*4]
call fcn.0040270e
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
cmp ebx, edi
je 0x403d46
mov ecx, edi
call fcn.00402530
push 0x18
pop eax
add edi, eax
mov dword [ebp - 0x30], edi
jmp 0x403d55
push edi
lea ecx, [ebp - 0x34]
call fcn.00402a92
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402733
inc esi
cmp esi, dword [ebp - 0x38]
jl 0x403d1b
mov ebx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
push ecx
mov ecx, ebx
call fcn.004037e0
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x403daf
mov esi, edi
cmp esi, dword [ebp - 0x30]
je 0x403d98
push 0x18
pop edi
mov ecx, esi
call fcn.00402733
add esi, edi
cmp esi, dword [ebp - 0x30]
jne 0x403d87
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
sub eax, edi
push 0x18
pop ecx
cdq
idiv ecx
imul eax, eax, 0x18
push eax
push edi
call fcn.00402030
pop ecx
pop ecx
call fcn.00406a3b
ret 4

Function at 0x404da3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44106c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push 0x43ac50
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404e1a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404e1a
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406088
leave
ret

Function at 0x407c4f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4014a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], edx
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov eax, dword [0x4a35cc]
test eax, eax
je 0x4014d4
cmp dword [eax + 0x1fc], 0
jne 0x401671
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0
push 0
push 0
push esi
mov dword [0x4a3428], 0
call ebx
test eax, eax
je 0x401652
push edi
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
nop
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40160a
mov ecx, dword [0x4a3544]
xor ebx, ebx
test ecx, ecx
je 0x401553
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
test eax, eax
je 0x401553
nop dword [eax + eax]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_536]
push esi
push eax
call edi
test eax, eax
jne 0x401604
cmp dword [ebp - 4], ebx
je 0x401553
mov ecx, dword [0x4a3544]
jmp 0x401530
mov eax, dword [0x4a35cc]
test eax, eax
je 0x4015f6
mov ecx, 0x4000
test word [eax + 0x16], cx
je 0x4015f6
push dword [0x4a35a0]
call dword [sym.imp.MMFS2.dll_Ordinal_19]
test eax, eax
je 0x401591
push esi
push eax
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
test eax, eax
mov eax, 1
cmovne ebx, eax
mov eax, dword [esi + 4]
cmp eax, 0x100
je 0x4015a2
cmp eax, 0x104
jne 0x4015f2
mov edi, dword [esi + 8]
cmp edi, 0x10
je 0x4015f2
cmp edi, 0x11
je 0x4015f2
mov ecx, dword [0x4a35cc]
test ecx, ecx
je 0x4015f2
mov ecx, dword [ecx + 0xb4]
test ecx, ecx
je 0x4015f2
cmp eax, 0x104
je 0x4015d9
mov eax, 0x2000
test word [esi + 0xe], ax
jne 0x4015d9
xor edx, edx
jmp 0x4015de
mov edx, 1
push ecx
mov ecx, dword [0x4a35a8]
push edi
call fcn.00459b00
add esp, 8
test eax, eax
jne 0x401604
test ebx, ebx
jne 0x401604
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [ebp - 8]
test eax, eax
je 0x401638
test al, 1
je 0x40161e
cmp dword [esi + 4], 0x111
je 0x401651
test al, 2
je 0x40162b
cmp dword [esi + 4], 0x201
je 0x401651
test al, 4
je 0x401638
cmp dword [esi + 4], 0x202
je 0x401651
push 0
push 0
push 0
push 0
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x401500
pop edi
push 0
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x4a3430
push 0
push 0xb
push 0
call dword [sym.imp.MMFS2.dll_Ordinal_31]
mov dword [0x4a3428], eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.00466a94
mov edi, eax
add esp, 8
test edi, edi
je 0x409fb6
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 8]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
mov esi, eax
call fcn.00466aaa
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret