joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022b00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042fc8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10062070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100119c0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10023f60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100430a6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 7
xor eax, eax
push 0x100516d4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1000dd10
mov dword [ebp - 4], 0
mov eax, dword [0x10065d08]
test al, 1
jne 0x10023fdf
or eax, 1
mov dword [0x10065d08], eax
mov byte [ebp - 4], 1
call fcn.10020e70
push 0x10045920
call fcn.1003daa7
add esp, 4
mov byte [ebp - 4], 0
cmp dword [0x10065d04], 8
mov edx, 0x10065cf0
cmovae edx, dword [0x10065cf0]
cmp word [edx], 0
jne 0x10023ffc
xor ecx, ecx
jmp 0x10024010
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10024001
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1000b900
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp - 0x14], 8
jb 0x10024043
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret
Function at 0x10024130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [0x10065d58], 0x40000000
je 0x1002414f
push dword [ebp + 8]
call fcn.100240f0
add esp, 4
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret

Function at 0x10024170
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x10065d5c]
test ecx, ecx
je 0x100242e2
cmp eax, ecx
jbe 0x100242e2
mov edx, dword [0x10065d60]
push ebx
push esi
test edx, edx
je 0x1002428b
cmp edx, ecx
jae 0x1002428b
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
sub eax, edx
push eax
push edi
call esi
push dword [0x10065d60]
call fcn.1003d7aa
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100241e2
push 2
push eax
push eax
push edi
call esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10065d60]
xor esi, esi
test eax, eax
je 0x10024214
lea ecx, [ecx]
push 0
lea ecx, [ebp - 4]
push ecx
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10024264
add esi, dword [ebp - 4]
mov eax, dword [0x10065d60]
cmp esi, eax
jb 0x100241f0
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push edi
call eax
push 2
lea edx, [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], 0xfeff
call fcn.10024130
add esp, 4
lea eax, [ebp - 4]
push 0
push eax
push dword [0x10065d60]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp esi, dword [0x10065d60]
jae 0x10024214
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
push 2
push 0
push 0
push edi
call eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test dword [0x10065d58], 0x40000000
mov dword [ebp - 4], 0xfeff
je 0x100242bf
mov al, byte [ebp - 3]
mov byte [ebp - 4], 0xa5
test al, al
je 0x100242bf
cmp al, 0x5a
je 0x100242bf
xor al, 0x5a
mov byte [ebp - 3], al
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100242f0
Capabilities:
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x10065d50], 0
push edi
mov edi, edx
je 0x10024413
push esi
push 0x80
push 0x10065d8c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x10065d8c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10024412
mov ecx, dword [0x10065d58]
and ecx, 4
test cl, 7
je 0x10024354
mov ecx, esi
call fcn.10024170
push ebx
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100243b2
test dword [0x10065d58], 0x40000000
mov dword [ebp - 4], 0xfeff
je 0x1002439c
mov al, byte [ebp - 3]
mov byte [ebp - 4], 0xa5
test al, al
je 0x1002439c
cmp al, 0x5a
je 0x1002439c
xor al, 0x5a
mov byte [ebp - 3], al
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 8], 0
call ebx
test edi, edi
jne 0x100243ba
xor ecx, ecx
jmp 0x100243d1
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100243c0
sub ecx, edx
sar ecx, 1
add ecx, ecx
test dword [0x10065d58], 0x40000000
je 0x100243f8
push ecx
mov edx, edi
mov ecx, esi
call fcn.100240f0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push ecx
push edi
push esi
mov dword [ebp - 8], 0
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100298a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
test eax, eax
je 0x10029979
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10029979
push edi
push 0x100
call fcn.1003d7aa
mov edx, dword [ebp + 0xc]
mov edi, eax
push edi
call fcn.10029980
add esp, 8
test eax, eax
jne 0x100298e5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push ebx
xor ebx, ebx
xor ecx, ecx
test eax, eax
jle 0x1002995d
sub dword [ebp - 4], esi
mov dword [ebp - 8], eax
inc ebx
and ebx, 0x800000ff
jns 0x10029908
dec ebx
or ebx, 0xffffff00
inc ebx
mov dl, byte [ebx + edi]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x10029920
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ecx + edi]
mov byte [ebx + edi], al
mov dword [ebp - 0x10], ecx
mov byte [ecx + edi], dl
movzx ecx, byte [ebx + edi]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x10029946
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ecx + edi]
mov ecx, dword [ebp - 4]
inc esi
xor al, byte [ecx + esi - 1]
dec dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov byte [esi - 1], al
jne 0x100298f7
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
push edi
mov dword [eax], edx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10029980
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov ecx, edx
xor eax, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x100299f4
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x10029995
push ebx
push edi
mov dword [ebp - 4], 0
xor edi, edi
jmp 0x100299b0
mov eax, edi
cdq
idiv ecx
mov bl, byte [edi + esi]
movzx ecx, bl
movzx eax, byte [edx + str._______UDPARC4KEYFORHARDKORE1.0.0PACKET1234567890Talkwithfriends_family_orteammatesoverafastandclearconnectionAbilitytousetextchatforanyonewithoutamicrophoneNativeclientandserversupportforall3majorplatformsAutomaticmicrophonevolumenormalizationAd]
add eax, dword [ebp - 4]
add ecx, eax
and ecx, 0x800000ff
jns 0x100299d7
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov dword [ebp - 4], ecx
mov byte [ecx + esi], bl
mov ecx, dword [ebp - 8]
cmp edi, 0x100
jl 0x100299b0
pop edi
or eax, 0xffffffff
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002ab60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SoftwareiSafe
push 0x80000002
mov dword [ebp - 8], 1
xor bl, bl
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002abcb
push edi
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.guid
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1002abd9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1003d966
mov esp, ebp
pop ebp
ret
Function at 0x1002afb0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043deb
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.1003e460
mov eax, dword [0x10062070]
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, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1018]
push eax
push 0
push esi
push dword [edi]
mov dword [ebp - 0x1018], 1
mov dword [ebp - 0x1014], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x1002b19d
mov ecx, dword [ebp - 0x1018]
cmp ecx, 1
jne 0x1002b0a5
cmp word [ebp - 0x810], ax
jne 0x1002b072
xor ecx, ecx
push ecx
lea eax, [ebp - 0x810]
push eax
mov ecx, ebx
call fcn.1000dd10
mov eax, edi
jmp 0x1002b19d
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
jmp 0x1002b080
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002b080
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
mov ecx, ebx
call fcn.1000dd10
mov eax, edi
jmp 0x1002b19d
cmp ecx, 2
jne 0x1002b198
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1030]
call fcn.1000de10
lea edx, [ebp - 0x1030]
lea ecx, [ebp - 0x1048]
mov dword [ebp - 4], 0
call fcn.1002abf0
cmp dword [eax + 0x14], 8
jb 0x1002b0e0
mov eax, dword [eax]
push 0x400
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp - 0x1034], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x1014], eax
jb 0x1002b119
push dword [ebp - 0x1048]
call esi
mov eax, dword [ebp - 0x1014]
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x101c], 8
mov dword [ebp - 0x1034], 7
mov dword [ebp - 0x1038], 0
mov word [ebp - 0x1048], cx
jb 0x1002b157
push dword [ebp - 0x1030]
call esi
mov eax, dword [ebp - 0x1014]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x101c], 7
mov dword [ebp - 0x1020], 0
mov word [ebp - 0x1030], cx
test eax, eax
je 0x1002b191
cmp eax, 0x400
ja 0x1002b191
lea eax, [ebp - 0x1010]
push eax
mov ecx, ebx
call fcn.1000b3e0
mov eax, edi
jmp 0x1002b19d
mov eax, 0xea
jmp 0x1002b19d
mov eax, 0x3f4
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.1003d966
mov esp, ebp
pop ebp
ret 8

Function at 0x1002b310
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub edx, edi
sar edx, 1
mov esi, 0x811c9dc5
mov ecx, 0
add edx, edx
je 0x1002b341
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
xor esi, eax
inc ecx
imul esi, esi, 0x1000193
cmp ecx, edx
jb 0x1002b330
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x1002d590
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043cee
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10062070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.10029e20
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.10029e20
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x1002d6a4
test dl, 0x10
jne 0x1002d6a4
mov eax, 1
jmp 0x1002d6a6
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.10029cb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10031d80
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044388
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10062070]
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, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x10031e38
push str.Kernel32.dll
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, eax
test ebx, ebx
je 0x10031def
push str.Wow64DisableWow64FsRedirection
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10031dec
lea ecx, [ebp - 0x14]
push ecx
call eax
push ebx
call edi
cmp dword [esi + 0x14], 8
jb 0x10031df9
mov eax, dword [esi]
jmp 0x10031dfb
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Kernel32.dll
jne 0x10031e3f
call eax
mov esi, eax
test esi, esi
je 0x10031e38
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64RevertWow64FsRedirection
push esi
call eax
test eax, eax
je 0x10031e35
push dword [ebp - 0x14]
call eax
push esi
call edi
xor al, al
jmp 0x10031edd
call eax
mov ebx, eax
test ebx, ebx
je 0x10031e60
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64RevertWow64FsRedirection
push ebx
call eax
test eax, eax
je 0x10031e5d
push dword [ebp - 0x14]
call eax
push ebx
call edi
cmp dword [esi + 0x14], 8
jb 0x10031e6a
mov eax, dword [esi]
jmp 0x10031e6c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10031e38
cmp dword [esi + 0x14], 8
jb 0x10031e81
mov eax, dword [esi]
jmp 0x10031e83
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x10031e38
cmp dword [esi + 0x10], 3
jbe 0x10031e38
cmp dword [esi + 0x14], 8
jb 0x10031e9e
mov eax, dword [esi]
jmp 0x10031ea0
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
cmp eax, 1
je 0x10031e38
push esi
call fcn.10031f00
test al, al
je 0x10031e38
push esi
call fcn.10032590
test al, al
je 0x10031e38
push esi
call fcn.10032830
test al, al
je 0x10031e38
push esi
call fcn.10032930
test al, al
setne 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.1003d966
mov esp, ebp
pop ebp
ret 4
Function at 0x10032830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x22c], ax
cmp word [ebp - 0x214], ax
jne 0x100328a2
xor ecx, ecx
jmp 0x100328bf
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
jmp 0x100328b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100328b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x22c]
call fcn.1000dd10
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
cmp dword [esi + 0x14], 8
jb 0x100328ee
mov esi, dword [esi]
push dword [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
setne bl
cmp dword [ebp - 0x218], 8
jb 0x10032919
push dword [ebp - 0x22c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 8]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1003d966
mov esp, ebp
pop ebp
ret 4
Function at 0x10033a00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100444bb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x10062070]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x10062070]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push eax
push 0x10047900
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.1000dd10
push 0x104
lea eax, [esp + 0x48]
push eax
push 0
mov dword [esp + 0x26c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
cmp word [esp + 0x44], ax
jne 0x10033aae
xor ecx, ecx
jmp 0x10033ac4
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10033ab5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.1000dd10
cmp dword [esp + 0x3c], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10033ae9
push dword [esp + 0x28]
call esi
add esp, 4
xor eax, eax
mov word [esp + 0x28], ax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
call fcn.1000d6e0
cmp dword [esp + 0x20], 8
jb 0x10033b1e
push dword [esp + 0xc]
call esi
add esp, 4
push ecx
push dword [esp + 0x3c]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0x5c
call fcn.1002b4a0
inc eax
push eax
push 0
push edi
lea ecx, [esp + 0x34]
call fcn.1000b480
cmp dword [esp + 0x3c], 8
jb 0x10033b57
push dword [esp + 0x28]
call esi
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1003d966
mov esp, ebp
pop ebp
ret

Function at 0x10033c40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x10033c6c
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x18], 0
je 0x10033cb6
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
call fcn.10036d40
cmp dword [esi + 0x14], 8
jb 0x10033c89
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
cmp byte [ebp - 0xc], 0
je 0x10033ca4
lea ecx, [ebp - 8]
call fcn.10036c90
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x10033cbe
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1003d966
mov esp, ebp
pop ebp
ret