joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c34229f
Capabilities:
Accept command line arguments

Disassembly:
mov edi, 0x94
mov eax, edi
call fcn.7c341395
mov esi, esp
push esi
mov dword [esi], edi
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x7c342307
mov ecx, dword [esi + 0x10]
mov dword [sym.MSVCR71.dll__osplatform], ecx
mov eax, dword [esi + 4]
mov dword [sym.MSVCR71.dll__winmajor], eax
mov edx, dword [esi + 8]
mov dword [sym.MSVCR71.dll__winminor], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [sym.MSVCR71.dll__osver], esi
jne 0x7c3476fd
shl eax, 8
add eax, edx
push 1
mov dword [sym.MSVCR71.dll__winver], eax
call fcn.7c341f77
test eax, eax
pop ecx
je 0x7c342307
call fcn.7c341922
test eax, eax
je 0x7c34770e
call fcn.7c341a17
test eax, eax
jl 0x7c34771d
call fcn.7c34100e
mov dword [0x7c38b140], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [sym.MSVCR71.dll__acmdln], eax
call fcn.7c3410d3
mov dword [sym.MSVCR71.dll__wcmdln], eax
call fcn.7c341cb3
call fcn.7c341ed1
test eax, eax
jl 0x7c347718
push 0
call fcn.7c341da3
test eax, eax
pop ecx
jne 0x7c347718
inc dword [0x7c38b13c]
jmp 0x7c3422fb
cmp eax, 3
jne 0x7c3422fb
push edi
call fcn.7c342262
pop ecx
jmp 0x7c3422fb
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
push edi
je 0x7c341e00
xor edi, edi
cmp eax, edi
je 0x7c347724
cmp eax, 2
jne 0x7c342291
push 0x8c
push 1
call sym.MSVCR71.dll_calloc
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x7c342307
push esi
push dword [0x7c38b430]
call dword [0x7c38c914]
test eax, eax
push esi
je 0x7c347760
call fcn.7c3423c6
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 0xc
xor eax, eax
jmp 0x7c3422fe
or esi, 0x8000
mov dword [sym.MSVCR71.dll__osver], esi
jmp 0x7c341e51
call fcn.7c349f82
jmp 0x7c342307
call fcn.7c34b835
call fcn.7c349615
jmp 0x7c34770e
cmp dword [0x7c38b13c], edi
jle 0x7c342307
dec dword [0x7c38b13c]
cmp dword [0x7c390f84], edi
jne 0x7c347743
call sym.MSVCR71.dll__cexit
cmp dword [ebp + 0x10], edi
jne 0x7c3422fb
call fcn.7c34b835
call fcn.7c349615
call fcn.7c349f82
jmp 0x7c3422fb
call sym.MSVCR71.dll_free
pop ecx
jmp 0x7c342307
Function at 0x7c347632
Capabilities:
Terminate process

Disassembly:
push 8
call fcn.7c35c2a2
jmp 0x7c347643
pop ecx
pop ecx
push 0x7c38cc90
push 0x7c38cc88
call sym.MSVCR71.dll__initterm
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x7c3476ce
jmp 0x7c3476b6
pop ecx
ret
ret
push 8
push 0x7c37f0d0
call fcn.7c34230b
jmp 0x7c3423d9
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x7c390f88], esi
jne 0x7c347664
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x7c390f84], esi
mov al, byte [ebp + 0x10]
mov byte [0x7c390f80], al
cmp dword [ebp + 0xc], edi
jne 0x7c3423e7
cmp dword [0x7c38b2cc], edi
je 0x7c3476a2
mov eax, dword [0x7c38b2c8]
sub eax, 4
mov dword [0x7c38b2c8], eax
cmp eax, dword [0x7c38b2cc]
jb 0x7c3476a2
mov eax, dword [eax]
cmp eax, edi
je 0x7c347683
call eax
jmp 0x7c347683
push 0x7c38cca4
push 0x7c38cc94
call sym.MSVCR71.dll__initterm
jmp 0x7c3423e5
cmp dword [ebp + 0x10], edi
jne 0x7c3476e3
mov dword [0x7c390f88], esi
push dword [ebp + 8]
call fcn.7c348cd5
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x7c342407
push 8
call fcn.7c35c2a2
jmp 0x7c342406
call fcn.7c342346
jmp 0x7c342408

Function at 0x7c348cd5
Capabilities:
Terminate process

Disassembly:
push str.mscoree.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x7c348cfa
push str.CorExitProcess
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x7c348cfa
push dword [esp + 4]
call eax
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x7c348d3e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x7c38b118]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x7c38ccb0]
je 0x7c348d73
inc eax
cmp eax, 0x13
jb 0x7c348d64
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x7c38ccb0]
jne 0x7c348e99
mov eax, dword [0x7c390f94]
cmp eax, 1
je 0x7c348e71
cmp eax, edx
jne 0x7c348da3
cmp dword [0x7c390f98], 1
je 0x7c348e71
cmp ecx, 0xfc
je 0x7c348e99
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c348dd9
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call sym.MSVCR71.dll__mbscpy
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call sym.MSVCR71.dll_strlen
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x7c348e0d
mov eax, edi
push eax
call sym.MSVCR71.dll_strlen
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x7c37f4c8
push edi
call sym.MSVCR71.dll_strncpy
add esp, 0x10
push edi
call sym.MSVCR71.dll_strlen
push dword [esi + 0x7c38ccb4]
mov ebx, eax
call sym.MSVCR71.dll_strlen
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.7c341395
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call sym.MSVCR71.dll__mbscpy
push edi
push ebx
call sym.MSVCR71.dll__mbscat
push 0x7c37f4a8
push ebx
call sym.MSVCR71.dll__mbscat
push dword [esi + 0x7c38ccb4]
push ebx
call sym.MSVCR71.dll__mbscat
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.7c35c2a2
add esp, 0x2c
jmp 0x7c348e99
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x7c38ccb4]
push dword [esi]
call sym.MSVCR71.dll_strlen
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.7c341aed
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x7c349434
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x7c349450
call sym.MSVCR71.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c3494c2
push esi
push 0x8c
push 1
call sym.MSVCR71.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c3494a8
push esi
call fcn.7c3423c6
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x7c3493a3
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x7c3494a0
push edi
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x7c3494bf
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR71.dll_free
test ebx, ebx
pop ecx
je 0x7c3494ba
push ebx
call fcn.7c349ee2
pop ecx
or eax, 0xffffffff
jmp 0x7c3494c1
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x7c34958a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x7c3495a7
call sym.MSVCR71.dll__errno
mov dword [eax], 0x16
xor eax, eax
jmp 0x7c349611
push esi
push 0x8c
push 1
call sym.MSVCR71.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c3495fc
push esi
call fcn.7c3423c6
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x7c3495da
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x7c3494f6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x7c349610
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR71.dll_free
test ebx, ebx
pop ecx
je 0x7c34960e
push ebx
call fcn.7c349ee2
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x7c3496ee
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x7c34974c
cmp dword [0x7c3910ac], 0
jne 0x7c349712
push 0x244
call sym.MSVCR71.dll_malloc
test eax, eax
pop ecx
mov dword [0x7c3910ac], eax
je 0x7c349775
mov eax, dword [0x7c3910b0]
test eax, eax
je 0x7c349729
push eax
call dword [sym.imp.kernel32.dll_FindClose]
and dword [0x7c3910b0], 0
push dword [0x7c3910ac]
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [0x7c3910b0], eax
je 0x7c349775
mov eax, dword [0x7c3910ac]
add eax, 0x2c
ret
push dword [0x7c3910ac]
push dword [0x7c3910b0]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x7c349743
push dword [0x7c3910b0]
call dword [sym.imp.kernel32.dll_FindClose]
and dword [0x7c3910b0], 0
xor eax, eax
ret

Function at 0x7c349bdc
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x7c349c3a
cmp dword [0x7c3912cc], 0
jne 0x7c349c00
push 0x354
call sym.MSVCR71.dll_malloc
test eax, eax
pop ecx
mov dword [0x7c3912cc], eax
je 0x7c349c63
mov eax, dword [0x7c3912c8]
test eax, eax
je 0x7c349c17
push eax
call dword [sym.imp.kernel32.dll_FindClose]
and dword [0x7c3912c8], 0
push dword [0x7c3912cc]
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [0x7c3912c8], eax
je 0x7c349c63
mov eax, dword [0x7c3912cc]
add eax, 0x2c
ret
push dword [0x7c3912cc]
push dword [0x7c3912c8]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x7c349c31
push dword [0x7c3912c8]
call dword [sym.imp.kernel32.dll_FindClose]
and dword [0x7c3912c8], 0
xor eax, eax
ret
Function at 0x7c34f388
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c3808d0
call fcn.7c34230b
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x7c3913bc], edi
jne 0x7c34f3cc
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c34f3b7
mov dword [0x7c3913bc], ebx
jmp 0x7c34f3cc
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c34f3cc
mov dword [0x7c3913bc], 2
mov eax, dword [0x7c3913bc]
cmp eax, ebx
jne 0x7c34f3ec
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x7c34f4af
cmp eax, 2
je 0x7c34f3f5
cmp eax, edi
jne 0x7c34f41d
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x7c34f408
mov eax, dword [sym.MSVCR71.dll___lc_codepage]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x7c34f424
xor eax, eax
jmp 0x7c34f4af
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.7c341395
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x7c34f457
cmp esi, edi
jne 0x7c34f46d
push dword [ebp - 0x20]
call sym.MSVCR71.dll_malloc
pop ecx
mov esi, eax
cmp esi, edi
je 0x7c34f41d
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x7c34f4a0
cmp dword [ebp + 0x14], edi
jne 0x7c34f48a
push edi
push edi
jmp 0x7c34f490
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x7c34f4ac
push esi
call sym.MSVCR71.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.7c342346
ret
Function at 0x7c34f4b8
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c3808e0
call fcn.7c34230b
xor esi, esi
cmp dword [0x7c3913c0], esi
jne 0x7c34f4fc
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c34f4e7
mov dword [0x7c3913c0], edi
jmp 0x7c34f4fc
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c34f4fc
mov dword [0x7c3913c0], 2
mov eax, dword [0x7c3913c0]
cmp eax, 2
je 0x7c34f5dd
cmp eax, esi
je 0x7c34f5dd
cmp eax, 1
jne 0x7c34f541
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x7c34f52a
mov eax, dword [sym.MSVCR71.dll___lc_codepage]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x7c34f548
xor eax, eax
jmp 0x7c34f5ef
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.7c341395
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x7c34f57e
cmp edi, esi
jne 0x7c34f599
lea eax, [ebx + ebx]
push eax
call sym.MSVCR71.dll_malloc
pop ecx
mov edi, eax
cmp edi, esi
je 0x7c34f541
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c34f5cc
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x7c34f5b6
push esi
push esi
jmp 0x7c34f5bc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x7c34f5d8
push edi
call sym.MSVCR71.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x7c34f5ef
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.7c342346
ret
Function at 0x7c352808
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.7c341395
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x7c3528a3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [sym.MSVCR71.dll__osplatform]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x7c3528a3
cmp eax, 1
je 0x7c3528c4
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x7c3528a3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x7c352870
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x7c35289f
xor eax, eax
inc eax
jmp 0x7c3528e3
cmp edi, eax
jae 0x7c3528a7
xor eax, eax
jmp 0x7c3528e3
cmp eax, esi
jae 0x7c3528ae
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [sym.MSVCR71.dll__osplatform]
jmp 0x7c3528c7
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7c3528eb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x7c38b118]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x7c35291c
xor eax, eax
jmp 0x7c352aa5
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + sym.MSVCR71.dll___pioinfo]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x7c352958
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.7c35c2a2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x7c352a33
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x7c352a71
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x7c3529bc
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x7c3529ad
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x7c35298d
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [esi + eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x7c3529fc
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x7c352a05
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x7c35297e
jmp 0x7c352a07
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x7c352aa0
cmp dword [ebp - 0x6c], edi
je 0x7c352a71
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x7c352a66
call sym.MSVCR71.dll__errno
mov dword [eax], 9
call sym.MSVCR71.dll___doserrno
mov dword [eax], esi
jmp 0x7c352a9b
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x7c352a5b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x7c352a07
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x7c352a07
push dword [ebp - 0x6c]
call fcn.7c349ee2
pop ecx
jmp 0x7c352a9b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x7c352a89
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x7c352a89
xor eax, eax
jmp 0x7c352aa3
call sym.MSVCR71.dll__errno
mov dword [eax], 0x1c
call sym.MSVCR71.dll___doserrno
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x7c352aa3
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.7c341aed
add ebp, 0x3a0
leave
ret
Function at 0x7c3562f8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x7c356306
xor ecx, ecx
jmp 0x7c356324
cmp eax, 0x1a
jbe 0x7c356310
push 0x57
pop eax
pop ebp
ret
add al, 0x40
lea ecx, [ebp + 8]
mov byte [ebp + 8], al
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
mov eax, dword [ebp + 0xc]
push eax
lea edx, [eax + 4]
push edx
lea edx, [eax + 0xc]
push edx
add eax, 8
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x7c356346
pop ebp
jmp dword [sym.imp.kernel32.dll_GetLastError]
xor eax, eax
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x7c356930
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.7c349ee2
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x7c356953
test byte [esp + 8], 2
je 0x7c356953
call sym.MSVCR71.dll__errno
mov dword [eax], 0xd
call sym.MSVCR71.dll___doserrno
mov dword [eax], 5
jmp 0x7c35692c
xor eax, eax
ret

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

Disassembly:
push 0x128
push 0x7c380ce0
call fcn.7c34230b
mov eax, dword [0x7c38b118]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x7c356a63
mov eax, edi
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x7c356a14
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.7c341395
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x7c356a01
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x7c356a63
push edi
inc esi
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x7c356a63
mov al, byte [edi]
cmp al, 0x5c
je 0x7c356a22
cmp al, 0x2f
jne 0x7c356a27
cmp al, byte [edi + 1]
je 0x7c356a5d
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.7c35c2a2
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x7c356a63
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.7c349ee2
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x7c356a7f
push edi
call sym.MSVCR71.dll_free
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.7c341aed
call fcn.7c342346
ret
Function at 0x7c356a99
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x7c380cf0
call fcn.7c34230b
mov eax, dword [0x7c38b118]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x7c356b3d
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.7c341395
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x7c356b2a
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x7c356b3d
push edi
inc esi
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x7c356b58
cmp byte [edi + 1], 0x3a
jne 0x7c356b58
movzx eax, byte [edi]
push eax
call sym.MSVCR71.dll_toupper
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x7c356b68
push edi
call sym.MSVCR71.dll_free
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.7c341aed
call fcn.7c342346
ret

Function at 0x7c356b7e
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x7c380d00
call fcn.7c34230b
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x7c356bed
cmp ebx, 0x1f
jg 0x7c356bed
push 7
call fcn.7c35c2a2
pop ecx
and dword [ebp - 4], 0
add ebx, 0x40
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 0x3a
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x7c356bc5
and dword [ebp - 0x20], 0
jmp 0x7c356bd6
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.7c349ee2
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.7c356be4
mov eax, dword [ebp - 0x20]
jmp 0x7c356c06
call sym.MSVCR71.dll__errno
mov dword [eax], 0xd
call sym.MSVCR71.dll___doserrno
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.7c342346
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x7c356c39
test byte [esp + 8], 0x80
je 0x7c356c27
and eax, 0xfffffffe
jmp 0x7c356c2a
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x7c356c4a
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.7c349ee2
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret