joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466210
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 [0x5f3024]
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.004cfec0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004da750
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 0x466417
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 0x466342
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 0x4663cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x4663f9
mov ecx, edi
inc ecx
cmp ecx, 2
mov ebx, dword [ebp + 0xc]
jb 0x466383
mov dword [esi], edi
mov edi, eax
call fcn.004cfef0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi]
inc edi
cmp edi, 2
jb 0x4663d4
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [esi + 0x14], 0
mov byte [esi + 0x19], al
test bl, 4
jne 0x4663e8
test bl, 0xa
je 0x4663b1
mov byte [esi + 0x18], 1
lea ecx, [esp + 0x20]
call fcn.004da7d0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0050dc12
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
jmp 0x46638c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004660e0
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x4663b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [esi + 0x18]
jmp 0x4663b1
mov ebx, eax
call fcn.004cfef0
push dword [esi]
call fcn.004dfb70
mov eax, ebx
add esp, 4
mov dword [esi], 0
jmp 0x46636d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
mov dword [eax + 0x14], 0xffffffff
jmp 0x4663b1
Function at 0x4664f0
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 0x466525
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x46652c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x46651e
mov dword [esi], ebx
call fcn.004cfef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfef0
push dword [esi]
call fcn.004dfb70
add esp, 4
mov dword [esi], 0
jmp 0x46650f

Function at 0x466570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ebx, esp
push 0x1b
push str....._base_filesmemory_mapped_file_win.cc
push str.MapImageToMemory
push ebx
call fcn.004cfec0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004da750
mov ecx, esi
call fcn.00465b20
test al, al
je 0x4666f5
mov ecx, esi
call fcn.00465b30
sub esp, 0x18
movdqa xmm0, xmmword [0x5dba50]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp dword [esi + 0x24], eax
je 0x466633
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x4666d9
mov eax, edi
inc eax
cmp eax, 2
jb 0x466629
mov dword [esi + 0x24], edi
call fcn.004cfef0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
lea eax, [edi + 1]
cmp eax, 2
jb 0x4666f5
sub esp, 0x14
movdqa xmm0, xmmword [0x5dba60]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5fc3d8]
bt edx, ecx
jb 0x4666f9
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5fc3d8]
bt ecx, eax
jb 0x466707
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x6043d8], 1
mov dword [esi + 0x1c], edi
test edi, edi
je 0x4666f5
mov ecx, esp
mov dword [ecx], fcn.00541810
mov dword [ecx + 4], edi
call fcn.0048ab30
mov eax, dword [eax + 0x50]
mov dword [esi + 0x20], eax
mov bl, 1
lea ecx, [esp + 0x10]
call fcn.004da7d0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfef0
push dword [esi + 0x24]
call fcn.004dfb70
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x466619
xor ebx, ebx
jmp 0x4666b9
push eax
call fcn.004d11c0
add esp, 4
jmp 0x466678
push edi
call fcn.004d10a0
add esp, 4
jmp 0x46669a
Function at 0x467250
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.004886b0
mov byte [esi + 4], 0
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi], 0x5d2500
mov dword [esi + 0xc], eax
movaps xmm0, xmmword [0x5dbaf0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp dword [esi + 0xc], eax
je 0x4672ba
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
inc eax
cmp eax, 2
jae 0x4672c4
lea eax, [edi + 1]
cmp eax, 2
jb 0x4672ae
mov dword [esi + 0xc], edi
call fcn.004cfef0
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
call fcn.004cfef0
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.004dfb70
mov dword [esi + 0xc], 0
jmp 0x46729e
Function at 0x4687a0
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 0x4687c1
call fcn.004cfef0
mov dword [esi], 0
test edi, edi
je 0x4687f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x468811
cmp ebx, 2
jb 0x4687e9
mov dword [esi], edi
mov edi, eax
call fcn.004cfef0
mov eax, edi
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
jae 0x46882e
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.004cfef0
push dword [esi]
call fcn.004dfb70
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x4687d9
call fcn.004cfef0
push dword [edi]
call fcn.004dfb70
add esp, 4
mov dword [edi], 0
jmp 0x468805
Function at 0x4696f0
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 [0x5f3024]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x469727
mov eax, dword [0x5f4ba4]
cmp eax, 0xffffffff
je 0x4697b4
mov ebx, 0x100000
test eax, eax
jne 0x469727
mov ebx, 0x80000
push 0x10
call fcn.0050d5de
add esp, 4
mov esi, eax
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5fc3d8]
bt ecx, eax
jb 0x4697a9
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x6043d8], 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 0x469b90
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4697d8
test edi, edi
je 0x469836
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.004d10a0
add esp, 4
jmp 0x469755
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x5f4ba4
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4698aa
mov eax, dword [0x5f4ba4]
jmp 0x469719
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x4697f4
mov edi, eax
cmp eax, 0x5af
je 0x4697f4
cmp edi, 0xe
jne 0x469846
push ebx
call fcn.0056a3a0
add esp, 4
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x469790
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5fc3d8]
bt edx, ecx
jae 0x469825
push eax
call fcn.004d11c0
add esp, 4
push esi
call fcn.0050d60e
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x469790
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x469790
mov eax, dword [0x5fa09c]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4698b9
lea ebx, [ebp - 0x1c]
push edi
push ebx
call fcn.0045e480
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x469880
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
jmp 0x469883
and eax, 0x7f
push eax
push ebx
push dword [0x5fa098]
call fcn.004cea10
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4697fd
push dword [ebp - 0x1c]
call fcn.0050d60e
jmp 0x4697fa
mov dword [0x5f4ba4], 0
jmp 0x469722
push 0x5fa09c
call fcn.0050d687
add esp, 4
cmp dword [0x5fa09c], 0xffffffff
jne 0x469863
push 0x20
push str.create_thread_last_error
call fcn.00455150
add esp, 8
mov dword [0x5fa098], eax
push 0x5fa09c
call fcn.0050d6fd
add esp, 4
jmp 0x469863

Function at 0x46a300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
sete al
add esp, 0x18
pop ebp
ret 4
Function at 0x46a3a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x28], eax
push 0
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
xor esi, esi
test eax, eax
jne 0x46a3e5
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
lea eax, [esp + 0x24]
mov dword [eax], esi
or edi, 8
push eax
push edi
push esi
push ebx
mov eax, dword [ebp + 8]
mov ebx, eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x46a3d0
mov esi, eax
test eax, eax
jne 0x46a3d0
xor eax, eax
dec eax
lea esi, [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0053f4c0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x46a432
mov eax, dword [esp + 0x1c]
jmp 0x46a435
and eax, 0x7f
test eax, eax
je 0x46a44c
lea ecx, [esp + 0x18]
call fcn.0044f4f0
cmp word [eax], 0x5c
jne 0x46a55f
movzx ecx, byte [esp + 0x23]
test cl, cl
jns 0x46a45b
mov eax, dword [esp + 0x1c]
jmp 0x46a460
mov eax, ecx
and eax, 0x7f
mov dword [esp], eax
xor eax, eax
lea esi, [esp + 8]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov eax, 0x104
mov dword [esp + 4], eax
push eax
push esi
call fcn.00469080
add esp, 8
mov ecx, dword [esp + 0x24]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea edx, [esp + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x46a515
mov ecx, esi
xor edi, edi
push edi
push dword [esp + 8]
call fcn.004cdb60
lea ecx, [esp + 0x18]
push edi
push dword [esp + 4]
call fcn.004cdb60
movzx eax, byte [esp + 0x13]
test al, al
jns 0x46a4e3
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
jmp 0x46a4e8
and eax, 0x7f
mov edx, esi
lea edi, [esp + 0x18]
mov ecx, edi
push eax
push edx
call fcn.00451a60
cmp byte [esp + 0x23], 0
jns 0x46a500
mov edi, dword [esp + 0x18]
push dword [ebp + 0x10]
push edi
push ebx
call fcn.0046a3a0
add esp, 0xc
test eax, eax
je 0x46a471
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
cmp byte [esp + 0x13], 0
jns 0x46a543
push dword [esp + 8]
call fcn.0050d60e
add esp, 4
cmp byte [esp + 0x23], 0
jns 0x46a3d0
push dword [esp + 0x18]
call fcn.0050d60e
add esp, 4
jmp 0x46a3d0
lea ecx, [esp + 0x18]
push 0x5c
call fcn.004cd960
jmp 0x46a44c
Function at 0x46a590
Capabilities:
Query or enumerate registry value

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

Function at 0x46a610
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.0050e950
mov esi, ecx
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.00510ea0
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46a6a9
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x46a6ad
push edi
call fcn.0052a934
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.004516f0
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x46a690
cmp eax, 2
jne 0x46a6f9
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.00510ea0
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x46a700
push ebx
call fcn.0052a934
add esp, 4
mov ecx, esi
push eax
push ebx
jmp 0x46a689
mov esi, 0x3f4
jmp 0x46a690
mov esi, 0xea
jmp 0x46a690

Function at 0x46a710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.0052a934
add esp, 4
add eax, eax
add eax, 2
push eax
push ebx
push 1
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x46ae10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5fa0e8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46ae41
movzx eax, word [0x5fa0c4]
cmp eax, 9
jne 0x46ae8c
xor eax, eax
inc eax
pop ebp
ret
push 0x5fa0e8
call fcn.0050d687
add esp, 4
cmp dword [0x5fa0e8], 0xffffffff
jne 0x46ae30
xorps xmm0, xmm0
movups xmmword [0x5fa0d4], xmm0
movups xmmword [0x5fa0c4], xmm0
mov dword [0x5fa0e4], 0
push 0x5fa0c4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5fa0e8
call fcn.0050d6fd
add esp, 4
jmp 0x46ae30
test eax, eax
je 0x46ae3f
cmp eax, 6
jne 0x46ae9c
mov eax, 2
jmp 0x46ae3f
cmp eax, 0xc
jne 0x46aea8
mov eax, 3
jmp 0x46ae3f
mov eax, 4
jmp 0x46ae3f
Function at 0x4732a0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00472fc0
Function at 0x4737c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4737d8
cmp dword [ebp + 0x10], 0
jne 0x4737d4
call fcn.004914c0
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004732b0
Function at 0x4826b0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x28], eax
cmp dword [ebp + 8], 0
je 0x482883
cmp dword [0x5f60a8], 0xe69e32f3
jne 0x482886
mov ecx, 0x308
mov esi, dword [ebp + 8]
add ecx, dword [esi + 0xc]
mov byte [esp + 0xf], 0xff
movzx eax, byte [esi + 2]
push eax
mov dword [esp + 8], ecx
push ecx
call fcn.004d0f70
add esp, 8
movzx ebx, ax
shl ebx, 5
lea edi, [esi + ebx]
add edi, 0x48
add esi, 0x40
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x48284b
mov dword [esp + 8], esi
mov eax, dword [edi]
mov esi, dword [eax]
test esi, esi
je 0x4827fa
mov byte [esp + 0xf], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x4827f0
mov edi, dword [ebp + 8]
add ebx, edi
mov ebx, dword [ebx + 0x54]
bswap ecx
mov edx, ecx
xor edx, esi
cmp edx, 0x1fffff
ja 0x482857
mov edx, ecx
and edx, 0x1fc000
je 0x482857
prefetcht0 byte [ecx]
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x1180]
mov dword [edi + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [edi + 0x1180], ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, esi
push edi
call fcn.004ebdd0
push esi
push dword [0x6075f0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x5f7664]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x90], esi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
mov edi, dword [ebp + 8]
jmp 0x48276b
lea eax, [esp + 0xf]
mov ecx, edi
push eax
push 0x4000
push dword [esp + 0xc]
push 2
mov edi, dword [ebp + 8]
push edi
call fcn.004ecc00
test eax, eax
je 0x482889
mov esi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x482784
mov ecx, esi
call fcn.004ecaa0
jmp 0x482721
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [esi]
push str.first
call fcn.0055baa0
push edi
call fcn.0042a760
add esp, 4
mov ecx, ebx
call fcn.005697d0
int3
int3
xor esi, esi
jmp 0x4827a7
Function at 0x48b230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
jne 0x48b309
cmp dword [esi], 0
jne 0x48b309
cmp dword [esi + 0xc], 0
jne 0x48b309
xor eax, eax
cmp dword [esi + 4], 0
jne 0x48b309
mov ebx, dword [edi]
cmp eax, ebx
je 0x48b293
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x48b2d9
lea eax, [ebx + 1]
cmp eax, 2
jb 0x48b289
mov dword [esi], ebx
call fcn.004cfef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp dword [esi + 4], ebx
je 0x48b2c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x48b2f0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x48b2bc
mov dword [esi + 4], ebx
call fcn.004cfef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfef0
push dword [esi]
call fcn.004dfb70
add esp, 4
mov dword [esi], 0
jmp 0x48b27a
call fcn.004cfef0
push dword [esi + 4]
call fcn.004dfb70
add esp, 4
mov dword [esi + 4], 0
jmp 0x48b2ac
mov ecx, esi
call fcn.0056e170
mov eax, dword [esi]
jmp 0x48b264
Function at 0x491c20
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x12c
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xc]
mov ecx, dword [0x5f3024]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], ecx
test al, al
je 0x491cfb
lea ebx, [ebp - 0x120]
xor edi, edi
push 0x110
push edi
push ebx
call fcn.00510ea0
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movaps xmm0, xmmword [0x5e3d50]
movups xmmword [esp], xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
call ebx
mov ecx, 3
push ecx
push 1
push edx
push eax
call ebx
mov ecx, 3
push ecx
push 0x20
push edx
push eax
call ebx
lea ecx, [ebp - 0x120]
mov dword [ecx - 8], 6
mov dword [ecx - 4], edi
mov word [ecx + 0x108], 0
lea ecx, [ebp - 0x12c]
push edx
push eax
push 0x23
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ebx, 0x80003
test eax, eax
je 0x491d02
lea edi, [ebp - 0x138]
mov dword [edi], 0xc
push 0
call fcn.00491d50
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], 1
jmp 0x491d02
xor edi, edi
mov ebx, 3
cmp byte [esi + 0xb], 0
jns 0x491d0a
mov esi, dword [esi]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x5e3d60]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x493030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0xc]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
sete al
pop ebp
ret