joyce8/EMBER2024-capa huggingface dataset:
Function at 0x698126b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x22c
mov eax, dword [0x69821100]
test eax, eax
je 0x69812768
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x698126f0
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x698126dc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x6981279d
mov dword [esp + 4], 0x6981b264
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x69821100], eax
sub esp, 8
test eax, eax
jne 0x698126cd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x698126de
Function at 0xac0c8c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xac0c96
pushal
call 0xac0c9c
pop ebp
sub ebp, 0x10
sub ebp, 0x6c0c8c
jmp 0xac0cb2
mov eax, 0x6c0c8c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5e3
mov edx, 0xa71d30ae
xor byte [eax], dl
inc eax
dec ecx
jne 0xac0cc9
jmp 0xac0cdc
and eax, 0x92272563
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
das
outsd dx, dword [esi]
push esi
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
lodsd eax, dword [esi]
arpl word [esi], dx
stosb byte es:[edi], al
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
adc al, 0x86
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
pop ecx
dec esp
lodsd eax, dword [esi]
and ax, 0xa22f
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
lodsd eax, dword [esi]
imul esp, dword [ebx], 0xffffffca
mov dl, byte [edx + 0x27]
stosb byte es:[edi], al
mov bh, dh
invalid
Function at 0x41f670
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x44a044]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x41f68f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x44a040], 1
mov byte [0x44a03c], bl
jne 0x41f6e9
mov ecx, dword [0x4edec8]
test ecx, ecx
je 0x41f6d7
mov esi, dword [0x4edec4]
sub esi, 4
cmp esi, ecx
jb 0x41f6d7
mov eax, dword [esi]
test eax, eax
je 0x41f6d0
call eax
mov ecx, dword [0x4edec8]
sub esi, 4
cmp esi, ecx
jae 0x41f6c2
push 0x430020
push 0x430018
call fcn.0041f720
add esp, 8
push 0x430028
push 0x430024
call fcn.0041f720
add esp, 8
test ebx, ebx
jne 0x41f710
push ebp
mov dword [0x44a044], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x421130
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x421147
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x421149
xor eax, eax
test eax, eax
je 0x42115a
push eax
call fcn.00426d30
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x421910
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f3a0
push 0x428638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x44a014], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x44a010], ecx
shl ecx, 8
add ecx, edx
mov dword [0x44a00c], ecx
shr eax, 0x10
mov dword [0x44a008], eax
call fcn.00424120
test eax, eax
jne 0x42197a
push 0x1c
call fcn.00421a30
add esp, 4
mov dword [ebp - 4], 0
call fcn.00423750
call fcn.00428530
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4ecea4], eax
call fcn.00428100
mov dword [0x44a07c], eax
test eax, eax
je 0x4219ad
mov eax, dword [0x4ecea4]
test eax, eax
jne 0x4219b7
push 0xffffffffffffffff
call fcn.0041f630
add esp, 4
call fcn.00427e50
call fcn.00427d60
call fcn.0041f600
mov eax, dword [0x44a024]
mov dword [0x44a028], eax
push eax
mov eax, dword [0x44a01c]
push eax
mov ecx, dword [0x44a018]
push ecx
call fcn.0041e6b0
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.0041f630
jmp 0x421a12
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423ee0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4ecea0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x42408d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4ecda0]
lea edi, [ecx*4 + 0x4ecda0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x42408d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x423f4e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x423f5f
push 2
push ebp
push eax
call fcn.00426320
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4240be
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x424009
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x423fba
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x423fa7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x423f8a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4240af
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x424005
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x423f86
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42407e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x424052
cmp eax, 5
jne 0x42403b
mov dword [0x44a000], eax
mov dword [0x449ffc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00426d30
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x424072
cmp byte [ebp], 0x1a
jne 0x424072
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x449ffc], 0x1c
jmp 0x424097
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x449ffc], 9
pop edi
pop esi
pop ebp
mov dword [0x44a000], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x424005
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4240ef
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x424009
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x424009
Function at 0x426ae0
Capabilities:
Create pipe

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov ebp, edi
and ebp, 0x80
mov eax, 0
sete al
mov dword [esp + 0x14], eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x426b45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426d30
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
add esp, 0xc
ret
call fcn.00426880
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x426c59
mov edx, eax
and eax, 0x1f
sar edx, 5
mov ecx, dword [edx*4 + 0x4ecda0]
mov byte [ecx + eax*8 + 4], 0x89
call fcn.00426880
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x426c43
mov edx, eax
and eax, 0x1f
sar edx, 5
test edi, 0x8000
mov ecx, dword [edx*4 + 0x4ecda0]
mov byte [ecx + eax*8 + 4], 0x89
jne 0x426bae
test edi, 0x4000
jne 0x426be5
cmp dword [0x44a46c], 0x8000
jne 0x426be5
mov eax, dword [esi]
mov edx, eax
and eax, 0x1f
sar edx, 5
mov ecx, dword [edx*4 + 0x4ecda0]
mov dl, byte [ecx + eax*8 + 4]
and dl, 0x7f
lea eax, [ecx + eax*8 + 4]
mov byte [eax], dl
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x1f
sar edx, 5
mov ecx, dword [edx*4 + 0x4ecda0]
lea eax, [ecx + eax*8 + 4]
and byte [eax], 0x7f
test ebp, ebp
je 0x426c1e
mov eax, dword [esi]
mov edx, eax
and eax, 0x1f
sar edx, 5
mov ecx, dword [edx*4 + 0x4ecda0]
lea eax, [ecx + eax*8 + 4]
mov cl, byte [eax]
or cl, 0x10
mov byte [eax], cl
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x1f
sar edx, 5
mov ecx, dword [edx*4 + 0x4ecda0]
lea eax, [ecx + eax*8 + 4]
or byte [eax], 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
push edx
push eax
call fcn.00426940
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 4]
add esp, 8
push ecx
push edx
call fcn.00426940
add esp, 8
xor eax, eax
jmp 0x426c5e
mov esi, dword [esi]
mov eax, esi
sar eax, 5
and esi, 0x1f
mov ecx, dword [eax*4 + 0x4ecda0]
mov byte [ecx + esi*8 + 4], 0
mov eax, 0x18
test eax, eax
mov dword [0x449ffc], eax
je 0x426c8f
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov dword [0x44a000], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
add esp, 0xc
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x427ae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426d30
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x427b06
test byte [esp + 8], 2
je 0x427b06
mov dword [0x449ffc], 0xd
mov dword [0x44a000], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x428100
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x44a200]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x428142
call edi
mov esi, eax
test esi, esi
je 0x42812c
mov eax, 1
jmp 0x42813d
call ebp
mov ebx, eax
test ebx, ebx
je 0x42824f
mov eax, 2
mov dword [0x44a200], eax
cmp eax, 1
jne 0x4281e2
test esi, esi
jne 0x42815b
call edi
mov esi, eax
test esi, esi
je 0x42824f
cmp word [esi], 0
mov eax, esi
je 0x428175
add eax, 2
cmp word [eax], 0
jne 0x428163
add eax, 2
cmp word [eax], 0
jne 0x428163
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4281d4
push edi
call fcn.0041fdf0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4281d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4281c6
push ebx
call fcn.0041fea0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x42824f
test ebx, ebx
jne 0x4281f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x42824f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x42820b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4281fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4281fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0041fdf0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x42822d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x428750
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x438890
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x428774
add eax, 8
inc ebp
cmp eax, 0x438920
jb 0x428765
cmp ecx, dword [ebp*8 + 0x438890]
jne 0x42891b
mov eax, dword [0x44a084]
cmp eax, 1
je 0x4288dd
test eax, eax
jne 0x4287a0
cmp dword [0x4362a4], 1
je 0x4288dd
cmp ecx, 0xfc
je 0x42891b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4287db
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x428824
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x42f240
add ebx, ecx
push ebx
call fcn.00421030
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42f238
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x438894]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00423c70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4ecda0]
test eax, eax
je 0x4288ee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4288f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x438894]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x42a690
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42a84e
push 0x3d
push edi
call fcn.0042bb70
mov esi, eax
add esp, 8
test esi, esi
je 0x42a84e
cmp edi, esi
je 0x42a84e
mov dl, byte [esi + 1]
mov ecx, dword [0x44a028]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x44a024]
cmp eax, ecx
jne 0x42a6e7
push eax
call fcn.0042a920
add esp, 4
mov dword [0x44a024], eax
test eax, eax
jne 0x42a762
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42a70e
mov eax, dword [0x44a02c]
test eax, eax
je 0x42a70e
call fcn.00425440
test eax, eax
je 0x42a75d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x42a71a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0041fdf0
add esp, 4
mov dword [0x44a024], eax
test eax, eax
je 0x42a84e
mov dword [eax], 0
mov eax, dword [0x44a02c]
test eax, eax
jne 0x42a75d
push 4
call fcn.0041fdf0
add esp, 4
mov dword [0x44a02c], eax
test eax, eax
je 0x42a84e
mov dword [eax], 0
mov eax, dword [0x44a024]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0042a8a0
mov esi, eax
add esp, 8
test esi, esi
jl 0x42a85f
cmp dword [ebx], 0
je 0x42a85f
test ebp, ebp
je 0x42a857
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0041fea0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x42a7b9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x42a7a8
lea eax, [esi*4]
push eax
push ebx
call fcn.00420950
add esp, 8
test eax, eax
je 0x42a7d3
mov dword [0x44a024], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42a846
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0041fdf0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42a846
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0041fea0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x42a7d7
test ebp, ebp
jne 0x42a846
test esi, esi
jge 0x42a869
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00420950
add esp, 8
test eax, eax
je 0x42a84e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x44a024], eax
jmp 0x42a7d7
Function at 0x42d540
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00421160
mov eax, dword [0x4ecea0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x42d6a2
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x4ecda0]
test byte [edx + ecx*8 + 4], 1
je 0x42d6a2
push 1
push ebp
push ebx
call fcn.00426320
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x42d6ac
push 2
push ebp
push ebx
call fcn.00426320
add esp, 0xc
cmp eax, 0xffffffff
je 0x42d6ac
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x42d648
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0042db60
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x42d5ef
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00423ee0
add esp, 0xc
cmp eax, 0xffffffff
je 0x42d60b
sub esi, eax
test esi, esi
jle 0x42d621
jmp 0x42d5e0
cmp dword [0x44a000], 5
jne 0x42d61e
mov dword [0x449ffc], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0042db60
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00426320
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x42d689
push 0
push ecx
push ebx
call fcn.00426320
add esp, 0xc
push ebx
call fcn.00426a90
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x42d689
mov dword [0x449ffc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x44a000], eax
push 0
push edi
push ebx
call fcn.00426320
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x449ffc], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x42e0d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x42e141
push ebx
call fcn.0042e200
add esp, 4
test eax, eax
jne 0x42e10f
mov dword [0x44a000], 0xf
mov dword [0x449ffc], 0xd
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x42e151
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42e1e7
inc eax
cmp eax, 0x104
ja 0x42e1e7
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x42e1a0
cmp eax, ecx
jg 0x42e17d
mov eax, ecx
push eax
call fcn.0041fdf0
mov edx, eax
add esp, 4
test edx, edx
jne 0x42e1ba
mov dword [0x449ffc], 0xc
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x42e1ba
mov dword [0x449ffc], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x42e200
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x42e20e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x42e23d
cmp eax, 1
je 0x42e23d
mov eax, 1
ret
xor eax, eax
ret

Function at 0x42e470
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42e4a9
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x42e4a9
and eax, 0xff
push eax
call fcn.0042e680
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret