joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eae9
Capabilities:
Delete file

Disassembly:
mov eax, 0x4466d7
call fcn.004205a0
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.0041ed92
test al, 0x10
pop ecx
je 0x41ec6b
push 1
lea eax, [ebp + 8]
pop ebx
push 0x4546c4
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041ed19
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], bl
push ecx
mov ecx, eax
call fcn.00404afe
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00401291
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x41ec12
test ebx, ebx
je 0x41ec07
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x45469c
push eax
call ebx
test eax, eax
je 0x41ebf2
lea eax, [ebp - 0x1bc]
push 0x454698
push eax
call ebx
test eax, eax
je 0x41ebf2
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x449500
mov dword [ebp - 0x20], 0x4494f8
call fcn.00404716
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.0041eca0
add esp, 0xc
call fcn.0041eae9
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00401291
lea eax, [ebp - 0x1e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
jmp 0x41eb6c
test esi, esi
je 0x41ec12
push edi
call esi
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404afe
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41ec41
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.0040ada6
lea eax, [ebp - 0x60]
push 0x44cc60
push eax
call fcn.00420f48
cmp dword [ebp - 0x10], 0xffffffff
je 0x41ec50
test esi, esi
je 0x41ec50
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401291
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.00404afe
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41ec50
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040ada6
lea eax, [ebp - 0xa8]
push 0x44cc60
push eax
call fcn.00420f48

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.00404afe
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41edc7
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.0040ada6
lea eax, [ebp - 0x48]
push 0x44cc60
push eax
call fcn.00420f48
leave
ret
Function at 0x433b10
Capabilities:
Get thread local storage value

Disassembly:
push 0xfffffffffffffffb
push 0x4479e8
inc esp
mov eax, dword [pe_dos_header]
push eax
leave
and eax, 0
sub esp, 0x18
mov eax, dword [ecx + 0x1c4]
push ebx
push ebp
push esi
cmp eax, 0xffffffff
push edi
mov dword [esp + 0x10], ecx
jne 0x1433c75
xor ebp, ebp
jmp 0x433b47
invalid
Function at 0x42ccc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x1f5
mov eax, dword [ebp - 4]
sub eax, 1
cmp eax, 0x1f4
je 0x42ccff
push 0x1f4
mov ecx, dword [ebp - 4]
sub ecx, 1
push ecx
push str._RCSfile:_outilparutils.cxx_v__
push str.file__s_:_internal_error__size_mismatch:_._noutilpar.inc_size_d__dtbmax.inc_size_d_nAborting._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42d5d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x47be44
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42d612
push str.crash
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
jne 0x42d612
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ecx], 1
mov esp, ebp
pop ebp
ret

Function at 0x4310e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x47c49c
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
jne 0x431105
call fcn.00431840
jmp 0x4311ea
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x431123
mov eax, dword [ebp - 4]
jmp 0x4311ea
cmp dword [0xad9bfc], 0
jne 0x431131
call fcn.004311f0
push 0x47c4a0
mov edx, dword [0xad9bfc]
push edx
call fcn.0042f800
add esp, 8
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
test eax, eax
jge 0x431158
xor eax, eax
jmp 0x4311ea
mov ecx, dword [ebp + 8]
push ecx
movzx edx, word [ebp - 8]
push edx
mov eax, dword [0xad9bfc]
push eax
call fcn.0042fec0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4311e7
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x431189
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x431195
jmp 0x431180
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4311a9
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x4311c8
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x4311c8
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
jl 0x4311c8
jmp 0x4311a0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x4311e7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x431d60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0x47c4a4
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
jne 0x431da2
push str.WNCTMPDIR
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x431da0
push str.from_environment_variable_WNCTMPDIR
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
xor eax, eax
jmp 0x431de0
jmp 0x431dc9
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x431dc9
push str.from_environment
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
xor eax, eax
jmp 0x431de0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0xad9bfc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042f770
add esp, 0xc
pop ebp
ret

Function at 0x431e60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x486d20]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x431e80
xor eax, eax
jmp 0x431fb8
mov eax, dword [ebp + 8]
push eax
push 0x47c4f0
lea ecx, [ebp - 0x190]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x431eba
mov eax, dword [ebp - 4]
jmp 0x431fb8
cmp dword [0xad9bfc], 0
jne 0x431ec8
call fcn.004311f0
push str.path
mov eax, dword [0xad9bfc]
push eax
call fcn.0042f800
add esp, 8
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
test ecx, ecx
jge 0x431eee
xor eax, eax
jmp 0x431fb8
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 8]
push eax
mov ecx, dword [0xad9bfc]
push ecx
call fcn.0042fec0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x431fb5
mov edx, dword [ebp - 4]
mov dword [ebp - 0x194], edx
jmp 0x431f2d
mov eax, dword [ebp - 0x194]
add eax, 1
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
movsx edx, byte [ecx]
test edx, edx
je 0x431f3c
jmp 0x431f1e
mov eax, dword [ebp - 0x194]
sub eax, 1
mov dword [ebp - 0x194], eax
jmp 0x431f5c
mov ecx, dword [ebp - 0x194]
sub ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
cmp edx, dword [ebp - 4]
jb 0x431f84
mov eax, dword [ebp - 0x194]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x431f84
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
jl 0x431f84
jmp 0x431f4d
mov ecx, dword [ebp - 0x194]
add ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
je 0x431fb5
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
mov byte [edx], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00458368
mov esp, ebp
pop ebp
ret
Function at 0x431fd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x486d20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push str._sPATH
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x432021
lea eax, [ebp - 0x58]
push eax
push str.from_environment__s
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
xor eax, eax
jmp 0x432037
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [0xad9bfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042f770
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458368
mov esp, ebp
pop ebp
ret

Function at 0x436de0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x486d20]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
push ecx
push 0x1ff
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042daf0
push 0x2c
lea edx, [ebp - 0x208]
push edx
call fcn.0042e9f0
add esp, 8
test eax, eax
je 0x436e81
mov eax, dword [ebp + 0x10]
push eax
push 0x1ff
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042e6b0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x436e81
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffd5
jne 0x436e7f
push 0x2c
lea eax, [ebp - 0x208]
push eax
call fcn.0042e9f0
add esp, 8
test eax, eax
jne 0x436e7f
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
jmp 0x436e81
jmp 0x436ee2
lea edx, [ebp - 9]
mov dword [ebp - 4], edx
jmp 0x436e92
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x208]
cmp ecx, edx
jb 0x436eb6
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x436eb6
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
jl 0x436eb6
jmp 0x436e89
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov byte [edx], 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
test eax, eax
je 0x436ee2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffeb
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00458368
mov esp, ebp
pop ebp
ret 0xc

Function at 0x437040
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.WNC_WNCFILES_VERBOSE
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x437079
push 0x47cc98
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
je 0x437079
mov eax, 1
jmp 0x43707b
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x437b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
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 0x437b7b
xor eax, eax
jmp 0x437b87
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x437c70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
test eax, eax
je 0x437c94
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 0xd
je 0x437c94
or eax, 0xffffffff
jmp 0x437c96
xor eax, eax
pop ebp
ret
Function at 0x437f20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x486d20]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0x47ccec
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x437f52
mov eax, dword [ebp - 4]
jmp 0x4380d9
push str.WNCHOME_LS
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43809d
push 0x200
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x437f91
xor eax, eax
jmp 0x4380d9
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], ecx
jmp 0x437fae
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x437fd4
mov edx, dword [ebp - 0x21c]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x437fd2
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 0x2f
jmp 0x437f9f
push 0x2f
lea edx, [ebp - 0x218]
push edx
call fcn.004380f0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x437ff5
xor eax, eax
jmp 0x4380d9
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
push 0x2f
lea edx, [ebp - 0x218]
push edx
call fcn.004380f0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x438025
xor eax, eax
jmp 0x4380d9
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
push 0x2f
lea edx, [ebp - 0x218]
push edx
call fcn.004380f0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x438055
xor eax, eax
jmp 0x4380d9
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
push 0x47cd00
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x438090
push 0x47cd04
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x438094
xor eax, eax
jmp 0x4380d9
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], ecx
movzx edx, byte [ebp + 8]
test edx, edx
je 0x4380d6
push str.WNCHOME
push 0xadbe78
call sub.MSVCR100.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0xadbe78
call sub.MSVCR100.dll_strcat
add esp, 8
push 0xadbe78
call dword [sym.imp.MSVCR100.dll__putenv]
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00458368
mov esp, ebp
pop ebp
ret
Function at 0x458368
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x486d20]
jne 0x458372
repz ret
jmp fcn.00458814

Function at 0x45ad40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x486d20]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0045fdb0
test eax, eax
je 0x45ad73
call fcn.0045fd10
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
jmp 0x45adbc
push 0x47fdc4
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x45ada6
push 0x47fdcc
lea ecx, [ebp - 0x210]
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
jmp 0x45adbc
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
push 0x47fdd0
push 0x47fdd8
push 0x5c
lea ecx, [ebp - 0x210]
push ecx
push 0x47fde0
push 0xb1dd60
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
mov byte [0xb1df60], 0
push 0x47fdec
push 0xb1dd60
call dword [sym.imp.MSVCR100.dll_strcspn]
add esp, 8
mov byte [eax + 0xb1dd60], 0
push 0x201
push 0xb1dd60
call fcn.0045abd0
add esp, 8
push 0x47fdf0
push str.zone
push 0x5c
lea edx, [ebp - 0x210]
push edx
push str._s_c_s_s
push 0xb1df68
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
mov byte [0xb1e168], 0
push 0x47fe0c
push 0xb1df68
call dword [sym.imp.MSVCR100.dll_strcspn]
add esp, 8
mov byte [eax + 0xb1df68], 0
push 0x201
push 0xb1df68
call fcn.0045abd0
add esp, 8
cmp dword [0xb1e174], 0
jne 0x45ae8e
push 0x45acf0
call fcn.00458425
add esp, 4
mov dword [0xb1e174], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458368
mov esp, ebp
pop ebp
ret

Function at 0x45f790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x486d20]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0xb2360c], 0
je 0x45f7f6
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s___d__:__d_n
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
mov ecx, dword [0xb23608]
push ecx
lea edx, [ebp - 0x408]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
push eax
push 1
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458368
mov esp, ebp
pop ebp
ret

Function at 0x45fd10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x480020
cmp dword [0xb1f144], 0
je 0x45fd2f
mov eax, 0xb1f148
jmp 0x45fd50
push 0x480024
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45fd4d
mov eax, dword [ebp - 8]
jmp 0x45fd50
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x45fdc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0xb1f144], 0
je 0x45fde1
push 0xb1f148
push 0xb233d0
call sub.MSVCR100.dll_strcpy
add esp, 8
jmp 0x45fe1d
push str.WNCZONE
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45fe0c
push 0x480040
push 0xb233d0
call sub.MSVCR100.dll_strcpy
add esp, 8
jmp 0x45fe1d
mov eax, dword [ebp - 4]
push eax
push 0xb233d0
call sub.MSVCR100.dll_strcpy
add esp, 8
push 0x480044
mov ecx, dword [ebp + 8]
push ecx
call fcn.004713f0
add esp, 8
push eax
push 0x5c
push 0xb233d0
push str._s_c_s
push 0xb231c8
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
push 0x201
push 0xb231c8
call fcn.0042da20
add esp, 8
cmp dword [0xb235dc], 0
jne 0x45fe7b
push 0x45fcb0
call fcn.00458425
add esp, 4
mov dword [0xb235dc], 1
mov esp, ebp
pop ebp
ret

Function at 0x469490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0xb23720]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
push eax
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
cmp esi, eax
je 0x4694ea
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffe6
jmp 0x469520
mov dx, word [0x480910]
mov word [ebp - 8], dx
mov al, byte [0x480912]
mov byte [ebp - 6], al
mov ecx, dword [ebp - 4]
push ecx
push 2
push 1
lea edx, [ebp - 8]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 2
je 0x469520
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffe6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0xb23720]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
push eax
push 1
push 1
lea ecx, [ebp - 5]
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x469665
mov edx, dword [ebp + 0x14]
mov dword [edx], 0xffffffe7
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x469679
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 4], ecx
jge 0x469695
movsx edx, byte [ebp - 5]
cmp edx, 0xa
je 0x469695
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x469633
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 4], ecx
jne 0x469710
movsx edx, byte [ebp - 5]
cmp edx, 0xa
je 0x469710
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffd6
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 1]
cmp edx, 0xa
je 0x4696cc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0xa
jmp 0x4696d5
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x4696f1
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x46970b
cmp dword [ebp - 4], 0
jl 0x46970b
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4696d5
jmp 0x4697a7
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0xffffffe7
je 0x469721
movsx eax, byte [ebp - 5]
cmp eax, 0xa
jne 0x469732
cmp dword [ebp - 4], 0
jne 0x469732
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0xffffffe9
jmp 0x4697a7
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x46975e
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x4697a7
cmp dword [ebp - 4], 0
jl 0x4697a7
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x469793
cmp dword [ebp - 0x10], 0
jne 0x469791
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4697a5
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x469742
mov esp, ebp
pop ebp
ret

Function at 0x469a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
pop ebp
ret
Function at 0x46b410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
pop ebp
ret