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

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x5c
mov dword [esp + 0xc], eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 5
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 5
je 0x6ea810
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x29]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x27
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.msvcrt.dll_fread
cmp eax, 0x27
jne 0x6ea800
movzx eax, byte [esp + 0x24]
mov edx, eax
shr dl, 4
cmp al, 0x9f
ja case.default.0x6ea846
movzx edx, dl
jmp dword [edx*4 + 0x7b8518]
mov dword [ebx + 0xc], 0x4f
lea esi, [esi]
nop
movzx edx, byte [esp + 0x25]
mov ebp, eax
movzx eax, byte [esp + 0x26]
and ebp, 0xf
mov dword [esp + 0x10], edx
movzx edx, byte [esp + 0x28]
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0x27]
mov dword [ebx + 0x10], eax
mov eax, edx
shr al, 7
movzx eax, al
mov dword [ebx + 0x14], eax
movzx eax, dl
and edx, 7
mov ecx, eax
sar eax, 3
mov dword [ebx + 0x20], edx
mov edx, dword [esp + 0x10]
and eax, 7
sar ecx, 6
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x14]
and ecx, 1
mov dword [ebx + 0x18], ecx
add edx, eax
je 0x6eaa18
mov dword [esp + 0x18], edx
mov ecx, 8
mov eax, edi
mov dword [esp + 0x1c], ebx
sub ecx, ebp
lea ebp, [edi + edx]
movzx edx, byte [eax]
add eax, 1
shl edx, cl
mov ebx, edx
add bl, dh
mov byte [eax - 1], bl
cmp eax, ebp
jne 0x6ea8d0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor eax, eax
mov ebx, dword [esp + 0x1c]
test ecx, ecx
je 0x6ea908
mov eax, dword [esp + 0x10]
mov byte [esp + edx + 0x29], 0
add eax, edi
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6ea970
xor eax, eax
mov dword [ebx], eax
lea eax, [ebx + 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x27
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
fld dword [0x7b8910]
fld dword [ebx + 0x54]
cmp dword [ebx + 0xc], 0x5a
fmul st(1)
fstp dword [ebx + 0x54]
fmul dword [ebx + 0x58]
fstp dword [ebx + 0x58]
jne 0x6ea95b
fld dword [ebx + 0x28]
fadd st(0)
fsub dword [ebx + 0x2c]
fstp dword [ebx + 0x28]
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x29], 0
mov dword [esp], edi
call sub.msvcrt.dll__strdup
jmp 0x6ea915
mov dword [ebx + 0xc], 0x46
jmp case.default.0x6ea846
mov dword [ebx + 0xc], 0x45
jmp case.default.0x6ea846
mov dword [ebx + 0xc], 0x5a
jmp case.default.0x6ea846
mov dword [ebx + 0xc], 0x4b
jmp case.default.0x6ea846
mov dword [ebx + 0xc], 0x52
jmp case.default.0x6ea846
mov dword [ebx + 0xc], 0x4c
jmp case.default.0x6ea846
mov dword [ebx + 0xc], 0x54
jmp case.default.0x6ea846
mov dword [ebx + 0xc], 0x55
jmp case.default.0x6ea846
mov dword [ebx + 0xc], 0x44
jmp case.default.0x6ea846
mov dword [ebx + 4], 0
jmp 0x6ea913
Function at 0x6f8220
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
cmp ebx, 0
jbe 0x6f8268
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.file_size_too_large
mov dword [esp], eax
call dword [esp + 0x58]
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0070b59c
test edx, edx
js 0x6f8350
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.006f86f0
mov edi, dword [esp + 0x60]
mov dword [edi + 4], eax
test eax, eax
je 0x6f8257
mov edx, ebp
mov dword [edi], eax
xor esi, esi
mov dword [edi + 8], ebp
xor edi, edi
or edx, ebx
jne 0x6f82ea
jmp 0x6f8340
je 0x6f8378
cdq
add esi, eax
adc edi, edx
cmp esi, ebp
mov eax, edi
sbb eax, ebx
jae 0x6f8340
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
sub edx, esi
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll__read
test eax, eax
jns 0x6f82d0
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp + 4], str.read
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dword [esp + 0x58]
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00719704
jmp 0x6f8257
add esp, 0x2c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp + 4], str.lseek
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dword [esp + 0x58]
jmp 0x6f8257
cmp esi, ebp
mov eax, edi
sbb eax, ebx
jae 0x6f8340
mov dword [esp + 8], 0
mov dword [esp + 4], str.file_too_short
jmp 0x6f831c
Function at 0x6feb28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00718f9c
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00718f9c
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x6ff6fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x6ff71b
mov eax, 0
jmp 0x6ff75f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x6ff73e
mov eax, 0
jmp 0x6ff75f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x6ff75a
mov eax, 0
jmp 0x6ff75f
mov eax, 1
leave
ret

Function at 0x6ff761
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x6ff7c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x6ff7b8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x6ff7b8
mov eax, dword [ebp - 4]
jmp 0x6ff7d4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x6ff795
mov eax, 0
leave
ret
Function at 0x7219ef
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x721b08
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0072120c
cmp eax, 1
jne 0x721afe
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x721ab4
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x721acb
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x721ab0
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x721ae9
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.msvcrt.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x721b09
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x722a8f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x7228fe
mov dword [esp], 0x94b788
call fcn.00722064
mov eax, dword [0x76be58]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x722ad6
mov eax, dword [ebp - 0x20]
jmp 0x722c21
call fcn.007218f8
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x722aed
cmp dword [ebp - 0x20], 0
jne 0x722af7
mov eax, 0
jmp 0x722c21
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.007219ef
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x722bc9
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x76be58]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x722c1e
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x722ce5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00722a8f
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.00722922
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x722d40
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_longjmp]
call eax
mov eax, dword [0x76be58]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x722e6a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x722dd2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x722d8f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00721806
mov dword [ebp - 0x10], 0
mov eax, dword [0x76be58]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x722e6a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x722e02
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x722e6a
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00721806
mov dword [ebp - 0x10], 0
mov eax, dword [0x76be58]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax
Function at 0x72c180
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
call fcn.007316c0
test byte [ebx], 0x80
je 0x72c250
mov dword [esp + 0x10], 0x7b8a10
mov dword [esp + 0xc], 0x7c2b84
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00730130
mov edi, eax
cmp eax, 0xffffffff
je 0x72c240
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.007301e0
mov esi, eax
test eax, eax
je 0x72c240
mov eax, dword [eax + 0xc4]
test eax, eax
je 0x72c1f3
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0072e640
test al, al
jne 0x72c240
test byte [ebx], 3
jne 0x72c240
mov dword [esp], esi
call fcn.0072eb00
test eax, eax
js 0x72c2a0
cmp dword [esi + 0x48], 3
je 0x72c260
test edi, edi
jne 0x72c229
mov eax, dword [esi + 0x74]
test eax, eax
je 0x72c265
mov dword [esp + 4], str.STATUS_set_to_DELETE_on_CLOSE_but_file_protected_by_READONLY_specifier
mov dword [esp], ebx
call fcn.007308e0
mov dword [esp + 0x30], esi
add esp, 0x20
pop ebx
pop esi
pop edi
jmp fcn.0072eb10
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov edi, 2
jmp 0x72c1c8
cmp edi, 1
je 0x72c2e0
mov eax, dword [esi + 0xdc]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [esp], esi
mov edi, eax
call fcn.0072eb10
test edi, edi
je 0x72c240
mov dword [esp], edi
call sub.msvcrt.dll_remove
test eax, eax
jne 0x72c2c0
mov dword [esp + 0x30], edi
add esp, 0x20
pop ebx
pop esi
pop edi
jmp fcn.00719704
mov dword [esp + 8], str.Problem_in_CLOSE
mov dword [esp + 4], 0x1388
mov dword [esp], ebx
call fcn.0072a8c0
jmp 0x72c208
mov dword [esp + 8], str.File_cannot_be_deleted
mov dword [esp + 4], 0x1388
mov dword [esp], ebx
call fcn.0072a8c0
jmp 0x72c28d
mov dword [esp + 8], str.Cant_KEEP_a_scratch_file_on_CLOSE
mov dword [esp + 4], 0x138a
mov dword [esp], ebx
call fcn.0072a8c0
jmp 0x72c265
Function at 0x748010
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ebp, edi
cmp edi, 0x7ffff000
jle 0x748090
lea esi, [esi]
mov eax, 0x7ffff000
mov dword [esp + 4], ebx
cmp ebp, eax
cmovle eax, ebp
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
je 0x748070
sub ebp, eax
add ebx, eax
test ebp, ebp
jg 0x748030
mov eax, edi
sub eax, ebp
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x748030
mov eax, 0xffffffff
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
jne 0x74805e
call ebp
cmp dword [eax], 4
je 0x748096
mov eax, 0xffffffff
jmp 0x748080

Function at 0x748210
Capabilities:
Clear file content

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call fcn.007195dc
test eax, eax
jne 0x748330
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov esi, eax
cmp eax, 0xffffffff
je 0x748330
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.0070b59c
mov ebp, eax
and eax, edx
mov edi, edx
cmp eax, 0xffffffff
je 0x74831f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.0070b59c
and eax, edx
cmp eax, 0xffffffff
je 0x748304
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x7482f8
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.0070b59c
and eax, edx
cmp eax, 0xffffffff
sete al
movzx eax, al
neg eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 9
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.0070b59c
mov eax, 0xffffffff
jmp 0x7482e9
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 9
jmp 0x74831f
Function at 0x74b790
Capabilities:
Get common file path
Query environment variable

Disassembly:
push esi
mov esi, eax
push ebx
sub esp, 0x124
mov dword [esp], str.TMPDIR
call sub.msvcrt.dll_getenv
lea edx, [esp + 0x14]
call fcn.0074b840
mov ebx, eax
cmp eax, 0xffffffff
je 0x74b7d8
mov eax, dword [esp + 0x14]
mov dword [esi + 0x2c], eax
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esi + 0x28], eax
add esp, 0x124
mov eax, ebx
pop ebx
pop esi
ret
lea ebx, [esp + 0x1b]
mov dword [esp], 0x104
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [eax - 1]
sub esp, 8
cmp edx, 0x103
ja 0x74b830
mov byte [esp + eax + 0x1b], 0
mov dword [esp], ebx
call sub.msvcrt.dll__strdup
lea edx, [esp + 0x14]
call fcn.0074b840
mov ebx, eax
cmp eax, 0xffffffff
jne 0x74b7b6
lea edx, [esp + 0x14]
mov eax, 0x7ba370
call fcn.0074b840
mov ebx, eax
jmp 0x74b7b6
mov byte [esp + 0x1b], 0
jmp 0x74b800
Function at 0x40729c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x40744d
mov edi, 0x100
lea eax, [ebp - 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
je 0x40744d
lea eax, [ebp - 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
je 0x40744d
mov eax, dword [0x413854]
test eax, eax
je 0x40731b
push eax
push ebx
call esi
test eax, eax
je 0x40744d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x100]
push ebx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x100]
push str..
push eax
call esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x100]
push 0x17
push eax
call fcn.00408504
add esp, 0xc
test eax, eax
jne 0x407437
mov ebx, 0x4100cc
test byte [ebp - 0x248], 0x10
je 0x4073d9
cmp byte [ebp - 0x348], 0x2e
je 0x407422
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call edi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call fcn.0040729c
pop ecx
lea eax, [ebp - 0x100]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x100]
sub ecx, 4
and byte [eax + ecx], 0
lea eax, [ebp - 0x100]
push eax
call fcn.00408420
jmp 0x407421
cmp dword [ebp + 0xc], 0
je 0x407422
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call edi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004084e1
pop ecx
lea eax, [ebp - 0x100]
pop ecx
push eax
call fcn.00408461
pop ecx
lea eax, [ebp - 0x348]
push eax
call fcn.00408546
test eax, eax
pop ecx
je 0x407364
lea eax, [ebp - 0x348]
push eax
call fcn.00408583
pop ecx
push dword [ebp + 8]
call fcn.00408420
pop ecx
pop edi
pop esi
pop ebx
leave
ret