joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462b10
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x462c37
test al, 0x10
je 0x462c37
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x462c37
push dword [ebp - 0x14]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0
push 4
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x462c2e
mov ecx, dword [ebp - 0x10]
push esi
xor esi, esi
cmp ax, word [ecx + 4]
jae 0x462c0f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_DeleteAce]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x462c02
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x462c02
push esi
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x10]
inc esi
movzx eax, word [ecx + 4]
cmp esi, eax
jl 0x462bd1
pop edi
push 0
push ecx
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop ebx
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret
Function at 0x4657b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e0a3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x7c], eax
lea esi, [eax + 0x30]
xor ebx, ebx
mov dword [ebp - 0x80], ebx
push esi
mov dword [ebp - 0x88], esi
call fcn.004f6b75
add esp, 4
test eax, eax
je 0x465807
push eax
call fcn.004f6c54
add esp, 4
push 0x64
mov dword [ebp - 4], 0
call fcn.004f8f4d
mov edi, eax
add esp, 4
mov dword [ebp - 0x8c], edi
test edi, edi
je 0x465933
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_c4a36e7366b61b94062b933b1305c053___void___.0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea eax, [edi + 0xc]
mov dword [ebp - 4], 3
push 2
push eax
call fcn.004f6b54
lea eax, [edi + 0x3c]
push eax
call fcn.004f7f6f
add esp, 0xc
cmp dword [ebp - 0x78], 0
jl 0x46592e
jg 0x465891
cmp dword [ebp - 0x74], 0
jbe 0x46592e
lea eax, [ebp - 0x68]
mov byte [edi], 1
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x4658bd
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
call dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x94]
call fcn.00463b00
cmp dword [edi + 8], 0
mov ecx, eax
jne 0x4659d3
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
mov dword [edi + 8], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
cmp dword [ebp - 0x90], 0
jne 0x4659d8
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x465935
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x44], 0
jmp 0x465935
mov byte [edi], 0
jmp 0x465935
xor edi, edi
or ebx, 2
test bl, 1
je 0x46595c
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x46595c
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x84]
add eax, 0x110
cmp eax, ecx
je 0x465982
mov ebx, dword [eax]
mov dword [eax], edi
test ebx, ebx
je 0x465998
mov ecx, ebx
call fcn.00471ce0
push 0x64
push ebx
jmp 0x465990
test edi, edi
je 0x465998
mov ecx, edi
call fcn.00471ce0
push 0x64
push edi
call fcn.004f8f7d
add esp, 8
push esi
mov dword [ebp - 4], 9
call fcn.004f6b9a
add esp, 4
test eax, eax
je 0x4659b5
push eax
call fcn.004f6c54
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 8
call fcn.00521eb4
call fcn.00521eb4
int3
Function at 0x46dbc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e7cf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x58ec74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5a80ac]
test eax, eax
jne 0x46dcc0
push 0xc
call fcn.004f8f4d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x46dc61
push 0
push 0
push 0
push 0
mov word [esi + 8], 0x100
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [0x5a80b8], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x5a80b4
push 0
push esi
push 0x463af0
push 0
push 0
call fcn.005215f4
add esp, 0x18
mov dword [0x5a80b0], eax
mov ecx, esi
call fcn.00470d70
jmp 0x46dc63
xor esi, esi
push 1
lea eax, [ebp - 0x30]
mov dword [0x5a80ac], esi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xc
push str.Global_asusfanservice
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
mov byte [esi + 8], al
mov eax, dword [0x5a80ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46ddf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e822
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x430], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 4], 2
mov dword [ebp - 0x434], 0x400
mov word [esi], ax
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x201
lea eax, [ebp + 0xc]
mov dword [ebp - 0x430], 1
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46df68
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x410]
push ecx
push 0
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46df68
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], 7
lea edx, [ecx + 2]
mov word [ebp - 0x428], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46dee0
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.004040c0
lea eax, [ebp - 0x428]
cmp esi, eax
je 0x46df47
mov ecx, esi
call fcn.00403b60
movups xmm0, xmmword [ebp - 0x428]
xor eax, eax
mov word [ebp - 0x428], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x418]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
lea ecx, [ebp - 0x428]
call fcn.00403b60
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x42c], eax
jmp 0x46df6e
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x46dfab
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46dfa1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e013
push edx
push ecx
call fcn.004f8f7d
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x46dff5
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46dfeb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e018
push edx
push ecx
call fcn.004f8f7d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 0x34
call fcn.00514793
call fcn.00514793
int3
Function at 0x4718e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ecdb
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], 0
mov dword [ebp - method.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 0xfa
mov ecx, dword [ecx + 8]
lea esi, [ebp - 0x11c]
push esi
push edx
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x114]
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0x110]
jbe 0x471972
push eax
mov eax, dword [ebp - 0x11c]
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x118]
mov byte [ecx + eax], 0
push dword [ebp - 0x118]
inc dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x10c]
mov dword [ebp - method.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x4719d2
mov edx, dword [ebp - 0x110]
mov eax, ecx
cmp edx, 0x1000
jb 0x4719c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4719ee
push edx
push ecx
call fcn.004f8f7d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 4
call fcn.00514793
int3
Function at 0x472d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ee76
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x472f24
cmp eax, 0xffffffff
je 0x472f24
mov esi, dword [edi + 0xc]
push esi
mov dword [ebp - 0x138], esi
call fcn.004f6b75
add esp, 4
test eax, eax
je 0x472da6
push eax
call fcn.004f6c54
add esp, 4
lea eax, [ebp - 0x124]
mov dword [ebp - 4], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - method.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x128], 0xfa
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x134]
push edx
push ebx
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0x10], 0
je 0x472ed4
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
jbe 0x472ed4
test eax, eax
je 0x472e27
push 0
push 0
push eax
push dword [ebp - 0x130]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebx + 8]
movzx eax, word [edi + eax*2 + 0x18]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x472e52
mov dword [ebp - 0x138], 7
jmp 0x472e7a
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x138]
and ecx, 0xfff0
movzx eax, ax
or ecx, eax
push ecx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0x138], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
jbe 0x472e9d
push 0
sub eax, ecx
push 0
push eax
mov eax, dword [ebp - 0x130]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push dword [ebp - 0x138]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebp - 0x12c]
cmp eax, ecx
jbe 0x472efc
push 0
sub eax, ecx
push 0
push eax
mov eax, dword [ebp - 0x130]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x472efc
push 0
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0
push eax
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x134]
call fcn.0046b560
push esi
mov dword [ebp - 4], 2
call fcn.004f6b9a
add esp, 4
test eax, eax
je 0x472f24
push eax
call fcn.004f6c54
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 4
Function at 0x474930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f300
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.00521b4a
add esp, 0x10
cmp eax, esi
jne 0x474994
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0047f170
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push str.Failed_writing_to_file
push eax
call fcn.00473280
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00521101
push dword [eax]
push esi
call fcn.00484140
int3
Function at 0x47e5b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x58ec74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
push edi
cmp dword [ebx + 0x14], 0x10
jb 0x47e5d3
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47e75d
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x47e77f
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov esi, 0x556650
mov edx, edi
lea eax, [esi + 1]
mov dword [ebp - 0x120], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x47e606
sub esi, dword [ebp - 0x120]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x120], ebx
jb 0x47e627
mov eax, dword [ebx]
mov dword [ebp - 0x120], eax
test esi, esi
je 0x47e6a6
cmp ecx, edx
jae 0x47e6a6
push 0x100
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00511230
xor edx, edx
lea eax, [esi + 0x556650]
add esp, 0xc
mov ecx, 0x556650
cmp eax, ecx
cmovb esi, edx
test esi, esi
je 0x47e673
nop dword [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
inc edx
mov byte [ebp + eax - 0x11c], 1
cmp edx, esi
jne 0x47e660
mov esi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x124]
add eax, esi
lea edx, [esi + edi]
cmp eax, edx
jae 0x47e6a6
nop dword [eax + eax]
movzx ecx, byte [eax]
cmp byte [ebp + ecx - 0x11c], 0
jne 0x47e770
inc eax
cmp eax, edx
jb 0x47e690
or eax, 0xffffffff
cmp eax, 0xffffffff
mov dword [ebp - 0xc], 0
mov esi, edi
mov dword [ebp - 8], 0xf
cmovne esi, eax
mov byte [ebp - 0x1c], 0
cmp edi, esi
mov eax, esi
mov ecx, ebx
cmovb eax, edi
cmp dword [ebx + 0x14], 0x10
jb 0x47e6d4
mov ecx, dword [ebx]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404d70
cmp dword [ebp - 0xc], 0
je 0x47e713
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47e713
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.005231c9
add esp, 4
test eax, eax
jne 0x47e777
mov edx, dword [ebp - 8]
lea ecx, [esi + 1]
mov dword [ebp - 0x124], ecx
cmp edx, 0x10
jb 0x47e752
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47e742
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47e792
push edx
push ecx
call fcn.004f8f7d
mov ecx, dword [ebp - 0x124]
add esp, 8
mov edi, dword [ebx + 0x10]
cmp ecx, edi
jb 0x47e5f6
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret
sub eax, esi
jmp 0x47e6a9
lea ecx, [ebp - 0x1c]
call fcn.00404a80
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8f3c
mov esp, ebp
pop ebp
ret
call fcn.00514793
int3
Function at 0x47ec70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x47ec8b
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x47eca7
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x47ec96
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
mov eax, dword [ecx + esi]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x47ece0
cmp eax, edi
jne 0x47ecd8
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x47ece8
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x47ece8
cmp eax, edi
jne 0x47eceb
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.0047d3a0
push 0x28
push edi
call fcn.004f8f7d
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47f2a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
mov dword [ebp - 4], ebx
jb 0x47f2bf
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x47f2e1
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x47f2d0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
mov ebx, dword [ebx + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 8], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
cmp edx, ebx
jne 0x47f309
mov eax, ebx
jmp 0x47f30d
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x47f379
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x47f31b
mov edx, dword [edi]
mov edi, dword [esi + 0x1c]
lea ecx, [esi + 8]
mov dword [ebp - 0x10], edi
cmp edi, 0x10
mov edi, dword [ebp + 0xc]
jb 0x47f32f
mov ecx, dword [esi + 8]
push dword [ebp - 4]
mov eax, dword [esi + 0x18]
push edx
push eax
push ecx
mov dword [ebp - 0x14], eax
call fcn.0041a180
add esp, 0x10
test al, al
jne 0x47f351
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x47f301
cmp dword [ebp - 0x10], 0x10
lea eax, [esi + 8]
jb 0x47f35c
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
jb 0x47f364
mov edi, dword [edi]
push dword [ebp - 0x14]
push eax
push dword [ebp - 4]
push edi
call fcn.0041a180
add esp, 0x10
test al, al
cmovne ebx, esi
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4834be
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x483e90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540080
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x58ec74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00483250
mov edi, eax
lea esi, [edi + 0x30]
push esi
call fcn.004f6b75
add esp, 4
test eax, eax
je 0x483ed5
push eax
call fcn.004f6c54
add esp, 4
mov ebx, dword [edi + 0x110]
mov dword [edi + 0x110], 0
test ebx, ebx
je 0x483efb
mov ecx, ebx
call fcn.00471ce0
push 0x64
push ebx
call fcn.004f8f7d
add esp, 8
push esi
mov dword [ebp - 4], 0
call fcn.004f6b9a
add esp, 4
test eax, eax
je 0x483f18
push eax
call fcn.004f6c54
add esp, 4
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0047ead0
lea esi, [edi + 0x60]
push esi
call fcn.004f6b75
add esp, 4
test eax, eax
je 0x483f3f
push eax
call fcn.004f6c54
add esp, 4
mov dword [edi + 0x108], 0
mov ebx, dword [edi + 0x10c]
mov dword [edi + 0x10c], 0
test ebx, ebx
je 0x483f7e
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x483f7e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], edi
dec edi
jne 0x483f7e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push esi
mov dword [ebp - 4], 1
call fcn.004f6b9a
add esp, 4
test eax, eax
je 0x483f9b
push eax
call fcn.004f6c54
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret