joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ea8c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43eaba
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43eac1
cmp ebx, dword [eax + 4]
jae 0x43eac1
xor eax, eax
jmp 0x43ecb1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43ead2
xor eax, eax
inc eax
jmp 0x43ecb0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43eae8
cmp ecx, edx
jae 0x43ec2d
cmp dword [eax + 4], 0
je 0x43eaf1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43ead9
cmp dword [ebp + 8], 0
je 0x43eb13
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43ec2d
cmp eax, esi
jae 0x43ec2d
mov eax, dword [0x49eba8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43eb38
cmp dword [esi*4 + 0x49ebb0], edi
je 0x43ec31
inc esi
cmp esi, eax
jl 0x43eb26
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x477124]
test eax, eax
je 0x43ecad
cmp dword [ebp - 8], 0x1000000
jne 0x43ecad
test byte [ebp - 0xc], 0xcc
je 0x43ebb6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43ecad
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43ecad
cmp word [eax + 0x18], 0x10b
jne 0x43ecad
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43ecad
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43ebb6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43ebb6
test byte [ecx + 0x27], 0x80
jne 0x43ec2d
push 1
push 0x49ebf0
call dword [0x477364]
test eax, eax
jne 0x43eaca
mov ecx, dword [0x49eba8]
test ecx, ecx
mov edx, ecx
jle 0x43ebea
lea eax, [ecx*4 + 0x49ebac]
cmp dword [eax], edi
je 0x43ebea
dec edx
sub eax, 4
test edx, edx
jg 0x43ebde
test edx, edx
jne 0x43ec1b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43ebf7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43ec0f
lea eax, [edx*4 + 0x49ebb0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43ebfd
cmp ecx, 0x10
jge 0x43ec1b
inc ecx
mov dword [0x49eba8], ecx
push 0
push 0x49ebf0
call dword [0x477364]
jmp 0x43eaca
xor eax, eax
jmp 0x43ecb0
test esi, esi
jle 0x43eaca
mov ebx, dword [0x477364]
push 1
push 0x49ebf0
call ebx
test eax, eax
jne 0x43eaca
cmp dword [esi*4 + 0x49ebb0], edi
je 0x43ec87
mov eax, dword [0x49eba8]
lea esi, [eax - 1]
test esi, esi
jl 0x43ec75
cmp dword [esi*4 + 0x49ebb0], edi
je 0x43ec71
dec esi
jns 0x43ec65
test esi, esi
jge 0x43ec85
cmp eax, 0x10
jge 0x43ec80
inc eax
mov dword [0x49eba8], eax
lea esi, [eax - 1]
jmp 0x43ec87
je 0x43ec9f
xor ecx, ecx
test esi, esi
jl 0x43ec9f
lea eax, [ecx*4 + 0x49ebb0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43ec8d
push 0
push 0x49ebf0
call ebx
jmp 0x43eaca
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100211c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100432e0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10056018]
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 esi, ecx
mov eax, dword [0x1005777c]
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test eax, eax
jne 0x10021249
lea ecx, [ebp - 0x28]
call fcn.1002d570
push eax
mov dword [ebp - 4], 0
call fcn.10019710
mov ecx, eax
call fcn.1002d570
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
mov dword [0x1005777c], eax
jb 0x10021237
push dword [ebp - 0x28]
call edi
mov eax, dword [0x1005777c]
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.1002d570
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
cmp dword [ebp - 0x2c], 8
jb 0x10021279
push dword [ebp - 0x40]
call edi
add esp, 4
test bl, bl
jne 0x100212a6
mov eax, dword [0x10057778]
test eax, eax
jne 0x10021331
push dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10019710
mov ecx, eax
call fcn.1002d570
mov dword [0x10057778], eax
jmp 0x10021331
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.1002d570
mov dword [ebp - 4], 1
cmp dword [ebp - 0x48], 0
mov esi, dword [0x10057778]
je 0x10021303
test esi, esi
jne 0x10021321
call fcn.1002d570
mov byte [ebp - 0x5c], al
mov eax, dword [0x10057774]
test eax, eax
jne 0x100212f1
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10019710
mov ecx, eax
call fcn.1002d570
mov dword [0x10057774], eax
add eax, 8
push eax
call fcn.10019710
mov ecx, eax
call fcn.1002d570
jmp 0x10021319
test esi, esi
jne 0x10021321
push dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10019710
mov ecx, eax
call fcn.1002d570
mov esi, eax
mov dword [0x10057778], esi
cmp dword [ebp - 0x44], 0x10
jb 0x1002132f
push dword [ebp - 0x58]
call edi
add esp, 4
mov eax, esi
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.1003fc71
mov esp, ebp
pop ebp
ret
Function at 0x1002d570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x1002d57f
pop dword [ebp - 4]
mov eax, 0x9f63187b
add eax, 0x709fbd04
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x24f381c7
add dword [ebp - 0x14], 0x295ec384
mov dword [ebp - 0x10], 0xf9d73e19
sub dword [ebp - 0x10], 0xc7a3f1d4
mov dword [ebp - 0xc], 0x47c71e07
sub dword [ebp - 0xc], 0xfb7ad9d9
mov dword [ebp - 8], 0xaa25f94
sub dword [ebp - 8], 0xaa25f94
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x83ff91bf
sub dword [ebp - 0x14], 0xf8d2869
mov dword [ebp - 0x10], 0x874aeee0
sub dword [ebp - 0x10], 0x45de8d6b
mov dword [ebp - 0xc], 0x23cfbaf1
sub dword [ebp - 0xc], 0xc0604e85
mov dword [ebp - 8], 0x3f92548a
add dword [ebp - 8], 0xc06dab76
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x866ab66a
add eax, 0x8999ba7a
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x4344c
push 0
call eax
mov ecx, 0x7e76d482
add ecx, 0x8189766a
xor edx, edx
add edx, eax
mov ebx, 0x10063000
add ebx, dword [ebp - 4]
mov esi, 0x9f88bc0d
sub esi, 0x9b1f2c18
mov edi, dword [ebx]
xor edi, esi
mov dword [edx], edi
add edx, 4
add ebx, 4
loop 0x1002d698
add eax, 0x11e83
mov ebx, eax
add eax, 0x4087d98b
add eax, 0xbf78267a
mov ecx, 0xfb2c0495
sub ecx, 0xeb2c0495
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x402e90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x82c]
push esi
mov esi, dword [ebp + 0xc]
push eax
push 0x403ad0
push ebx
push 0x65
push dword [0x640194]
mov dword [ebp - 0x82c], 1
call fcn.004170b0
add esp, 0x14
cmp eax, 1
jne 0x403006
mov ax, word [0x635d30]
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00546400
add esp, 0xc
push 0x63c3c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x402f2c
push 0x63c3c0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x828]
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x858], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x414]
movlpd qword [ebp - 0x848], xmm0
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x20c]
push esi
movlpd qword [ebp - 0x840], xmm0
movlpd qword [ebp - 0x838], xmm0
mov dword [ebp - 0x868], 0x3c
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x860], ebx
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x84c], 1
call fcn.00415a50
add esp, 4
test eax, eax
je 0x402fc9
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.00415ac0
add esp, 0xc
test eax, eax
jne 0x402fd7
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0052a352
mov esp, ebp
pop ebp
ret
Function at 0x403430
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x637260
push 0
push esi
push str.Suppressed_Messages
mov edi, 0x7e
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov dword [ebp - 0x408], eax
call ebx
test eax, eax
jle 0x40349f
cmp dword [ebp - 0x408], 1
jne 0x40349f
cmp dword [ebp + 8], 2
mov eax, 1
pop edi
mov ecx, 6
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
push 0x200
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0x10]
push dword [0x640194]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4034d2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x414], eax
push ecx
lea ecx, [ebp - 0x404]
push ecx
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
push 0x637260
mov dword [ebp - 0x410], esi
call ebx
test eax, eax
je 0x403522
push esi
call ebx
test eax, eax
je 0x403522
cmp dword [ebp - 0x408], 2
mov dword [ebp - 0x40c], 0
jne 0x40352c
mov dword [ebp - 0x40c], 1
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x403539
lea edi, [eax + 0x7d]
jmp 0x403544
cmp eax, 8
mov ecx, 0x80
cmove edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
push 0x30
cmove esi, dword [0x640174]
call dword [sym.imp.USER32.dll_MessageBeep]
lea eax, [ebp - 0x414]
push eax
push 0x405dd0
push esi
push edi
push dword [0x640194]
call fcn.004170b0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0052a352
mov esp, ebp
pop ebp
ret
Function at 0x405f20
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x22c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
push dword [0x5dc4d4]
mov dword [ebp - 0x2bc], esi
push ebx
call dword [sym.imp.USER32.dll_SetPropW]
push 0x635d58
lea eax, [esi + 0x10]
mov dword [esi], ebx
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0x2b8]
push 0x4001
push 0x2b4
push eax
push 0
push 0x5dc4d8
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x1003
push ebx
call esi
push 0x4000
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
push 0x5dc4e0
call edi
push eax
push 0
push 0x1003
push ebx
call esi
mov edi, dword [ebp - 0x2bc]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0x218], 0
mov dword [edi + 0x21c], 0
call esi
push 0
push 1
push 1
push 0
mov dword [edi + 0x224], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 0x228], eax
xor ecx, ebp
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.0052a352
mov esp, ebp
pop ebp
ret

Function at 0x4060a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push dword [0x5dc4d4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropW]
push dword [ebp + 8]
mov edi, eax
call fcn.004060f0
add esp, 4
push dword [edi + 0x224]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x406580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x407d30
Capabilities:
Get graphical window text
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x407ea8
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407ea8
push esi
push edi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push 0
push 0
push 0x859
push ebx
call esi
push 0
push 0
push 0x7ee
push ebx
mov dword [ebp - 4], eax
call esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x10], eax
lea eax, [edi + 1]
mov edi, dword [ebp - 8]
push eax
push edi
push 0
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ebx, [eax - 1]
lea eax, [ebx + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x407df2
push 0
push 0
lea eax, [ebx + 1]
push eax
push esi
push dword [ebp - 0xc]
push edi
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebx*2 + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x407e90
xor edx, edx
mov ecx, esi
mov esi, eax
test ebx, ebx
jle 0x407e66
mov al, byte [ecx]
test al, al
je 0x407e66
cmp al, 0xa
je 0x407e2a
cmp al, 0xd
je 0x407e2a
mov byte [esi], al
inc esi
jmp 0x407e60
mov edi, dword [ebp - 0x10]
cmp edi, 1
jne 0x407e38
mov byte [esi], 0xd
inc esi
jmp 0x407e4b
cmp edi, 2
jne 0x407e43
mov byte [esi], 0xa
inc esi
jmp 0x407e4b
mov word [esi], 0xa0d
add esi, 2
cmp byte [ecx], 0xd
jne 0x407e60
lea eax, [edx + 1]
cmp eax, ebx
jge 0x407e60
cmp byte [ecx + 1], 0xa
jne 0x407e60
mov edx, eax
inc ecx
inc edx
inc ecx
cmp edx, ebx
jl 0x407e17
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [esi], 0
call edi
mov ebx, dword [ebp - 0xc]
sub esi, ebx
inc esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e7e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x10]
push 0x876
push edi
call ebx
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0x876
push edi
call ebx
mov esi, eax
push esi
call fcn.00413eb0
mov eax, dword [ebp - 4]
add esp, 4
cmp esi, eax
je 0x40e828
push eax
call fcn.00413eb0
add esp, 4
push 0x32
push 0xd
push 0x962
push edi
call ebx
push 5
push 0xd
push 0x963
push edi
call ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x870
push edi
call ebx
push 0x32
push 9
push 0x962
push edi
call ebx
push 0
push 8
push 0x963
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414950
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
je 0x4149e2
push edi
push 0x5df2b4
push 0x5df2d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4149de
mov esi, dword [ebp + 8]
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x637260
push 0x4b
push str.OpacityLevel
push 0x5df2fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
js 0x4149b7
cmp eax, 0x64
jle 0x4149bc
mov eax, 0x4b
imul ecx, eax, 0xff
mov eax, 0x51eb851f
push 2
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx eax, al
push eax
push 0
push esi
call edi
pop edi
pop esi
pop ebp
ret
mov esi, dword [ebp + 8]
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfff7ffff
push eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop esi
pop ebp
ret
Function at 0x4156d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ecx, ecx
mov eax, 0x10
cmp dword [ebp + 0x14], ecx
push esi
mov esi, dword [ebp + 0xc]
cmovne eax, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
push ecx
mov dword [ebp - 0xa34], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x104
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp dword [ebp + 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
je 0x4157fc
push edi
call eax
test eax, eax
jne 0x4157f7
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
jne 0x4157f7
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
je 0x4157f7
push dword [ebp - 0xa30]
lea eax, [ebp - 0x414]
push edi
push 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
test eax, eax
je 0x4157f7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x414]
push 0x5df38c
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov esi, dword [ebp - 0xa34]
jmp 0x41584c
mov eax, dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
push edi
call eax
test eax, eax
jne 0x41583d
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
test eax, eax
jne 0x41583d
push dword [ebp - 0xa30]
lea eax, [ebp - 0x61c]
push edi
push 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
test eax, eax
jne 0x41584c
push 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp dword [ebp + 0x18], 0
push 0x104
je 0x415874
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnExpandEnvStringsW]
test eax, eax
jne 0x415884
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call ebx
test esi, esi
je 0x4158b5
cmp edi, esi
je 0x4158b5
mov eax, dword [ebp + 0x10]
mov ecx, 0x104
test eax, eax
cmove eax, ecx
push eax
lea eax, [ebp - 0x824]
push eax
push esi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, 0x104
test eax, eax
cmove eax, ecx
push eax
lea eax, [ebp - 0x824]
push eax
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052a352
mov esp, ebp
pop ebp
ret
Function at 0x4158e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x13
push str._CSIDL:MYDOCUMENTS_
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
test eax, eax
lea eax, [ebp - 0x414]
jne 0x41593c
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esi + 0x26]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x415945
push 0x104
push esi
push eax
call edi
cmp dword [ebp + 0x14], 0
je 0x41595f
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00416230
add esp, 8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
push 0x104
test eax, eax
je 0x4159a7
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x4159b7
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00416280
add esp, 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x4159e7
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
test ebx, ebx
je 0x415a18
cmp esi, ebx
je 0x415a18
mov eax, dword [ebp + 0x10]
mov ecx, 0x104
test eax, eax
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, 0x104
test eax, eax
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052a352
mov esp, ebp
pop ebp
ret