joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5362c9
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx]
mov ebx, dword [ecx + 0x8c]
add ebx, 8
mov dword [ebp - 4], 8
mov edi, dword [edi]
mov edx, edi
ror edx, 4
xor edx, dword [ebx - 8]
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x58d650]
xor ecx, dword [eax*4 + 0x58d850]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x58da50]
xor ecx, dword [edx*4 + 0x58dc50]
mov edx, dword [ebx - 4]
xor esi, ecx
xor edx, edi
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x58d750]
xor ecx, dword [eax*4 + 0x58d950]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x58db50]
xor ecx, dword [edx*4 + 0x58dd50]
xor esi, ecx
mov edx, esi
ror edx, 4
xor edx, dword [ebx]
lea ebx, [ebx + 0x10]
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x58d650]
xor ecx, dword [eax*4 + 0x58d850]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x58da50]
xor ecx, dword [edx*4 + 0x58dc50]
mov edx, dword [ebx - 0xc]
xor edi, ecx
xor edx, esi
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x58d750]
xor ecx, dword [eax*4 + 0x58d950]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x58db50]
xor ecx, dword [edx*4 + 0x58dd50]
xor edi, ecx
dec dword [ebp - 4]
jne 0x5362ea
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ebx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x537111
Capabilities:
Get mac address on windows

Disassembly:
push 0x5c
mov eax, 0x579f6b
call fcn.00561213
mov esi, ecx
mov dword [ebp - 0x54], esi
mov ebx, dword [ebp + 8]
and dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], esi
call fcn.005383c0
lea ecx, [esi + 0x68]
mov dword [ebp - 4], 1
mov eax, dword [ecx]
mov dword [ebp - 0x4c], ecx
cmp eax, dword [ecx + 4]
jne 0x53721e
and dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
push 0
call edi
push dword [ebp - 0x50]
call fcn.0055da37
mov esi, eax
pop ecx
mov dword [ebp - 0x64], esi
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
push esi
call edi
test eax, eax
jne 0x537208
lea edi, [ebp - 0x30]
push 8
pop ecx
rep stosd dword es:[edi], eax
test esi, esi
je 0x537208
mov edi, dword [ebp - 0x4c]
mov ebx, esi
movzx eax, byte [ebx + 0x199]
push eax
movzx eax, byte [ebx + 0x198]
push eax
movzx eax, byte [ebx + 0x197]
push eax
movzx eax, byte [ebx + 0x196]
push eax
movzx eax, byte [ebx + 0x195]
push eax
movzx eax, byte [ebx + 0x194]
push eax
lea eax, [ebp - 0x30]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.005373bc
add esp, 0x20
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x48]
push eax
call fcn.004077bf
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00533788
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401d84
mov ebx, dword [ebx]
test ebx, ebx
jne 0x537193
mov ebx, dword [ebp - 0x5c]
mov byte [ebp - 4], 1
test esi, esi
je 0x537218
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
pop ecx
mov esi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
push 0x18
cdq
pop edi
idiv edi
test eax, eax
jle 0x53723c
push dword [ecx]
mov ecx, ebx
call fcn.00407797
mov byte [ebp - 4], 0
jmp 0x53724f
and dword [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov byte [ebp - 4], al
mov ecx, esi
mov dword [ebp - 0x58], 1
call fcn.005383d0
mov eax, ebx
call fcn.005611c2
ret 8
Function at 0x53c3d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], 0
cmp dword [edi + 0x14], 8
jb 0x53c3fa
mov ebx, dword [edi]
jmp 0x53c3fc
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x53c43c
test al, 0x10
je 0x53c41f
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x53c429
mov dword [esi], 0xfffffff7
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0053d290
cmp dword [edi + 0x14], 8
jb 0x53c451
mov eax, dword [edi]
jmp 0x53c453
mov eax, edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push 0
call fcn.0040ba04
test eax, eax
jne 0x53c476
test esi, esi
je 0x53c4c0
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x53c4c6
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0053c3d0
add esp, 8
test al, al
je 0x53c4c0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x53c4c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x53c4b1
push edi
call fcn.0053c6f0
add esp, 4
test al, al
jne 0x53c4c4
test esi, esi
je 0x53c4c0
push ebx
call fcn.00549e40
add esp, 4
mov dword [esi], eax
xor bl, bl
jmp 0x53c4c6
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.0053cce0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret
Function at 0x53c4f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x53c522
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x53c537
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
push ebx
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x53c5dc
lea ecx, [ebp - 0x258]
call fcn.0053ee50
lea eax, [ebp - 0x258]
push eax
push esi
call fcn.0053c7f0
add esp, 8
test al, al
je 0x53c59b
cmp byte [ebp - 0x250], bl
je 0x53c59b
cmp dword [esi + 0x14], 8
jb 0x53c572
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [ebp - 0x258]
setne bl
call fcn.00401600
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x53c5a5
mov eax, dword [esi]
jmp 0x53c5a7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x53c5d1
lea ecx, [ebp - 0x258]
mov bl, 1
call fcn.00401600
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x258]
call fcn.00401600
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x53c602
mov esi, dword [esi]
lea ecx, [ebp - 0x210]
jmp 0x53c610
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x53c610
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], eax
mov eax, 0x414
mov dword [ebp - 0x22c], 3
mov word [ebp - 0x220], ax
test bl, bl
jne 0x53c68a
mov eax, 0x1494
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x21e], 0
je 0x53c6b2
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x53c6d9
cmp eax, 2
je 0x53c6d9
cmp eax, 0x402
je 0x53c6d9
cmp eax, 0x7c
je 0x53c6d9
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
xor ecx, ebp
pop esi
call fcn.0055daac
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x53c6fe
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x53c712
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x53c720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x53c7d5
cmp eax, 0x104
ja 0x53c7d5
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.004077bf
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
call fcn.0053cc70
mov ecx, eax
call fcn.0053e160
push eax
mov ecx, esi
call fcn.0053cd90
lea ecx, [ebp - 0x23c]
call fcn.0053cce0
lea ecx, [ebp - 0x254]
call fcn.0053cce0
cmp dword [ebp - 0x210], 8
jb 0x53c7c4
push dword [ebp - 0x224]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0055daac
mov esp, ebp
pop ebp
ret

Function at 0x53c8b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x53c936
cmp word [ebp - 0x20c], 0
je 0x53c936
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.004077bf
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.0053cc70
cmp dword [ebp - 0x210], 8
jb 0x53c9c1
push dword [ebp - 0x224]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x23c]
call fcn.0053ccc0
lea eax, [ebp - 0x23c]
push eax
call fcn.0053c9e0
add esp, 4
test al, al
je 0x53c964
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.0053cc40
jmp 0x53c9b6
push 0x57bdb0
lea ecx, [ebp - 0x224]
call fcn.004077bf
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.0053cc70
cmp dword [ebp - 0x210], 8
jb 0x53c999
push dword [ebp - 0x224]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x214], 0
mov word [ebp - 0x224], ax
lea ecx, [ebp - 0x23c]
call fcn.0053cce0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055daac
mov esp, ebp
pop ebp
ret
Function at 0x53c9e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x53ca89
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004077bf
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x258]
call fcn.0053cc70
mov ecx, eax
call fcn.0053e160
push eax
mov ecx, esi
call fcn.0053cd90
lea ecx, [ebp - 0x240]
call fcn.0053cce0
lea ecx, [ebp - 0x258]
call fcn.0053cce0
cmp dword [ebp - 0x214], 8
jb 0x53ca78
push dword [ebp - 0x228]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0055daac
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x53cb8e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x53f470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push edi
test esi, esi
je 0x53f498
call fcn.0054d4d0
cmp eax, 1
jl 0x53f498
mov dword [ebp - 4], 0x10000
jmp 0x53f49a
xor esi, esi
push 8
call fcn.0055dc1e
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edi, dword [ebp + 0x10]
mov ebx, eax
test edi, edi
push 0
push dword [ebp - 4]
mov dword [ebx], ecx
setne cl
push ebx
push 0x53f7a0
push esi
push 0
mov byte [ebx + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x53f4e0
push ebx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x53f4f6
mov dword [edi], eax
mov al, 1
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x541cb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5ca5c8], 0
je 0x541cd9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.0055dc1e
add esp, 4
test eax, eax
je 0x541cf7
push 0
mov ecx, eax
call fcn.00541400
mov dword [0x5ca5c8], eax
jmp 0x541d01
mov dword [0x5ca5c8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004077bf
mov ecx, dword [0x5ca5c8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00542240
cmp dword [ebp - 8], 8
jb 0x541d30
push dword [ebp - 0x1c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
Function at 0x542240
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], cx
lea ecx, [ebp - 0x1c]
push ecx
push 3
push eax
mov dword [ebp - 0xc], 0
call fcn.00548770
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x5422b9
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x20]
call fcn.00541e90
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
cmp dword [ebp - 8], 8
pop edi
jb 0x5422cb
push dword [ebp - 0x1c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055daac
mov esp, ebp
pop ebp
ret 4

Function at 0x542ee0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], 0xffffffff
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x542f34
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp + 8]
push eax
push ecx
call fcn.0053afd0
add esp, 0xc
test eax, eax
je 0x542f34
push eax
push 0x11
push str.threading_thread_local_win.cc
lea ecx, [ebp - 0xb0]
call fcn.0053b250
lea ecx, [ebp - 0xb0]
call fcn.0053b3a0
mov esp, ebp
pop ebp
ret

Function at 0x542f40
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x542fa3
call fcn.0053bc30
cmp eax, 3
jg 0x542f93
push 3
push 0x23
push str.threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
mov ebx, 1
call fcn.0053b1b0
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.00409f76
add esp, 8
test bl, 1
je 0x542fa3
lea ecx, [ebp - 0xb4]
call fcn.0053b3a0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x549c90
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [ebp - 4], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [ebp + 0xc], eax
test bl, 0x10
je 0x549ce6
mov dword [ebp + 0xc], 5
jmp 0x549cee
test eax, eax
je 0x549e0d
xor edx, edx
mov eax, 4
test bl, 0x40
push edi
mov edi, 0x40000000
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x549d12
or edx, 0x80000000
test ebx, 0x4000
je 0x549d20
or edx, 0x100
test ebx, 0x40000
je 0x549d2e
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x549d43
or ecx, 2
test ebx, 0x8000
je 0x549d4d
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x549d65
or eax, 0x100
test ebx, 0x1000
je 0x549d70
or eax, 2
test ebx, 0x2000
je 0x549d7d
or eax, 0x4000000
test ebx, 0x20000
je 0x549d8a
or eax, 0x2000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x549d95
mov edi, dword [edi]
push 0
push eax
push dword [ebp + 0xc]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov ecx, esi
call fcn.0053196a
mov eax, dword [esi]
pop edi
test eax, eax
je 0x549dfb
cmp eax, 0xffffffff
je 0x549dfb
mov eax, ebx
mov dword [esi + 4], 0
shr eax, 0xa
and al, 1
cmp dword [ebp - 4], 0
mov byte [esi + 9], al
je 0x549dea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 8], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x549e0d
mov byte [esi + 8], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00549e40
add esp, 4
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x54f730
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul ecx, ecx, 0x1000193
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x54f780
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov esi, dword [ebx]
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x54f7ae
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x54f7ae
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x54f7f1
cmp esi, eax
jne 0x54f7a2
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x54f7db
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x54f80b
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x54f82d
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.005559d0
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
pop ebp
ret 0xc
cmp eax, esi
jne 0x54f813
mov dword [ecx], edi
jmp 0x54f82d
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x54f82d
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.005556d0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
pop ebp
ret 0xc
Function at 0x54f850
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x54f8a2
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov esi, dword [ebx]
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x54f8d0
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x54f8d0
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x54f913
cmp esi, eax
jne 0x54f8c4
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x54f8fd
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x54f92d
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x54f94f
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.00555a20
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
pop ebp
ret 0xc
cmp eax, esi
jne 0x54f935
mov dword [ecx], edi
jmp 0x54f94f
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x54f94f
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00555790
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
pop ebp
ret 0xc