joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423fd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00427820
mov dword [esi], 0
test eax, eax
je 0x424018
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x42404a
lea eax, [ebx + 1]
cmp eax, 2
jb 0x42400f
mov dword [esi], ebx
call fcn.00465200
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.00464550
lea ecx, [esi + 0x10]
call fcn.00469a90
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00465200
push dword [esi]
call fcn.00468130
add esp, 4
mov dword [esi], 0
jmp 0x424000

Function at 0x424b10
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
call fcn.00424bb0
mov eax, dword [esi]
mov dword [0x551b20], eax
test al, 1
jne 0x424b2c
mov al, 1
pop esi
pop ebp
ret
mov eax, dword [0x5558d4]
test eax, eax
jne 0x424b41
mov ecx, dword [0x5558c0]
test ecx, ecx
je 0x424b63
jmp 0x424b7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5558d4], 0
mov ecx, dword [0x5558c0]
test ecx, ecx
jne 0x424b7f
and byte [0x551b20], 0xfe
push 0xc
call fcn.0049a541
add esp, 4
mov ecx, eax
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [0x5558c0], ecx
push dword [esi + 4]
call fcn.004255b0
cmp dword [esi + 0xc], 0
jne 0x424ba1
mov eax, dword [0x5558c0]
cmp byte [eax + 0xb], 0
jns 0x424b9a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
jmp fcn.004dc020
Function at 0x426d20
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
pop ebp
jmp fcn.00426d30

Function at 0x426fa0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
inc edx
pop ebp
jmp fcn.00426d30

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x550014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1c9
push str....._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.004651d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.0046afb0
cmp byte [edi + 0xb], 0
jns 0x427011
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.0046b030
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0049b033
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x550014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1f1
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.004651d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.0046afb0
cmp byte [edi + 0xb], 0
jns 0x4270a1
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
mov ecx, esi
call fcn.0046b030
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0049b033
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4270e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x550014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.0049dcc0
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x427168
push ebx
call fcn.004b2e99
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.00464640
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.004246e0
mov ecx, dword [ebp + 8]
push ebx
call fcn.004240d0
mov ecx, ebx
call fcn.00464770
mov ecx, edi
call fcn.00464770
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b033
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x427190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x550014]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.0049dcc0
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x53aa50]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x42720c
cmp word [ebp - 0x214], 0
je 0x42720c
push edi
call fcn.004b2e99
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00464640
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0049b033
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
xor eax, eax
dec eax
lea edi, [ebp - 0x220]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.00464530
push edi
call fcn.004270e0
add esp, 4
mov ecx, esi
test al, al
je 0x42723b
push edi
call fcn.00464610
jmp 0x427247
push 3
push 0x53aac8
call fcn.00464640
lea ecx, [ebp - 0x220]
call fcn.00464770
jmp 0x4271f6
Function at 0x4274e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x550014]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x220]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x3c3
push str....._base_files_file_util_win.cc
push 0x53ab03
push ebx
call fcn.004651d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.0046afb0
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.0049dcc0
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xfffffefb
cmp esi, 0xfffffefc
jb 0x4275b1
push ebx
call fcn.004b2e99
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.00464640
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.004246e0
mov ecx, dword [ebp + 8]
push ebx
call fcn.004240d0
mov ecx, ebx
call fcn.00464770
mov ecx, edi
call fcn.00464770
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.0046b030
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.0049b033
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4275e0
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 ebx, edx
mov edi, ecx
mov eax, dword [0x550014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.0049dcc0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.00428c40
xor eax, eax
dec eax
lea edi, [ebp - 0x500]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.00428e00
movzx eax, byte [edi + 0xb]
test al, al
jns 0x42764f
mov eax, dword [ebp - 0x4fc]
jmp 0x427652
and eax, 0x7f
xor esi, esi
test eax, eax
jne 0x427685
lea ecx, [ebp - 0x500]
call fcn.00464770
lea ecx, [ebp - 0x2a4]
call fcn.00428d50
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b033
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
push 0x250
push 0xff
lea esi, [ebp - 0x4f4]
push esi
call fcn.0049dcc0
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push esi
call fcn.00428dc0
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x427792
mov ecx, esi
call fcn.00428b90
test al, al
jne 0x42774f
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x4276da
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4277ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x4276fd
mov esi, eax
test ebx, ebx
cmovne esi, ebx
lea ebx, [ebp - 0x4f4]
mov ecx, ebx
call fcn.004106c0
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00428e00
mov ecx, edi
push ebx
call fcn.004240d0
mov ecx, ebx
call fcn.00464770
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x42773d
mov eax, dword [ebp - 0x4fc]
jmp 0x427740
and eax, 0x7f
mov ebx, esi
test eax, eax
je 0x427658
jmp 0x427687
xor esi, esi
cmp byte [ebp + 8], 0
je 0x4276fd
mov ecx, edi
mov edx, dword [ebp - 0x504]
push 1
call fcn.004275e0
add esp, 4
test eax, eax
jne 0x4276fb
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x42777e
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4276fd
jmp 0x4276e9
cmp byte [ebp + 8], 0
je 0x4277ac
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x4277d5
mov ecx, dword [ebp - 0x500]
jmp 0x4277db
lea ecx, [ebp - 0x4f4]
call fcn.00428b90
test al, al
je 0x4277ee
lea ecx, [ebp - 0x4f4]
call fcn.00428b90
test al, al
je 0x4276c9
xor esi, esi
jmp 0x4276fd
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [ebp - 0x4f4]
jmp 0x4276ba
mov eax, dword [ebp - 0x4f4]
jmp 0x427798
Function at 0x427840
Capabilities:
Write 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 eax, dword [0x550014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x93
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.004651d0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.0046afb0
cmp dword [ebp + 0xc], 0
js 0x427907
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.00469a60
test al, al
jne 0x42790c
lea ebx, [esp + 0xc]
mov dword [ebx], 0xffffffff
push 0
push ebx
push dword [ebp + 0xc]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.00469b00
lea ecx, [esp + 0x20]
call fcn.0046b030
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0049b033
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x4278e7
lea ecx, [esp + 0x10]
push 0
push dword [ebp + 0xc]
push esi
push str.File::WriteAtCurrentPos
call fcn.004de910
jmp 0x4278bc

Function at 0x427930
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 4], ecx
mov eax, dword [0x550014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0xa8
push str....._base_files_file_win.cc
push str.GetLength
push edi
call fcn.004651d0
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.0046afb0
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.00469a60
test al, al
jne 0x4279ed
xor eax, eax
dec eax
lea ebx, [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
mov eax, dword [esp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [ebx + 4]
or edi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.00469b00
lea ecx, [esp + 0x20]
call fcn.0046b030
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0049b033
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
push esi
push esi
push dword [esp + 0xc]
push str.File::GetLength
call fcn.004de910
jmp 0x42799f
Function at 0x427a10
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov dword [esp + 0xc], ecx
mov eax, dword [0x550014]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x40]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x30]
push 0xb5
push str....._base_files_file_win.cc
push str.SetLength
push esi
call fcn.004651d0
add esp, 0x10
xor ebx, ebx
mov ecx, edi
push ebx
push esi
call fcn.0046afb0
mov dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call fcn.00469a60
test al, al
jne 0x427b72
xor eax, eax
dec eax
lea ecx, [esp + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x427b46
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x427b46
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
test eax, eax
je 0x427b46
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea ecx, [esp + 0x30]
call fcn.00469b00
lea ecx, [esp + 0x40]
call fcn.0046b030
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.0049b033
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esp + 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x14]
push str.File::SetLength
call fcn.004de910
jmp 0x427a89
Function at 0x427cc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x550014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x16f
push str....._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.004651d0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.0046afb0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
xor ecx, ecx
inc ecx
test bl, 2
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 0x427ec7
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, 0x80
cmove 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
and ebx, 0x400
mov dword [esp + 0xc], ebx
shl ebx, 0x14
mov esi, dword [ebp + 0xc]
shr esi, 3
and esi, 0x100
or esi, ebx
mov ebx, dword [ebp + 0xc]
mov edi, ebx
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, ebx
shl esi, 0xd
and esi, 0x4000000
or esi, edi
mov edi, ebx
shl edi, 8
and edi, 0xa000000
or edi, esi
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x427df2
mov esi, dword [esi]
xor ebx, ebx
push ebx
push edi
push eax
push ebx
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, dword [esp + 8]
cmp dword [esi], eax
je 0x427e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x427ea9
mov ecx, edi
inc ecx
cmp ecx, 2
mov ebx, dword [ebp + 0xc]
jb 0x427e33
mov dword [esi], edi
mov edi, eax
call fcn.00465200
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi]
inc edi
cmp edi, 2
jb 0x427e84
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [esi + 0x14], 0
mov byte [esi + 0x19], al
test bl, 4
jne 0x427e98
test bl, 0xa
je 0x427e61
mov byte [esi + 0x18], 1
lea ecx, [esp + 0x20]
call fcn.0046b030
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0049b033
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
jmp 0x427e3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427b90
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x427e61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [esi + 0x18]
jmp 0x427e61
mov ebx, eax
call fcn.00465200
push dword [esi]
call fcn.00468130
mov eax, ebx
add esp, 4
mov dword [esi], 0
jmp 0x427e1d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
mov dword [eax + 0x14], 0xffffffff
jmp 0x427e61
Function at 0x429de0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 8]
mov eax, dword [0x550014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x216]
push 0x206
push 0xff
push edi
call fcn.0049dcc0
add esp, 0xc
mov word [edi - 2], 0
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x429e73
inc eax
cmp eax, 1
je 0x429e73
lea edi, [eax - 1]
cmp word [ebp + eax*2 - 0x21c], 0x5c
mov eax, edi
je 0x429e3b
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x429e5a
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.004af3f3
add esp, 0xc
test eax, eax
je 0x429f50
mov word [ebp - 0x218], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x429ed7
inc eax
cmp eax, 1
je 0x429ed7
lea edi, [eax - 1]
cmp word [ebp + eax*2 - 0x21c], 0x5c
mov eax, edi
je 0x429e9f
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x429ebe
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.004af3f3
add esp, 0xc
test eax, eax
je 0x429f5d
mov word [ebp - 0x218], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.PROGRAMW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x429f37
inc eax
cmp eax, 1
je 0x429f37
lea edi, [eax - 1]
cmp word [ebp + eax*2 - 0x21c], 0x5c
mov eax, edi
je 0x429f03
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x429f22
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.004af3f3
add esp, 0xc
test eax, eax
je 0x429f6a
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b033
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [esi + 0xb]
test al, al
jns 0x429f77
mov eax, dword [esi + 4]
jmp 0x429f7a
movzx eax, byte [esi + 0xb]
test al, al
jns 0x429f94
mov eax, dword [esi + 4]
jmp 0x429f97
movzx eax, byte [esi + 0xb]
test al, al
jns 0x429fb1
mov eax, dword [esi + 4]
jmp 0x429fb4
and eax, 0x7f
mov bl, 1
cmp eax, edi
je 0x429f39
mov ecx, esi
push edi
call fcn.004d4d70
cmp word [eax], 0x5c
jne 0x429e73
jmp 0x429f39
and eax, 0x7f
mov bl, 1
cmp eax, edi
je 0x429f39
mov ecx, esi
push edi
call fcn.004d4d70
cmp word [eax], 0x5c
jne 0x429ed7
jmp 0x429f39
and eax, 0x7f
mov bl, 1
cmp eax, edi
je 0x429f39
mov ecx, esi
push edi
call fcn.004d4d70
cmp word [eax], 0x5c
jne 0x429f37
jmp 0x429f39
Function at 0x42c720
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042c440

Function at 0x42cc40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x42cc58
cmp dword [ebp + 0x10], 0
jne 0x42cc54
call fcn.00436510
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0042c730

Function at 0x42dc60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov ebx, ecx
mov eax, dword [0x550014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x42dc97
mov eax, dword [0x551c44]
cmp eax, 0xffffffff
je 0x42dd24
mov ebx, 0x100000
test eax, eax
jne 0x42dc97
mov ebx, 0x80000
push 0x10
call fcn.0049a541
add esp, 4
mov esi, eax
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x557918]
bt ecx, eax
jb 0x42dd19
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x55f918], 1
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
setne byte [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push 0x10000
push esi
push 0x42e100
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42dd48
test edi, edi
je 0x42dda6
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b033
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.00468bc0
add esp, 4
jmp 0x42dcc5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x551c44
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x42de1a
mov eax, dword [0x551c44]
jmp 0x42dc89
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x42dd64
mov edi, eax
cmp eax, 0x5af
je 0x42dd64
cmp edi, 0xe
jne 0x42ddb6
push ebx
call fcn.004e4730
add esp, 4
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x42dd00
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x557918]
bt edx, ecx
jae 0x42dd95
push eax
call fcn.00468ce0
add esp, 4
push esi
call fcn.0049a571
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x42dd00
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x42dd00
mov eax, dword [0x56015c]
mov ecx, dword [0x553e30]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42de29
lea ebx, [ebp - 0x1c]
push edi
push ebx
call fcn.0042d350
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x42ddf0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
jmp 0x42ddf3
and eax, 0x7f
push eax
push ebx
push dword [0x560158]
call fcn.0046aa30
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x42dd6d
push dword [ebp - 0x1c]
call fcn.0049a571
jmp 0x42dd6a
mov dword [0x551c44], 0
jmp 0x42dc92
push 0x56015c
call fcn.0049a5e7
add esp, 4
cmp dword [0x56015c], 0xffffffff
jne 0x42ddd3
push 0x20
push str.create_thread_last_error
call fcn.0042e270
add esp, 8
mov dword [0x560158], eax
push 0x56015c
call fcn.0049a65d
add esp, 4
jmp 0x42ddd3