joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, dword [ebp + 8]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x48], eax
mov edi, esp
push 0x359
push str..._.._base_files_file_util_win.cc
push 0x5cd97f
push edi
call fcn.004835b0
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push edi
call fcn.004d4910
cmp byte [esi + 0xb], 0
jns 0x4940b8
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x5cd8e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, 0xffffffff
test eax, eax
je 0x494144
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp edi, 0xffffffff
je 0x49413d
mov esi, dword [ebp + 0x10]
call fcn.004835e0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [esp + 4]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp], esi
mov ecx, 0xffffffff
cmove ecx, esi
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, ecx
call fcn.004835e0
push edi
call fcn.00498c60
add esp, 4
jmp 0x494144
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x10]
call fcn.004d4a30
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00596351
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x494170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x258], eax
lea edi, [esp + 0x50]
push 0x38c
push str..._.._base_files_file_util_win.cc
push 0x5cd989
push edi
call fcn.004835b0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.004d4910
mov word [esp + 0x50], 0
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x103
ja 0x49421f
cmp word [esp + 0x50], 0
je 0x4941ef
xor ecx, ecx
nop
lea eax, [ecx + 1]
cmp word [esp + ecx*2 + 0x52], 0
mov ecx, eax
jne 0x4941e0
jmp 0x4941f1
xor eax, eax
mov ebx, esp
mov ecx, ebx
push eax
push edi
call fcn.004808b0
lea edi, [esp + 0xc]
mov ecx, ebx
push edi
call fcn.00482ac0
mov ecx, dword [ebp + 8]
push edi
call fcn.004809b0
mov ecx, edi
call fcn.00480970
mov ecx, ebx
call fcn.00480970
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x18]
call fcn.004d4a30
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x494250
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x48], eax
mov ebx, esp
push 0x39c
push str..._.._base_files_file_util_win.cc
push 0x5cd99e
push ebx
call fcn.004835b0
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.004d4910
cmp byte [edi + 0xb], 0
jns 0x49429a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.004d4a30
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4942d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x258
mov ebx, dword [ebp + 8]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x250], eax
lea esi, [esp + 0x48]
push 0x3a1
push str..._.._base_files_file_util_win.cc
push str.GetMaximumPathComponentLength
push esi
call fcn.004835b0
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push esi
call fcn.004d4910
lea edi, [esp + 4]
mov ecx, ebx
push edi
call fcn.00482dc0
cmp byte [esp + 0xf], 0
mov eax, edi
jns 0x494331
mov eax, dword [esp + 4]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov ebx, eax
mov ecx, edi
call fcn.00480970
test ebx, ebx
je 0x4943a3
mov dword [esp], 0
mov eax, esp
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4943a3
lea edi, [esp + 4]
mov ecx, dword [ebp + 8]
push edi
call fcn.00482ac0
movzx ebx, byte [esp + 0xf]
test bl, bl
jns 0x494386
mov ebx, dword [esp + 8]
mov ecx, edi
call fcn.00480970
mov esi, 0x102
xor eax, eax
sub esi, ebx
cmovs esi, eax
mov eax, dword [esp]
cmp eax, esi
cmovl esi, eax
jmp 0x4943a8
mov esi, 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004d4a30
mov ecx, dword [esp + 0x250]
xor ecx, ebp
call fcn.00596351
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4943d0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov eax, ecx
mov ecx, dword [0x6401e4]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea esi, [ebp - 0x2a4]
mov ecx, esi
mov dword [ebp - 0x504], edx
push edx
push 3
push 0
push eax
call fcn.004999b0
lea eax, [ebp - 0x500]
mov ecx, esi
push eax
call fcn.00499c00
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x494421
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x49458d
lea ebx, [ebp - 0x4f4]
xor edi, edi
jmp 0x49444a
mov edi, esi
test eax, eax
je 0x49458f
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00499b80
mov eax, dword [ebp - 0x4f4]
test al, 1
je 0x4944ad
cmp byte [ebp + 8], 0
jne 0x49448d
mov ecx, ebx
call fcn.00499920
test al, al
je 0x494487
mov ecx, ebx
call fcn.00499920
xor esi, esi
test al, al
je 0x494510
jmp 0x494548
mov eax, dword [ebp - 0x4f4]
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
lea ecx, [ebp - 0x500]
jns 0x4944a5
mov ecx, dword [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.00499920
test al, al
je 0x494510
xor esi, esi
cmp byte [ebp + 8], 0
je 0x494548
lea ecx, [ebp - 0x500]
mov edx, dword [ebp - 0x504]
push 1
call fcn.004943d0
add esp, 4
mov esi, eax
test eax, eax
jne 0x494548
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x4944f5
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
test eax, eax
jne 0x494548
jmp 0x494532
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x494525
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x494548
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove esi, eax
test edi, edi
cmovne esi, edi
mov ecx, ebx
call fcn.00413500
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00499c00
lea ecx, [ebp - 0x500]
push ebx
call fcn.004809b0
mov ecx, ebx
call fcn.00480970
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x494440
mov eax, dword [ebp - 0x4fc]
jmp 0x494440
xor esi, esi
lea ecx, [ebp - 0x500]
call fcn.00480970
lea ecx, [ebp - 0x2a4]
call fcn.00499b10
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x494670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov edi, dword [ebp + 0x14]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x68], eax
lea ebx, [esp + 0x10]
push 0x3e
push str..._.._base_files_file_win.cc
push str.Read
push ebx
call fcn.004835b0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.004d4910
test edi, edi
js 0x494713
lea ecx, [esp + 0x28]
call fcn.00447100
call fcn.004d4760
test al, al
je 0x4946d9
lea ecx, [esp + 0x28]
push 0
push edi
push esi
push str.File::Read
call fcn.004d47e0
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push ebx
push eax
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49471a
mov ebx, dword [esp + 0xc]
jmp 0x49472a
mov ebx, 0xffffffff
jmp 0x494733
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.004d47c0
lea ecx, [esp + 0x30]
call fcn.004d4a30
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x494760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x50], eax
lea ebx, [esp + 8]
push 0x57
push str..._.._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.004835b0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push ebx
call fcn.004d4910
test edi, edi
js 0x4947e7
mov ebx, dword [ebp + 8]
lea ecx, [esp + 8]
call fcn.00447100
call fcn.004d4760
test al, al
je 0x4947cc
lea ecx, [esp + 8]
push 0
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.004d47e0
lea eax, [esp + 4]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4947ee
mov ebx, dword [esp + 4]
jmp 0x4947fe
mov ebx, 0xffffffff
jmp 0x494807
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 8]
call fcn.004d47c0
lea ecx, [esp + 0x18]
call fcn.004d4a30
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x494830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x50], eax
lea ebx, [esp + 8]
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.004835b0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push ebx
call fcn.004d4910
test edi, edi
js 0x4948c6
mov ebx, dword [ebp + 8]
lea ecx, [esp + 8]
call fcn.00447100
call fcn.004d4760
test al, al
je 0x49489f
lea ecx, [esp + 8]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.004d47e0
lea eax, [esp + 4]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp + 4]
lea ecx, [esp + 8]
call fcn.004d47c0
jmp 0x4948cb
mov esi, 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004d4a30
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.00596351
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4948f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x54], eax
lea edi, [esp + 8]
push 0x9c
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.004835b0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.004d4910
lea ecx, [esp + 8]
call fcn.00447100
call fcn.004d4760
test al, al
je 0x494955
lea ecx, [esp + 8]
push 0
push 0
push esi
push str.File::GetLength
call fcn.004d47e0
mov eax, esp
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb esi, esi
mov edi, dword [esp + 4]
or edi, esi
or esi, dword [esp]
lea ecx, [esp + 8]
call fcn.004d47c0
lea ecx, [esp + 0x18]
call fcn.004d4a30
mov ecx, dword [esp + 0x54]
xor ecx, ebp
call fcn.00596351
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x494a70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x58], eax
lea esi, [esp + 0x10]
push 0x15a
push str..._.._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.004835b0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push esi
call fcn.004d4910
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov ecx, 1
cmove ecx, eax
test bl, 4
mov edx, 4
cmovne ecx, edx
test bl, 8
mov esi, 2
cmove esi, ecx
test bl, 0x10
mov eax, 5
cmove eax, esi
test eax, eax
je 0x494c16
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, bl
cmovns edx, ecx
mov ecx, ebx
rol ecx, 0x1a
mov esi, ebx
shl esi, 0xb
and esi, 0x20000000
mov edi, ebx
shr edi, 4
and edi, 0x10000
and ecx, 0x80000100
or ecx, esi
or ecx, edi
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
mov esi, ebx
and esi, 0x400
mov eax, ebx
mov dword [esp + 0xc], esi
mov ebx, esi
shl ebx, 0x14
mov esi, eax
shr esi, 3
and esi, 0x100
or esi, ebx
mov edi, eax
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, eax
shl esi, 0xd
and esi, 0x4000000
or esi, edi
mov edi, eax
shl edi, 8
mov ebx, edi
and ebx, 0x2000000
or ebx, esi
and edi, 0x8000000
or edi, ebx
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x494b9c
mov esi, dword [esi]
mov ebx, dword [esp + 8]
mov eax, dword [esp + 4]
push 0
push edi
push eax
push 0
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [ebx]
cmp eax, edi
je 0x494bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jb 0x494be2
call fcn.004835e0
push dword [ebx]
call fcn.00498c60
add esp, 4
mov dword [ebx], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x494bf1
mov dword [ebx], edi
call fcn.004835e0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jae 0x494c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004949c0
add esp, 4
mov dword [ebx + 0x14], eax
jmp 0x494c58
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi + 0x14], 0xffffffff
jmp 0x494c58
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [ebx + 0x14], 0
mov byte [ebx + 0x19], al
mov eax, dword [ebp + 0xc]
test al, 4
jne 0x494c49
test al, 0xa
je 0x494c58
mov byte [ebx + 0x18], 1
jmp 0x494c58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [ebx + 0x18]
lea ecx, [esp + 0x20]
call fcn.004d4a30
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00596351
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x494c80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x494ccc
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x494cb6
call fcn.004835e0
push dword [esi]
call fcn.00498c60
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x494cc5
mov dword [esi], ebx
call fcn.004835e0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4965b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
call fcn.004df940
mov byte [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi], 0x5cdf70
mov dword [esi + 0xc], 0
lea eax, [esi + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
movaps xmm0, xmmword [0x5cdd70]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp dword [esi + 0xc], eax
je 0x496649
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
add eax, 1
cmp eax, 2
jb 0x49662d
call fcn.004835e0
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.00498c60
mov dword [esi + 0xc], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x49663d
mov dword [esi + 0xc], edi
call fcn.004835e0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x496fc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0
xorps xmm0, xmm0
movups xmmword [ecx + 8], xmm0
movups xmmword [ecx + 0x18], xmm0
cmp dword [ebp + 8], 0
je 0x49705b
mov dword [ebp - 0x14], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
mov edi, eax
call ebx
lea ecx, [ebp - 0x14]
push 0
push 0
push 0x400
push ecx
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, dword [ebp - 0x14]
cmp dword [esi], ebx
je 0x49705b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x497045
call fcn.004835e0
push dword [esi]
call fcn.00498c60
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x497054
mov dword [esi], ebx
call fcn.004835e0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4970c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x497112
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x4970fc
call fcn.004835e0
push dword [esi]
call fcn.00498c60
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x49710b
mov dword [esi], ebx
call fcn.004835e0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x497129
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
Function at 0x497130
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jb 0x497151
call fcn.004835e0
mov dword [esi], 0
test edi, edi
je 0x497177
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jae 0x4971af
cmp ebx, 2
jae 0x4971cf
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov byte [edi + 4], 0
mov eax, dword [edi]
add eax, 1
cmp eax, 2
jb 0x4971a3
call fcn.004835e0
push dword [edi]
call fcn.00498c60
add esp, 4
mov dword [edi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.004835e0
push dword [esi]
call fcn.00498c60
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x497170
mov dword [esi], edi
mov edi, eax
call fcn.004835e0
mov eax, edi
jmp 0x497170

Function at 0x497780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
xor ecx, ecx
cmp dword [ebp + 8], 0
sete cl
push 0
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], 0
test eax, eax
je 0x497809
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x4977d9
call fcn.004835e0
push dword [esi]
call fcn.00498c60
add esp, 4
mov dword [esi], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x4977e8
mov dword [esi], edi
call fcn.004835e0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
add eax, 1
cmp eax, 1
jbe 0x497806
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
int3
mov byte [esi + 4], 1
int3
Function at 0x498080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
mov ebx, 0x100000
cmovne ebx, ecx
push 0xc
call fcn.00596296
add esp, 4
mov edi, eax
mov dword [eax], esi
cmp dword [ebp + 8], 0
setne byte [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
push 0
push 0x10000
push edi
push 0x498370
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test eax, eax
je 0x4980e2
mov eax, dword [ebp + 8]
test eax, eax
je 0x49810d
mov dword [eax], esi
jmp 0x498114
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x4980f9
cmp eax, 0x5af
je 0x4980f9
cmp eax, 0xe
jne 0x49812d
push ebx
call fcn.004e58e0
add esp, 4
push edi
call fcn.00596316
add esp, 4
jmp 0x498114
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], eax
mov eax, dword [0x642b50]
mov ecx, dword [0x644310]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x49818d
lea ebx, [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call fcn.00487270
add esp, 8
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x49816a
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push eax
push ebx
push dword [0x642b4c]
call fcn.004e5940
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x498102
push dword [ebp - 0x1c]
call fcn.00596316
jmp 0x4980ff
push 0x642b50
call fcn.00596397
add esp, 4
cmp dword [0x642b50], 0xffffffff
jne 0x49814d
push 0x20
push str.create_thread_last_error
call fcn.004e5920
add esp, 8
mov dword [0x642b4c], eax
push 0x642b50
call fcn.0059640d
add esp, 4
jmp 0x49814d
Function at 0x498950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [0x6401e4]
xor edx, ebp
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x4989b8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x4989b8
cmp dword [ebp - 0x14], 4
jne 0x4989b8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00596351
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x4989d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.00596860
mov eax, dword [ebp + 8]
mov edx, dword [0x6401e4]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea edx, [ebp - 0x1018]
lea ebx, [ebp - 0x810]
lea esi, [ebp - 0x1014]
push edx
push ebx
push esi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x498a7d
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x498a45
mov esi, 0x3f4
cmp eax, 1
jne 0x498a7d
mov ecx, edi
push ebx
jmp 0x498a76
lea eax, [ebp - 0x1010]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xffffffff
mov esi, 0xea
cmp eax, 0x3ff
ja 0x498a7d
mov ecx, edi
lea eax, [ebp - 0x1010]
push eax
call fcn.0047966c
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x498aa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 8]
mov edx, dword [0x6401e4]
xor edx, ebp
mov dword [ebp - 8], edx
lea edx, [ebp + 0xc]
push 4
push edx
push 4
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00596351
mov eax, esi
add esp, 4
pop esi
pop ebp
ret 8