joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov eax, dword [0x674014]
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 + 0x10]
push 0x3e
push str....._base_files_file_win.cc
push str.Read
push edi
call fcn.004b6370
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push edi
call fcn.0050b630
mov ebx, 0xffffffff
cmp dword [ebp + 0xc], 0
js 0x4c9f48
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x4c9f48
mov ebx, eax
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.0050b350
test al, al
je 0x4c9ee4
lea ecx, [esp + 0x28]
push 0
push ebx
push esi
push str.File::Read
call fcn.0050b460
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push edi
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c9f2f
mov ebx, dword [esp + 0xc]
test ebx, ebx
jns 0x4c9f3f
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.0050b3f0
lea ecx, [esp + 0x30]
call fcn.0050b690
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.005dd6f3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x4c9f70
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 [0x674014]
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 0x5b
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.004b6370
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.0050b630
test edi, edi
js 0x4ca029
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.0050b350
test al, al
je 0x4c9fff
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.0050b460
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 0x4ca030
mov ebx, dword [esp + 0xc]
test ebx, ebx
jns 0x4ca040
int3
mov ebx, 0xffffffff
jmp 0x4ca049
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x10]
call fcn.0050b3f0
lea ecx, [esp + 0x20]
call fcn.0050b690
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005dd6f3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4ca070
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 [0x674014]
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 0x93
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.004b6370
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.0050b630
test edi, edi
js 0x4ca131
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.0050b350
test al, al
je 0x4ca102
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.0050b460
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.0050b3f0
jmp 0x4ca136
mov esi, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0050b690
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005dd6f3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4ca160
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 [0x674014]
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 0xa8
push str....._base_files_file_win.cc
push str.GetLength
push edi
call fcn.004b6370
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.0050b630
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.0050b350
test al, al
je 0x4ca1e8
lea ecx, [esp + 0x10]
push 0
push 0
push esi
push str.File::GetLength
call fcn.0050b460
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.0050b3f0
lea ecx, [esp + 0x20]
call fcn.0050b690
mov ecx, dword [esp + 0x6c]
xor ecx, ebp
call fcn.005dd6f3
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x4ca320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x674014]
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 esi, [esp + 0x10]
push 0x16f
push str....._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.004b6370
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push esi
call fcn.0050b630
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 0x4ca4d3
mov dword [esp + 4], eax
mov dword [esp + 8], edi
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
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
and edi, 0xa000000
or edi, esi
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x4ca45f
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
cmp dword [ebx], eax
je 0x4ca4b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
inc eax
cmp eax, 2
jb 0x4ca4a1
call fcn.004b63a0
push dword [ebx]
call fcn.004d0370
add esp, 4
mov dword [ebx], 0
mov eax, edi
inc eax
cmp eax, 2
jb 0x4ca4b0
mov dword [ebx], edi
call fcn.004b63a0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebx]
inc edi
cmp edi, 2
jae 0x4ca4e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ca260
add esp, 4
mov dword [ebx + 0x14], eax
jmp 0x4ca515
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi + 0x14], 0xffffffff
jmp 0x4ca515
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 0x4ca506
test al, 0xa
je 0x4ca515
mov byte [ebx + 0x18], 1
jmp 0x4ca515
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [ebx + 0x18]
lea ecx, [esp + 0x20]
call fcn.0050b690
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005dd6f3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4ca540
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 0x4ca58a
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x4ca574
call fcn.004b63a0
push dword [esi]
call fcn.004d0370
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4ca583
mov dword [esi], ebx
call fcn.004b63a0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4cc190
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.00518f20
mov byte [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi], 0x6188c0
mov dword [esi + 0xc], 0
movaps xmm0, xmmword [0x6252f0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp dword [esi + 0xc], eax
je 0x4cc217
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
inc eax
cmp eax, 2
jb 0x4cc1fb
call fcn.004b63a0
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.004d0370
mov dword [esi + 0xc], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x4cc20b
mov dword [esi + 0xc], edi
call fcn.004b63a0
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 0x4cd2a0
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 [0x674014]
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 0x4cd339
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 0x4cd339
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x4cd323
call fcn.004b63a0
push dword [esi]
call fcn.004d0370
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4cd332
mov dword [esi], ebx
call fcn.004b63a0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd6f3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4cd380
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 0x4cd3d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x4cd3ba
call fcn.004b63a0
push dword [esi]
call fcn.004d0370
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4cd3c9
mov dword [esi], ebx
call fcn.004b63a0
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 0x4cd3e7
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
Function at 0x4cd3f0
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 0x4cd411
call fcn.004b63a0
mov dword [esi], 0
test edi, edi
je 0x4cd435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x4cd46b
cmp ebx, 2
jae 0x4cd48b
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]
inc eax
cmp eax, 2
jb 0x4cd45f
call fcn.004b63a0
push dword [edi]
call fcn.004d0370
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.004b63a0
push dword [esi]
call fcn.004d0370
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x4cd42e
mov dword [esi], edi
mov edi, eax
call fcn.004b63a0
mov eax, edi
jmp 0x4cd42e

Function at 0x4cd4a0
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 0x4cd4c2
cmp dword [esi], edi
jne 0x4cd4cb
jmp 0x4cd4e5
call fcn.004b63a0
cmp dword [esi], edi
je 0x4cd4e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x4cd51b
cmp ebx, 2
jae 0x4cd53b
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]
inc eax
cmp eax, 2
jb 0x4cd50f
call fcn.004b63a0
push dword [edi]
call fcn.004d0370
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.004b63a0
push dword [esi]
call fcn.004d0370
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x4cd4de
mov dword [esi], edi
mov edi, eax
call fcn.004b63a0
mov eax, edi
jmp 0x4cd4de

Function at 0x4ceab0
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 0x4ceb32
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x4ceb07
call fcn.004b63a0
push dword [esi]
call fcn.004d0370
add esp, 4
mov dword [esi], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x4ceb16
mov dword [esi], edi
call fcn.004b63a0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x4ceb39
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov byte [esi + 4], 1
int3
int3
Function at 0x4cf490
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 [0x674014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x4cf4ea
mov eax, dword [0x676cf4]
cmp eax, 0xffffffff
jne 0x4cf4d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x676cf4
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4cf4db
mov eax, dword [0x676cf4]
mov ebx, 0x100000
test eax, eax
jne 0x4cf4ea
jmp 0x4cf4e5
mov dword [0x676cf4], 0
mov ebx, 0x80000
push 0xc
call fcn.005dc726
add esp, 4
mov esi, eax
mov dword [eax], 0
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x67b000]
bt ecx, eax
jae 0x4cf51d
push edi
call fcn.004b9fa0
add esp, 4
jmp 0x4cf529
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x683000], 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
push 0
push 0x10000
push esi
push 0x4cf8d0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4cf55c
test edi, edi
je 0x4cf5b2
mov dword [edi], eax
jmp 0x4cf5bd
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x4cf575
cmp eax, 0x5af
je 0x4cf575
cmp eax, 0xe
jne 0x4cf5d6
push ebx
call fcn.004421f0
add esp, 4
test esi, esi
mov eax, edi
je 0x4cf5bd
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x67b000]
bt edx, ecx
jae 0x4cf5a5
push eax
call fcn.004ba0a0
add esp, 4
push esi
call fcn.005dc756
add esp, 4
mov eax, edi
jmp 0x4cf5bd
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd6f3
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], eax
mov eax, dword [0x6860a0]
mov ecx, dword [0x678164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4cf63a
lea ebx, [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call fcn.004bd840
add esp, 8
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x4cf613
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push eax
push ebx
push dword [0x68609c]
call fcn.0051f910
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4cf57e
push dword [ebp - 0x1c]
call fcn.005dc756
jmp 0x4cf57b
push 0x6860a0
call fcn.005dc7c7
add esp, 4
cmp dword [0x6860a0], 0xffffffff
jne 0x4cf5f6
push 0x20
push str.create_thread_last_error
call fcn.0051f8d0
add esp, 8
mov dword [0x68609c], eax
push 0x6860a0
call fcn.005dc83d
add esp, 4
jmp 0x4cf5f6
Function at 0x4cfef0
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 [0x674014]
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 0x4cff58
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x4cff58
cmp dword [ebp - 0x14], 4
jne 0x4cff58
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.005dd6f3
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x4cff70
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.005ddb10
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x674014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x810]
push 0x800
push 0xff
push ebx
call fcn.005dfe70
add esp, 0xc
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea eax, [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
push eax
push ebx
push ecx
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x4d0046
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x4cfff9
mov edi, 0x3f4
cmp eax, 1
jne 0x4d0046
mov ecx, esi
push ebx
jmp 0x4d003f
lea edi, [ebp - 0x1010]
push 0x800
push 0xff
push edi
call fcn.005dfe70
add esp, 0xc
push 0x400
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x4d0046
mov ecx, esi
lea eax, [ebp - 0x1010]
push eax
call fcn.004ab558
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd6f3
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4d0060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 8]
mov edx, dword [0x674014]
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.005dd6f3
mov eax, esi
add esp, 4
pop esi
pop ebp
ret 8

Function at 0x4d0fe0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
pop ebp
ret 4

Function at 0x4d1000
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
pop ebp
ret 4
Function at 0x4d13d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x674014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.005dfe70
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 0x54
call fcn.005dc726
add esp, 4
mov esi, eax
mov ebx, dword [ebp - 0x130]
mov eax, dword [0x686104]
mov ecx, dword [0x678164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4d148e
mov ecx, esi
push ebx
push 0x6860e0
push edi
call fcn.004d15e0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd6f3
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x686104
call fcn.005dc7c7
add esp, 4
cmp dword [0x686104], 0xffffffff
jne 0x4d1469
xorps xmm0, xmm0
movups xmmword [0x6860f0], xmm0
movups xmmword [0x6860e0], xmm0
mov dword [0x686100], 0
push 0x6860e0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x686104
call fcn.005dc83d
add esp, 4
jmp 0x4d1469

Function at 0x4d1540
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x686104]
mov ecx, dword [0x678164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4d158f
movzx eax, word [0x6860e0]
cmp eax, 0xc
ja case.0x4d156c.1
jmp dword [eax*4 + 0x625954]
mov eax, 2
pop ebp
ret
mov eax, 4
pop ebp
ret
mov eax, 1
pop ebp
ret
mov eax, 3
pop ebp
ret
push 0x686104
call fcn.005dc7c7
add esp, 4
cmp dword [0x686104], 0xffffffff
jne 0x4d1560
xorps xmm0, xmm0
movups xmmword [0x6860f0], xmm0
movups xmmword [0x6860e0], xmm0
mov dword [0x686100], 0
push 0x6860e0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x686104
call fcn.005dc83d
add esp, 4
jmp 0x4d1560
Function at 0x4d30e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x674014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx]
lea eax, [ebx + 1]
cmp eax, 2
jae 0x4d3104
xor ebx, ebx
jmp 0x4d31c7
mov esi, ecx
mov dword [ebp - 0x20], eax
cmp dword [ecx + 4], 1
jne 0x4d31db
mov dword [esi], 0
call fcn.004b63a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004b63a0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push 0
push 0
push 5
push ecx
push eax
mov dword [ebp - 0x1c], ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
test eax, eax
je 0x4d31ac
mov ebx, dword [ebp - 0x14]
cmp dword [esi], ebx
je 0x4d31a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jb 0x4d318b
mov dword [ebp - 0x18], eax
call fcn.004b63a0
push dword [esi]
call fcn.004d0370
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x4d319e
mov dword [esi], ebx
mov ebx, eax
call fcn.004b63a0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esi + 4], 0
test edi, edi
setne bl
cmp dword [ebp - 0x20], 2
jb 0x4d31c7
call fcn.004b63a0
push dword [ebp - 0x1c]
call fcn.004d0370
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd6f3
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
int3