joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4494e0
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 [0x53c014]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x250], xmm0
movdqa xmmword [esp + 0x240], xmm0
movdqa xmmword [esp + 0x230], xmm0
movdqa xmmword [esp + 0x220], xmm0
lea ebx, [esp + 0x18]
push 0x485
push str....._base_files_file_util_win.cc
push 0x524ca3
push ebx
call fcn.00442bf0
add esp, 0x10
lea ecx, [esp + 0x220]
push 0
push ebx
call fcn.00459480
lea eax, [esp + 0x1a]
push 0x206
push 0xff
push eax
call fcn.004ec250
add esp, 0xc
mov word [esp + 0x18], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xfffffefb
cmp esi, 0xfffffefc
jb 0x4495c1
push ebx
call fcn.00500f04
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.004413d0
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.004422c0
mov ecx, dword [ebp + 8]
push ebx
call fcn.004414c0
mov ecx, ebx
call fcn.00441480
mov ecx, edi
call fcn.00441480
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.00459500
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.004e96e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4495f0
Capabilities:
Set current directory

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 [0x53c014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov ebx, esp
push 0x495
push str....._base_files_file_util_win.cc
push 0x524cb8
push ebx
call fcn.00442bf0
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.00459480
cmp byte [edi + 0xb], 0
jns 0x449656
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.00459500
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004e96e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x449680
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 [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.004ec250
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.0044c020
mov dword [ebp - 0x500], 0xffffffff
mov dword [ebp - 0x4fc], 0xffffffff
mov dword [ebp - 0x4f8], 0xffffffff
lea eax, [ebp - 0x500]
mov ecx, esi
push eax
call fcn.0044c220
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x449703
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x4498b5
xor edi, edi
lea ebx, [ebp - 0x4f4]
jmp 0x44972a
mov edi, esi
test eax, eax
je 0x4498b7
push 0x250
push 0xff
push ebx
call fcn.004ec250
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0044c1e0
mov eax, dword [ebp - 0x4f4]
test al, 1
je 0x4497a2
mov ecx, dword [ebp + 8]
test cl, 1
jne 0x449782
mov ecx, ebx
call fcn.0044bf90
test al, al
je 0x44977c
mov ecx, ebx
call fcn.0044bf90
xor esi, esi
test al, al
je 0x449800
jmp 0x449870
mov eax, dword [ebp - 0x4f4]
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
lea ecx, [ebp - 0x500]
jns 0x44979a
mov ecx, dword [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.0044bf90
test al, al
je 0x449800
xor esi, esi
mov eax, dword [ebp + 8]
test al, 1
je 0x449870
lea ecx, [ebp - 0x500]
mov edx, dword [ebp - 0x504]
push eax
call fcn.00449680
add esp, 4
mov esi, eax
test eax, eax
jne 0x449870
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x4497ee
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
test eax, eax
jne 0x449870
jmp 0x449859
mov eax, dword [ebp + 8]
test al, 2
jne 0x449830
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x44981c
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x449870
jmp 0x449859
call fcn.0045b020
xor ecx, ecx
cmp eax, 0xd
setge cl
shl ecx, 4
or ecx, 2
xor esi, esi
push ecx
lea eax, [ebp - 0x500]
push eax
call fcn.00448b10
add esp, 8
test al, al
jne 0x449870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x449870
mov esi, eax
nop dword [eax]
test edi, edi
cmovne esi, edi
mov ecx, ebx
call fcn.00410790
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0044c220
lea ecx, [ebp - 0x500]
push ebx
call fcn.004414c0
mov ecx, ebx
call fcn.00441480
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x449720
mov eax, dword [ebp - 0x4fc]
jmp 0x449720
xor esi, esi
lea ecx, [ebp - 0x500]
call fcn.00441480
lea ecx, [ebp - 0x2a4]
call fcn.0044c170
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x449a00
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 + 0xc]
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea ebx, [esp + 0x10]
push 0x61
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.00442bf0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.00459480
test edi, edi
js 0x449ab9
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.00453410
test al, al
je 0x449a8f
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.00453520
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x449ac0
mov ebx, dword [esp + 0xc]
test ebx, ebx
jns 0x449ad0
int3
mov ebx, 0xffffffff
jmp 0x449ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x10]
call fcn.004534b0
lea ecx, [esp + 0x20]
call fcn.00459500
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004e96e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x449b00
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 edi, dword [ebp + 0xc]
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea ebx, [esp + 0x10]
push 0x99
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.00442bf0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.00459480
test edi, edi
js 0x449bc1
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.00453410
test al, al
je 0x449b92
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.00453520
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
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 + 0xc]
lea ecx, [esp + 0x10]
call fcn.004534b0
jmp 0x449bc6
mov esi, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00459500
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004e96e3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x449bf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [esp + 0x6c], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea edi, [esp + 0x10]
push 0xae
push str....._base_files_file_win.cc
push str.GetLength
push edi
call fcn.00442bf0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.00459480
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.00453410
test al, al
je 0x449c78
lea ecx, [esp + 0x10]
push 0
push 0
push esi
push str.File::GetLength
call fcn.00453520
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
lea eax, [esp + 8]
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 + 0xc]
or edi, esi
or esi, dword [esp + 8]
lea ecx, [esp + 0x10]
call fcn.004534b0
lea ecx, [esp + 0x20]
call fcn.00459500
mov ecx, dword [esp + 0x6c]
xor ecx, ebp
call fcn.004e96e3
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x449cd0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea edi, [esp + 0x20]
push 0xbb
push str....._base_files_file_win.cc
push str.SetLength
push edi
call fcn.00442bf0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push edi
mov edi, dword [ebp + 0xc]
call fcn.00459480
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], 0
call fcn.00453410
test al, al
je 0x449d60
lea ecx, [esp + 0x20]
push edi
push ebx
push esi
push str.File::SetLength
call fcn.00453520
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
lea ecx, [esp + 0x2c]
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 0x449e34
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x449e34
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x449e34
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
jmp 0x449e36
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.004534b0
lea ecx, [esp + 0x30]
call fcn.00459500
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004e96e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x44b110
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 0x44b160
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x44b14a
call fcn.00442c20
push dword [esi]
call fcn.0044bd20
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x44b159
mov dword [esi], ebx
call fcn.00442c20
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 0x44b177
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3

Function at 0x44b180
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
jae 0x44b1a2
cmp dword [esi], edi
jne 0x44b1ab
jmp 0x44b1c5
call fcn.00442c20
cmp dword [esi], edi
je 0x44b1c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x44b1fc
cmp ebx, 2
jae 0x44b21c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
mov byte [edi + 4], 0
mov eax, dword [edi]
inc eax
cmp eax, 2
jb 0x44b1f0
call fcn.00442c20
push dword [edi]
call fcn.0044bd20
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.00442c20
push dword [esi]
call fcn.0044bd20
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x44b1be
mov dword [esi], edi
mov edi, eax
call fcn.00442c20
mov eax, edi
jmp 0x44b1be
Function at 0x44b2f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x44b316
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x44b318
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x44b338
cmp byte [ebp + 0xc], 0
je 0x44b388
cmp byte [esi + 4], 0
je 0x44b37a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x44b37c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x44b34c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x44b34e
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44b365
xor ebx, ebx
jmp 0x44b3f6
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x44b3b6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x44b3b8
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 4], 0
je 0x44b396
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x44b398
mov eax, dword [esi]
push eax
call fcn.0045b290
add esp, 4
mov ecx, dword [0x54c3bc]
mov bl, 1
test ecx, ecx
je 0x44b3f6
push edi
push eax
call fcn.00456b40
jmp 0x44b3f6
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x44b3ca
mov edi, dword [ebp - 0x14]
cmp byte [esi + 4], 0
je 0x44b3d8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x44b3da
mov eax, dword [esi]
push eax
call fcn.0045b290
add esp, 4
mov ecx, dword [0x54c3bc]
test ecx, ecx
je 0x44b3f4
push edi
push eax
call fcn.00456b40
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x44b4a0
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 0x44b522
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x44b4f7
call fcn.00442c20
push dword [esi]
call fcn.0044bd20
add esp, 4
mov dword [esi], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x44b506
mov dword [esi], edi
call fcn.00442c20
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x44b529
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov byte [esi + 4], 1
int3
int3
Function at 0x44b9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x14], 0xff
mov ebx, dword [ecx]
lea edi, [ebp - 0x24]
push 0x1ab
push str....._basewin_registry.cc
push str.ReadValue
push edi
call fcn.00442bf0
add esp, 0x10
lea ecx, [ebp - 0x14]
push 1
push ebx
push edi
call fcn.00462c30
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x28]
push eax
push ecx
push edx
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.00410790
test esi, esi
jne 0x44ba4e
mov eax, dword [ebp - 0x28]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x44ba4e
cmp dword [ebp - 0x2c], 4
jne 0x44ba4e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1010
call fcn.004ea000
mov esi, ecx
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x810]
push 0x800
push 0xff
push eax
call fcn.004ec250
add esp, 0xc
mov dword [ebp - 0x1018], 1
mov dword [ebp - 0x101c], 0x800
mov byte [ebp - 0x1014], 0xff
mov edi, dword [esi]
lea ebx, [ebp - 0x1010]
push 0x1ab
push str....._basewin_registry.cc
push str.ReadValue
push ebx
call fcn.00442bf0
add esp, 0x10
lea ecx, [ebp - 0x1014]
push 1
push edi
push ebx
call fcn.00462c30
lea eax, [ebp - 0x101c]
lea ecx, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x810]
push eax
push ecx
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
lea ecx, [ebp - 0x1014]
call fcn.00410790
test edi, edi
jne 0x44bb92
lea ebx, [ebp - 0x1010]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1018]
cmp eax, 2
je 0x44bb4b
mov edi, 0x3f4
cmp eax, 1
jne 0x44bb92
mov ecx, esi
lea eax, [ebp - 0x810]
push eax
jmp 0x44bb8b
push 0x800
push 0xff
push ebx
call fcn.004ec250
add esp, 0xc
push 0x400
push ebx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x101c], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x44bb92
mov ecx, esi
push ebx
call fcn.0043b08e
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, edi
add esp, 0x1010
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x44d7ab
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.004ec250
add esp, 0xc
mov edi, 0xfffffff4
lea ebx, [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [edi + 0x525278]
mov word [ebp - 0x218], 0
push 0x104
push ebx
push eax
call esi
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x44d81f
push dword [ebp + 8]
push eax
push ebx
call fcn.0044d749
add esp, 0xc
test al, al
jne 0x44d828
add edi, 4
jne 0x44d7eb
xor ebx, ebx
jmp 0x44d82a
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44dbe1
Capabilities:
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.004ec250
add esp, 0xc
mov word [esi - 2], 0
lea edi, [ebp - 0x218]
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
dec eax
lea esi, [ebp - 0x224]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.00414f88
mov ecx, esi
push 0xa
push str.usp10.dll
call fcn.0043b230
cmp byte [eax + 0xb], 0
jns 0x44dc57
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [ebp - 0x219], 0
jns 0x44dc77
push dword [ebp - 0x224]
call fcn.004e8c56
add esp, 4
cmp esi, 0xffffffff
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4508d0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004505e0

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x450d6f
pop ebp
jmp fcn.004508f0
cmp dword [ebp + 0x10], 0
jne 0x450d7a
call fcn.0046cba0
xor eax, eax
pop ebp
ret
Function at 0x451c00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x208
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x1b
push str....._basewinwin_util.cc
call fcn.004430f0
add esp, 8
test eax, eax
jle 0x451c5e
lea esi, [ebp - 0x20c]
mov ecx, esi
push 0xffffffffffffffff
push 0x623
push str....._basewinwin_util.cc
call fcn.00443120
lea eax, [ebp - 0x204]
push 0x19
push str.Checking_if_internal_user
push eax
call fcn.00412c03
add esp, 0xc
mov ecx, esi
call fcn.00443500
lea eax, [ebp - 0x20a]
push 0x1fe
push 0xff
push eax
call fcn.004ec250
add esp, 0xc
mov word [ebp - 0x20c], 0
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x210]
lea esi, [ebp - 0x20c]
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x451cc8
push esi
call fcn.00500f04
add esp, 4
push 1
push 0x13
push str..corp.microsoft.com
push eax
push esi
call fcn.00452940
add esp, 0x14
test al, al
je 0x451cc8
mov bl, 1
jmp 0x451cf5
mov eax, dword [0x54c354]
mov ecx, dword [0x540044]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x451d0b
cmp byte [0x54c352], 0
setne bl
and bl, byte [0x54c350]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004e96e3
mov eax, ebx
add esp, 0x208
pop esi
pop ebx
pop ebp
ret
push 0x54c354
call fcn.004e8cc7
add esp, 4
cmp dword [0x54c354], 0xffffffff
jne 0x451ce5
call fcn.00452380
mov byte [0x54c352], al
push 0x54c354
call fcn.004e8d3d
add esp, 4
jmp 0x451ce5

Function at 0x45a7d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.004ec250
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x130], 0
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x5c
call fcn.004e8c26
add esp, 4
mov esi, eax
mov ebx, dword [ebp - 0x130]
mov eax, dword [0x54c414]
mov ecx, dword [0x540044]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45a88e
mov ecx, esi
push ebx
push 0x54c3f0
push edi
call fcn.0045a9f0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x54c414
call fcn.004e8cc7
add esp, 4
cmp dword [0x54c414], 0xffffffff
jne 0x45a869
xorps xmm0, xmm0
movups xmmword [0x54c400], xmm0
movups xmmword [0x54c3f0], xmm0
mov dword [0x54c410], 0
push 0x54c3f0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x54c414
call fcn.004e8d3d
add esp, 4
jmp 0x45a869
Function at 0x45a940
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x54c414]
mov ecx, dword [0x540044]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45a996
movzx eax, word [0x54c3f0]
cmp eax, 0xc
ja case.0x45a96c.1
jmp dword [eax*4 + 0x528838]
mov eax, 3
pop ebp
ret
mov eax, 5
pop ebp
ret
mov eax, 2
pop ebp
ret
mov eax, 1
pop ebp
ret
mov eax, 4
pop ebp
ret
push 0x54c414
call fcn.004e8cc7
add esp, 4
cmp dword [0x54c414], 0xffffffff
jne 0x45a960
xorps xmm0, xmm0
movups xmmword [0x54c400], xmm0
movups xmmword [0x54c3f0], xmm0
mov dword [0x54c410], 0
push 0x54c3f0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x54c414
call fcn.004e8d3d
add esp, 4
jmp 0x45a960