joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b571b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4e9154]
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 ebx, ecx
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4241c6
cmp eax, 0xffffffff
je 0x4241c6
push 0x200
call fcn.0043e7f8
mov esi, eax
add esp, 4
test esi, esi
je 0x4240b9
push 0x200
push 0
push esi
call fcn.00481c80
add esp, 0xc
jmp 0x4240bb
xor esi, esi
push 0x200
push 0
push esi
mov dword [ebx + 0x48], esi
call fcn.00481c80
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x200
push dword [ebx + 0x48]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4241e4
call fcn.004417a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4241c6
push 0x95
push str.d:jenkins.jenkinsworkspacepay_groupduplicate_file_cleanduplicate_file_clean_clientduplicate_file_mgrduplicate_file_mgr_src_file_systemmft.cc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.004070c0
push 3
push 0x4bfab8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004070c0
mov byte [ebp - 4], 1
call fcn.004417a0
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0x4c
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00408fc0
mov esi, eax
push str._error_
push esi
mov byte [ebp - 4], 2
call fcn.00409510
add esp, 8
mov ecx, esi
push ebx
call fcn.00423400
mov esi, eax
push str.__read_boot_block_failed
push esi
call fcn.00409510
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.00409720
lea ecx, [ebp - 0x2c]
call fcn.00405a20
lea ecx, [ebp - 0x44]
call fcn.00405a20
xor al, al
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.0043e83b
mov esp, ebp
pop ebp
ret
mov al, 1
jmp 0x4241c8
Function at 0x424fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e9154]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, dword [ecx + 0x48]
mov dword [ebp - 0x20], eax
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], ecx
movzx eax, byte [edi + 0xd]
cdq
mov esi, eax
mov dword [ebp - 0xc], 0
movzx eax, word [edi + 0xb]
mov ecx, edx
cdq
push edx
push eax
push ecx
push esi
call fcn.0043eed0
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push eax
call fcn.0043eed0
movzx ecx, byte [edi + 0xd]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edx
push eax
movzx eax, word [edi + 0xb]
imul ecx, eax
mov eax, dword [ebp - 0x24]
imul ecx, dword [ebp + 0x10]
push ecx
push dword [ebp - 0x20]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e83b
mov esp, ebp
pop ebp
ret 0x10

Function at 0x425630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e9154]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0xc], 0
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
mov esi, dword [ebx + 0x48]
push dword [ebp + 8]
movups xmmword [ebp - 0x1c], xmm0
movzx eax, word [esi + 0xb]
cdq
push edx
push eax
call fcn.0043eed0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edx
push eax
movzx eax, word [esi + 0xb]
imul eax, dword [ebp + 0x10]
push eax
push edi
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e83b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x429f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4e9154]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x429fc7
test ebx, ebx
je 0x429fc7
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x429fc7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x429fc7
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x429fc1
push esi
push ebx
push edi
call fcn.00481180
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x429fc1
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e83b
mov esp, ebp
pop ebp
ret

Function at 0x429fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a039
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42a039
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x42a02a
cmp esi, edx
jae 0x42a039
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x42a018
cmp esi, edx
jae 0x42a039
cmp word [esi], 0
je 0x42a039
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x430a90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e9154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov al, byte [ebp + 8]
mov byte [edi + 0x80], al
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x84], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00438dd0
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.print_same_info
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
cmp dword [ebp - 0x14], 8
mov byte [edi + 0x168], al
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.print_deleted_info
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
mov ecx, edi
setne al
mov byte [edi + 0x169], al
call fcn.00430710
test al, al
jne 0x430b42
mov byte [ebp - 0x29], al
jmp 0x430b69
cmp byte [ebp + 8], 0
je 0x430b65
lea eax, [ebp - 0x3c]
push eax
call fcn.00417430
mov edx, eax
sub esp, 0xc
mov eax, esp
mov ecx, edi
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
call fcn.00434c80
mov byte [ebp - 0x29], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x430b9f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430b95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430bbe
push edx
push ecx
call fcn.0043e828
add esp, 8
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043e83b
mov esp, ebp
pop ebp
ret 8
call fcn.004850e9
int3
Function at 0x4375a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x4e9154]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x4bc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x3e8
push 0
push eax
mov dword [ebp - 0x4c4], esi
mov dword [ebp - 0x4c0], ebx
call fcn.00481c80
push 0xc8
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.00481c80
add esp, 0x18
test esi, esi
je 0x4376a0
test ebx, ebx
je 0x4376a0
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4376a0
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x4376a0
xor ecx, ecx
movzx edx, ax
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x43768b
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 0x4c8], eax
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x4c4]
call fcn.00489ab7
add esp, 0xc
test eax, eax
je 0x4376b3
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x437631
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x437709
cmp edi, 0x7fffffff
ja 0x437700
mov ecx, ebx
mov esi, 0x7ffffffe
lea ebx, [ebp - 0xc]
sub esi, edi
mov edx, edi
sub ebx, ecx
nop
lea eax, [esi + edx]
test eax, eax
je 0x4376eb
movzx eax, word [ebx + ecx]
test ax, ax
je 0x4376eb
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4376d0
mov ebx, dword [ebp - 0x4c0]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
jmp 0x437709
test edi, edi
je 0x437709
xor eax, eax
mov word [ebx], ax
xor ecx, ecx
test edi, edi
je 0x437717
cmp edi, 0x7fffffff
jbe 0x43771c
mov ecx, 0x80070057
test ecx, ecx
js 0x43774e
mov esi, edi
mov eax, ebx
test edi, edi
je 0x437736
cmp word [eax], 0
je 0x437736
add eax, 2
sub esi, 1
jne 0x437728
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x437750
xor esi, esi
test ecx, ecx
js 0x4377a6
mov edx, edi
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x437799
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7ffffffe
add esi, eax
mov eax, dword [ebp - 0x4c8]
add eax, eax
sub eax, ecx
add edi, eax
nop word [eax + eax]
test esi, esi
je 0x437799
movzx eax, word [edi + ecx]
test ax, ax
je 0x437799
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x437780
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
Function at 0x437860
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b77c3
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4e9154]
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 edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov edx, 2
mul edx
push 0x4ef8e0
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x2c], ecx
call fcn.0043f076
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
je 0x437979
push dword [ebp - 0x2c]
push ebx
push eax
call fcn.00481c80
add esp, 0xc
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
mov eax, dword [ebp - 0x20]
je 0x437960
mov edi, eax
cmp word [eax], bx
je 0x43795d
cmp ebx, esi
je 0x43792a
mov ax, word [edi]
mov word [esi], ax
add esi, 2
mov dword [ebp - 0x18], esi
jmp 0x43793a
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.00436b60
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x437940
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], cx
jne 0x437918
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
push eax
call fcn.0043e836
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov dword [edi], ecx
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
jmp 0x437a4a
call fcn.004417a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x437a36
push 0x8b
push str.d:jenkins.jenkinsworkspacepay_groupduplicate_file_cleanduplicate_file_clean_clientduplicate_file_mgrduplicate_file_mgr_srcutils.cc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], al
call fcn.004070c0
push 3
push 0x4bfab8
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.004070c0
mov byte [ebp - 4], 2
call fcn.004417a0
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x8c
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00408fc0
mov esi, eax
push str.new_fail
push esi
mov byte [ebp - 4], 3
call fcn.00409510
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.00409720
lea ecx, [ebp - 0x44]
call fcn.00405a20
lea ecx, [ebp - 0x5c]
call fcn.00405a20
mov edi, dword [ebp - 0x24]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00412730
mov eax, edi
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.0043e83b
mov esp, ebp
pop ebp
ret
Function at 0x437a90
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4e9154]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x437ab9
mov eax, dword [esi]
mov byte [eax], 0
xor eax, eax
mov word [ebp - 0x20c], ax
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x437acd
jmp dword [eax*4 + 0x437cb4]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xfde9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00440190
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x437b2f
mov ecx, esi
call fcn.00405a20
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x22c]
call fcn.00405a20
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x26
jmp 0x437c91
cmp dword [0x4e90ec], 0
je 0x437c46
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x4c1658
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x437c3c
xorps xmm0, xmm0
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x238]
push ecx
movups xmmword [ebp - 0x238], xmm0
movups xmmword [ebp - 0x228], xmm0
call eax
mov ax, word [ebp - 0x238]
cmp ax, 9
je 0x437c32
cmp ax, 6
je 0x437c32
cmp ax, 0xc
je 0x437c32
push str.IsWow64Process2
push 0x4c1690
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x437c29
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x437c29
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x210], cx
sete al
mov dword [0x4ef5ac], eax
jmp 0x437c3c
xor eax, eax
mov dword [0x4ef5ac], eax
jmp 0x437c3c
mov dword [0x4ef5ac], 1
mov dword [0x4e90ec], 0
cmp dword [0x4ef5ac], 0
lea eax, [ebp - 0x20c]
je 0x437b52
push 0x104
push eax
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne case.default.0x437acd
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns case.default.0x437acd
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
Function at 0x437ad4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4e9154]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x437ab9
mov eax, dword [esi]
mov byte [eax], 0
xor eax, eax
mov word [ebp - 0x20c], ax
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x437acd
jmp dword [eax*4 + 0x437cb4]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xfde9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00440190
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x437b2f
mov ecx, esi
call fcn.00405a20
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x22c]
call fcn.00405a20
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x26
jmp 0x437c91
cmp dword [0x4e90ec], 0
je 0x437c46
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x4c1658
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x437c3c
xorps xmm0, xmm0
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x238]
push ecx
movups xmmword [ebp - 0x238], xmm0
movups xmmword [ebp - 0x228], xmm0
call eax
mov ax, word [ebp - 0x238]
cmp ax, 9
je 0x437c32
cmp ax, 6
je 0x437c32
cmp ax, 0xc
je 0x437c32
push str.IsWow64Process2
push 0x4c1690
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x437c29
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x437c29
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x210], cx
sete al
mov dword [0x4ef5ac], eax
jmp 0x437c3c
xor eax, eax
mov dword [0x4ef5ac], eax
jmp 0x437c3c
mov dword [0x4ef5ac], 1
mov dword [0x4e90ec], 0
cmp dword [0x4ef5ac], 0
lea eax, [ebp - 0x20c]
je 0x437b52
push 0x104
push eax
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne case.default.0x437acd
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns case.default.0x437acd
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
Function at 0x437b4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4e9154]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x437ab9
mov eax, dword [esi]
mov byte [eax], 0
xor eax, eax
mov word [ebp - 0x20c], ax
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x437acd
jmp dword [eax*4 + 0x437cb4]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xfde9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00440190
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x437b2f
mov ecx, esi
call fcn.00405a20
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x22c]
call fcn.00405a20
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x26
jmp 0x437c91
cmp dword [0x4e90ec], 0
je 0x437c46
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x4c1658
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x437c3c
xorps xmm0, xmm0
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x238]
push ecx
movups xmmword [ebp - 0x238], xmm0
movups xmmword [ebp - 0x228], xmm0
call eax
mov ax, word [ebp - 0x238]
cmp ax, 9
je 0x437c32
cmp ax, 6
je 0x437c32
cmp ax, 0xc
je 0x437c32
push str.IsWow64Process2
push 0x4c1690
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x437c29
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x437c29
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x210], cx
sete al
mov dword [0x4ef5ac], eax
jmp 0x437c3c
xor eax, eax
mov dword [0x4ef5ac], eax
jmp 0x437c3c
mov dword [0x4ef5ac], 1
mov dword [0x4e90ec], 0
cmp dword [0x4ef5ac], 0
lea eax, [ebp - 0x20c]
je 0x437b52
push 0x104
push eax
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne case.default.0x437acd
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e83b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns case.default.0x437acd
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0043e83b
mov esp, ebp
pop ebp
ret