joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5be
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5b41f4]
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]
xor edx, edx
test eax, eax
mov ecx, 0x104
lea eax, [ebp - 0x414]
jne 0x40d61e
push eax
push edx
push edx
push 5
push edx
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 0x40d623
push ecx
push esi
push eax
call edi
cmp dword [ebp + 0x14], 0
je 0x40d63d
mov ecx, 0x104
lea eax, [ebp - 0x414]
push ecx
push eax
call fcn.0040d83a
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
mov eax, 0x104
push eax
je 0x40d686
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 0x40d696
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040d886
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x40d6c4
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
test ebx, ebx
je 0x40d6e4
cmp esi, ebx
je 0x40d6e4
mov eax, dword [ebp + 0x10]
mov ecx, 0x104
test eax, eax
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x40d6fa
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.004afcaa
leave
ret
Function at 0x40d905
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d94c
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call edi
mov ecx, dword [ebp + 0x10]
mov esi, eax
add ecx, 0xc
push ecx
jmp 0x40d97f
mov eax, dword [ebp + 0x18]
or eax, 0x10
push eax
push dword [ebp + 0x14]
push esi
push 0x80
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call edi
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0xc
push eax
call edi
cmp eax, esi
jge 0x40d99f
push 0x104
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
mov eax, dword [ebp + 0x10]
add eax, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d9a7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
test eax, eax
je 0x40da33
push 8
lea eax, [ebp - 0x14]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40d9ea
push 0x27
pop eax
mov word [ebp - 0x14], ax
push esi
call edi
lea eax, [esi + eax*2]
push eax
jmp 0x40da1f
inc ebx
cmp ebx, 3
jne 0x40da1e
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [edi + 2]
push edi
push eax
call fcn.004cc620
mov ax, word [ebp - 0x14]
add esp, 0xc
mov word [edi], ax
push edi
push esi
call dword [sym.imp.USER32.dll_CharPrevW]
mov edi, eax
cmp edi, esi
jne 0x40d9f3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004afcaa
leave
ret
Function at 0x40e0b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40e231
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x5c], edi
test edi, edi
je 0x40e227
lea ecx, [edi + 0x40]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40e227
push edi
push dword [ebp - 0x48]
push esi
call fcn.004cc0a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040dfc6
pop ecx
pop ecx
test eax, eax
je 0x40e223
push esi
call fcn.0040e4c2
mov ebx, eax
push esi
mov dword [ebp - 0x48], ebx
call fcn.0040e4a4
push ebx
mov dword [ebp - 0x58], eax
call fcn.0040e43b
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x54], ebx
je 0x40e17d
or dword [esi + 0xc], 0x48
jmp 0x40e180
or dword [esi], 0x48
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x44]
push eax
call edi
push esi
lea ebx, [ebx + eax*2]
add ebx, 2
call fcn.0040e44d
cmp dword [ebp - 0x58], 0
pop ecx
mov ecx, eax
mov dword [ebp - 0x4c], ecx
je 0x40e1b8
add ecx, dword [ebp - 0x54]
push ecx
call edi
mov ecx, dword [ebp - 0x54]
add ecx, 2
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x4c]
jmp 0x40e1ba
xor eax, eax
lea edx, [ecx + 3]
lea edi, [ebx + 3]
add edx, eax
add edi, ecx
and edx, 0xfffffffc
and edi, 0xfffffffc
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x58], edi
je 0x40e1d9
movzx ecx, word [esi + 0x10]
jmp 0x40e1dd
movzx ecx, word [esi + 8]
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x4c]
cmp ebx, eax
je 0x40e207
cmp word [ebp - 0x48], 0
jbe 0x40e207
mov eax, esi
sub eax, edx
add eax, edi
push eax
push edx
push dword [ebp - 0x58]
call fcn.004cc620
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
mov ax, word [ebp - 0x50]
lea edx, [ebp - 0x44]
mov word [ecx], ax
mov eax, dword [ebp - 0x54]
sub ebx, eax
push ebx
push edx
add eax, ecx
push eax
call fcn.004cc620
add esp, 0xc
mov eax, esi
jmp 0x40e230
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004afcaa
leave
ret
Function at 0x40e4d8
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
push ebx
push 0x561cac
push ebx
push ebx
call edi
test eax, eax
je 0x40e51f
push ebx
push str.TrayNotifyWnd
push ebx
push eax
call edi
test eax, eax
je 0x40e51f
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x40e5e1
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x40e585
mov eax, dword [ebp - 0x1c]
sub eax, ebx
je 0x40e569
sub eax, 1
je 0x40e550
sub eax, 1
je 0x40e569
sub eax, 1
jne 0x40e5e1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
lea eax, [ecx - 0x64]
mov dword [esi], eax
lea eax, [ecx - 0x10]
jmp 0x40e580
mov ecx, dword [ebp - 0xc]
lea eax, [ecx - 0x64]
mov dword [esi + 4], eax
lea eax, [ecx - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
jmp 0x40e5e1
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call edi
test eax, eax
je 0x40e5c3
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, dword [esi]
cmp eax, 0x96
jle 0x40e5b1
lea eax, [ecx - 0x96]
mov dword [esi], eax
mov ecx, dword [esi + 0xc]
mov eax, ecx
sub eax, dword [esi + 4]
cmp eax, 0x1e
jle 0x40e5e1
lea eax, [ecx - 0x1e]
jmp 0x40e5de
push ebx
push esi
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004afcaa
leave
ret
Function at 0x40f3ac
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5b82dc]
sub esp, 0x60
cmp dword [0x5b9e94], 2
push esi
jne 0x40f51c
cmp eax, 1
jle 0x40f51c
and dword [ebp - 4], 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
push ebx
mov dword [ebp - 8], eax
call edi
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040d81b
mov eax, dword [0x5b82e0]
mov dword [esp], 0x5b9f7c
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_CharPrevW]
lea eax, [ebx + eax*2]
push eax
push ebx
call esi
push 0x20
mov edx, eax
pop edi
movzx ecx, word [edx]
cmp cx, di
je 0x40f456
cmp ecx, 0x2d
je 0x40f456
cmp ecx, 0x2b
jne 0x40f475
push edx
push ebx
mov word [edx], di
call esi
mov ecx, dword [ebp - 4]
mov edx, eax
mov eax, ecx
inc ecx
mov dword [ebp - 4], ecx
cmp eax, 1
jle 0x40f444
dec dword [0x5b82e0]
jmp 0x40f444
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x5b82dc], edi
jle 0x40f4fc
mov eax, dword [0x5b82e0]
push str.__n__
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [edi*4 + 0x5bd040]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [edi*4 + 0x5bd040]
call esi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004cbf40
mov dword [ebp - 0x60], edi
xor eax, eax
lea edi, [ebp - 0x1c]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x5b9c88
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [ebp - 4]
inc edi
mov dword [ebp - 4], edi
cmp edi, dword [0x5b82dc]
jl 0x40f488
push ebx
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
push dword [0x5b82e4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x40f53a
xor esi, esi
test eax, eax
jle 0x40f538
push dword [esi*4 + 0x5bd040]
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc esi
cmp esi, dword [0x5b82dc]
jl 0x40f522
xor eax, eax
pop esi
leave
ret
Function at 0x410e9f
Capabilities:
Create directory
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp word [esi], bx
je 0x410f2a
push edi
push 0x5c
pop eax
push eax
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
test edi, edi
je 0x410ed5
push ebx
push esi
xor eax, eax
push ebx
mov word [edi], ax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x5c
pop eax
mov word [edi], ax
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5bd018], eax
pop edi
cmp esi, 0xffffffff
je 0x410f2a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x410f1e
push ebx
lea eax, [ebp + 8]
push eax
push 0x1a
push str._Notepad2__r_n
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x410f2c
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x41124a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 0x24]
push edi
mov dword [ebp - 0x26c], eax
call fcn.0040c727
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
add eax, 0x271a
push eax
lea eax, [ebp - 0x25c]
push 0x12c
push eax
call fcn.0040d3c5
lea eax, [ebp - 0x25c]
push eax
push 0xff
push dword [0x5c0b84]
call fcn.0040d1b9
add esp, 0x1c
xor edi, edi
inc edi
push 0
push edi
push 0x409
push dword [0x5c0b84]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push dword [0x5c0b84]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x5c0b84]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebp + 8], 0
je 0x41132e
push dword [ebp - 0x260]
push dword [ebp - 0x264]
push dword [ebp - 0x268]
push ebx
push dword [ebp + 0x10]
push esi
push dword [0x5c0b8c]
call fcn.004059c4
add esp, 0x1c
jmp 0x411348
push dword [ebp + 0x28]
push dword [ebp - 0x26c]
push dword [ebx]
push esi
push dword [0x5c0b8c]
call fcn.004060b8
add esp, 0x14
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41135a
test al, 1
jne 0x41135c
xor edi, edi
push 0
push 0
push 0x409
push dword [0x5c0b84]
mov dword [0x5b82f4], edi
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.0040c73d
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004afcaa
leave
ret
Function at 0x411f59
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1367c
call fcn.004afcc0
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x13620], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x13624], eax
mov ax, word [0x5b9f70]
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.004cbf40
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x61c]
add esp, 0xc
push 0x5b9f74
push eax
call esi
lea eax, [ebp - 0x1361c]
push 0x9800
push eax
call fcn.00419b35
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
pop ecx
test ebx, ebx
jne 0x41208e
push 0x5bcdc0
call edi
test eax, eax
je 0x41200b
push 0x5bcdc0
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x41208e
push 0x5c0520
call edi
test eax, eax
lea eax, [ebp - 0x20c]
je 0x412086
mov esi, 0x104
push esi
push eax
push 0x5c0520
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41208e
push esi
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
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 dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
jmp 0x41208e
push 0x5b9c88
push eax
call esi
push 0x58
pop esi
push esi
lea eax, [ebp - 0x1367c]
push 0
push eax
call fcn.004cbf40
mov eax, dword [ebp - 0x13620]
add esp, 0xc
mov dword [ebp - 0x13678], eax
test ebx, ebx
lea eax, [ebp - 0x1361c]
mov dword [ebp - 0x1367c], esi
mov dword [ebp - 0x13670], eax
mov esi, 0x5c04a0
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x1365c], 0x104
mov dword [ebp - 0x13660], eax
lea eax, [ebp - 0x20c]
cmovne eax, ebx
mov dword [ebp - 0x13648], 0x2005804
push esi
mov dword [ebp - 0x13650], eax
call edi
neg eax
sbb eax, eax
and eax, esi
mov dword [ebp - 0x13640], eax
lea eax, [ebp - 0x1367c]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x412135
push dword [ebp + 0x10]
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x13624]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
inc eax
jmp 0x412137
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004afcaa
leave
ret
Function at 0x412143
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1367c
call fcn.004afcc0
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x13620], eax
mov ax, word [0x5b9f78]
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push 0
push eax
mov dword [ebp - 0x13624], esi
call fcn.004cbf40
add esp, 0xc
lea eax, [ebp - 0x61c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
call esi
lea eax, [ebp - 0x1361c]
push 0x9800
push eax
call fcn.00419b35
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
pop ecx
push ebx
call edi
test eax, eax
je 0x4121cb
push ebx
jmp 0x412270
mov ebx, 0x5bcdc0
push ebx
call edi
test eax, eax
je 0x4121f3
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x412279
mov ebx, 0x5c0520
push ebx
call edi
test eax, eax
je 0x41226b
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x412279
push esi
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
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 dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
jmp 0x412279
push 0x5b9c88
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x58
pop esi
push esi
lea eax, [ebp - 0x1367c]
push 0
push eax
call fcn.004cbf40
mov eax, dword [ebp - 0x13620]
add esp, 0xc
mov dword [ebp - 0x13678], eax
lea eax, [ebp - 0x1361c]
mov dword [ebp - 0x13670], eax
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x1367c], esi
mov esi, 0x5c04a0
mov dword [ebp - 0x13660], eax
lea eax, [ebp - 0x20c]
push esi
mov dword [ebp - 0x13650], eax
mov dword [ebp - 0x1365c], 0x104
mov dword [ebp - 0x13648], 0x2000806
call edi
neg eax
sbb eax, eax
and eax, esi
mov dword [ebp - 0x13640], eax
lea eax, [ebp - 0x1367c]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x41231b
push dword [ebp + 0x10]
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x13624]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
inc eax
jmp 0x41231d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004afcaa
leave
ret
Function at 0x419232
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
or eax, 0xffffffff
cmp dword [0x5bd170], eax
je 0x419265
cmp dword [0x5bd174], eax
je 0x419265
cmp dword [0x5bd178], eax
je 0x419265
cmp dword [0x5bd17c], eax
jne 0x419296
push 3
lea eax, [ebp - 0xc]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0xc], 0x30
jne 0x419288
movaps xmm0, xmmword [0x52f990]
jmp 0x41928f
movaps xmm0, xmmword [0x52f980]
movups xmmword [0x5bd170], xmm0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004afcaa
leave
ret
Function at 0x41a761
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x10]
push edi
call ebx
test eax, eax
jne 0x41a78d
mov edi, dword [esi + 0xc]
push edi
call ebx
lea eax, [eax*2 + 0x2a]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push 0x5b3794
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call edi
push 0x3b
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x41a7ca
xor ecx, ecx
mov word [eax], cx
push esi
call ebx
cmp eax, 3
jge 0x41a7da
push 0x5b379c
push esi
call edi
push 0x4011
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2b4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004afcaa
leave
ret

Function at 0x41ec72
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
lea edx, [eax - 1]
mov dword [ebp - 4], esi
mov ebx, edx
mov dword [ebp + 0xc], edx
sar ebx, 1
push edi
cmp esi, ebx
jge 0x41ecdc
lea edx, [ecx + ecx]
mov ecx, dword [ebp + 8]
lea eax, [edx + 2]
imul eax, eax, 0xc
add ecx, eax
lea eax, [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp + 0x18]
call fcn.0041e4b8
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, edx
mov edx, dword [ebp + 8]
imul eax, ecx, 0xc
add eax, edx
push eax
call fcn.0041f322
imul edi, esi, 0xc
add esp, 4
mov esi, eax
add edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
cmp ecx, ebx
jl 0x41ec92
mov eax, dword [ebp + 0x10]
jmp 0x41ecdf
mov edx, dword [ebp + 8]
cmp ecx, ebx
jne 0x41ed05
test al, 1
jne 0x41ed05
imul eax, eax, 0xc
add eax, 0xfffffff4
add eax, edx
push eax
call fcn.0041f322
imul edi, esi, 0xc
add esp, 4
mov esi, eax
add edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0041f25a
add esp, 4
push eax
push dword [ebp - 4]
push esi
push edx
call fcn.0041edc5
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret