joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48591d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0048094a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x48598c
cmp esi, dword [ebp - 4]
je 0x485987
cmp dword [ebp + 0xc], 0
je 0x485987
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x485964
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004859e6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x48598e
xor eax, eax
inc eax
jmp 0x48598e
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x485d35
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x485d80
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00485eab
test al, al
jne 0x485d7a
sub edx, 2
cmp edx, edi
jne 0x485d60
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x485da2
lea eax, [edi + 2]
cmp edx, eax
je 0x485da2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00485c81
add esp, 0x10
jmp 0x485e9c
push esi
lea ecx, [ebp - 0x255]
call fcn.00485eab
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x485de5
push dword [ebp - 0x25c]
jmp 0x485d92
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x485e22
cmp word [ebp - 0x226], 0
je 0x485e43
cmp word [ebp - 0x226], ax
jne 0x485e22
cmp word [ebp - 0x224], 0
je 0x485e43
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00485c81
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x485e8f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x485dfc
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x485e77
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x485e9c
push 0x485ed0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047cc00
add esp, 0x10
jmp 0x485e6c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bb2d
leave
ret
Function at 0x486ee7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x486f84
push ebx
push esi
call fcn.00486fd5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00486deb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x486f31
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x486f83
push edi
push eax
call fcn.004331a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x486f51
call fcn.0044ddb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x486f82
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00486deb
add esp, 0x20
test eax, eax
jne 0x486f70
push edi
call fcn.0044ddb0
jmp 0x486f78
push ebx
call fcn.0044ddb0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x486f87
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x486f98
pop esi
ret
push ebx
push edi
push esi
call fcn.00486fd5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004331a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x486fc0
push ebx
push esi
push edi
call fcn.00463080
add esp, 0xc
push 0
call fcn.0044ddb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x487017
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00487282

Function at 0x48952c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x48956f
call fcn.0047403a
mov dword [eax], 0xf
call fcn.00474027
mov dword [eax], 0xd
call fcn.00475100
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bb2d
leave
ret
test eax, eax
jne 0x489576
inc eax
jmp 0x489563
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x489561
xor eax, eax
cmp ecx, 1
setne al
jmp 0x489563
Function at 0x490290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x418
mov edi, dword [ebp + 8]
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x418], ecx
xor esi, esi
mov dword [ebp - 0x41c], esi
lea ebx, [ebp - 0x410]
push 0x400
push 0xff
push ebx
call fcn.00463600
add esp, 0xc
mov dword [ebx - 4], esi
push 0x60
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test eax, eax
jne 0x4902f8
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test eax, eax
je 0x4903be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4903b1
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x4903b1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x420], 0x8007000e
cmp eax, 0xffffffff
je 0x490357
mov edi, eax
inc eax
js 0x490403
cmp edi, 0x200
jae 0x4903c9
mov dword [ebp - 0x414], ebx
test ebx, ebx
jne 0x49039a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x414]
mov edi, dword [ebp - 0x420]
lea eax, [ebp - 0x410]
cmp esi, eax
jne 0x49038d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bb2d
mov eax, edi
add esp, 0x418
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea ecx, [ebp - 0x414]
call fcn.00490a50
jmp 0x490374
push edi
push ebx
push edi
push dword [ebp - 0x424]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4903e0
call fcn.00490050
mov dword [ebp - 0x420], eax
jmp 0x490357
xor esi, esi
call fcn.00490050
mov edi, eax
jmp 0x49036a
add eax, eax
lea ebx, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.00490780
mov ebx, dword [ebx]
jmp 0x490353
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x414]
mov word [ecx + eax*2], 0
lea ecx, [ebp - 0x41c]
push edx
push dword [ebp - 0x414]
call fcn.00490410
jmp 0x4903b6
push 0x80070216
call fcn.004ab480
int3
Function at 0x49c690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x429660
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ecx + 4], 1
jne 0x49c701
movzx edi, byte [ebp + 0x18]
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [0x4e925c]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x2c]
push esi
call fcn.00448910
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x4f72d0
call fcn.00449390
mov esi, eax
mov edi, dword [ebp - 0x2c]
cmp edi, 0x4f71e0
je 0x49c754
xor eax, eax
dec eax
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x49c754
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
call dword [0x4e925c]
mov ecx, edi
call ebx
xor eax, eax
dec eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [esi]
mov dl, byte [ebp + 0x18]
xor dl, 1
movzx edx, dl
mov edi, dword [ecx + edx*4 + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, edi
call dword [0x4e925c]
mov ecx, esi
lea eax, [ebp - 0x2c]
push eax
call edi
movzx eax, byte [ebp - 0x21]
mov edx, eax
test al, al
jns 0x49c78f
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
test edx, edx
je 0x49c828
test al, al
lea eax, [ebp - 0x2c]
cmovns ecx, eax
mov dword [ebp - 0x30], ecx
jmp 0x49c805
movzx edi, al
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x4e925c]
mov dword [ebp - 0x10], 1
mov ecx, ebx
push edi
call esi
xor ecx, ecx
cmp eax, 0xffffffff
je 0x49c7d7
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
jmp 0x49c7e3
mov dword [ebp - 0x20], 0
movzx eax, byte [ebp - 0x21]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
mov esi, eax
test al, al
jns 0x49c7f8
mov esi, dword [ebp - 0x28]
mov edx, ecx
add edx, esi
mov esi, dword [ebp - 0x30]
inc esi
mov dword [ebp - 0x30], esi
cmp esi, edx
je 0x49c828
cmp dword [ebp - 0x20], 0
je 0x49c7dc
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [edx + 0x1c]
je 0x49c7a7
lea edx, [ecx + 1]
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x18], edx
mov byte [ecx], al
jmp 0x49c7e3
shr al, 7
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov dword [edx], esi
test al, al
je 0x49c840
push ecx
call fcn.00459b3c
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x49c6f7
Function at 0x4ab180
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4f7af0]
mov ecx, dword [0x4f269c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x4ab1e9
push 0x4f7af0
call fcn.00459bb7
add esp, 4
cmp dword [0x4f7af0], 0xffffffff
jne 0x4ab1e9
xorps xmm0, xmm0
movups xmmword [0x4f7adc], xmm0
movups xmmword [0x4f7acc], xmm0
mov dword [0x4f7aec], 0
push 0x4f7acc
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x4f7af0
call fcn.00459c2d
add esp, 4
pop ebp
ret
Function at 0x4aba40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x4abaa6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4abaae
mov bl, 1
cmp byte [ebp + 0xc], 0
je 0x4aba90
cmp byte [esi + 4], 0
je 0x4abaaa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bb2d
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esi]
jmp 0x4aba64
mov eax, dword [esi]
jmp 0x4aba84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x4abad4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4abad8
xor ebx, ebx
jmp 0x4aba90
mov eax, dword [esi]
jmp 0x4abac0
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x4abafa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x4aba90
mov eax, dword [esi]
jmp 0x4abaeb
Function at 0x4aca60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [esp + 0x98], eax
mov dword [esp + 0x10], 0xa
mov eax, dword [0x4e0908]
mov al, byte [eax + 0xa]
test al, al
jne 0x4acc70
xor edi, edi
dec edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
lea esi, [esp + 0x40]
mov ecx, ebx
push esi
call fcn.004b7620
cmp byte [esi + 0xb], 0
js 0x4acb3e
mov eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
movq xmm0, qword [esp + 0x40]
movq qword [esp + 0x88], xmm0
lea esi, [esp + 0x40]
mov ecx, esi
call fcn.00430340
lea ebx, [esp + 0x7c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.004b77b0
pxor xmm0, xmm0
movq qword [esi + 0x34], xmm0
pxor xmm0, xmm0
movdqu xmmword [esi + 0x24], xmm0
mov dword [esi], 0x3c
mov dword [esi + 4], 0x40
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esi + 8], eax
mov dword [esi + 0xc], str.runas
cmp byte [esp + 0x93], 0
js 0x4acb54
lea ecx, [esp + 0x88]
jmp 0x4acb5b
lea ecx, [esp + 0x88]
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.00429fe0
jmp 0x4acadc
mov ecx, dword [esp + 0x88]
mov al, byte [ebp + 0x10]
mov dword [esp + 0x50], ecx
cmp byte [esp + 0x87], 0
jns 0x4acb70
mov ebx, dword [esp + 0x7c]
mov edi, dword [ebp + 8]
mov dword [esp + 0x54], ebx
xor ebx, ebx
mov dword [esp + 0x58], ebx
xor al, 1
movzx eax, al
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4acbef
cmp byte [ebp + 0x14], 0
je 0x4acbeb
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x10]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
mov edi, esp
push 0x201
push str....._baseprocesslaunch_win.cc
push str.LaunchElevatedProcess
push edi
call fcn.0044c8f0
add esp, 0x10
mov ecx, ebx
push 0
push edi
mov edi, dword [ebp + 8]
call fcn.00434d90
push 0xffffffffffffffff
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, ebx
call fcn.00434e00
mov ebx, dword [esp + 0x78]
mov ecx, edi
push ebx
call fcn.0042c040
cmp byte [esp + 0x87], 0
jns 0x4acc0d
push dword [esp + 0x7c]
call fcn.00459b3c
add esp, 4
cmp byte [esp + 0x93], 0
jns 0x4acc26
push dword [esp + 0x88]
call fcn.00459b3c
add esp, 4
mov dword [esp + 0x10], 0xa
mov eax, dword [0x4e0908]
mov al, byte [eax + 0xa]
test al, al
jne 0x4acc52
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.0045bb2d
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, al
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x10]
push 2
push esi
push ecx
push eax
call fcn.004ac6f0
add esp, 0x10
jmp 0x4acc3a
movzx eax, al
lea ecx, [esp + 0x40]
mov dword [ecx], str.LaunchElevatedProcess
lea edx, [esp + 0x10]
push 1
push ecx
push edx
push eax
call fcn.004abb00
add esp, 0x10
jmp 0x4aca98
Function at 0x4ad4d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x233
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.0044c8f0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00434d90
cmp byte [edi + 0xb], 0
jns 0x4ad52c
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
mov ecx, esi
call fcn.00434e00
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.0045bb2d
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ad560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.00463600
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec esi
cmp esi, 0x102
ja 0x4ad5e3
push ebx
call fcn.0047e4dc
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.0044c930
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.00430d40
mov ecx, dword [ebp + 8]
push ebx
call fcn.004303c0
mov ecx, ebx
call fcn.00430340
mov ecx, edi
call fcn.00430340
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bb2d
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ad610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.00463600
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x4dd0d0]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4ad68c
cmp word [ebp - 0x214], 0
je 0x4ad68c
push edi
call fcn.0047e4dc
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.0044c930
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0045bb2d
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
xor eax, eax
dec eax
lea edi, [ebp - 0x220]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.00430320
push edi
call fcn.004ad560
add esp, 4
mov ecx, esi
test al, al
jne 0x4ad6c1
push 3
push 0x4dd132
call fcn.0044c930
jmp 0x4ad6c7
push edi
call fcn.004b72b0
lea ecx, [ebp - 0x220]
call fcn.00430340
jmp 0x4ad676
Function at 0x4ad6e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [esp + 0x258], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x50]
push 0x444
push str....._base_files_file_util_win.cc
push 0x4dd13a
push ebx
call fcn.0044c8f0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00434d90
lea esi, [esp + 0x52]
push 0x206
push 0xff
push esi
call fcn.00463600
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x4ad7a6
push ebx
call fcn.0047e4dc
add esp, 4
lea edi, [esp + 8]
mov ecx, edi
push eax
push ebx
call fcn.0044c930
lea ebx, [esp + 0x14]
mov ecx, edi
push ebx
call fcn.00430d40
mov ecx, dword [ebp + 8]
push ebx
call fcn.004303c0
mov ecx, ebx
call fcn.00430340
mov ecx, edi
call fcn.00430340
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x20]
call fcn.00434e00
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.0045bb2d
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ad8a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, dword [ebp + 0xc]
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x4d
push str....._base_file_version_info_win.cc
push str.CreateFileVersionInfoWin
push ebx
call fcn.0044c8f0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.00434d90
mov dword [esp + 0xc], 0xffffffff
cmp byte [esi + 0xb], 0
jns 0x4ad903
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4ad9ab
mov ebx, eax
xor eax, eax
dec eax
lea edi, [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea eax, [esp + 0x54]
mov byte [eax], 0
mov ecx, edi
push eax
push ebx
call fcn.0042c170
push dword [edi]
push ebx
push dword [esp + 0x14]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
xor ebx, ebx
test eax, eax
je 0x4ad97d
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x50]
mov dword [ecx], 0xffffffff
push ecx
lea ecx, [esp + 0x58]
push ecx
push str.VarFileInfoTranslation
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4ad97d
mov esi, dword [esp + 0x54]
test esi, esi
jne 0x4ad9b6
mov esi, dword [ebp + 8]
mov dword [esi], ebx
lea ecx, [esp + 0x54]
mov dword [ecx], edi
call fcn.00447d10
lea ecx, [esp + 0x20]
call fcn.00434e00
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0045bb2d
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
mov dword [esi], 0
jmp 0x4ad98d
push 0x1c
call fcn.00459b0c
add esp, 4
mov ebx, eax
movzx eax, word [esi + 2]
movzx edx, word [esi]
mov ecx, ebx
push eax
push edx
push edi
call fcn.004ad9e0
jmp 0x4ad97d