joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cdad0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebx, eax
jge 0x4cdaec
mov ebx, dword [esi + 0x343c]
xor eax, eax
sub ebx, 1
cmp eax, ebx
mov ebp, eax
jg 0x4cdb80
imul eax, eax, 0x170
push edi
mov edi, eax
nop
mov eax, dword [esi + 0x3434]
cmp dword [eax + edi + 0x13c], 0
lea edx, [eax + edi]
je 0x4cdb72
test byte [edx + 0x134], 0x80
je 0x4cdb72
cmp dword [edx + 0x64], 5
jne 0x4cdb37
test byte [edx + 0x150], 2
jne 0x4cdb37
push ebp
push esi
call fcn.0052c410
add esp, 8
jmp 0x4cdb72
cmp dword [esi + 0x3a8], 0
je 0x4cdb72
push ebp
push esi
call fcn.004cd1e0
add esp, 8
test eax, eax
je 0x4cdb72
mov ecx, dword [edx + 0x84]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x3434]
and dword [edx + edi + 0x150], 0xfffffffb
lea eax, [edx + edi + 0x150]
add ebp, 1
add edi, 0x170
cmp ebp, ebx
jle 0x4cdb00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4e2230
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3f0
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x3ec], eax
mov ecx, dword [esp + 0x3f4]
lea eax, [esp + 0x3f8]
push eax
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
push 0
push str.DBWin
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4e22ea
push esi
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x4e22cf
push edi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x7fff
push 0x7fff
push 0xb1
push esi
mov byte [esp + eax + 0x18], 0xd
mov byte [esp + eax + 0x19], 0xa
mov byte [esp + eax + 0x1a], 0
call edi
lea ecx, [esp + 8]
push ecx
push 0
push 0xc2
push esi
call edi
push 0
push 0
push 0xb7
push esi
call edi
pop edi
pop esi
mov ecx, dword [esp + 0x3ec]
xor ecx, esp
mov eax, 1
call fcn.005aac48
add esp, 0x3f0
ret
push 0
push 0
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4e22d0

Function at 0x4e2300
Capabilities:
Log keystrokes via polling

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x5ba4], 0
jne 0x4e2433
push esi
mov esi, dword [esp + 0x10]
cmp esi, 0x2a2
je 0x4e2432
cmp esi, 0x2a4
je 0x4e2432
cmp esi, 0x2d2
je 0x4e2432
cmp esi, 0x2a9
je 0x4e2432
cmp esi, 0x2a8
je 0x4e2432
cmp esi, 0x2aa
je 0x4e2432
cmp esi, 0x2ae
je 0x4e2432
cmp esi, 0x2b4
je 0x4e2432
cmp esi, 0x2c6
je 0x4e2432
cmp esi, 0x283
je 0x4e2432
cmp esi, 0x2cd
je 0x4e2432
push 0x10
mov dword [edi + 0x5ba4], 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4e23bb
cmp dword [edi + 0x4b48], 0
je 0x4e23cb
cmp esi, 0x258
je 0x4e2432
cmp esi, 0x259
je 0x4e2432
cmp esi, 0x2ce
je 0x4e2432
cmp esi, 0xffffffff
je 0x4e2432
mov edx, dword [edi + 0x5bcc]
lea eax, [edi + 0x47c]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
call fcn.004f88e0
add esp, 0x10
cmp dword [edi + 0x1c], 0
je 0x4e2421
mov eax, dword [edi + 0x5bc0]
mov ecx, dword [esp + 0xc]
push edi
mov dword [edi + 0x39f8], eax
mov dword [edi + 0x5d8], ecx
call fcn.004de3e0
add esp, 4
pop esi
mov eax, 1
pop edi
ret
mov edx, dword [esp + 0xc]
add edx, 1
push edx
push edi
call fcn.004ee400
add esp, 8
pop esi
mov eax, 1
pop edi
ret
Function at 0x4ffe40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004ff710
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x587c], 0
je 0x4ffe69
mov edx, dword [ebp + 8]
mov dword [edx + 0x4b48], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa16c]
and ecx, 0x10
je 0x4ffe81
mov eax, 1
jmp 0x4fff65
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
mov dword [ebp - 4], edx
je 0x4fff07
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4b48], 2
je 0x4ffef8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4b48], 2
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5d8]
mov dword [edx + 0x4b40], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4b40]
mov dword [edx + 0x4b3c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x47c]
mov dword [edx + 0x4b50], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4b50]
mov dword [edx + 0x4b4c], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x4b5c], 1
jmp 0x4fff2c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4b48], 2
jne 0x4fff2c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4b48], 0
mov edx, dword [ebp + 8]
push edx
call fcn.004de3e0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x2b2c], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5880], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x587c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x4b64], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x516cf0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push ebp
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x516d20
mov byte [edi], cl
pop edi
xor eax, eax
pop ebp
ret
push esi
lea eax, [ecx - 1]
xor esi, esi
test eax, eax
jle 0x516d44
lea ebx, [ebx]
cmp byte [esi + edi], 0xd
jne 0x516d3d
cmp byte [esi + edi + 1], 0xa
je 0x516d4e
add esi, 1
cmp esi, eax
jl 0x516d30
pop esi
mov byte [ecx + edi], 0
pop edi
xor eax, eax
pop ebp
ret
mov eax, esi
sub eax, ecx
add eax, 2
je 0x516d63
push 1
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + edi], 0xa
mov byte [esi + edi + 1], 0
pop esi
pop edi
xor eax, eax
pop ebp
ret

Function at 0x517520
Capabilities:
Read file on windows

Disassembly:
cmp byte [esp + 8], 0x46
push esi
push edi
jne 0x517554
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51754f
cmp dword [esp + 0x10], esi
je 0x51757e
pop edi
xor eax, eax
pop esi
ret
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov edi, dword [esp + 0x24]
lea ecx, [eax + edi]
cmp ecx, dword [esp + 0x20]
jg 0x51754f
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push edi
push edx
add eax, ecx
push eax
call fcn.004e29c0
add esp, 0xc
add dword [esi], edi
pop edi
mov eax, 1
pop esi
ret

Function at 0x517590
Capabilities:
Write file on windows

Disassembly:
cmp byte [esp + 8], 0x46
push esi
push edi
jne 0x5175be
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5175e8
pop edi
xor eax, eax
pop esi
ret
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov edi, dword [esp + 0x24]
lea ecx, [eax + edi]
cmp ecx, dword [esp + 0x20]
jg 0x5175b9
mov edx, dword [esp + 0x18]
add eax, edx
push edi
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.004e29c0
add esp, 0xc
add dword [esi], edi
pop edi
mov eax, 1
pop esi
ret
Function at 0x521960
Capabilities:
Capture screenshot

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
push edi
call fcn.004b1b10
xor ecx, ecx
add esp, 4
cmp dword [edi + 0x5868], ecx
mov dword [esp + 0xc], ecx
jle 0x521a23
mov eax, dword [edi + 0x585c]
push ebx
push ebp
mov dword [esp + 0xc], ecx
push esi
mov edi, edi
cmp dword [ecx + eax], 0
je 0x5219ff
mov edx, dword [ecx + eax + 8]
cmp edx, dword [esp + 0x1c]
jne 0x5219ff
xor ebx, ebx
cmp dword [ecx + eax + 0xdc], ebx
jle 0x5219ff
mov esi, ecx
lea ecx, [ecx]
mov eax, dword [edi + 0x585c]
mov ecx, dword [esi + eax + 0x60]
mov ebp, dword [esi + eax + 0x68]
mov edx, dword [esi + eax + 0x5c]
mov eax, dword [esi + eax + 0x64]
push 0x550009
push 0
push 0
push 0
sub ebp, ecx
push ebp
sub eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x3a0]
push edx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [edi + 0x585c]
mov ecx, dword [esp + 0x10]
add ebx, 1
add esi, 0x10
cmp ebx, dword [ecx + eax + 0xdc]
jl 0x5219b0
mov edx, dword [esp + 0x18]
add edx, 1
add ecx, 0xf0
cmp edx, dword [edi + 0x5868]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jl 0x521990
pop esi
pop ebp
pop ebx
push edi
call fcn.004b1ba0
add esp, 4
mov eax, 1
pop edi
pop ecx
ret
Function at 0x53b170
Capabilities:
Link many functions at runtime

Disassembly:
push str.SPELL32.DLL
mov dword [0x62242c], 1
call fcn.004df9b0
add esp, 4
test eax, eax
mov dword [0x6228f0], eax
jne 0x53b191
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StParseLine
push eax
call esi
mov dword [0x622974], eax
mov eax, dword [0x6228f0]
push str.StResetUserDict
push eax
call esi
mov ecx, dword [0x6228f0]
push str.StClearHist
push ecx
mov dword [0x622e18], eax
call esi
mov edx, dword [0x6228f0]
push str.SpellWord
push edx
mov dword [0x622e0c], eax
call esi
mov dword [0x622834], eax
mov eax, dword [0x6228f0]
push str.StSetDictName
push eax
call esi
mov ecx, dword [0x6228f0]
push str.ToSpellHist
push ecx
mov dword [0x622d9c], eax
call esi
mov edx, dword [0x6228f0]
push str.ToUserDict
push edx
mov dword [0x6228ec], eax
call esi
cmp dword [0x622974], 0
mov dword [0x622438], eax
pop esi
je 0x53b247
cmp dword [0x622e18], 0
je 0x53b247
cmp dword [0x622e0c], 0
je 0x53b247
cmp dword [0x622834], 0
je 0x53b247
cmp dword [0x6228ec], 0
je 0x53b247
test eax, eax
jne 0x53b25d
mov eax, dword [0x6228f0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x6228f0], 0
mov eax, 1
ret
Function at 0x541310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xbe0], 0
jle 0x54136f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xbe0]
sub edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xbe0], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xbe0]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + edx + 0x7f6]
mov byte [eax + 0x7f4], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x6520]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x6520], ecx
mov eax, 1
jmp 0x541528
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xfec], 0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0xffffffff
je 0x5414bf
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x7f0]
cmp ecx, dword [eax + 0x7ec]
jge 0x5413ec
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x7f0]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [edx + eax + 0x400]
mov byte [ecx + 0x7f4], al
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x7f0]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x7f0], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x6520]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x6520], edx
mov eax, 1
jmp 0x541528
push 0
mov ecx, dword [ebp + 0xc]
add ecx, 0x7ec
push ecx
push 0x3e8
mov edx, dword [ebp + 0xc]
add edx, 0x400
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [0x61dbc0]
add edx, 0x3e8
mov dword [0x61dbc0], edx
mov eax, dword [0x61dbc4]
add eax, 0x186a0
cmp dword [0x61dbc0], eax
jl 0x541443
mov ecx, dword [0x61dbc0]
mov dword [0x61dbc4], ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x7ec], 0
jne 0x541463
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xfec], 1
xor eax, eax
jmp 0x541528
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x7f0], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x7f0]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [edx + eax + 0x400]
mov byte [ecx + 0x7f4], al
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x7f0]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x7f0], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x6520]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x6520], edx
mov eax, 1
jmp 0x541528
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
jl 0x5414e7
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0xc]
cmp ecx, dword [eax + 8]
jl 0x5414e7
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xfec], 1
xor eax, eax
jmp 0x541528
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [ecx + eax]
mov byte [edx + 0x7f4], al
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x6520]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x6520], edx
mov eax, 1
pop ebp
ret
Function at 0x54adb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x8c]
mov eax, dword [esi + 0x3434]
push edi
mov edi, dword [esp + 0x98]
imul edi, edi, 0x170
mov ebx, dword [edi + eax + 0x134]
push 0x3c
lea ecx, [esp + 0x50]
push 0
push ecx
call fcn.004e28a0
mov edx, dword [esi + 0x504]
mov eax, dword [esi + 0x3434]
mov ecx, dword [edi + eax + 0x2c]
add esp, 0xc
push 0x5a0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x4c], eax
xor eax, eax
mov edx, ebx
and dl, 2
neg dl
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov eax, ebx
mov cl, bl
mov byte [esp + 0x64], 0
sbb edx, edx
and edx, 0x12c
add edx, 0x190
shr eax, 2
and al, 1
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x3434]
and cl, 1
mov byte [esp + 0x60], al
lea eax, [edi + edx + 8]
mov byte [esp + 0x61], cl
shr ebx, 3
push eax
lea ecx, [esp + 0x6c]
and bl, 1
push ecx
mov byte [esp + 0x6a], bl
mov byte [esp + 0x6d], 0
mov byte [esp + 0x6e], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x3c
lea edx, [esp + 0x14]
push 0
push edx
call fcn.004e28a0
mov eax, dword [esi + 0x3a0]
mov edx, dword [esi + 0x3434]
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], ecx
add esp, 0xc
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x143
mov eax, dword [edi + edx + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.comdlg32.dll_ChooseFontA]
test eax, eax
jne 0x54aef6
mov eax, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005aac48
add esp, 0x7c
ret
mov ebp, dword [esp + 0x20]
add ebp, ebp
xor ecx, ecx
cmp dword [esp + 0x5c], 0x2bc
jne 0x54af0d
mov ecx, 2
cmp byte [esp + 0x60], 0
je 0x54af17
or ecx, 4
cmp byte [esp + 0x61], 0
je 0x54af21
or ecx, 1
cmp byte [esp + 0x62], 0
je 0x54af2b
or ecx, 8
mov edx, dword [esi + 0x3434]
lea eax, [edi + edx]
mov edx, dword [eax + 0x58]
push edx
mov edx, dword [eax + 0x150]
push edx
movzx edx, byte [eax + 0x29]
push edx
movzx edx, word [eax + 0x160]
push edx
mov edx, dword [eax + 0x4c]
push edx
mov edx, dword [eax + 0x54]
push edx
mov edx, dword [eax + 0x48]
push edx
mov edx, dword [eax + 0x138]
push edx
mov edx, dword [eax + 0x44]
push edx
mov edx, dword [eax + 0x40]
push edx
mov edx, dword [eax + 0x3c]
push edx
mov edx, dword [eax + 0x14c]
push edx
mov edx, dword [eax + 0x148]
push edx
mov edx, dword [eax + 0x144]
push edx
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
push edx
mov edx, dword [esp + 0x64]
push eax
push edx
mov edx, dword [esi + 0x3a0]
push ecx
mov ecx, dword [esp + 0xe0]
push ebp
lea eax, [esp + 0xb4]
push eax
push ecx
push edx
push esi
call fcn.004a9100
mov ecx, dword [esp + 0xe4]
add esp, 0x5c
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005aac48
add esp, 0x7c
ret
Function at 0x573730
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x400]
test eax, eax
jne 0x573746
mov eax, 1
pop esi
ret
test dword [esi + 0x800], 0x800
jne 0x573770
mov byte [eax + esi + 0x14], 0xd
add dword [esi + 0x400], 1
mov eax, dword [esi + 0x400]
mov byte [eax + esi + 0x14], 0xa
add dword [esi + 0x400], 1
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
push edi
je 0x5737bd
mov edx, dword [esi + 0x400]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esi + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5737a6
mov edx, dword [esp + 0x10]
cmp edx, dword [esi + 0x400]
je 0x57383b
mov eax, dword [esp + 0xc]
push str.FlushRtfLine
push 0x1f
push eax
call fcn.004e26e0
add esp, 0xc
pop edi
pop esi
ret
mov ecx, dword [esi + 0x400]
mov edx, dword [esi + 0x10]
lea edi, [ecx + edx]
mov ecx, dword [esi + 0xc]
cmp edi, ecx
jle 0x573818
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
cmp eax, edi
mov dword [esi + 0xc], eax
jge 0x5737e7
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
add eax, 1
push eax
push ecx
call fcn.004e2880
add esp, 8
test eax, eax
mov dword [esi + 8], eax
jne 0x573818
mov edx, dword [esp + 0xc]
push str.FlushRtfLine
push 0x6c
push edx
call fcn.004e26e0
add esp, 0xc
pop edi
pop esi
ret
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x400]
add ecx, dword [esi + 0x10]
push eax
push ecx
lea edx, [esi + 0x14]
push edx
call fcn.004e29c0
mov eax, dword [esi + 0x400]
add esp, 0xc
add dword [esi + 0x10], eax
pop edi
mov dword [esi + 0x400], 0
mov dword [esi + 0x404], 0
mov eax, 1
pop esi
ret
Function at 0x57aed0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
push str.QuickTime.qts
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x57af18
lea ecx, [esp + 0x10]
push 0x104
push ecx
push eax
call esi
test eax, eax
jbe 0x57af18
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jbe 0x57afac
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xf]
lea ecx, [esp + 0x10]
cmp eax, ecx
jb 0x57afac
mov cl, byte [eax]
cmp cl, 0x5c
je 0x57af61
cmp cl, 0x2f
je 0x57af61
dec eax
lea edx, [esp + 0x10]
cmp eax, edx
jae 0x57af4a
jmp 0x57afac
lea ecx, [esp + 0x10]
cmp eax, ecx
jb 0x57afac
mov byte [eax + 1], 0
mov edi, str.QuickTime.qts
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ebx, eax
test ebx, ebx
jne 0x57b02c
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x57b02c
mov edi, 0x610e34
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.QuickTime.qts
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x580db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x5d3377
call fcn.005b1104
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0057f6be
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x580dfb
call fcn.0057f6be
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x580e0c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x580e19
or eax, 0xffffffff
jmp 0x580f75
mov ecx, esi
call fcn.005808e0
mov dword [ebp - 0x14], eax
call fcn.00583ad3
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x580e97
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x580e97
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x580e97
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00415d80
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x580e97
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x580e97
mov ecx, ebx
call fcn.0058a7c4
test eax, eax
je 0x580e97
push 0
mov ecx, ebx
call fcn.0058a7df
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.005855ff
push dword [ebp - 0x14]
call fcn.00583a2b
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00580bb8
xor edi, edi
cmp eax, edi
je 0x580ef4
test byte [esi + 0x3c], 0x10
je 0x580ede
push 4
pop edi
mov ecx, esi
call fcn.0058a65e
test ax, 0x100
je 0x580ed4
push 5
pop edi
push edi
mov ecx, esi
call fcn.005835f3
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x580ef4
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0058a9ae
or dword [ebp - 4], 0xffffffff
jmp 0x580f1f
cmp dword [ebp - 0x28], edi
je 0x580f2d
push 1
mov ecx, ebx
call fcn.0058a7df
cmp dword [ebp - 0x2c], edi
je 0x580f3d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x580f56
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x580f56
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0058091a
cmp dword [esi + 0x58], edi
je 0x580f72
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.005b11a9
ret