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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6230c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.wxObject.0
mov dword [esi + 4], ebx
mov dword [esp + 0x1c], ebx
call fcn.0047d5a0
mov cl, byte [esi + 8]
and al, 1
and cl, 0xe2
mov dword [esi + 0xc], ebx
xor cl, al
mov eax, 0x3ff00000
or cl, 2
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], eax
mov byte [esi + 8], cl
mov eax, 1
lea ecx, [esi + 0x84]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], 5
mov dword [esi + 0x7c], 0x6a
mov dword [esi + 0x80], eax
call fcn.00475e30
lea ecx, [esi + 0x8c]
mov byte [esp + 0x1c], 1
call fcn.004768e0
push 8
mov byte [esp + 0x20], 2
call fcn.0046a700
add esp, 4
lea edi, [esi + 0x94]
mov ecx, edi
push eax
call fcn.00415f80
mov dword [edi], vtable.wxBrush.0
push 0xa
mov byte [esp + 0x20], 3
call fcn.0046a9e0
add esp, 4
lea ecx, [esi + 0x9c]
push eax
call fcn.00415f20
push 0x10
mov byte [esp + 0x20], 4
call fcn.0046a9e0
add esp, 4
lea ecx, [esi + 0xb0]
push eax
call fcn.00415f20
lea edi, [esi + 0xc4]
mov byte [esp + 0x1c], 5
mov ecx, edi
call fcn.00415f10
mov dword [edi], vtable.wxFont.0
lea ecx, [esi + 0xcc]
mov byte [esp + 0x1c], 6
call fcn.0047d240
mov ecx, esi
mov byte [esp + 0x1c], 7
mov byte [esi + 0xd4], bl
mov dword [esi], vtable.wxDCBase.0
call fcn.0046dd00
mov ecx, esi
call fcn.00409350
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xdc], vtable.wxBitmap.0
mov al, byte [esi + 0xe4]
mov dword [esi], vtable.wxDC.0
and al, 0xfe
mov dword [esi + 0xd8], ebx
mov byte [esi + 0xe4], al
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
lea edi, [esi + 0x100]
mov dword [esp + 0x1c], 8
mov ecx, edi
call fcn.004b3a30
mov eax, dword [ebp + 8]
mov ecx, edi
push eax
mov byte [esp + 0x20], 9
mov dword [esi], vtable.wxPrinterDC.0
call fcn.004b3c50
mov cl, byte [esi + 8]
and cl, 0xf7
mov byte [esi + 8], cl
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e5540
mov cl, byte [esi + 8]
add esp, 4
cmp eax, ebx
mov dword [esi + 0xe8], eax
mov al, byte [esi + 0xe4]
setne dl
add dl, dl
or al, 1
xor dl, cl
mov byte [esi + 0xe4], al
and dl, 2
xor dl, cl
mov ecx, esi
mov byte [esi + 8], dl
call fcn.004e5350
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e5130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x623142
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.wxObject.0
mov dword [esi + 4], ebx
mov dword [esp + 0x1c], ebx
call fcn.0047d5a0
mov cl, byte [esi + 8]
and al, 1
and cl, 0xe2
mov dword [esi + 0xc], ebx
xor cl, al
mov eax, 0x3ff00000
or cl, 2
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], eax
mov byte [esi + 8], cl
mov eax, 1
lea ecx, [esi + 0x84]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], 5
mov dword [esi + 0x7c], 0x6a
mov dword [esi + 0x80], eax
call fcn.00475e30
lea ecx, [esi + 0x8c]
mov byte [esp + 0x1c], 1
call fcn.004768e0
push 8
mov byte [esp + 0x20], 2
call fcn.0046a700
add esp, 4
lea edi, [esi + 0x94]
mov ecx, edi
push eax
call fcn.00415f80
mov dword [edi], vtable.wxBrush.0
push 0xa
mov byte [esp + 0x20], 3
call fcn.0046a9e0
add esp, 4
lea ecx, [esi + 0x9c]
push eax
call fcn.00415f20
push 0x10
mov byte [esp + 0x20], 4
call fcn.0046a9e0
add esp, 4
lea ecx, [esi + 0xb0]
push eax
call fcn.00415f20
lea edi, [esi + 0xc4]
mov byte [esp + 0x1c], 5
mov ecx, edi
call fcn.00415f10
mov dword [edi], vtable.wxFont.0
lea ecx, [esi + 0xcc]
mov byte [esp + 0x1c], 6
call fcn.0047d240
mov ecx, esi
mov byte [esp + 0x1c], 7
mov byte [esi + 0xd4], bl
mov dword [esi], vtable.wxDCBase.0
call fcn.0046dd00
mov ecx, esi
call fcn.00409350
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xdc], vtable.wxBitmap.0
mov al, byte [esi + 0xe4]
mov dword [esi], vtable.wxDC.0
and al, 0xfe
mov dword [esi + 0xd8], ebx
mov byte [esi + 0xe4], al
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
lea ecx, [esi + 0x100]
mov dword [esp + 0x1c], 8
call fcn.004b3a30
mov cl, byte [esi + 8]
mov bl, byte [esi + 0xe4]
mov eax, dword [ebp + 8]
and cl, 0xf7
or bl, 1
or cl, 2
mov dword [esi + 0xe8], eax
mov byte [esi + 8], cl
mov ecx, dword [esp + 0x14]
mov dword [esi], vtable.wxPrinterDC.0
mov byte [esi + 0xe4], bl
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e5e4e
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x623208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x6e0ea0]
push ebp
push esi
mov esi, ecx
test eax, eax
push edi
mov dword [esp + 0x10], esi
jne 0x4e5e5f
mov eax, 0x6fdb50
mov ecx, dword [0x65329c]
push ecx
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.004e9b90
push 0
lea edx, [esp + 0x10]
push 1
push edx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.004c6210
mov eax, dword [esp + 0xc]
mov byte [esp + 0x30], 2
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4e5eae
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e5eae
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
push 0xa
mov dword [esi], vtable.wxCheckListBoxItem.0
mov byte [esi + 0x64], 0
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ecx
call fcn.0049c690
add esp, 8
add eax, eax
mov edi, 1
push 0x47
sub edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add edi, eax
mov dword [esi + 0x60], edi
mov eax, dword [0x704168]
cmp edi, eax
mov dword [0x70416c], edi
je 0x4e5efb
mov byte [esi + 0xd], 1
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
call fcn.00461160
mov edi, eax
lea ebp, [esi + 0x2c]
mov byte [esp + 0x30], 3
cmp ebp, edi
je 0x4e5f1d
push edi
mov ecx, ebp
call fcn.004e8d20
mov eax, dword [edi + 8]
mov byte [esp + 0x30], 2
mov dword [ebp + 8], eax
mov cl, byte [edi + 0xc]
mov byte [ebp + 0xc], cl
mov dl, byte [edi + 0xd]
mov byte [ebp + 0xd], dl
mov al, byte [edi + 0xe]
mov byte [ebp + 0xe], al
mov cl, byte [edi + 0xf]
mov byte [ebp + 0xf], cl
mov dl, byte [edi + 0x10]
mov byte [ebp + 0x10], dl
lea ecx, [esp + 0x14]
mov byte [esi + 0xd], 1
call fcn.0047d2b0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 8

Function at 0x4e62d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x623268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
mov esi, ecx
mov ecx, dword [0x7004b0]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x28]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.00453090
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x68]
lea edx, [esp + 4]
mov dword [esp + 0x44], 0
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ecx
call fcn.004645b0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], 0xffffffff
add eax, 0xfffffff4
pop esi
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4e634a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e634a
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp]
mov dword [esp], vtable.wxObject.0
call fcn.004e8d50
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x4f0460
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x623e0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push esi
mov dword [esp + 4], 0
mov esi, 0x400
call fcn.004f0590
test eax, eax
je 0x4f04bd
call fcn.004f0590
mov eax, dword [eax + 0xc]
push eax
call fcn.004eff20
add esp, 4
test eax, eax
je 0x4f04bd
mov si, word [eax + 0xc]
xor ecx, ecx
mov cx, word [eax + 8]
shl si, 0xa
and esi, 0xffff
or esi, ecx
mov eax, dword [0x6e0ea0]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x21c]
mov dword [esp + 0x210], 0
dec ecx
mov word [esp + 8], 0
jne 0x4f0531
lea edx, [esp + 8]
push 0x100
push edx
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4f050f
push 0x6c4df0
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push 0x6c4df0
jmp 0x4f0523
lea eax, [esp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0xc]
push eax
call fcn.004ea760
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
mov esi, dword [esp + 0x218]
test ecx, ecx
jne 0x4f0549
mov edx, dword [0x6e0ea0]
mov dword [esi], edx
jmp 0x4f055b
mov dword [esi], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x4f055b
inc ecx
mov dword [eax - 0xc], ecx
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x4f0577
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4f0577
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x208]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x210
ret
Function at 0x4f5c60
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62407b
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor bl, bl
cmp dword [edi], 0xffffffff
jne 0x4f59a3
lea ebp, [edi + 4]
lea ecx, [esp + 0x10]
push ebp
call fcn.004698b0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x26c], 0
push eax
call fcn.004fae60
add esp, 4
test al, al
jne 0x4f58d2
push 0x5c
push 1
lea ecx, [esp + 0x18]
call fcn.004e9db0
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
test eax, eax
jne 0x4f58ed
mov esi, 0x6e3384
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
jmp 0x4f58ff
test esi, esi
je 0x4f58fd
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
jmp 0x4f58ff
xor eax, eax
push eax
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004ea760
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
mov bl, 1
mov dword [esp + 0x26c], 0xffffffff
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4f5949
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4f5949
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp dword [edi], 0xffffffff
jne 0x4f59a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x4f599c
cmp edi, 0x12
je 0x4f599c
mov esi, dword [ebp]
call fcn.004f0590
test eax, eax
je 0x4f598c
mov edx, dword [eax]
push 0
push str.Can_not_enumerate_files_in_directory__s
mov ecx, eax
call dword [edx + 8]
push esi
push eax
push edi
call fcn.004f4710
add esp, 0xc
xor al, al
jmp 0x4f5a37
mov eax, str.Can_not_enumerate_files_in_directory__s
push esi
push eax
push edi
call fcn.004f4710
add esp, 0xc
xor al, al
jmp 0x4f5a37
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test bl, bl
je 0x4f59b1
xor bl, bl
jmp 0x4f59c3
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push eax
call ebp
test eax, eax
je 0x4f5a52
lea edx, [esp + 0x14]
push edx
call fcn.004f5a60
mov esi, eax
lea eax, [esp + 0x18]
push eax
call fcn.004f5a70
add esp, 8
cmp word [esi], 0x2e
jne 0x4f59fe
mov cx, word [esi + 2]
cmp cx, 0x2e
jne 0x4f59f3
cmp word [esi + 4], 0
je 0x4f59f8
test cx, cx
jne 0x4f59fe
test byte [edi + 0xc], 8
je 0x4f59a9
mov ecx, dword [edi + 0xc]
test cl, 1
jne 0x4f5a10
mov edx, eax
shr edx, 4
test dl, 1
je 0x4f59a9
test cl, 2
jne 0x4f5a1f
mov edx, eax
shr edx, 4
test dl, 1
jne 0x4f59a9
test cl, 4
jne 0x4f5a28
test al, 6
jne 0x4f59a9
mov ecx, dword [esp + 0x274]
push esi
call fcn.004ea6a0
mov al, 1
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x260
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x4f5a37
call fcn.004f5af0
test al, al
je 0x4f5c7c
mov eax, dword [esp + 4]
test eax, eax
je 0x4f5c7c
mov ecx, dword [ecx]
mov dword [esp + 4], eax
jmp 0x4f5870
xor al, al
ret 4
Function at 0x4fa350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4fa36c
test al, 0x10
jne 0x4fa36c
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4fa6c0
Capabilities:
Copy file

Disassembly:
push ebx
mov bl, byte [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
xor edx, edx
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [esi]
test bl, bl
mov ecx, dword [edi]
sete dl
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4fa729
mov esi, dword [esi]
mov edi, dword [edi]
call fcn.004f0590
test eax, eax
je 0x4fa713
mov edx, dword [eax]
push 0
push str.Failed_to_copy_the_file__s_to__s
mov ecx, eax
call dword [edx + 8]
push esi
push edi
push eax
call fcn.004f45b0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
ret
mov eax, str.Failed_to_copy_the_file__s_to__s
push esi
push edi
push eax
call fcn.004f45b0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x4fa730
Capabilities:
Move file

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
test bl, bl
push edi
jne 0x4fa792
push esi
call fcn.004fa350
add esp, 4
test al, al
je 0x4fa792
mov eax, dword [esp + 0x10]
mov esi, dword [esi]
mov edi, dword [eax]
call fcn.004f0590
test eax, eax
je 0x4fa77c
mov edx, dword [eax]
push 0
push str.Failed_to_rename_the_file__s_to__s_because_the_destination_file_already_exists.
mov ecx, eax
call dword [edx + 8]
push esi
push edi
push eax
call fcn.004f45b0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
ret
mov eax, str.Failed_to_rename_the_file__s_to__s_because_the_destination_file_already_exists.
push esi
push edi
push eax
call fcn.004f45b0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
ret
mov edi, dword [esp + 0x10]
mov eax, dword [esi]
push eax
mov ecx, dword [edi]
push ecx
call dword [sym.imp.MSVCRT.dll__wrename]
add esp, 8
test eax, eax
jne 0x4fa7af
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebx
push esi
push edi
call fcn.004fa6c0
add esp, 0xc
test al, al
je 0x4fa78c
push edi
call fcn.004fa7d0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4fa7d0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__wremove]
add esp, 4
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4fa7f0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [eax]
push esi
call dword [sym.imp.MSVCRT.dll__wmkdir]
add esp, 4
test eax, eax
je 0x4fa83d
call fcn.004f0590
test eax, eax
je 0x4fa82a
mov edx, dword [eax]
push 0
push str.Directory__s_couldnt_be_created
mov ecx, eax
call dword [edx + 8]
push esi
push eax
call fcn.004f45b0
add esp, 8
xor al, al
pop esi
ret
mov eax, str.Directory__s_couldnt_be_created
push esi
push eax
call fcn.004f45b0
add esp, 8
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x4fa850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6245c8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
jne 0x4fa874
mov eax, 0x6fdb50
mov ecx, dword [0x65329c]
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.004e9b90
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], 0
push edx
call fcn.004fae60
add esp, 4
test al, al
je 0x4fa8e1
mov eax, dword [esp + 0x18]
mov esi, dword [eax - 8]
cmp esi, 1
je 0x4fa8e1
cmp esi, 3
jne 0x4fa8c5
lea ecx, [esp + 0x18]
call fcn.004e9cc0
mov ecx, dword [esp + 0x18]
cmp word [ecx + 2], 0x3a
je 0x4fa8e1
dec esi
lea ecx, [esp + 0x18]
push esi
call fcn.004ebfc0
mov edx, dword [esp + 0x18]
push edx
call fcn.004fae60
add esp, 4
test al, al
jne 0x4fa8a0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4fa8f9
test al, 0x10
je 0x4fa8f9
mov bl, 1
jmp 0x4fa8fb
xor bl, bl
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4fa91b
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4fa91b
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 8]
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x4fc930
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x624998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [esp], 0
mov eax, dword [0x6e0ea0]
push esi
mov dword [esp + 4], eax
mov esi, dword [sym.imp.MSVCRT.dll__wgetenv]
push str.TMPDIR
mov dword [esp + 0x14], 0
call esi
add esp, 4
lea ecx, [esp + 4]
push eax
call fcn.004ea6a0
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4fca19
push 0x6e3be0
call esi
add esp, 4
lea ecx, [esp + 4]
push eax
call fcn.004ea6a0
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4fca19
push 0x6e3bd4
call esi
add esp, 4
lea ecx, [esp + 4]
push eax
call fcn.004ea6a0
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4fca19
push 0x105
lea ecx, [esp + 8]
call fcn.004ead20
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 4]
call fcn.004ead50
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4fca19
push 0x2e
lea ecx, [esp + 8]
call fcn.004ea680
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4fca19
mov esi, dword [esp + 0x18]
mov ecx, dword [0x6e0ea0]
mov dword [esi], ecx
jmp 0x4fca2f
mov esi, dword [esp + 0x18]
mov dword [esi], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x4fca2f
inc ecx
mov dword [eax - 0xc], ecx
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x4fca4b
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4fca4b
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4feae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x624d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x6e0ea0]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push edi
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push ecx
mov dword [esp + 0x34], 0
call fcn.004fe830
mov ebx, dword [sym.imp.MSVCRT.dll_free]
add esp, 0x1c
test esi, esi
je 0x4feba4
lea edx, [esp + 0xc]
push edi
lea eax, [esp + 0x30]
push edx
push eax
call fcn.004fca60
push esi
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x30], 1
call fcn.004eada0
add esp, 0x18
push eax
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.004ea610
mov edx, dword [esp + 0x30]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4feb89
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4feb89
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4feba4
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4feba4
push eax
call ebx
add esp, 4
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4febc0
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4febc0
push eax
call ebx
add esp, 4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x501480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x625298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
push ebp
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x24]
push esi
push edi
mov ebp, ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], ebp
call fcn.004698b0
mov ecx, dword [esp + 0x2c]
mov dword [ebp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [ecx - 8]
dec esi
cmp esi, ebx
jl 0x5014f3
lea ecx, [esp + 0x2c]
call fcn.004e9cc0
mov edx, dword [esp + 0x2c]
cmp word [edx + esi*2], 0x5c
jne 0x5014f0
lea ecx, [esp + 0x2c]
call fcn.004e9cc0
mov eax, dword [esp + 0x2c]
mov word [eax + esi*2], 0x2f
dec esi
jns 0x5014c9
mov edi, dword [0x728a30]
cmp edi, ebx
je 0x501558
add ebp, 8
mov esi, dword [edi + 8]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.004eada0
add esp, 0xc
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x24], 1
call dword [edx + 0x10]
mov bl, al
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
mov byte [esp + 0x20], 0
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x501549
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x501549
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
test bl, bl
jne 0x501585
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x501500
mov ebp, dword [esp + 0x10]
mov esi, dword [0x728a30]
test esi, esi
je 0x50160a
mov edi, dword [esi + 8]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x10]
test al, al
jne 0x5015e7
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x501566
jmp 0x50160a
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00501050
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
push ebp
push edx
mov dword [esi + 0x10], eax
call fcn.004eada0
add esp, 0xc
mov ecx, dword [esi + 0x10]
mov esi, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx]
push eax
push esi
mov byte [esp + 0x2c], 2
call dword [edx + 0x18]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5015de
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5015de
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x2c]
lea eax, [ecx - 0xc]
jmp 0x501634
push edi
mov ecx, ebp
call fcn.00501050
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
mov dword [ebp + 0x10], eax
mov edx, dword [eax]
push ecx
push esi
mov ecx, eax
call dword [edx + 0x18]
jmp 0x50162d
mov eax, dword [0x6e0ea0]
test eax, eax
jne 0x501618
mov eax, 0x6fdb50
mov ecx, dword [0x65329c]
mov esi, dword [esp + 0x28]
push ecx
push 0
push eax
mov ecx, esi
call fcn.004e9b90
mov edx, dword [esp + 0x2c]
lea eax, [edx - 0xc]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x50164c
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x50164c
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc