joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5734e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x67706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
push str.Unspecified_error.
call fcn.0056b4f0
add esp, 4
push 0x44
push 0
lea eax, [ebp - 0x268]
push eax
call fcn.00497f00
add esp, 0xc
mov dword [ebp - 0x268], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.00497f00
add esp, 0xc
mov dx, word [0x5a6a08]
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00497f00
add esp, 0xc
push 0x5fa84c
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004b6a87
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x210]
add ecx, 0xa0
call fcn.0056d7d0
push eax
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.004b6a87
add esp, 0xc
push 0x5fa850
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004b6a87
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.004b6a87
add esp, 0xc
push 0x5fa84c
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004b6a87
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x268]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x210]
add ecx, 0xa0
call fcn.00578c30
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x220], 0
je 0x573644
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x214], 0
jne 0x573661
push 0x5fa858
call fcn.0056b4f0
add esp, 4
mov eax, 1
jmp 0x5736b5
cmp dword [ebp + 0xc], 0
je 0x57367c
push 0xffffffffffffffff
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], 0
je 0x57368f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x224]
mov dword [ecx], edx
jmp 0x5736a6
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x224], 0
push str.Success.
call fcn.0056b4f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487463
mov esp, ebp
pop ebp
ret 0xc
Function at 0x57c1c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594453
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x67706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.0057dca0
push 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x57c21e
mov eax, 1
jmp 0x57c26c
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x228]
call fcn.0056ce60
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x224]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00578a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.0056d070
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487463
mov esp, ebp
pop ebp
ret
Function at 0x57ccd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594643
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x67706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0056cf00
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp + 0xc]
call fcn.00578c30
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x57cde9
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.00578c30
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x57cde9
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x59f9e0
mov edx, dword [ebp - 0x24]
push edx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
and ecx, 0xffff
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
and eax, 0xffff
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x14]
shr edx, 0x10
and edx, 0xffff
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
mov word [ebp - 0x10], cx
movzx edx, word [ebp - 0x10]
push edx
movzx eax, word [ebp - 0x14]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
movzx edx, word [ebp - 0x1c]
push edx
push str._u._u._u._u
lea eax, [ebp - 0x28]
push eax
call fcn.005791f0
add esp, 0x18
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.00578480
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0056d070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0056d070
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x57ce40
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594676
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x67706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0056cf00
mov byte [ebp - 4], 1
push 0
push 0x3a
lea ecx, [ebp + 8]
call fcn.0057dce0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x57ce96
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x5c
lea ecx, [ebp + 8]
call fcn.0057dce0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x57cec1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00578a00
jmp 0x57cef6
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp + 8]
call fcn.00579920
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00578a00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0056d070
push 0
lea ecx, [ebp - 0x14]
call fcn.00578c30
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x57cf44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x57cf44
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0056d070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0056d070
mov eax, dword [ebp - 0x2c]
jmp 0x57cfc0
lea ecx, [ebp - 0x14]
call fcn.00578c30
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
and edx, 0x10
jne 0x57cf85
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0056d070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0056d070
mov eax, dword [ebp - 0x34]
jmp 0x57cfc0
cmp dword [ebp - 0x10], 0xffffffff
jne 0x57cf8d
jmp 0x57cf9b
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x57ce9c
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0056d070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0056d070
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x57de60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x10], 0
je 0x57de78
mov dword [ebp - 8], 1
jmp 0x57de7f
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
xor ecx, ecx
jne 0x57de85
cmp dword [ebp - 0x14], 0
jne 0x57de99
push 0x80004005
call fcn.0056d720
xor edx, edx
jne 0x57de69
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x57dfe0
cmp dword [ebp + 8], 0
je 0x57dfe0
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jbe 0x57dfcf
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jbe 0x57dfb5
cmp dword [ebp - 4], 2
jbe 0x57df06
cmp dword [ebp - 4], 7
je 0x57df4b
jmp 0x57dfb5
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x57df2b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x57df46
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + ecx], dx
mov eax, 0xd
jmp 0x57dfe3
jmp 0x57dfcd
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x57df9b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jb 0x57df9b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
jne 0x57df9b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jbe 0x57dfb3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 4]
test ecx, ecx
je 0x57dfb3
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + eax], cx
mov eax, 0xd
jmp 0x57dfe3
jmp 0x57dfcd
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + ecx], dx
mov eax, 0xd
jmp 0x57dfe3
jmp 0x57dfe0
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + edx], ax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x57ea30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5947a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x67706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0056cf00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0056cd00
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x57ecf0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ecx + 8]
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
push 6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.0057ffb0
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x583040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594d50
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x67706c]
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 esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x68], esi
test esi, esi
je 0x58308c
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esi + 8], 0x6654b8
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x583096
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
jne 0x5830b5
push esi
push ebx
push edi
call fcn.00582f10
add esp, 0xc
jmp 0x5831b1
push eax
push ebx
call fcn.00582e10
add esp, 8
mov esi, eax
test dword [ebp - 0x60], 0x400
mov dword [ebp - 0x64], esi
je 0x58318b
push ebx
call fcn.00582d20
add esp, 4
test al, al
jne 0x5830e9
mov dword [edi], 9
jmp 0x5831ae
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x5830f3
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x28]
call fcn.0045d873
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x60], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0044e0e0
cmp esi, 0xffffffff
jne 0x583149
push dword [ebp - 0x68]
push ebx
push edi
call fcn.00582f10
add esp, 0xc
jmp 0x5831b1
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x583175
push dword [ebp - 0x68]
push ebx
push edi
call fcn.00582f10
add esp, 0xc
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5831b1
mov ebx, dword [ebp - 0x5c]
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x64]
jmp 0x58318e
mov ebx, dword [ebp - 0x60]
and ebx, 0x10
je 0x583198
mov ecx, dword [ebp - 0x64]
jmp 0x58319d
mov ecx, esi
mov esi, dword [ebp - 0x64]
xor eax, eax
test ebx, ebx
setne al
add eax, 2
test ebx, ebx
mov dword [edi], eax
cmove esi, ecx
mov dword [edi + 4], esi
mov eax, edi
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.00487463
mov esp, ebp
pop ebp
ret
Function at 0x5832c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594db0
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x67706c]
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, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00453190
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x58336f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x5c
mov ecx, dword [ebp - 0x14]
je 0x583368
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x2f
mov ecx, dword [ebp - 0x14]
je 0x583368
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x3a
jne 0x58336f
mov edx, 0x5faca8
jmp 0x583374
mov edx, 0x5faca0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x294], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x583380
sub ecx, dword [ebp - 0x294]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00452d40
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x298]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x5833ed
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5833d9
cmp eax, 0x12
jne 0x5833db
xor eax, eax
push 0x6654b8
push eax
mov ecx, esi
call fcn.00448088
jmp 0x5834c8
lea edx, [ebp - 0x264]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5833f6
sub edx, ecx
lea eax, [ebp - 0x264]
mov ecx, dword [ebp - 0x29c]
sar edx, 1
push edx
push eax
call fcn.0044dde3
mov eax, dword [ebp - 0x290]
test eax, 0x400
je 0x583436
mov dword [edi], 0
mov dword [ebx], 0
jmp 0x5834b7
test al, 0x10
je 0x583448
mov dword [edi], 3
mov dword [ebx], 3
jmp 0x583454
mov dword [edi], 2
mov dword [ebx], 2
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x583471
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0044dde3
push dword [ebp - 0x290]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00582e10
add esp, 8
mov dword [edi + 4], eax
lea ecx, [ebp - 0x40]
call fcn.0044e0e0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esi + 8], 0x6654b8
lea ecx, [ebp - 0x28]
call fcn.0044e0e0
mov eax, esi
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.00487463
mov esp, ebp
pop ebp
ret
Function at 0x585520
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6786a8]
cmp eax, 0xffffffff
je 0x585570
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x585570
push esi
mov esi, dword [eax + 0x14]
mov eax, esi
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x585565
mov edx, dword [esp + 8]
cmp dword [ecx + 0x10], edx
jae 0x585552
mov ecx, dword [ecx + 8]
jmp 0x585556
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x585548
cmp eax, esi
je 0x585565
cmp edx, dword [eax + 0x10]
jae 0x585567
mov eax, esi
cmp eax, esi
pop esi
je 0x585570
add eax, 0x14
ret
xor eax, eax
ret
Function at 0x585ce0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595210
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x67706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00584ce0
mov esi, eax
mov dword [ebp - 4], 0
push 0x585360
push 0x680d94
mov dword [ebp - 0x14], esi
call fcn.00585150
mov eax, dword [0x6786a8]
add esp, 8
cmp eax, 0xffffffff
je 0x585d40
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x586100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595258
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x67706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6786a8]
cmp eax, 0xffffffff
jne 0x586134
xor ebx, ebx
jmp 0x58613d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x58617f
mov eax, dword [ebx + 0x18]
nop
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x5861be
test esi, esi
jne 0x5861c2
push 0x585360
push 0x680d94
call fcn.00585150
mov eax, dword [0x6786a8]
add esp, 8
cmp eax, 0xffffffff
je 0x58617f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 2
test ebx, ebx
je 0x5861ac
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x5861ac
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x586207
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x5861ed
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x5861c2
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x586150
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x58622d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x58622d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea ecx, [ebx + 0x14]
call fcn.00458fc6
push 0x20
push eax
call fcn.00487ad0
mov eax, dword [ebx + 0x18]
add esp, 8
mov byte [ebp - 4], 0
test eax, eax
jne 0x586210
jmp 0x586150
Function at 0x586260
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push edi
call fcn.00585520
mov esi, eax
add esp, 4
test esi, esi
je 0x586379
cmp byte [esp + 0x40], 0
je 0x58629c
mov eax, dword [esi + 4]
test eax, eax
je 0x58629c
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x58629c
push ecx
push eax
mov eax, dword [esi]
call eax
add esp, 8
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
test edx, edx
jne 0x586365
test ecx, ecx
jne 0x586365
mov eax, dword [0x6786a8]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x5862cb
push eax
call esi
test eax, eax
jne 0x5862e1
call fcn.00585ce0
mov eax, dword [0x6786a8]
cmp eax, 0xffffffff
jne 0x5862de
xor eax, eax
jmp 0x5862e1
push eax
call esi
mov ebx, dword [eax + 0x14]
lea ebp, [eax + 0x14]
mov esi, ebx
mov ecx, dword [ebx + 4]
mov eax, ecx
cmp byte [eax + 0xd], 0
jne 0x586315
mov edx, dword [eax + 0x10]
cmp edx, edi
jae 0x586300
mov eax, dword [eax + 8]
jmp 0x58630f
cmp byte [esi + 0xd], 0
je 0x58630b
cmp edi, edx
cmovb esi, eax
mov ebx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x5862f4
cmp byte [esi + 0xd], 0
jne 0x58631d
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x586337
cmp edi, dword [ecx + 0x10]
jae 0x58632e
mov esi, ecx
mov ecx, dword [ecx]
jmp 0x586331
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x586323
mov dword [esp + 0x10], ebx
cmp ebx, esi
je 0x58634f
nop
lea ecx, [esp + 0x10]
call fcn.0045926e
cmp dword [esp + 0x10], esi
jne 0x586340
push esi
push ebx
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.004592a2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x34]
pop edi
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x38], 0
mov ebp, dword [esp + 0x3c]
jne 0x586388
test ebp, ebp
je 0x5863fe
mov eax, dword [0x6786a8]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x5863a1
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x5863b9
call fcn.00585ce0
mov eax, dword [0x6786a8]
cmp eax, 0xffffffff
jne 0x5863b4
xor esi, esi
jmp 0x5863b9
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x34]
lea ecx, [esi + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
movq xmm0, qword [esp + 0x10]
push eax
mov dword [esp + 0x20], edi
movq qword [esp + 0x24], xmm0
mov dword [esp + 0x2c], ebp
call fcn.00584970
push eax
add eax, 0x10
lea ecx, [esi + 0x14]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.00584b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret