joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437b76
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
test esi, esi
je 0x437bc9
mov edx, dword [edi + 4]
push ebx
mov ebx, dword [ebp + 0x14]
movzx ecx, word [ebx]
mov eax, ecx
shr eax, 8
imul eax, dword [edi + 8]
push 0xe20746
push eax
movzx eax, cl
imul eax, edx
push eax
push dword [edi + 0x10]
push dword [edi + 8]
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [edi + 4]
lea ebx, [ebx + 2]
add dword [ebp + 0xc], edx
sub esi, 1
jne 0x437b8b
pop ebx
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x438186
Capabilities:
Persist via run registry key

Disassembly:
push 0x120
mov eax, 0x50e420
call fcn.004f41e2
mov esi, ecx
mov eax, dword [0x5a23ec]
xor ecx, ecx
inc ecx
mov byte [ebp - 0x12c], 0
cmp byte [eax + 0xa5c], 0
je 0x4381bc
cmp byte [eax + 0xa5d], 0
je 0x4381bc
mov bl, cl
jmp 0x4381be
xor bl, bl
lea ecx, [ebp - 0x124]
mov byte [ebp - 0x125], 0
call fcn.004e25a1
mov ecx, dword [0x5a22a0]
lea eax, [ebp - 0x124]
xor edi, edi
push edi
push eax
mov dword [ebp - 4], edi
call fcn.0041129d
mov ecx, dword [0x5a23ec]
mov edx, str.__Exit
push edi
push edi
push edi
cmp byte [ecx + 0xa5e], 0
lea ecx, [ebp - 0xc8]
cmovne edx, edi
push edx
push str._SetDefTerm__Detached__MinTSA
push eax
mov eax, dword [0x5a22a0]
push 0x524d94
add eax, 0xa90
push eax
push 0x524d9c
call fcn.004e2531
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.004e25a1
lea eax, [ebp - 0x125]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.00438578
test al, al
je 0x438268
lea ecx, [ebp - 0x6c]
call fcn.004e2932
mov ecx, dword [ebp - 0x12c]
test al, al
push 1
movzx ecx, cl
pop eax
cmove ecx, eax
jmp 0x43826e
mov ecx, dword [ebp - 0x12c]
cmp cl, bl
jne 0x438299
test bl, bl
je 0x438301
lea ecx, [ebp - 0x6c]
call fcn.0044612f
push eax
lea ecx, [ebp - 0xc8]
call fcn.0044612f
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x438301
test bl, bl
je 0x4382d2
xor edi, edi
lea ecx, [ebp - 0xc8]
push edi
call fcn.0044612f
push eax
push 0x5308a8
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call fcn.004ef30f
add esp, 0x14
test eax, eax
je 0x438301
push edi
push edi
push edi
push eax
push str.Failed_to_set_ConEmuDefaultTerminal_value_in_HKCUSoftwareMicrosoftWindowsCurrentVersionRun
jmp 0x4382fa
xor ebx, ebx
push ebx
push ebx
push 0x5308a8
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call fcn.004ef30f
add esp, 0x14
test eax, eax
je 0x438301
push ebx
push ebx
push ebx
push eax
push str.Failed_to_remove_ConEmuDefaultTerminal_value_from_HKCUSoftwareMicrosoftWindowsCurrentVersionRun
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
lea ecx, [ebp - 0x6c]
call fcn.004e25e0
lea ecx, [ebp - 0xc8]
call fcn.004e25e0
lea ecx, [ebp - 0x124]
call fcn.004e25e0
call fcn.004f418c
ret
Function at 0x4383fd
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp byte [ebx + 7], 0
jne 0x438418
mov eax, dword [ebx]
mov byte [ebx + 7], 1
call dword [eax + 0x10]
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 4]
test al, al
jne 0x43844f
cmp byte [ebp + 0xc], al
je 0x438573
xor ecx, ecx
cmp dword [ebx + 0x4c], ecx
je 0x438573
mov eax, dword [ebx]
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push 0x530640
mov ecx, ebx
call dword [eax + 8]
jmp 0x438573
cmp byte [ebx + 6], 0
je 0x43847f
cmp byte [ebp + 0xc], 0
je 0x438573
push 0
mov ecx, ebx
call fcn.00438325
cmp dword [ebx + 0x18], 0
jle 0x43847f
mov eax, dword [ebx]
mov ecx, ebx
push str.Previous_Default_Terminal_setup_cycle_was_not_finished_yet
call dword [eax + 0xc]
jmp 0x438573
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x1c]
push 0
lea eax, [ebx + 0x40]
mov word [ebx + 5], 0x101
push str.DefTerm::PostCreatedThread
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
push eax
push 0x438765
call fcn.004e6611
mov esi, eax
add esp, 0x14
mov dword [ebp - 4], esi
test esi, esi
je 0x438556
cmp byte [ebp + 8], 0
je 0x438533
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
or ecx, 0xffffffff
mov eax, 0x7530
cmp byte [ebp + 0x10], 0
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7f00
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test esi, esi
jne 0x438519
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x438572
mov ebx, dword [ebp - 8]
xor ecx, ecx
push ecx
push ecx
push ecx
mov eax, dword [ebx]
push ecx
push str.PostCreatedThread_was_not_finished_in_30_seconds
mov ecx, ebx
call dword [eax + 8]
mov esi, dword [ebp - 4]
jmp 0x438536
mov dword [ebx + 0x3c], esi
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea ecx, [ebx + 0x14]
lea eax, [ebp - 0x14]
push eax
call fcn.0041f347
jmp 0x438572
cmp byte [ebp + 0xc], 0
je 0x43856e
mov eax, dword [ebx]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push str.Failed_to_start_PostCreatedThread
mov ecx, ebx
call dword [eax + 8]
mov byte [ebx + 6], 0
pop esi
pop ebx
leave
ret 0xc
Function at 0x438578
Capabilities:
Persist via run registry key

Disassembly:
push 0x64
mov eax, 0x50c973
call fcn.004f41e2
mov eax, dword [0x5a23ec]
lea ecx, [ebp - 0x6c]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0x6d], 0
mov bl, byte [eax + 0xa5e]
call fcn.004e25a1
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push 0
push eax
push 0x5308a8
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call fcn.004ef1c2
add esp, 0x14
test eax, eax
jle 0x4385eb
push str._Exit
push 0x514870
lea ecx, [ebp - 0x6c]
mov byte [ebp - 0x6d], 1
call fcn.004e2b97
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
test edi, edi
je 0x438603
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x6c]
call fcn.004e2b97
push eax
mov ecx, edi
call fcn.004e2ad6
test esi, esi
je 0x438609
mov byte [esi], bl
lea ecx, [ebp - 0x6c]
call fcn.004e25e0
mov al, byte [ebp - 0x6d]
call fcn.004f418c
ret 8

Function at 0x43874d
Capabilities:
Find taskbar

Disassembly:
push esi
mov esi, ecx
push 1
mov eax, dword [esi]
call dword [eax + 4]
test al, al
je 0x438763
mov ecx, esi
pop esi
jmp fcn.0040c6fe
pop esi
ret
Function at 0x439142
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push 1
xor esi, esi
push esi
push esi
call fcn.0044612f
push eax
push str.open
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x43917d
push esi
push esi
push esi
push eax
push str.ShellExecute_failed
call fcn.00420ad9
add esp, 0x14
xor al, al
jmp 0x43917f
mov al, 1
pop esi
pop ebp
ret

Function at 0x4399bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5a24b4]
sub esp, 0xc
push edi
xor edi, edi
inc edi
test eax, eax
jne 0x439a63
cmp dword [0x5a22cc], 6
push esi
ja 0x4399eb
jne 0x439a5a
cmp dword [0x5a22d0], 2
jbe 0x439a5a
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 0x20019
push esi
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439a5a
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
push eax
push esi
push esi
push str.Win8DpiScaling
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439a42
cmp dword [ebp - 4], 4
jne 0x439a42
or eax, 0xffffffff
cmp dword [ebp - 8], esi
cmove eax, edi
jmp 0x439a45
or eax, 0xffffffff
push dword [ebp - 0xc]
mov dword [0x5a24b4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5a24b4]
jmp 0x439a62
or eax, 0xffffffff
mov dword [0x5a24b4], eax
pop esi
cmp eax, edi
pop edi
sete al
leave
ret
Function at 0x43cc5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov esi, ecx
mov dword [ebp - 0x88], ebx
lea ecx, [ebp - 0x88]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43cd4b
cmp dword [ebp - 0x88], edi
jne 0x43cd4b
add dword [esi + 0xb0], edi
push ebx
adc dword [esi + 0xb4], ebx
push 0x3e8
push dword [esi + 0xb4]
push dword [esi + 0xb0]
call fcn.004f4a40
push 0x4b
pop ecx
cmp edx, ebx
jl 0x43cd0a
mov edi, 0x270f
jg 0x43cce0
cmp eax, edi
jbe 0x43cd0a
push ebx
push 0x3e8
push edx
push eax
call fcn.004f4a40
push 0x4d
pop ecx
cmp edx, ebx
jl 0x43cd0a
jg 0x43ccfa
cmp eax, edi
jbe 0x43cd0a
push ebx
push 0x3e8
push edx
push eax
call fcn.004f4a40
push 0x47
pop ecx
push ecx
push eax
push dword [esi + 0xa8]
mov eax, dword [esi + 0xac]
inc eax
push eax
lea eax, [ebp - 0x84]
push str.Copying__i_of__i___u_c_
push eax
call fcn.00409b67
mov ecx, dword [0x5a22a0]
lea eax, [ebp - 0x84]
add esp, 0x18
push ebx
push eax
push dword [0x5a22a4]
call fcn.0041b222
xor eax, eax
jmp 0x43cd5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x8000ffff
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 0xc
Function at 0x43d0e0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x614], esi
test edi, edi
je 0x43d28b
push ebx
xor ebx, ebx
mov esi, 0xff
inc ebx
mov dword [ebp - 0x60c], esi
xor eax, eax
mov dword [ebp - 0x608], ebx
mov dword [ebp - 0x618], eax
cmp word [edi], ax
je 0x43d28a
push ebx
lea eax, [ebp - 0x204]
push 0x532ac4
push eax
call fcn.00409ac1
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx edx, word [edi]
cmp dx, word [ebp - 0x60c]
mov ecx, edx
cmovb esi, ecx
xor edx, edx
movzx ecx, si
mov esi, edx
mov dword [ebp - 0x610], ecx
test ecx, ecx
je 0x43d1e9
mov bl, byte [edi + esi + 2]
lea edx, [eax + 1]
movzx ecx, bl
sub ecx, 0
je 0x43d1cf
sub ecx, 9
je 0x43d1c3
sub ecx, 1
je 0x43d1b5
sub ecx, 3
je 0x43d1a9
sub ecx, 0x4f
je 0x43d19d
mov byte [ebp + eax - 0x204], bl
jmp 0x43d1d7
mov word [ebp + eax - 0x204], 0x5c5c
jmp 0x43d1bf
mov word [ebp + eax - 0x204], 0x725c
jmp 0x43d1bf
mov word [ebp + eax - 0x204], 0x6e5c
mov eax, edx
jmp 0x43d1d7
mov word [ebp + eax - 0x204], 0x745c
jmp 0x43d1bf
mov byte [ebp + eax - 0x204], 0x2e
inc eax
inc esi
cmp esi, dword [ebp - 0x610]
jl 0x43d171
mov ebx, dword [ebp - 0x608]
xor edx, edx
mov byte [ebp + eax - 0x204], 0xa
mov ecx, 0x200
inc eax
cmp eax, ecx
jae 0x43d299
mov esi, dword [ebp - 0x614]
mov byte [ebp + eax - 0x204], dl
test esi, esi
je 0x43d263
push ecx
lea eax, [ebp - 0x604]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
push eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x604]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x618]
jne 0x43d232
xor eax, eax
sub ecx, edx
push eax
sar ecx, 1
lea eax, [ebp - 0x61c]
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x604]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x43d270
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx eax, word [edi]
inc ebx
push 0
add edi, eax
mov dword [ebp - 0x608], ebx
pop eax
mov esi, 0xff
jne 0x43d126
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret
call fcn.004f4963
int3
Function at 0x43d9e3
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x12c
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4dc], eax
mov eax, dword [edi]
add eax, 0x11
cmp eax, ecx
jl 0x43da25
xor eax, eax
jmp 0x43dbd9
push esi
xor eax, eax
push 0x2b4
push eax
mov dword [ebp - 0x4e8], eax
lea eax, [ebp - 0x4d4]
push eax
call fcn.004f5a90
push 0x5c
push ebx
call fcn.004f6844
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x43da55
mov esi, ebx
jmp 0x43da58
add esi, 2
mov ecx, esi
xor eax, eax
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x4e0], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x4e8]
jne 0x43da6b
sub ecx, edx
lea eax, [ebp - 0x4e4]
push eax
sar ecx, 1
push ecx
push esi
push dword [ebp - 0x4d8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x4e4]
mov ecx, 0x12c
cmp eax, ecx
cmovg eax, ecx
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x4e4], eax
cmp eax, dword [ecx]
jle 0x43dab5
mov dword [ecx], eax
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x10ffe], 0
je 0x43db06
push 0xd01
push 0x2b4
lea eax, [ebp - 0x4d4]
push eax
xor eax, eax
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ebx, dword [ebp - 0x4d8]
test eax, eax
je 0x43db0c
push 3
xor eax, eax
push eax
push eax
push 0x10
push 0x10
push dword [ebp - 0x4d4]
push dword [edi]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x43db0c
mov ebx, dword [ebp - 0x4d8]
mov eax, dword [0x5a23ec]
xor ecx, ecx
push 0x12
pop edx
push 0x104
cmp byte [eax + 0x10ffe], cl
push esi
cmovne ecx, edx
mov edx, dword [ebp + 0x14]
add edx, ecx
mov ecx, dword [edi]
mov dword [ebp - 0x220], edx
lea eax, [ecx + 1]
mov dword [ebp - 0x21c], eax
lea eax, [ecx + 0x10]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x4dc]
mov ecx, dword [eax]
add ecx, edx
mov edx, 0x12c
cmp ecx, edx
mov eax, edx
cmovl eax, ecx
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
lea ecx, [ebp - 0x210]
mov word [ebp - 8], ax
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x43db7e
push esi
push 0x18820
sub ecx, edx
lea eax, [ebp - 0x220]
push eax
sar ecx, 1
lea eax, [ebp - 0x210]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextExW]
mov eax, dword [ebp - 0x214]
inc eax
pop esi
cmp dword [edi], eax
jge 0x43dbc1
mov ecx, 0x12c
cmp eax, ecx
cmovg eax, ecx
mov dword [edi], eax
cmp dword [ebp - 0x4d4], 0
je 0x43dbd6
push dword [ebp - 0x4d4]
call dword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 0x14
Function at 0x441311
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push edi
xor ebx, ebx
mov edi, ecx
push ebx
call fcn.004d814a
pop ecx
test al, al
je 0x4413ab
mov edx, dword [0x5a23ec]
lea eax, [edx + 0x111c0]
push eax
lea eax, [edx + 0x111bc]
push eax
push ebx
push dword [edi + 8]
call fcn.00422004
mov eax, dword [0x5a23ec]
add esp, 0x10
mov ecx, dword [eax + 0x111c0]
test ecx, ecx
je 0x4413ab
cmp word [ecx], bx
je 0x4413ab
mov eax, dword [edi + 0x1c]
push esi
mov esi, ebx
cmp dword [eax], ebx
je 0x44138a
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x44138a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 1
pop esi
mov ecx, 0x8000
test cx, ax
push 0xffffffffffffffff
pop eax
cmovne esi, eax
push ebx
push esi
call fcn.00425604
pop ecx
pop ecx
mov ecx, dword [edi + 0x1c]
or eax, 0xffffffff
push eax
mov eax, dword [0x5a23ec]
push dword [eax + 0x111c0]
call fcn.004e2ad6
pop esi
pop edi
pop ebx
ret
Function at 0x4459b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a23ec]
push esi
mov esi, ecx
cmp byte [eax + 0xc41], 0
je 0x445a9d
mov eax, dword [0x5a22a0]
cmp byte [eax + 0x3e94], 0
jne 0x445a9d
add eax, 0xc9a
push eax
call fcn.00445aaa
mov ecx, dword [0x5a22a0]
lea eax, [ecx + 0xea4]
push eax
lea eax, [ecx + 0xc9a]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x445a2b
mov eax, dword [0x5a22a0]
mov ecx, esi
add eax, 0xea4
push eax
call fcn.00445aaa
mov ecx, dword [0x5a22a0]
push ebx
xor ebx, ebx
push ebx
call fcn.0041e97a
push eax
mov eax, dword [0x5a22a0]
add eax, 0xc9a
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x445a9c
push ebx
push 0x14
lea eax, [ebp - 0x210]
push eax
push dword [0x5a22a4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x445a88
mov ecx, dword [0x5a22a0]
push ebx
call fcn.0041e97a
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x445a9c
mov ecx, dword [0x5a22a0]
push ebx
call fcn.0041e97a
push eax
mov ecx, esi
call fcn.00445aaa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret
Function at 0x445aaa
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x674], edi
test eax, eax
je 0x445ca2
xor ecx, ecx
mov dword [ebp - 0x670], ecx
cmp word [eax], cx
je 0x445ca2
push ebx
push esi
push eax
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.00401a0b
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x414]
push 0x5337c8
lea eax, [ecx + eax*2]
lea esi, [eax - 2]
cmp word [esi], 0x5c
cmovne esi, eax
mov eax, ecx
push eax
push esi
mov dword [ebp - 0x668], esi
call fcn.004326bb
add esp, 0xc
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x66c], ebx
cmp ebx, 0xffffffff
je 0x445ca0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test byte [ebp - 0x664], 0x10
jne 0x445c79
xor eax, eax
mov word [esi + 2], ax
lea eax, [ebp - 0x638]
push 0x2e
push eax
call fcn.004f6844
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x445c73
push str..ttf
push esi
call ebx
test eax, eax
je 0x445bad
push str..otf
push esi
call ebx
test eax, eax
je 0x445bad
push str..bdf
push esi
call ebx
test eax, eax
jne 0x445c73
lea esi, [ebp - 0x638]
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x445bb8
sub esi, ecx
lea ecx, [ebp - 0x414]
sar esi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x670]
jne 0x445bd0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
cmp eax, 0x104
jb 0x445c46
add esi, 0x64
push 2
push esi
call fcn.004e1c42
pop ecx
pop ecx
push str.Too_long_full_pathname_for_font:_n
mov edi, eax
push esi
push edi
call fcn.00401a0b
lea eax, [ebp - 0x638]
push eax
push esi
push edi
call fcn.004019cd
mov ecx, dword [0x5a22a0]
push 1
push 0xffffffffffffffff
call fcn.0040eff3
push eax
push 0x11
push edi
call fcn.00421ef1
push edi
mov esi, eax
call fcn.004e1bea
add esp, 0x18
cmp esi, 2
je 0x445c94
mov edi, dword [ebp - 0x674]
jmp 0x445c73
lea eax, [ebp - 0x638]
push eax
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.004019cd
xor eax, eax
mov ecx, edi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0044523a
test eax, eax
je 0x445c94
mov esi, dword [ebp - 0x668]
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x445b58
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004f4166
leave
ret 4
Function at 0x448f2b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [ebx + 4], 0
mov dword [ebp - 0x8c], ebx
je 0x448f5b
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
and dword [ebp - 0x88], 0
push 0
mov dword [esi + 0x58], 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea ecx, [esi + 0x40]
cmp byte [ebx + 4], al
cmovne eax, ecx
push eax
lea eax, [ebp - 0x88]
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebx + 4], 0
mov ecx, dword [ebp - 0x88]
je 0x448ffb
cmp eax, 0x6d
je 0x448fe1
test edi, edi
je 0x448fba
test ecx, ecx
jne 0x448ffb
lea eax, [ebp - 0x88]
mov ecx, ebx
push eax
push esi
call fcn.00449e46
cmp eax, 1
jne 0x448fdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x88]
jmp 0x449006
cmp eax, 2
jne 0x448fe8
mov dword [esi + 0x38], 1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 4
test edi, edi
jne 0x449006
cmp eax, 0xea
jne 0x448fe8
cmp ecx, 4
jb 0x448fe8
cmp byte [ebx + 1], 0
jne 0x448fe8
mov edi, dword [ebp - 0x84]
cmp edi, ecx
ja 0x44904e
push ecx
mov ecx, esi
call fcn.0044809d
test eax, eax
je 0x448fe8
push dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.004f5d30
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x174], eax
jmp 0x449186
cmp edi, 0x7fffffff
jae 0x448fe8
push edi
mov ecx, esi
call fcn.0044809d
mov ebx, eax
mov dword [ebp - 0x98], ebx
test ebx, ebx
je 0x448fe8
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.004f5d30
sub edi, dword [ebp - 0x88]
add esp, 0xc
add ebx, dword [ebp - 0x88]
test edi, edi
jle 0x44917a
mov eax, dword [ebp - 0x8c]
cmp byte [eax + 4], 0
je 0x4490ad
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x8c]
xor eax, eax
cmp byte [ecx + 4], al
lea ecx, [esi + 0x40]
cmovne eax, ecx
push eax
lea eax, [ebp - 0x88]
push eax
push edi
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x90], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], ecx
cmp byte [eax + 4], 0
je 0x44914a
cmp ecx, 0x6d
je 0x448fe1
mov edx, dword [ebp - 0x90]
test edx, edx
je 0x449116
mov ecx, dword [ebp - 0x88]
test ecx, ecx
jne 0x449156
lea ecx, [ebp - 0x88]
push ecx
push esi
mov ecx, eax
call fcn.00449e46
cmp eax, 1
jne 0x448fe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], 1
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x88]
test edx, edx
jne 0x449166
cmp dword [ebp - 0x94], 0xea
jne 0x449172
sub edi, ecx
add ebx, ecx
test edi, edi
jg 0x44909e
test edi, edi
jg 0x448fe8
sub ebx, dword [ebp - 0x98]
mov dword [esi + 0x174], ebx
xor eax, eax
inc eax
jmp 0x448fea