joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403228
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407f08], 0
je 0x40324a
mov eax, dword [0x407f08]
mov dword [ebp - 4], eax
jmp 0x4032df
push 0x104
call fcn.0040454c
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.00404014
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x40328f
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.004031c0
mov esi, eax
inc esi
push esi
call fcn.00404014
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.004045ac
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x4032c0
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x4032cd
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.0040506c
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407f08], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4033bc
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.00404fe0
xor eax, eax
mov bl, 0
cmp dword [0x407eac], 0
jne 0x40340a
push 0x407bfc
push 1
call fcn.00402c20
mov dword [0x407eac], eax
cmp dword [0x407eac], 0
jne 0x403423
push 0x8000
call fcn.0040454c
mov esi, eax
mov bl, 1
jmp 0x40345d
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407eac]
test eax, eax
jne 0x40344d
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x403486
push esi
push 0x8000
push 0xff
call fcn.004050c8
push esi
push 0x24
push 0
call fcn.004050c8
mov eax, esi
add eax, 0xc
push eax
call fcn.00404634
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403834
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.004037c0
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x40386c
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x403852
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407e64]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403c14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403c34
mov al, byte [ebp - 4]
jmp 0x403c37
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405f8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x40825c]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405fca
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405fc5
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405fc5
mov esi, edx
add edx, 0x10
jmp 0x405fae
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x4060de
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x4060de
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x4060dc
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x4060dc
mov cl, byte [edx]
sub cl, 0x3c
jne 0x406012
jmp 0x4060dc
sub cl, 3
jne 0x40602c
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x4060d7
inc cl
jne 0x406040
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x4060d7
inc cl
jne 0x406054
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x406067
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x406071
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x4060ce
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x406084
cmp byte [ebp - 0x25], 0
jne 0x4060cc
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x4060ba
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x406095
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x4060de
jmp 0x4060dc
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x406004
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4065b4
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.00406590
call fcn.004033bc
mov dword [0x40825c], eax
lea edx, [eax + 0x18]
mov dword [0x4082bc], edx
pop edx
call fcn.00406410
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x408288], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x40829c], eax
mov dword [0x4082c4], eax
call fcn.00402fec
cmp eax, 3
setb byte [0x408265]
call fcn.0040400c
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x406840
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x10002810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push edi
mov esi, edx
push 1
push 4
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.10093c83
add esp, 0x10
cmp eax, 1
jne 0x100028a2
mov eax, dword [ebp - 4]
movzx ecx, al
shl ecx, 8
movzx eax, ah
add ecx, eax
movzx eax, byte [ebp - 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
add eax, ecx
mov dword [esi + 4], eax
cmp eax, 0x7a1200
ja 0x100028a2
add eax, 0xc
push eax
mov dword [esi + 4], eax
call fcn.1006d901
mov ecx, dword [ebp - 4]
mov dword [esi], eax
push edi
mov dword [eax], ecx
mov eax, dword [esi + 4]
sub eax, 4
push 1
push eax
mov eax, dword [esi]
add eax, 4
push eax
call fcn.10093c83
add esp, 0x14
cmp eax, 1
jne 0x100028a2
mov eax, dword [esi]
pop edi
pop esi
mov eax, dword [eax + 4]
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10010f70
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
je 0x10010f8a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x10010f8a
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x10010f8a
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10029db0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x10029dbb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.10029dd0
Function at 0x1002a3b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100fe2e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], esi
test edi, edi
jg 0x1002a3ec
jl 0x1002a59c
test esi, esi
je 0x1002a59c
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
nop dword [eax]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x1002a400
xor esi, esi
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x1002a431
test al, 1
je 0x1002a42a
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x1002a424
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x1002a411
xor esi, esi
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x1002a470
test al, 1
je 0x1002a469
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x1002a463
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x1002a450
nop dword [eax]
nop word [eax + eax]
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x1002a4c0
test al, 1
je 0x1002a4b9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x1002a4b3
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x1002a4a0
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x1002a500
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x1002a4fe
nop
test bl, 1
je 0x1002a4f7
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x1002a4f0
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov eax, edx
or eax, edi
mov dword [ebp - 0x108], edx
je 0x1002a596
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x1002a540
test al, 1
je 0x1002a539
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x1002a533
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x1002a520
mov esi, dword [ebp - 0x108]
mov eax, esi
and eax, 1
or eax, 0
je 0x1002a580
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x1002a57e
nop
test bl, 1
je 0x1002a577
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x1002a570
mov ebx, ecx
shrd esi, edi, 1
sar edi, 1
mov eax, esi
or eax, edi
mov dword [ebp - 0x108], esi
jne 0x1002a490
xor ebx, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006d91d
mov esp, ebp
pop ebp
ret
Function at 0x1003a9a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x1003a9c4
cmp dword [esi + 8], edi
jge 0x1003a9bc
push esi
call fcn.10038c41
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x1003a9ed
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x1003a9d0
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x1003aa0a
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x1003a9f8
xor eax, eax
jmp 0x1003aa00
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x1003a9ef
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x1003aa3f
push str.zlib_corrupt
call fcn.10038afc
add esp, 4
jmp 0x1003aa7c
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x1003aa4f
push str.read_past_buffer
jmp 0x1003aa35
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x1003aa66
push edi
push esi
call fcn.10038b0b
pop ecx
pop ecx
test eax, eax
je 0x1003aa7c
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.1006efe0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x1003febc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100fe2e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1003ff72
movzx eax, word [esi]
test ax, ax
je 0x1003ff72
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x1003fefc
cmp ax, 0x5c
jne 0x1003fefe
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x1003fef0
cmp edi, esi
je 0x1003ff45
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.1007d72b
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x1003ff82
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.1003febc
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.1007d6ee
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.1007d6bd
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1006d91d
mov esp, ebp
pop ebp
ret
call fcn.1006e082
int3
Function at 0x10040858
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x100408d4
cmp dword [edi + 4], 0xffffffff
jne 0x100408d4
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x100bff4c
push esi
call fcn.1007d6bd
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x100408a6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x100408a6
mov eax, 0x2000000
jmp 0x100408d9
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10042d79
add esp, 0x10
test eax, eax
jne 0x100408c4
mov eax, dword [ebp - 4]
jmp 0x100408d9
push eax
call fcn.1004358c
mov dword [edi], eax
mov eax, dword [0x100ffd68]
pop ecx
jmp 0x100408d9
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10042e86
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x10042eba
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10042eb5
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x10042ee1
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x10042eca
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.1006efe0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x10043054
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10043062
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x10043121
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100be898]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100be898]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100be898]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100be898]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100be898]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100be898]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100be898]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100be898]
sub edi, 1
jne 0x1004307a
pop edi
test esi, esi
je 0x1004313d
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100be898]
inc edx
sub esi, 1
jne 0x10043125
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x1004ae4a
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x100b7c85
call fcn.1006d999
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x5d0], ebx
cmp dword [edi + 4], ebx
jne 0x1004aedc
lea eax, [ebp - 0xa8]
push eax
call fcn.1004ab44
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call sym.DuiLib32.dll_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call sym.DuiLib32.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
mov esi, dword [edi + 0x10]
mov ecx, esi
call sym.DuiLib32.dll_public:_int___thiscall_DuiLib::CLabelUI::GetFont_void_const
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call sym.DuiLib32.dll_public:_struct_DuiLib::tagTFontInfo____thiscall_DuiLib::CPaintManagerUI::GetFontInfo_int_
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call sym.DuiLib32.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
lea ecx, [ebp - 0x94]
mov bl, al
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov esi, 0x5c0
test bl, bl
je 0x1004af17
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.1006d943
ret 4
Function at 0x1004b8da
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100fe2e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x1004b947
cmp dword [esi + 0x10], 0
je 0x1004b947
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.1006df30
mov ebx, esp
test ebx, ebx
je 0x1004b947
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1bc
call fcn.1003ef7d
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006d91d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1005564a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4ec], edi
je 0x100556b4
cmp dword [ebp + 8], 0x100
jne 0x100556a3
cmp word [ebp + 0xc], 0xd
jne 0x100556a3
cmp byte [esi + 0x4f2], 0
je 0x1005568a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100556a3
cmp byte [esi + 0x4f3], 0
jne 0x100556a3
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x1005569f
push edi
push edi
push edi
push str.return
push esi
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x100556b7
mov eax, dword [esi + 0x4ec]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1005b9d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005ba02
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x100622f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100fe2e4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 8]
push 0x20a
push 0
push eax
call fcn.1006f9c0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1006d91d
mov esp, ebp
pop ebp
ret
Function at 0x10062b93
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x10062bb6
or esi, 1
push 1
call edi
test ax, ax
jns 0x10062bc2
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x10062bce
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x10062bda
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret