joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43371f
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x47c8b0
call fcn.0044b114
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x49c1e0
call fcn.00440e55
and dword [ebp - 4], 0
push 0x48037c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040f74d
push 0x49c230
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.004336d7
lea ecx, [ebp - 0x18]
call fcn.0040bf88
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4337af
push 0
push dword [ebp - 0x10]
call fcn.004102aa
pop ecx
pop ecx
test eax, eax
jne 0x43379b
push 1
push 0x497900
push dword [ebp - 0x10]
call fcn.00429538
add esp, 0xc
jmp 0x4337af
push 5
push 0x4817a4
push dword [ebp - 0x10]
push 0
call fcn.00432d6c
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040bf88
lea ecx, [ebp - 0x14]
call fcn.0040bf88
call fcn.0044b1ec
ret

Function at 0x433a83
Capabilities:
Create process on windows

Disassembly:
push 4
mov eax, 0x47c910
call fcn.0044b114
mov esi, ecx
cmp dword [esi + 0x11c], 0x5001
jne 0x433af3
push 0x32
call fcn.0040fa32
mov ecx, eax
call fcn.00442e80
mov eax, dword [0x49501c]
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x10]
cmp dword [0x49c244], edi
je 0x433aca
push 0x94
jmp 0x433acf
push 0x8f
call fcn.0040ec64
push 1
push edi
push edi
push dword [ebp - 0x10]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040bf88
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
call fcn.0044b1ec
ret
Function at 0x433c45
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.0044b510
push 0xffffffffffffffff
push 0x47c956
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x2000], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x1ffe
mov word [ebp], ax
xor esi, esi
lea eax, [ebp + 2]
push esi
push eax
call fcn.00449bc0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [0x49c22c]
mov dword [ebp - 0x14], 1
push dword [0x49c228]
mov dword [ebp - 0x18], 0x1000
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x14], 1
jne 0x433d3d
cmp word [ebp], si
je 0x433d3d
cmp dword [ebp - 0x18], esi
jbe 0x433d3d
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041077d
push 0x48037c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.004136ce
mov eax, dword [0x49c230]
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x10]
call fcn.0041336d
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x433d25
push esi
push dword [ebp - 0x10]
call fcn.004102aa
pop ecx
pop ecx
test eax, eax
jne 0x433d33
push 0x26
call fcn.0040fa32
mov ecx, eax
call fcn.00442e80
lea ecx, [ebp - 0x10]
call fcn.0040bf88
jmp 0x433d4b
push 0x25
call fcn.0040fa32
mov ecx, eax
call fcn.00442e80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.00449c3a
add ebp, 0x2004
leave
ret

Function at 0x43418f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 0x43c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x14
push 0x2712
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
pop esi
ret 0x10

Function at 0x434609
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
test eax, eax
jne 0x43461a
xor eax, eax
jmp 0x434690
cmp dword [eax], 0xe10
jne 0x43468d
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
test eax, eax
je 0x434682
cmp dword [esi + 0x35c], 0
jne 0x434682
push ebx
push edi
lea eax, [ebp + 0xc]
lea edi, [esi + 0x30c]
push eax
mov ecx, edi
call fcn.0043ff63
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp + 0xc]
mov ebx, eax
call fcn.0040bf88
test ebx, ebx
je 0x434680
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.0043ff63
push 4
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp + 0xc]
call fcn.0040bf88
pop edi
pop ebx
mov esi, dword [esi + 0x7c]
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
jmp 0x434616
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x434cc6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
test ecx, ecx
je 0x434cd6
lea esi, [ecx - 0x84]
jmp 0x434cd8
xor esi, esi
cmp byte [ecx + 0x1c], 0
je 0x434d0c
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x434cfd
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x434d12
cmp dword [ebp + 0xc], 0
jne 0x434d0c
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x434d2a
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cwde
push eax
movsx eax, word [ebp + 0x10]
push eax
lea ecx, [esi + 0x84]
call fcn.00434848
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x43504a
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x47cc0f
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a010]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [0x49501c]
mov dword [esp + 0x14], eax
and dword [esp + 0x34], 0
push 0x8c
lea ecx, [esp + 0x18]
call fcn.0040ec64
lea ebp, [esi + 0xb0]
push 0
mov ecx, ebp
call fcn.0042c90f
push dword [esi + 0x7c]
mov ecx, ebp
call fcn.00428d24
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f2
push dword [esi + 4]
call ebx
push eax
lea ecx, [esi + 0xec]
call fcn.0041f395
push 3
mov edi, 0x480478
push edi
push 0x109
mov ecx, ebp
call fcn.0042c874
push dword [esp + 0x14]
mov ecx, ebp
call fcn.0042cb0e
push 0
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3f5
push dword [esi + 4]
call ebx
mov ebp, eax
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43512c
push 0
push 0
push 0x20000
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
call fcn.0041ea3b
push dword [esi + 0x7c]
lea ebp, [esi + 0x240]
mov ecx, ebp
call fcn.00428d24
push edi
push 0xd1
mov ecx, ebp
call fcn.0042d860
push edi
push 0xd4
mov ecx, ebp
call fcn.0042d88c
push edi
push 0xd3
mov ecx, ebp
call fcn.0042d876
push 0x3f5
push dword [esi + 4]
call ebx
push eax
lea ecx, [esi + 0x27c]
call fcn.0043454f
push 0x64
push 0
lea ecx, [esi + 0x280]
call fcn.00433f75
lea edi, [esi + 0x178]
push 2
mov ecx, edi
call fcn.0042c90f
push dword [esi + 0x7c]
mov ecx, edi
call fcn.00428d24
push 0x3f6
push dword [esi + 4]
call ebx
push eax
lea ecx, [esi + 0x1b4]
call fcn.0041f395
push 0
lea edi, [esi + 0x1b8]
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
add esi, 0x20
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [esp + 0x14]
call fcn.0040bf88
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x435892
Capabilities:
Hide graphical window

Disassembly:
push 0x74
mov eax, 0x47cca5
call fcn.0044b17d
mov esi, ecx
push dword [esi + 0x408]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4357b0
xor ebx, ebx
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x5c], esp
push 0x80000
push SysReAllocString
push 0x481890
push ecx
mov dword [eax], ebx
mov eax, esp
mov dword [ebp - 0x5c], esp
lea ecx, [esi + 0x404]
push ebx
mov dword [eax], 0x495404
mov dword [ebp - 0x60], ecx
call fcn.004355eb
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], eax
call fcn.00423b85
xor eax, eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
xor eax, eax
mov dword [ebp - 0x70], ebx
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.USER32.dll_GetWindowRect]
push ebx
lea eax, [ebp - 0x70]
lea edi, [esi + 0x408]
push eax
mov ecx, edi
call fcn.0042b5ce
push dword [esi + 4]
mov ecx, dword [ebp - 0x60]
call fcn.0042e695
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x58]
call fcn.0043c0c2
pop ecx
pop ecx
cmp eax, ebx
je 0x435789
push ebx
push eax
call fcn.00434048
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
call fcn.0042e68b
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [edi]
call esi
mov ecx, dword [ebp - 0x60]
call fcn.0042ea19
push ebx
push dword [ebp - 0x5c]
call esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.USER32.dll_EndPaint]
call fcn.0044b200
ret
push esi
push 0xd
push 0x7d0
mov esi, ecx
call fcn.004296de
fld dword [0x48159c]
pop ecx
lea ecx, [esi + 0x240]
fstp dword [esp]
call fcn.00434070
cmp dword [esi + 0x3b4], 0
je 0x4358cb
mov dword [esi + 0x3b0], 1
pop esi
ret
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 8]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4358f4
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov ecx, esi
pop esi
jmp fcn.00435478
pop edi
mov ecx, esi
pop esi
jmp 0x4356a9

Function at 0x4374a4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
test ecx, ecx
je 0x4374b4
lea esi, [ecx - 0x84]
jmp 0x4374b6
xor esi, esi
cmp byte [ecx + 0x1c], 0
je 0x4374ea
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x4374db
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4374f0
cmp dword [ebp + 0xc], 0
jne 0x4374ea
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x437508
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cwde
push eax
movsx eax, word [ebp + 0x10]
push eax
lea ecx, [esi + 0x84]
call fcn.00436e55
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x43781c
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov eax, dword [ebp + 0x1c0]
push ebx
push esi
mov esi, dword [ebp + 0x1bc]
xor ebx, ebx
mov dword [ebp - 0x70], eax
cmp esi, ebx
je 0x4378ef
mov eax, dword [0x480380]
mov dword [ebp + 0x1a8], eax
mov eax, dword [0x480384]
mov dword [ebp + 0x1ac], eax
mov ax, word [esi]
mov word [ebp + 0x1a8], ax
lea eax, [ebp + 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4378ef
push edi
xor eax, eax
push 0x208
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push ebx
push eax
call fcn.00449bc0
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.0044eb7e
xor eax, eax
mov dword [ebp - 0x6c], ebx
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
add esp, 0x20
mov dword [ebp - 0x78], ebx
lea edi, [ebp - 0x74]
stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop edi
test eax, eax
je 0x4378ef
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 4], ecx
xor eax, eax
inc eax
jmp 0x4378f1
xor eax, eax
mov ecx, dword [ebp + 0x1b0]
pop esi
xor ecx, ebp
pop ebx
call fcn.00449c3a
add ebp, 0x1b4
leave
ret 8

Function at 0x437ba5
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 8], 5
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
jne 0x437bcc
push dword [esp + 0x14]
push dword [edi + 0x344]
call esi
push 5
push dword [edi + 0x27c]
jmp 0x437be2
push dword [esp + 0x10]
push dword [edi + 0x27c]
call esi
push dword [esp + 0x14]
push dword [edi + 0x344]
call esi
cmp dword [edi + 0x754], 0
je 0x437c14
push 0
push dword [edi + 0x344]
call esi
push 0
push dword [edi + 0x27c]
call esi
push 0x40e
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call esi
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x438168
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
pop ebp
mov esi, ecx
push ebp
push dword [esi + 0xec]
call edi
mov eax, dword [esi + 0x750]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x4381a1
cmp dword [0x49c23c], ebx
jne 0x4381a1
push ebx
lea ecx, [esi + 0xac]
call fcn.0042cb2f
push ebp
push dword [esi + 0x1b4]
call edi
push ebp
push dword [esi + 0x544]
call edi
cmp dword [0x49c23c], ebx
jne 0x438297
push ebp
push dword [esi + 0x40c]
call edi
push 1
push 0x14
push 0x3c
push 0xe6
push 0xce
push dword [esi + 0x40c]
call dword [sym.imp.USER32.dll_MoveWindow]
push 0xeaf7ea
lea ecx, [esi + 0x3cc]
call fcn.00428d50
push 1
mov ebp, 0x15d
push ebp
push 0xe8
push dword [esi + 0x40c]
lea ecx, [esi + 0x20]
call fcn.00435f6b
push 0
lea ebx, [esi + 0x344]
push dword [ebx]
call edi
push 1
push ebp
push 0x124
push dword [ebx]
lea ebx, [esi + 0x20]
mov ecx, ebx
call fcn.00435f6b
push 5
push dword [esi + 0x27c]
call edi
push 1
push 0x14
push 0x31
push 0xeb
push 0x106
push dword [esi + 0x27c]
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push ebp
push 0x124
push dword [esi + 0x27c]
mov ecx, ebx
call fcn.00435f6b
cmp dword [0x49c23c], 0
jne 0x438295
lea eax, [esi + 0x10bc]
cmp dword [eax], 0
jne 0x43828b
mov ecx, esi
mov dword [eax], 1
call fcn.00437cd9
push 5
push dword [esi + 0x47c]
call edi
xor ebx, ebx
cmp dword [esi + 0x754], ebx
je 0x4382c3
push ebx
push dword [esi + 0x344]
call edi
push ebx
push dword [esi + 0x27c]
call edi
push 0x40e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4382c8
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax - 8]
test eax, eax
jne 0x4382ec
xor eax, eax
jmp 0x43835a
cmp eax, 0x104
jg 0x4382e8
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00449bc0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x2710
push 0x4802c0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp word [ebp - 0x414], 0
je 0x4382e8
lea eax, [ebp - 0x414]
push 0x4802bc
push eax
call fcn.0044d6ee
pop ecx
pop ecx
test eax, eax
je 0x4382e8
push eax
call fcn.0044d5ac
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00449c3a
leave
ret 4
Function at 0x438c9c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
test ecx, ecx
je 0x438cac
lea esi, [ecx - 0x84]
jmp 0x438cae
xor esi, esi
cmp byte [ecx + 0x1c], 0
je 0x438ce2
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x438cd3
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x438ce8
cmp dword [ebp + 0xc], 0
jne 0x438ce2
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x438d00
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cwde
push eax
movsx eax, word [ebp + 0x10]
push eax
lea ecx, [esi + 0x84]
call fcn.004383df
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x438e0c
Capabilities:
Create process on windows

Disassembly:
push 4
mov eax, 0x47d088
call fcn.0044b114
mov edi, ecx
xor esi, esi
cmp dword [0x49c23c], esi
jne 0x438e3f
push dword [edi + 0x75c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x438e3f
push esi
push esi
push esi
push esi
mov ecx, edi
call fcn.00437b5d
mov eax, dword [0x49501c]
mov dword [ebp - 0x10], eax
push 0xa8
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0040ec64
push 1
push esi
push esi
push dword [ebp - 0x10]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
call fcn.0040bf88
call fcn.0044b1ec
ret
Function at 0x4397cd
Capabilities:
Check if file exists
Get disk information

Disassembly:
push 0x2c
mov eax, 0x47d285
call fcn.0044b17d
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax - 8]
test edx, edx
jne 0x4397f2
xor eax, eax
call fcn.0044b200
ret 4
cmp edx, 0x80
jg 0x4397e8
movzx ebx, word [eax + 2]
movzx ecx, bx
cmp cx, 0x3a
jne 0x439811
movzx ecx, word [eax + 4]
cmp cx, 0x5c
jne 0x4397e8
and dword [ebp - 0x14], 0
test edx, edx
jle 0x43985e
mov esi, eax
movzx ecx, word [esi]
cmp cx, 0x3a
jne 0x43982a
cmp dword [ebp - 0x14], 1
jne 0x4397e8
cmp cx, 0x2a
je 0x4397e8
cmp cx, 0x3f
je 0x4397e8
cmp cx, 0x22
je 0x4397e8
cmp cx, 0x3c
je 0x4397e8
cmp cx, 0x3e
je 0x4397e8
cmp cx, 0x7c
je 0x4397e8
cmp cx, 0x2f
je 0x4397e8
inc dword [ebp - 0x14]
inc esi
inc esi
cmp dword [ebp - 0x14], edx
jl 0x43981b
cmp edx, 4
jge 0x439875
cmp edx, 1
jle 0x4397e8
movzx ecx, bx
cmp cx, 0x3a
jne 0x4397e8
cmp edx, 2
jl 0x439887
movzx ecx, bx
cmp cx, 0x3a
jne 0x4397e8
cmp edx, 1
jle 0x4398b8
mov ecx, dword [0x480380]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x480384]
mov dword [ebp - 0x14], ecx
mov ax, word [eax]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4397e8
lea ecx, [ebp - 0x38]
call fcn.00417ba5
push dword [edi]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x439902
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.0040f623
lea ecx, [ebp - 0x38]
call fcn.00418368
cmp eax, esi
je 0x43990f
cmp eax, 0x50
je 0x439902
cmp eax, 0xb7
je 0x439902
lea ecx, [ebp - 0x38]
call fcn.0041813c
jmp 0x4397e8
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.004382c8
test eax, eax
je 0x4398f5
mov eax, dword [0x49c290]
mov ecx, dword [edi]
shl eax, 0x14
cdq
push edx
push eax
push ecx
call fcn.0043bfe9
add esp, 0xc
test eax, eax
jne 0x439938
lea ecx, [ebp - 0x38]
call fcn.0041813c
mov eax, esi
jmp 0x4397ea
xor esi, esi
inc esi
jmp 0x439929
Function at 0x43993d
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x47d2c2
call fcn.0044b114
mov esi, ecx
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
xor edi, edi
cmp eax, 0x3001
jl 0x4399c2
mov eax, dword [0x49c218]
cmp dword [eax - 8], edi
je 0x4399c2
mov ecx, 0x49c1e0
call fcn.00440799
test eax, eax
je 0x4399c2
push 0x91
mov ecx, 0x49c250
mov dword [0x49c240], edi
call fcn.0040ec64
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax]
push 0x5002
push eax
call dword [ecx + 0x34]
mov esi, dword [esi + 0x7c]
mov eax, dword [esi]
push 3
push esi
call dword [eax + 0x1c]
xor eax, eax
jmp 0x439a84
call fcn.0043cffd
test eax, eax
je 0x439aa7
xor eax, eax
push 0x208
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00449bc0
add esp, 0xc
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
mov ebx, 0x6400000
lea eax, [ebp]
push ebx
push eax
call fcn.0043bfe9
add esp, 0xc
test eax, eax
je 0x439a1d
lea eax, [ebp]
push eax
mov ecx, 0x49c25c
call fcn.0040e910
jmp 0x439a65
push edi
push ebx
call fcn.0043cf12
movzx eax, ax
pop ecx
pop ecx
cmp ax, di
jne 0x439a4f
push 0x40
push 0x96
push 0xb4
push edi
call fcn.0042beee
add esp, 0x10
mov ecx, esi
call fcn.00439737
jmp 0x4399bb
movzx eax, ax
push eax
push str._c:_
push 0x49c25c
call fcn.00417af3
add esp, 0xc
cmp dword [esi + 0x7c], edi
je 0x439a75
mov esi, dword [esi + 0x7c]
mov eax, dword [esi]
push 1
push esi
call dword [eax + 0x44]
call fcn.00412a9f
mov ecx, eax
call fcn.00415655
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00449c3a
add ebp, 0x210
leave
ret
push edi
push 0x6400000
push dword [0x49c25c]
call fcn.0043bfe9
add esp, 0xc
test eax, eax
jne 0x439a75
push dword [0x49c25c]
lea eax, [ebp - 0x14]
push eax
call fcn.0043cb72
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.0040f6b8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040e8c0
lea ecx, [ebp - 0x10]
call fcn.0040bf88
mov eax, dword [0x49501c]
mov dword [ebp - 0x10], eax
push 0x64
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push 0xb5
push eax
mov byte [ebp - 4], 2
call fcn.0040f709
push 0x40
push 0x96
push dword [ebp - 0x10]
push edi
call fcn.0042bf8a
add esp, 0x20
mov ecx, esi
call fcn.00439737
lea ecx, [ebp - 0x10]
call fcn.0040bf88
lea ecx, [ebp - 0x14]
call fcn.0040bf88
jmp 0x4399bb
Function at 0x439c69
Capabilities:
Get common file path
Get disk information
Get program files directory

Disassembly:
push ebp
sub esp, 0xa08
lea ebp, [esp - 4]
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0xa08], eax
push 0x18
mov eax, 0x47d348
call fcn.0044b114
mov eax, dword [ebp + 0xa1c]
push 0x800
mov dword [ebp - 0x24], eax
xor edi, edi
lea eax, [ebp]
push edi
push eax
mov ebx, ecx
call fcn.00449bc0
add esp, 0xc
lea eax, [ebp]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea esi, [ebp]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
cmp word [ebp], di
je 0x439dfe
mov eax, dword [0x49501c]
mov dword [ebp - 0x14], eax
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x14]
push str._c:_
push eax
mov dword [ebp - 4], edi
call fcn.00417af3
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.0043781c
test eax, eax
je 0x439dde
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xa18]
jl 0x439dde
jg 0x439d24
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0xa14]
jbe 0x439dde
mov eax, dword [0x49501c]
mov dword [ebp - 0x10], eax
push 0x208
lea eax, [ebp + 0x800]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00449bc0
add esp, 0xc
push edi
push 0x26
lea eax, [ebp + 0x800]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x439da3
push str.360360safe
lea ecx, [ebp - 0x18]
call fcn.0041077d
push dword [ebp - 0x18]
lea eax, [ebp + 0x800]
push eax
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ax, word [esi]
mov word [ebp + 0x800], ax
lea eax, [ebp + 0x800]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e910
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040bf88
jmp 0x439dc7
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x10]
push 0x48038c
push eax
call fcn.00417af3
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x750]
call fcn.0040e8c0
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00439c31
test eax, eax
jne 0x439e25
lea ecx, [ebp - 0x10]
call fcn.0040bf88
push esi
call fcn.0044aa75
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x14]
lea esi, [esi + eax*2 + 2]
call fcn.0040bf88
cmp word [esi], di
jne 0x439cce
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.00449c3a
add ebp, 0xa0c
leave
ret 0xc
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
call fcn.0040e8c0
movzx esi, word [esi]
lea ecx, [ebp - 0x10]
call fcn.0040bf88
lea ecx, [ebp - 0x14]
call fcn.0040bf88
mov ax, si
jmp 0x439e00