joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4671b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x4da720]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.0046a630
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00466670
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x46721a
mov al, byte [edi + ecx]
test al, al
je 0x46721a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x467201
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x46723b
inc eax
sub ecx, 1
jne 0x467230
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x467290
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x467285
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x467284
mov bl, byte [edi + ecx]
test bl, bl
je 0x467284
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x467270
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.0046a630
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x4bce0c
push str.SoftwareComMaster
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x46734a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x467314
test cl, cl
je 0x467310
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x467314
add eax, 2
add esi, 2
test cl, cl
jne 0x4672f4
xor eax, eax
jmp 0x467319
sbb eax, eax
or eax, 1
test eax, eax
je 0x46734a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467326
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push SysStringLen
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467353
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x4bce0c
push str.SoftwareComMaster
push SysStringLen
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045f213
mov esp, ebp
pop ebp
ret
Function at 0x468470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af24b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x4da720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x14]
push 0x20000
push 0
push esi
call fcn.0046a630
add esp, 0xc
lea eax, [ebx + 0x20014]
push 0
push eax
push 0x20000
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46863a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x10], esi
test eax, eax
je 0x4685f7
cmp eax, 0xffffffff
je 0x4685f7
call fcn.00437e50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4685f7
cmp dword [ebx + 0x2005c], 8
lea eax, [ebx + 0x20048]
mov dword [ebp - 0x14], eax
jb 0x468525
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
push 0x61
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00408280
push 3
push 0x4b1c38
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.00408280
mov byte [ebp - 4], 1
call fcn.00437e50
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0x95
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403c10
mov esi, eax
push str.RecvData_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.00404ba0
add esp, 8
mov ecx, esi
push dword [ebp - 0x10]
call fcn.00404a00
push str.__channel_name:
push esi
call fcn.00404ba0
mov ecx, dword [ebp - 0x14]
mov eax, 0x4b1f68
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.0040abb0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.00404e00
lea ecx, [ebp - 0x2c]
call fcn.00404580
lea ecx, [ebp - 0x44]
call fcn.00404580
mov esi, dword [ebp - 0x10]
mov dword [ebx + 0xc], 6
cmp esi, 0xe8
je 0x468618
cmp esi, 0xe9
je 0x468618
cmp esi, 0x6d
je 0x468618
cmp esi, 6
jne 0x46866e
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
mov dword [ecx + 4], eax
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x20014]
test eax, eax
je 0x468667
test esi, esi
je 0x468667
push dword [ebp - 0x10]
add eax, esi
push eax
push esi
push dword [ecx + 4]
call fcn.004466d0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x488e81
Capabilities:
Set environment variable

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

Function at 0x491c33
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x76b25280
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x76b252b8
call sym.msvcrt.dll__errno
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
push 0x57
pop eax
jmp 0x76b25328
mov edx, dword [ebp + 8]
cmp edx, 0x1a
ja 0x76b25299
push esi
push edi
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test edx, edx
jne 0x76b252d2
xor esi, esi
jmp 0x76b252f0
lea eax, [edx + 0x40]
push 0x3a
mov word [ebp - 0xc], ax
lea esi, [ebp - 0xc]
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
push ecx
lea eax, [ecx + 4]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 8]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x76b25324
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
call sym.msvcrt.dll__errno
push edi
mov esi, eax
call fcn.76b26375
mov dword [esi], eax
mov eax, edi
pop ecx
jmp 0x76b25326
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.76b4dc60
leave
ret

Function at 0x76b25ba3
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x76b9cfe8
call fcn.76b4e0a8
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
and dword [ebp - 4], 0
test eax, eax
je 0x76b25bec
cmp eax, 0xffffffff
je 0x76b25bec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x76b25bec
mov ecx, dword [eax + 0x3c]
test ecx, ecx
js 0x76b25bec
cmp dword [ecx + eax], 0x4550
jne 0x76b25bec
cmp byte [ecx + eax + 0x1a], 2
jne 0x76b25bec
cmp byte [ecx + eax + 0x1b], 0x37
je 0x76b25bff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [0x76baab34], eax
jmp 0x76b25c06
and dword [0x76baab34], 0
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x76b26089
Capabilities:
Check os version
Parse pe header

Disassembly:
push 0x120
push 0x76b9cfc8
call fcn.76b4e108
cmp dword [0x76baaac4], 0
jne 0x76b2619f
push dword [0x76baaac8]
call fcn.76b4de37
pop ecx
mov dword [0x76baaac8], eax
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
test eax, eax
je 0x76b2613c
mov eax, dword [ebp - 0x120]
mov dword [sym.msvcrt.dll__osplatform], eax
mov edx, dword [ebp - 0x12c]
mov dword [sym.msvcrt.dll__winmajor], edx
mov esi, dword [ebp - 0x128]
mov dword [sym.msvcrt.dll__winminor], esi
mov ecx, dword [ebp - 0x124]
and ecx, 0x7fff
mov dword [sym.msvcrt.dll__osver], ecx
cmp eax, 2
je 0x76b26117
or ecx, 0x8000
mov dword [sym.msvcrt.dll__osver], ecx
shl edx, 8
add edx, esi
mov dword [sym.msvcrt.dll__winver], edx
push 1
call fcn.76b35fcc
pop ecx
test eax, eax
je 0x76b2613c
call fcn.76b5817b
test eax, eax
jne 0x76b26140
call fcn.76b36002
xor eax, eax
jmp 0x76b261a2
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
and dword [ebp - 4], 0
test eax, eax
je 0x76b2618e
cmp eax, 0xffffffff
je 0x76b2618e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x76b2618e
mov ecx, dword [eax + 0x3c]
test ecx, ecx
js 0x76b2618e
cmp dword [ecx + eax], 0x4550
jne 0x76b2618e
cmp byte [ecx + eax + 0x1a], 6
jne 0x76b2618e
cmp byte [ecx + eax + 0x1b], 0
jne 0x76b2618e
push 1
call fcn.76b6dca0
pop ecx
jmp 0x76b2618e
mov dword [ebp - 4], 0xfffffffe
mov dword [0x76baaac4], 1
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
jne 0x76b26471
call sym.msvcrt.dll___doserrno
xor esi, esi
mov dword [eax], esi
call sym.msvcrt.dll__errno
push 0x16
pop edi
push esi
push esi
push esi
push esi
push esi
mov dword [eax], edi
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
mov eax, edi
jmp 0x76b264c7
test dword [ebp + 0xc], 0xfffffff0
jne 0x76b2644d
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x76b2649e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b262a9
pop ecx
call sym.msvcrt.dll__errno
mov eax, dword [eax]
jmp 0x76b264c7
test al, 0x10
jne 0x76b264c5
test al, 1
je 0x76b264c5
test byte [ebp + 0xc], 2
je 0x76b264c5
call sym.msvcrt.dll___doserrno
mov dword [eax], 5
call sym.msvcrt.dll__errno
push 0xd
pop ecx
mov dword [eax], ecx
mov eax, ecx
jmp 0x76b264c7
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x76b264e0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
lea esi, [ebp - 0x10c]
or edi, 0xffffffff
test eax, eax
jne 0x76b2652e
call sym.msvcrt.dll___doserrno
mov dword [eax], ebx
call sym.msvcrt.dll__errno
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
jmp 0x76b265de
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryA]
test eax, eax
je 0x76b265c6
lea eax, [ebp - 0x10c]
push eax
push 0x105
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryA]
cmp eax, 0x104
jle 0x76b2657d
inc eax
push 1
push eax
mov dword [ebp - 0x114], eax
call fcn.76b38729
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x76b265c6
push esi
push dword [ebp - 0x114]
xor ebx, ebx
inc ebx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryA]
test eax, eax
je 0x76b265c6
mov al, byte [esi]
cmp al, 0x5c
je 0x76b2658b
cmp al, 0x2f
jne 0x76b26594
cmp al, byte [esi + 1]
jne 0x76b26594
xor edi, edi
jmp 0x76b265d3
mov byte [ebp - 0x110], 0x3d
movzx eax, byte [esi]
push eax
call sym.msvcrt.dll__mbctoupper
pop ecx
mov byte [ebp - 0x10f], al
lea eax, [ebp - 0x110]
push esi
push eax
mov word [ebp - 0x10e], 0x3a
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x76b26590
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b262a9
pop ecx
test ebx, ebx
je 0x76b265de
push esi
call sym.msvcrt.dll_free
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.76b4dc60
leave
ret

Function at 0x76b26600
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x76b9d008
call fcn.76b4e0a8
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x76b26671
cmp eax, 0x1a
jg 0x76b26671
push 7
call sym.msvcrt.dll__lock
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
add al, 0x40
mov byte [ebp - 0x1c], al
mov word [ebp - 0x1b], 0x3a
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x76b26652
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b262a9
pop ecx
or ebx, 0xffffffff
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.76b26668
mov eax, ebx
jmp 0x76b26699
call sym.msvcrt.dll___doserrno
mov dword [eax], 0xf
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x76b266b0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea edi, [ebp - 0x10c]
xor esi, esi
mov eax, edi
mov ebx, esi
push eax
push 0x105
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryA]
cmp eax, 0x104
jle 0x76b26740
inc eax
push 1
push eax
mov dword [ebp - 0x110], eax
call fcn.76b38729
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x76b26730
call sym.msvcrt.dll__errno
mov dword [eax], 0xc
call sym.msvcrt.dll__errno
mov dword [eax], 0xc
test ebx, ebx
je 0x76b2671f
push edi
call sym.msvcrt.dll_free
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.76b4dc60
leave
ret
push edi
push dword [ebp - 0x110]
xor ebx, ebx
inc ebx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryA]
test eax, eax
je 0x76b26709
cmp byte [edi + 1], 0x3a
jne 0x76b26714
movzx eax, byte [edi]
push eax
call sym.msvcrt.dll_toupper
pop ecx
lea esi, [eax - 0x40]
jmp 0x76b26714

Function at 0x76b26760
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x76b26791
call sym.msvcrt.dll___doserrno
mov dword [eax], esi
call sym.msvcrt.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
or eax, 0xffffffff
jmp 0x76b267c8
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x76b267ac
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b262a9
pop ecx
jmp 0x76b2678c
test byte [ebp + 0xc], 0x80
je 0x76b267b7
and eax, 0xfffffffe
jmp 0x76b267ba
or eax, 1
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesA]
test eax, eax
je 0x76b2679d
xor eax, eax
pop esi
pop ebp
ret
Function at 0x76b269f2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x76b26a82
push ebx
call fcn.76b26b15
pop ecx
test eax, eax
jne 0x76b26a46
call sym.msvcrt.dll___doserrno
mov dword [eax], 0xf
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.76b4dc60
leave
ret
lea eax, [ebp - 0x114]
mov word [ebp - 0x10b], 0x2e3a
push eax
lea eax, [ebp - 0x108]
mov byte [ebp - 0x109], 0
push eax
mov esi, 0x104
lea eax, [ebp - 0x10c]
push esi
add bl, 0x40
push eax
mov byte [ebp - 0x10c], bl
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameA]
jmp 0x76b26a95
lea eax, [ebp - 0x108]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryA]
test eax, eax
je 0x76b26a35
inc eax
cmp eax, esi
ja 0x76b26a35
mov esi, dword [ebp + 0x10]
test edi, edi
jne 0x76b26ae3
cmp eax, esi
jle 0x76b26aab
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push 0
push esi
call fcn.76b268fe
add esp, 0xc
test eax, eax
js 0x76b26ad3
push dword [ebp - 0x110]
call sym.msvcrt.dll_malloc
mov edi, eax
pop ecx
test edi, edi
jne 0x76b26af7
call sym.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x76b26a35
cmp eax, esi
jle 0x76b26af7
call sym.msvcrt.dll__errno
mov dword [eax], 0x22
jmp 0x76b26a35
lea eax, [ebp - 0x108]
push eax
push esi
push edi
call sym.msvcrt.dll_strcpy_s
add esp, 0xc
mov eax, edi
jmp 0x76b26a37

Function at 0x76b26b15
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x76b26b25
inc eax
leave
ret
add al, 0x40
mov word [ebp - 3], 0x5c3a
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
mov byte [ebp - 1], 0
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeA]
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x76b26b4c
cmp ecx, 1
setne al
leave
ret

Function at 0x76b26db0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.76b26dc1
Function at 0x76b27940
Capabilities:
Get disk information

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

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
jne 0x76b27a11
call sym.msvcrt.dll___doserrno
xor esi, esi
mov dword [eax], esi
call sym.msvcrt.dll__errno
push 0x16
pop edi
push esi
push esi
push esi
push esi
push esi
mov dword [eax], edi
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
mov eax, edi
jmp 0x76b27a67
test dword [ebp + 0xc], 0xfffffff0
jne 0x76b279ed
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x76b27a3e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b262a9
pop ecx
call sym.msvcrt.dll__errno
mov eax, dword [eax]
jmp 0x76b27a67
test al, 0x10
jne 0x76b27a65
test al, 1
je 0x76b27a65
test byte [ebp + 0xc], 2
je 0x76b27a65
call sym.msvcrt.dll___doserrno
mov dword [eax], 5
call sym.msvcrt.dll__errno
push 0xd
pop ecx
mov dword [eax], ecx
mov eax, ecx
jmp 0x76b27a67
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x76b27a80
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
lea esi, [ebp - 0x218]
or edi, 0xffffffff
mov dword [ebp - 0x21c], ebx
test eax, eax
jne 0x76b27ad4
call sym.msvcrt.dll___doserrno
mov dword [eax], ebx
call sym.msvcrt.dll__errno
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
jmp 0x76b27b8c
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
test eax, eax
je 0x76b27b6f
lea eax, [ebp - 0x218]
push eax
push 0x105
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jle 0x76b27b23
lea ebx, [eax + 1]
push 2
push ebx
call fcn.76b38729
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x76b27b6f
push esi
push ebx
mov dword [ebp - 0x21c], 1
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
xor ebx, ebx
test eax, eax
je 0x76b27b6f
movzx eax, word [esi]
cmp eax, 0x5c
je 0x76b27b34
cmp eax, 0x2f
jne 0x76b27b3e
cmp ax, word [esi + 2]
jne 0x76b27b3e
mov edi, ebx
jmp 0x76b27b7c
push 0x3d
pop eax
mov word [ebp - 0xc], ax
movzx eax, word [esi]
push eax
call sym.msvcrt.dll_towupper
pop ecx
push 0x3a
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x76b27b3a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b262a9
pop ecx
cmp dword [ebp - 0x21c], 0
je 0x76b27b8c
push esi
call sym.msvcrt.dll_free
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.76b4dc60
leave
ret
Function at 0x76b27bb0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x76b27be1
call sym.msvcrt.dll___doserrno
mov dword [eax], esi
call sym.msvcrt.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
or eax, 0xffffffff
jmp 0x76b27c18
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x76b27bfc
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b262a9
pop ecx
jmp 0x76b27bdc
test byte [ebp + 0xc], 0x80
je 0x76b27c07
and eax, 0xfffffffe
jmp 0x76b27c0a
or eax, 1
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x76b27bed
xor eax, eax
pop esi
pop ebp
ret

Function at 0x76b27e22
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x76b27eaf
push esi
call fcn.76b26b15
pop ecx
test eax, eax
jne 0x76b27e74
call sym.msvcrt.dll___doserrno
mov dword [eax], 0xf
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.76b4dc60
leave
ret
push 0x3a
lea eax, [esi + 0x40]
mov esi, 0x104
mov word [ebp - 0xc], ax
pop eax
push 0x2e
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
jmp 0x76b27ec2
lea eax, [ebp - 0x214]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
test eax, eax
je 0x76b27e64
inc eax
cmp eax, esi
ja 0x76b27e64
mov esi, dword [ebp + 0x10]
test edi, edi
jne 0x76b27f16
cmp eax, esi
jle 0x76b27ed8
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push 2
pop ecx
mov eax, esi
mul ecx
push edx
push eax
call fcn.76b268fe
add esp, 0xc
test eax, eax
js 0x76b27f06
push dword [ebp - 0x218]
call sym.msvcrt.dll_malloc
mov edi, eax
pop ecx
test edi, edi
jne 0x76b27f2a
call sym.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x76b27e64
cmp eax, esi
jle 0x76b27f2a
call sym.msvcrt.dll__errno
mov dword [eax], 0x22
jmp 0x76b27e64
lea eax, [ebp - 0x214]
push eax
push esi
push edi
call sym.msvcrt.dll_wcscpy_s
add esp, 0xc
mov eax, edi
jmp 0x76b27e66

Function at 0x76b28350
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.76b28361
Function at 0x76b28f50
Capabilities:
Get disk information

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