joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d2c
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406133
mov edi, eax
cmp edi, 0xffffffff
je 0x405d6d
test byte [esp + 0x10], 1
push esi
je 0x405d4f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405d55
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405d5e
xor eax, eax
inc eax
jmp 0x405d6f
test byte [esp + 0x10], 4
jne 0x405d6d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x405d74
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040603f
test bl, 8
mov dword [ebp - 8], eax
je 0x405db3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4702e8], eax
jmp 0x405f30
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405dcd
test eax, eax
je 0x405ede
test bl, 2
je 0x405ede
mov esi, 0x456750
push edi
push esi
call fcn.00406668
cmp dword [ebp + 8], 0
je 0x405dec
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405df2
push edi
call fcn.00405f83
cmp word [edi], 0
jne 0x405e02
cmp word [0x456750], 0x5c
jne 0x405e0d
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ed3
cmp word [ebp - 0x22c], 0x2e
jne 0x405e57
cmp word [ebp - 0x22a], 0
je 0x405eb6
cmp word [ebp - 0x22a], 0x2e
jne 0x405e57
cmp word [ebp - 0x228], 0
je 0x405eb6
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406668
test byte [ebp - 0x258], 0x10
je 0x405e82
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405eb6
push dword [ebp + 0xc]
push edi
call fcn.00405d74
jmp 0x405eb6
push dword [ebp - 4]
push edi
call fcn.00405d2c
test eax, eax
jne 0x405eae
cmp dword [ebp - 4], eax
je 0x405ea6
push edi
push 0xfffffffffffffff1
call fcn.004056ca
push 0
push edi
call fcn.00406428
jmp 0x405eb6
inc dword [0x4702e8]
jmp 0x405eb6
push edi
push 0xfffffffffffffff2
call fcn.004056ca
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405e2f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ede
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405f30
cmp dword [ebp - 8], esi
jne 0x405ef2
inc dword [0x4702e8]
jmp 0x405f30
push edi
call fcn.0040699e
test eax, eax
je 0x405f30
push edi
call fcn.00405f37
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405d2c
test eax, eax
jne 0x405f28
cmp dword [ebp - 4], esi
je 0x405eea
push edi
push 0xfffffffffffffff1
call fcn.004056ca
push esi
push edi
call fcn.00406428
jmp 0x405f30
push edi
push 0xffffffffffffffe5
call fcn.004056ca
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40288e
pop dword [ebp - 0x18]
mov eax, 0x40288e
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x33518c61
add dword [ebp - 0x28], 0x1b00b8ea
mov dword [ebp - 0x24], 0xc4097100
add dword [ebp - 0x24], 0x6e29db45
mov dword [ebp - 0x20], 0x3905cee7
sub dword [ebp - 0x20], 0xecb98ab9
mov dword [ebp - 0x1c], 0xa05fea69
add dword [ebp - 0x1c], 0x5fa01597
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x890d8d4b
add dword [ebp - 0x28], 0xeb64dc0b
mov dword [ebp - 0x24], 0xaa207988
add dword [ebp - 0x24], 0x974be7ed
mov dword [ebp - 0x20], 0x6dc8fd76
sub dword [ebp - 0x20], 0xa59910a
mov dword [ebp - 0x1c], 0x96749cec
sub dword [ebp - 0x1c], 0x96749cec
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x663f5dcc
add eax, 0x9a012308
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x388aa
push 0
call eax
mov ecx, 0x4fc8
mov ebx, eax
mov edx, 0xad16ad04
add edx, 0x532a62fc
add edx, dword [ebp - 0x18]
mov edi, 0x353331e8
sub edi, 0xfe407d9c
mov dword [ebp - 0x14], 0x7abb47c
mov esi, dword [edx]
xor dword [ebp - 0xc], 0x7c2ab440
add esi, edi
add dword [ebp - 0x14], ecx
mov dword [ebx], esi
mov dword [ebp - 0x10], 0xdc750e82
add ebx, 4
add edx, 4
loop 0x4029a0
add eax, 0x6834e962
sub eax, 0x6833b76f
mov ebx, eax
add eax, 5
mov ecx, 0xb3ee9dfe
sub ecx, 0xb3ae9dfe
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4119d7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4119fe
xor eax, eax
jmp 0x411a19
test byte [ebp - 4], 0x10
je 0x411a12
mov eax, 1
jmp 0x411a14
xor eax, eax
jmp 0x411a19
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4294e0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x4294fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42950d
push eax
call fcn.0042fa40
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x42a5f0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x452528], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x42a60e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x452524], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x452520], bl
jne 0x42a668
cmp dword [0x46719c], 0
je 0x42a656
mov edi, dword [0x467198]
sub edi, 4
cmp edi, dword [0x46719c]
jb 0x42a656
mov eax, dword [edi]
test eax, eax
je 0x42a64b
call eax
sub edi, 4
cmp edi, dword [0x46719c]
jae 0x42a643
push 0x44c030
push 0x44c028
call fcn.0042a6a0
add esp, 8
push 0x44c038
push 0x44c034
call fcn.0042a6a0
add esp, 8
test ebx, ebx
jne 0x42a68f
mov dword [0x452528], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x42b320
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x42b33f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42b352
push eax
call fcn.0042fa40
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x42b9d0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x42b9ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42b9ff
push eax
call fcn.0042fa40
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x42c680
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x452748
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x42c6a7
add eax, 8
inc ecx
cmp eax, 0x4527d8
jb 0x42c698
cmp dword [ecx*8 + 0x452748], edx
lea ebx, [ecx*8]
jne 0x42c86b
cmp dword [0x452370], 1
je 0x42c827
cmp dword [0x452370], 0
jne 0x42c6de
cmp dword [0x452374], 1
je 0x42c827
cmp edx, 0xfc
je 0x42c86b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x42c71b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x42c75f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x44b218
push ebp
call fcn.0042a6c0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44b210
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x45274c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0042e410
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x467090], 0
je 0x42c83d
mov eax, dword [0x467090]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x42c847
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x45274c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub 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 ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x42cc20
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 0x42cc45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042fa40
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x42cc6a
test byte [esp + 8], 2
je 0x42cc6a
mov dword [0x4524e0], 0xd
mov dword [0x4524e4], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x42cd40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x467190], edx
push ebx
push esi
push edi
push ebp
jbe 0x42cf47
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x467090
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x42cf47
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x42cda9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x42cdba
push 2
push 0
push edx
call fcn.0042c880
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x42ce56
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x42ce8f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x42ce1d
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x42ce0b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x42cdf2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42ce85
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x42cddd
jmp 0x42ce8f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42ce85
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x42ce8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x42cf36
cmp dword [esp + 0x10], 0
je 0x42cee8
cmp dword [esp + 0x10], 5
jne 0x42cecb
mov dword [0x4524e0], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x4524e4], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0042fa40
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x42cf12
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x42cf12
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4524e0], 0x1c
mov dword [0x4524e4], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4524e0], 9
mov dword [0x4524e4], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x42d7d0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0042be60
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x467190], esi
jbe 0x42d91d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x467090]
test byte [edx + ecx*8 + 4], 1
je 0x42d91d
push 1
push ebx
push esi
call fcn.0042c880
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x42d90d
push 2
push ebx
push esi
call fcn.0042c880
add esp, 0xc
cmp eax, 0xffffffff
je 0x42d90d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x42d8b3
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0042d070
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x42d876
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0042cd40
add esp, 0xc
cmp eax, 0xffffffff
je 0x42d892
sub ebp, eax
test ebp, ebp
jg 0x42d86b
jmp 0x42d8a7
cmp dword [0x4524e4], 5
jne 0x42d8a5
mov dword [0x4524e0], 0xd
mov ebx, eax
push edi
push esi
call fcn.0042d070
add esp, 8
jmp 0x42d8f0
jge 0x42d8f0
push 0
push ecx
push esi
call fcn.0042c880
add esp, 0xc
push esi
call fcn.0042cbd0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x42d8f0
mov dword [0x4524e0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4524e4], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.0042c880
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4524e0], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x430590
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x453288], ebx
jne 0x4305df
call esi
cmp eax, ebx
mov edi, eax
je 0x4305bd
mov dword [0x453288], 1
jmp 0x4305df
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4305d5
mov dword [0x453288], 2
jmp 0x4305df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x453288], 1
jne 0x43068e
test edi, edi
jne 0x430602
call esi
mov edi, eax
test edi, edi
jne 0x430602
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x43061c
add esi, 2
cmp word [esi], 0
jne 0x43060a
add esi, 2
cmp word [esi], 0
jne 0x43060a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x43067d
push ebp
call fcn.0042b030
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x43067d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x43066c
push ebx
call fcn.00429490
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x453288], 2
jne 0x430712
test ebx, ebx
jne 0x4306b1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4306b1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4306c6
inc ebp
cmp byte [ebp], 0
jne 0x4306b8
inc ebp
cmp byte [ebp], 0
jne 0x4306b8
sub ebp, ebx
inc ebp
push ebp
call fcn.0042b030
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4306eb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x433e60
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x43409e
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00435290
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x43409e
cmp ebp, dword [esp + 0x18]
je 0x43409e
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x452508]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x45250c], ecx
jne 0x433ebd
push ecx
call fcn.00434110
add esp, 4
mov dword [0x452508], eax
cmp dword [0x452508], 0
jne 0x433f6d
cmp dword [esp + 0x1c], 0
je 0x433ef4
cmp dword [0x452510], 0
je 0x433ef4
call fcn.00431ae0
test eax, eax
je 0x433f6d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x433f05
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x452508], 0
jne 0x433f39
push 4
call fcn.0042b030
add esp, 4
mov dword [0x452508], eax
test eax, eax
jne 0x433f2e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x452508]
mov dword [eax], 0
cmp dword [0x452510], 0
jne 0x433f6d
push 4
call fcn.0042b030
add esp, 4
mov dword [0x452510], eax
test eax, eax
jne 0x433f62
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x452510]
mov dword [eax], 0
mov esi, dword [0x452508]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.004340b0
add esp, 8
mov edi, eax
test edi, edi
jl 0x433fd5
cmp dword [esi], 0
je 0x433fd5
cmp dword [esp + 0x10], 0
je 0x433fcc
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00429490
add esp, 4
cmp dword [ebx], 0
je 0x433fb9
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x433faa
shl edi, 2
push edi
push esi
call fcn.0042ba10
add esp, 8
test eax, eax
je 0x43401d
jmp 0x434018
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x43401d
cmp dword [esp + 0x10], 0
jne 0x434094
test edi, edi
jge 0x433fe6
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.0042ba10
add esp, 8
test eax, eax
jne 0x434008
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x452508], eax
cmp dword [esp + 0x1c], 0
je 0x43408a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0042b030
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x43408a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00429490
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x449f70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x449fe3
push ebx
call fcn.0044a0a0
add esp, 4
test eax, eax
jne 0x449fb1
xor eax, eax
pop edi
mov dword [0x4524e4], 0xf
mov dword [0x4524e0], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x449ff3
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44a092
inc eax
cmp eax, 0x104
ja 0x44a092
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x44a044
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x44a01f
mov ecx, eax
push ecx
call fcn.0042b030
add esp, 4
mov edx, eax
test edx, edx
jne 0x44a063
xor eax, eax
pop edi
mov dword [0x4524e0], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x44a063
xor eax, eax
pop edi
mov dword [0x4524e0], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x44a0a0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x44a0b4
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x44a0e6
cmp eax, 1
je 0x44a0e6
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret
Function at 0x44ad50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44ad86
cmp byte [esp + 5], 0x3a
jne 0x44ad86
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.0042b590
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret