joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466130
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.004cfde0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004da670
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 0x466337
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 0x466262
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 0x4662ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x466319
mov ecx, edi
inc ecx
cmp ecx, 2
mov ebx, dword [ebp + 0xc]
jb 0x4662a3
mov dword [esi], edi
mov edi, eax
call fcn.004cfe10
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi]
inc edi
cmp edi, 2
jb 0x4662f4
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [esi + 0x14], 0
mov byte [esi + 0x19], al
test bl, 4
jne 0x466308
test bl, 0xa
je 0x4662d1
mov byte [esi + 0x18], 1
lea ecx, [esp + 0x20]
call fcn.004da6f0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0050db32
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
jmp 0x4662ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466000
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x4662d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [esi + 0x18]
jmp 0x4662d1
mov ebx, eax
call fcn.004cfe10
push dword [esi]
call fcn.004dfa90
mov eax, ebx
add esp, 4
mov dword [esi], 0
jmp 0x46628d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
mov dword [eax + 0x14], 0xffffffff
jmp 0x4662d1
Function at 0x466410
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 0x466445
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x46644c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x46643e
mov dword [esi], ebx
call fcn.004cfe10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfe10
push dword [esi]
call fcn.004dfa90
add esp, 4
mov dword [esi], 0
jmp 0x46642f

Function at 0x466490
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.004cfde0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004da670
mov ecx, esi
call fcn.00465a40
test al, al
je 0x466615
mov ecx, esi
call fcn.00465a50
sub esp, 0x18
movdqa xmm0, xmmword [0x5db9d0]
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 0x466553
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x4665f9
mov eax, edi
inc eax
cmp eax, 2
jb 0x466549
mov dword [esi + 0x24], edi
call fcn.004cfe10
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
lea eax, [edi + 1]
cmp eax, 2
jb 0x466615
sub esp, 0x14
movdqa xmm0, xmmword [0x5db9e0]
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 + 0x5fc3c8]
bt edx, ecx
jb 0x466619
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5fc3c8]
bt ecx, eax
jb 0x466627
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x6043c8], 1
mov dword [esi + 0x1c], edi
test edi, edi
je 0x466615
mov ecx, esp
mov dword [ecx], fcn.00541730
mov dword [ecx + 4], edi
call fcn.0048a9b0
mov eax, dword [eax + 0x50]
mov dword [esi + 0x20], eax
mov bl, 1
lea ecx, [esp + 0x10]
call fcn.004da6f0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004cfe10
push dword [esi + 0x24]
call fcn.004dfa90
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x466539
xor ebx, ebx
jmp 0x4665d9
push eax
call fcn.004d10e0
add esp, 4
jmp 0x466598
push edi
call fcn.004d0fc0
add esp, 4
jmp 0x4665ba
Function at 0x467170
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.00488530
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 [0x5dba70]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp dword [esi + 0xc], eax
je 0x4671da
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
inc eax
cmp eax, 2
jae 0x4671e4
lea eax, [edi + 1]
cmp eax, 2
jb 0x4671ce
mov dword [esi + 0xc], edi
call fcn.004cfe10
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.004cfe10
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.004dfa90
mov dword [esi + 0xc], 0
jmp 0x4671be
Function at 0x4686c0
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 0x4686e1
call fcn.004cfe10
mov dword [esi], 0
test edi, edi
je 0x468710
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x468731
cmp ebx, 2
jb 0x468709
mov dword [esi], edi
mov edi, eax
call fcn.004cfe10
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 0x46874e
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.004cfe10
push dword [esi]
call fcn.004dfa90
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x4686f9
call fcn.004cfe10
push dword [edi]
call fcn.004dfa90
add esp, 4
mov dword [edi], 0
jmp 0x468725
Function at 0x469610
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 0x469647
mov eax, dword [0x5f4ba4]
cmp eax, 0xffffffff
je 0x4696d4
mov ebx, 0x100000
test eax, eax
jne 0x469647
mov ebx, 0x80000
push 0x10
call fcn.0050d4fe
add esp, 4
mov esi, eax
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5fc3c8]
bt ecx, eax
jb 0x4696c9
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x6043c8], 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 0x469ab0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4696f8
test edi, edi
je 0x469756
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.004d0fc0
add esp, 4
jmp 0x469675
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x5f4ba4
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4697ca
mov eax, dword [0x5f4ba4]
jmp 0x469639
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x469714
mov edi, eax
cmp eax, 0x5af
je 0x469714
cmp edi, 0xe
jne 0x469766
push ebx
call fcn.0056a2c0
add esp, 4
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x4696b0
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5fc3c8]
bt edx, ecx
jae 0x469745
push eax
call fcn.004d10e0
add esp, 4
push esi
call fcn.0050d52e
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x4696b0
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4696b0
mov eax, dword [0x5fa08c]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4697d9
lea ebx, [ebp - 0x1c]
push edi
push ebx
call fcn.0045e3a0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4697a0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
jmp 0x4697a3
and eax, 0x7f
push eax
push ebx
push dword [0x5fa088]
call fcn.004ce930
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x46971d
push dword [ebp - 0x1c]
call fcn.0050d52e
jmp 0x46971a
mov dword [0x5f4ba4], 0
jmp 0x469642
push 0x5fa08c
call fcn.0050d5a7
add esp, 4
cmp dword [0x5fa08c], 0xffffffff
jne 0x469783
push 0x20
push str.create_thread_last_error
call fcn.00455070
add esp, 8
mov dword [0x5fa088], eax
push 0x5fa08c
call fcn.0050d61d
add esp, 4
jmp 0x469783

Function at 0x46a220
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 0x46a2c0
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 0x46a305
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.0050db32
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 0x46a2f0
mov esi, eax
test eax, eax
jne 0x46a2f0
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.0053f3e0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x46a352
mov eax, dword [esp + 0x1c]
jmp 0x46a355
and eax, 0x7f
test eax, eax
je 0x46a36c
lea ecx, [esp + 0x18]
call fcn.0044f410
cmp word [eax], 0x5c
jne 0x46a47f
movzx ecx, byte [esp + 0x23]
test cl, cl
jns 0x46a37b
mov eax, dword [esp + 0x1c]
jmp 0x46a380
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.00468fa0
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 0x46a435
mov ecx, esi
xor edi, edi
push edi
push dword [esp + 8]
call fcn.004cda80
lea ecx, [esp + 0x18]
push edi
push dword [esp + 4]
call fcn.004cda80
movzx eax, byte [esp + 0x13]
test al, al
jns 0x46a403
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
jmp 0x46a408
and eax, 0x7f
mov edx, esi
lea edi, [esp + 0x18]
mov ecx, edi
push eax
push edx
call fcn.00451980
cmp byte [esp + 0x23], 0
jns 0x46a420
mov edi, dword [esp + 0x18]
push dword [ebp + 0x10]
push edi
push ebx
call fcn.0046a2c0
add esp, 0xc
test eax, eax
je 0x46a391
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 0x46a463
push dword [esp + 8]
call fcn.0050d52e
add esp, 4
cmp byte [esp + 0x23], 0
jns 0x46a2f0
push dword [esp + 0x18]
call fcn.0050d52e
add esp, 4
jmp 0x46a2f0
lea ecx, [esp + 0x18]
push 0x5c
call fcn.004cd880
jmp 0x46a36c
Function at 0x46a4b0
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 0x46a523
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x46a50d
cmp dword [ebp - 0x18], 4
jne 0x46a50d
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.0050db32
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x46a50d

Function at 0x46a530
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.0050e870
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.00510dc0
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 0x46a5c9
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x46a5cd
push edi
call fcn.0052a854
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00451610
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050db32
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x46a5b0
cmp eax, 2
jne 0x46a619
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.00510dc0
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 0x46a620
push ebx
call fcn.0052a854
add esp, 4
mov ecx, esi
push eax
push ebx
jmp 0x46a5a9
mov esi, 0x3f4
jmp 0x46a5b0
mov esi, 0xea
jmp 0x46a5b0

Function at 0x46a630
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.0052a854
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 0x46ad30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5fa0d8]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46ad61
movzx eax, word [0x5fa0b4]
cmp eax, 9
jne 0x46adac
xor eax, eax
inc eax
pop ebp
ret
push 0x5fa0d8
call fcn.0050d5a7
add esp, 4
cmp dword [0x5fa0d8], 0xffffffff
jne 0x46ad50
xorps xmm0, xmm0
movups xmmword [0x5fa0c4], xmm0
movups xmmword [0x5fa0b4], xmm0
mov dword [0x5fa0d4], 0
push 0x5fa0b4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5fa0d8
call fcn.0050d61d
add esp, 4
jmp 0x46ad50
test eax, eax
je 0x46ad5f
cmp eax, 6
jne 0x46adbc
mov eax, 2
jmp 0x46ad5f
cmp eax, 0xc
jne 0x46adc8
mov eax, 3
jmp 0x46ad5f
mov eax, 4
jmp 0x46ad5f
Function at 0x473120
Capabilities:
Compute adler32 checksum

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x473658
cmp dword [ebp + 0x10], 0
jne 0x473654
call fcn.004913e0
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00473130
Function at 0x482530
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 0x482703
cmp dword [0x5f60a8], 0xe69e32f3
jne 0x482706
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.004d0e90
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 0x4826cb
mov dword [esp + 8], esi
mov eax, dword [edi]
mov esi, dword [eax]
test esi, esi
je 0x48267a
mov byte [esp + 0xf], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x482670
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 0x4826d7
mov edx, ecx
and edx, 0x1fc000
je 0x4826d7
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.004ebcf0
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.0050db32
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 0x4825eb
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.004ecb20
test eax, eax
je 0x482709
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 0x482604
mov ecx, esi
call fcn.004ec9c0
jmp 0x4825a1
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [esi]
push str.first
call fcn.0055b9c0
push edi
call fcn.0042a760
add esp, 4
mov ecx, ebx
call fcn.005696f0
int3
int3
xor esi, esi
jmp 0x482627
Function at 0x48b0b0
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 0x48b189
cmp dword [esi], 0
jne 0x48b189
cmp dword [esi + 0xc], 0
jne 0x48b189
xor eax, eax
cmp dword [esi + 4], 0
jne 0x48b189
mov ebx, dword [edi]
cmp eax, ebx
je 0x48b113
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x48b159
lea eax, [ebx + 1]
cmp eax, 2
jb 0x48b109
mov dword [esi], ebx
call fcn.004cfe10
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 0x48b146
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x48b170
lea eax, [ebx + 1]
cmp eax, 2
jb 0x48b13c
mov dword [esi + 4], ebx
call fcn.004cfe10
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.004cfe10
push dword [esi]
call fcn.004dfa90
add esp, 4
mov dword [esi], 0
jmp 0x48b0fa
call fcn.004cfe10
push dword [esi + 4]
call fcn.004dfa90
add esp, 4
mov dword [esi + 4], 0
jmp 0x48b12c
mov ecx, esi
call fcn.0056e090
mov eax, dword [esi]
jmp 0x48b0e4
Function at 0x491b40
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 0x491c1b
lea ebx, [ebp - 0x120]
xor edi, edi
push 0x110
push edi
push ebx
call fcn.00510dc0
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movaps xmm0, xmmword [0x5e3cd0]
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 0x491c22
lea edi, [ebp - 0x138]
mov dword [edi], 0xc
push 0
call fcn.00491c70
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], 1
jmp 0x491c22
xor edi, edi
mov ebx, 3
cmp byte [esi + 0xb], 0
jns 0x491c2a
mov esi, dword [esi]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x5e3ce0]
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.0050db32
mov eax, esi
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x492f50
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