joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x100e02a1], 0
jne 0x10047111
call fcn.10047080
push esi
push dword [0x100dcf20]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10047132
inc dword [eax + 4]
mov eax, dword [eax + 8]
pop esi
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
push edi
nop word [eax + eax]
mov eax, dword [0x100e06ac]
test eax, eax
je 0x1004715f
push 1
push 0
call eax
mov edi, eax
test edi, edi
jne 0x10047182
push eax
push eax
call dword [0x100e06ac]
jmp 0x10047163
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x10047182
inc esi
mov eax, 0x12c
cmp esi, 0x12c
push edi
cmova esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x10047140
mov eax, dword [ebp + 8]
push eax
push dword [0x100dcf20]
mov dword [eax], 0x54626966
mov dword [eax + 4], 1
mov dword [eax + 8], edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.10047100
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [0x100e06b4]
mov dword [ebp - 8], 0x100441d0
test eax, eax
je 0x10047302
lea ecx, [ebp - 0xc]
push ecx
push 0x100471d0
push 1
push 0x4000
push 0x4000
call eax
mov esi, eax
test esi, esi
jne 0x1004731c
lea eax, [ebp - 0xc]
push eax
push 0x100471d0
push esi
push 0x4000
push 0x4000
call dword [0x100e06b4]
jmp 0x10047316
lea eax, [ebp - 0xc]
push eax
push 0x100471d0
push 0x4000
call dword [sym.imp.KERNEL32.dll_CreateFiber]
mov esi, eax
test esi, esi
je 0x10047325
push ecx
push 0
push esi
call fcn.10047360
push dword [0x100dcf20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 4], 0xffffffff
jne 0x10047356
push 0
push dword [0x100dcf20]
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x100e06b0]
test eax, eax
je 0x10047356
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10047360
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x100dcf20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp + 8]
mov edx, eax
test esi, esi
jne 0x1004737c
mov esi, dword [edx + 8]
mov ecx, dword fs:[0x10]
mov eax, dword [ebp + 0xc]
push esi
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
push dword [0x100dcf20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100473b9
push dword [eax + 0x14]
push dword [eax + 0xc]
call ecx
add esp, 8
pop ebp
ret 0xc
Function at 0x1004b1e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a980b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100dc008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
xor eax, eax
mov dword [esi], 0x100d6000
mov dword [esi + 4], 0x100d5fec
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], 0
mov word [esi + 0xc], ax
lea edi, [esi + 0x24]
mov dword [ebp - 4], eax
push 0x18
mov dword [ebp - 0x14], edi
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.1007bfdd
add esp, 4
test eax, eax
je 0x1004b252
mov dword [eax], eax
lea ecx, [eax + 4]
test ecx, ecx
je 0x1004b25b
mov dword [ecx], eax
lea ecx, [eax + 8]
test ecx, ecx
je 0x1004b264
mov dword [ecx], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov eax, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004b4a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9878
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x1004b4e1
mov eax, 0x80070057
jmp 0x1004b665
mov eax, dword [ebx + 0x24]
mov esi, eax
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x1004b506
cmp dword [ecx + 0x10], edi
jae 0x1004b4fc
mov ecx, dword [ecx + 8]
jmp 0x1004b500
mov esi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x1004b4f2
cmp esi, eax
je 0x1004b50f
cmp edi, dword [esi + 0x10]
jae 0x1004b511
mov esi, eax
cmp esi, eax
jne 0x1004b625
xor eax, eax
mov dword [ebp - 0x1c], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebx + 0xc]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.10017080
push 1
push 0x100d5fe8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.10018a40
mov eax, dword [ebx]
lea ecx, [ebp - 0x4c]
push ecx
push 3
push edi
push ebx
call dword [eax + 0x1c]
cmp word [ebp - 0x4c], 8
je 0x1004b57b
mov esi, 0x80004005
jmp 0x1004b5bd
push dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100189f0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1004b5ee
call fcn.10015440
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x1004b5d6
inc ecx
push ecx
push dword [ebp - 0x2c]
call fcn.10017a90
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, esi
mov dword [ebp - 0x1c], 0
jmp 0x1004b665
mov dword [ebp - 0x38], eax
lea ecx, [ebx + 0x24]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.1004c690
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebx + 0x24]
call fcn.1004bf80
lea ecx, [ebp - 0x2c]
mov esi, dword [eax]
mov dword [ebp - 4], 0xffffffff
call fcn.10017b60
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1004b643
call fcn.10015440
jmp 0x1004b665
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x34]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004b63c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1004d730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
test edi, edi
je 0x1004d8a9
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x1004d756
mov eax, 0x80070057
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1004d77a
mov eax, dword [ebp + 8]
test eax, eax
je 0x1004d74a
push dword [ebp + 0x14]
push edi
push ebx
push dword [eax + 4]
push dword [eax]
call fcn.1001d060
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
jne 0x1004d78e
mov eax, 0x80004005
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebp + 8]
test eax, eax
je 0x1004d7b5
push 0
push 0
push dword [eax + 4]
push dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1004d7b5
call fcn.10015440
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004d89d
cmp dword [ebp + 0x18], eax
jne 0x1004d7a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x1004d805
cmp eax, 0x3e6
je 0x1004d805
test eax, eax
jle 0x1004d8ab
movzx eax, ax
or eax, 0x80070000
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp dword [esi + 0x3c4], edi
jae 0x1004d85e
mov eax, dword [esi + 0x3c0]
test eax, eax
je 0x1004d834
push eax
call fcn.1007bfd8
add esp, 4
mov dword [esi + 0x3c0], 0
mov dword [esi + 0x3c4], 0
push 0x100dd790
push edi
call fcn.1007bfcf
add esp, 8
mov dword [esi + 0x3c0], eax
test eax, eax
jne 0x1004d858
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov dword [esi + 0x3c4], edi
push edi
push 0
push dword [esi + 0x3c0]
call fcn.1008b230
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [esi + 0x3c0]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004d7a9
push edi
push dword [esi + 0x3c0]
push ebx
call fcn.1008bac0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1004d8a9
mov eax, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x1004e9e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9a38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100dc008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x1c]
push 0
push ecx
push 0
push eax
push dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1004ea42
call fcn.10015440
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xa290
call fcn.1007c3b0
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x1004ea69
mov edi, 0x8007000e
jmp 0x1004eb4d
push 0xa290
push 0
push esi
call fcn.1008b230
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push 0
push eax
push 0xa290
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004eaa5
call fcn.10015440
mov edi, eax
jmp 0x1004eb4d
push 0x8001
push esi
call fcn.100506b0
test eax, eax
jne 0x1004eb4b
push 0x9311
push esi
call fcn.100506b0
test eax, eax
jne 0x1004eb4b
push 0x9319
push esi
call fcn.100506b0
test eax, eax
jne 0x1004eb4b
push 0x9911
push esi
call fcn.100506b0
test eax, eax
jne 0x1004eb4b
push 0x9919
push esi
call fcn.100506b0
test eax, eax
jne 0x1004eb4b
push 0x9209
push esi
call fcn.100506b0
test eax, eax
jne 0x1004eb4b
push 0x9201
push esi
call fcn.100506b0
test eax, eax
jne 0x1004eb4b
cmp dword [edi + 0x20], eax
je 0x1004eb29
mov ecx, edi
mov dword [edi + 0x20], eax
call fcn.1004e9e0
mov edi, eax
jmp 0x1004eb4d
mov eax, dword [edi + 0x24]
cmp eax, 1
jne 0x1004eb38
mov edi, 0xe003200b
jmp 0x1004eb4d
cmp eax, 2
jne 0x1004eb44
mov edi, 0xe003200a
jmp 0x1004eb4d
mov edi, 0xe00e1001
jmp 0x1004eb4d
xor edi, edi
test esi, esi
je 0x1004eb5a
push esi
call fcn.1007bfd8
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004f200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x1004f3b0
test esi, esi
je 0x1004f3b0
test edi, edi
je 0x1004f3b0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
push esi
call ebx
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + edi]
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x1004f2a9
push 0x100d6074
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004f2b9
push 0x5c
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ebx, eax
test ebx, ebx
je 0x1004f344
add ebx, 2
cmp dword [ebp + 0x18], 0
je 0x1004f2dd
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + edi]
add eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
push ebx
call edi
jmp 0x1004f362
push str..mdf
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1004f271
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0x100d6068
push eax
call ebx
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0x14
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.1008b230
mov eax, dword [ebp - 0x10c]
add esp, 0xc
mov eax, dword [eax + edi]
add eax, edi
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f315
mov eax, esi
sub ecx, edx
sub eax, ebx
add eax, 0x208
sar eax, 1
push eax
push ebx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1004f35c
pop ebx
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x1004f2c8
push dword [ebp - 0x110]
push esi
call edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0x100d6068
push eax
call edi
push esi
call ebx
cmp eax, 0xffffffff
jne 0x1004f2c8
pop ebx
pop edi
mov eax, 0xe0032009
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
mov eax, 0x80070057
pop edi
xor ecx, ebp
pop esi
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10051970
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
push edi
mov edi, ecx
xor edx, edx
xorps xmm0, xmm0
mov dword [esp + 0x1c], edx
movlpd qword [esp + 0x10], xmm0
mov esi, dword [edi + 0x388]
cmp esi, dword [edi + 0x38c]
je 0x10051a78
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
jmp 0x100519b8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edx
mov ecx, edi
call fcn.1004fcf0
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
jb 0x100519d4
mov eax, dword [esi]
jmp 0x100519d6
mov eax, esi
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x10051a6d
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10051a54
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add ecx, 0xffffffd4
mov dword [esp + 0x20], ecx
adc eax, 0xffffffff
add dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
lea ecx, [edi + 0x37c]
adc dword [esp + 0x18], eax
lea eax, [esp + 0x20]
inc dword [esp + 0x1c]
push eax
call fcn.10052120
mov edx, dword [esp + 0x1c]
add esi, 0x18
cmp esi, dword [edi + 0x38c]
jne 0x100519b0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
jmp 0x10051a84
call fcn.10015440
push dword [esp + 0x28]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10015440
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push esi
push eax
mov ecx, edi
call fcn.1004fc20
mov eax, dword [esp + 0x10]
mov dword [edi + 0x358], eax
xor eax, eax
mov dword [edi + 0x35c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10051ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x380]
sub eax, dword [edi + 0x37c]
sar eax, 4
cmp edx, eax
jae 0x10051bb2
mov ebx, dword [edi + 0x37c]
shl edx, 4
add ebx, edx
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x10051bb2
cmp ecx, 0xffffffff
je 0x10051bb2
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0
add eax, 0x2c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10051b15
call fcn.10015440
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 8]
push 0
push eax
push esi
push dword [ebp + 0x14]
mov dword [ebp + 8], 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10051b9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x10051b5d
cmp eax, 0x3e6
je 0x10051b5d
test eax, eax
jle 0x10051bb7
movzx eax, ax
or eax, 0x80070000
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
push esi
mov ecx, edi
call fcn.10051bc0
mov edi, eax
test edi, edi
jne 0x10051b77
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
push 0
lea eax, [ebp + 8]
push eax
push esi
push edi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10051b09
push esi
push edi
push dword [ebp + 0x14]
call fcn.1008bac0
add esp, 0xc
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10051ba9
mov eax, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov eax, 0x80004005
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x10052440
Capabilities:
Encode data using xor

Disassembly:
push esi
xor eax, eax
xor esi, esi
push edi
mov edi, ecx
test edx, edx
je 0x1005246b
nop dword [eax]
mov cl, byte [eax + str.IsZ_]
not cl
xor byte [esi + edi], cl
lea ecx, [eax + 1]
xor eax, eax
inc esi
cmp ecx, 4
cmovne eax, ecx
cmp esi, edx
jb 0x10052450
pop edi
mov eax, 1
pop esi
ret
Function at 0x10053e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x214], eax
movzx eax, word [edi]
cmp eax, 0x20
je 0x10053e82
cmp eax, 9
jne 0x10053e87
add edi, 2
jmp 0x10053e75
cmp word [edi], 0x22
jne 0x10053e9e
add edi, 2
push 0x22
lea eax, [edi + 2]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
jmp 0x10053ece
push 0x20
lea esi, [edi + 2]
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
push 9
push esi
mov dword [ebp - 0x210], eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x10053ed0
test esi, esi
je 0x10053ece
cmp esi, eax
cmovb eax, esi
mov esi, eax
test esi, esi
jne 0x10053eec
pop edi
pop esi
mov eax, 0xe0032002
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0xc
sub esi, edi
sar esi, 1
cmp esi, 0x104
jge 0x10053ed4
push 0x5c
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x10053f1a
add esi, esi
push esi
push edi
push ebx
call fcn.1008bac0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x10053f70
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
push 0
push ebx
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
jne 0x10053f4e
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0xc
add esi, esi
add eax, 2
push esi
push edi
push eax
mov dword [ebp - 0x210], eax
call fcn.1008bac0
mov eax, dword [ebp - 0x210]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
call edi
cmp eax, 0xffffffff
jne 0x10053ff5
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1008b230
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [eax], 0
je 0x10053fb1
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x214]
push ebx
call esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [ebp - 0x20c], 0
je 0x10053fd5
lea ecx, [ebp - 0x20c]
push ecx
push eax
call esi
push ebx
call edi
cmp eax, 0xffffffff
jne 0x10053ff5
pop edi
pop esi
mov eax, 0xe0032001
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10054400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push edi
mov edi, edx
test ecx, ecx
je 0x100545fe
cmp word [ecx], 0
je 0x100545fe
push ebx
push esi
push 0
push 0
push 3
push 0
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10054456
call fcn.10015440
mov edi, eax
jmp 0x100545df
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x10
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0xb], 0
push esi
movq qword [ebp - 0x13], xmm0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005449d
call fcn.10015440
mov edi, eax
jmp 0x100545df
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [str.MAC]
jne 0x100544b5
mov dword [edi], 5
jmp 0x100545d4
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [str.fLaC]
jne 0x100544cd
mov dword [edi], 6
jmp 0x100545d4
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [str.wvpk]
jne 0x100544e5
mov dword [edi], 7
jmp 0x100545d4
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [str.IsZ_]
jne 0x100544fd
mov dword [edi], 0xa
jmp 0x100545d4
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [str.RIFF]
jne 0x1005452d
lea ecx, [ebp - 0xc]
mov eax, dword [ecx]
cmp eax, dword [str.WAVEfmt]
jne 0x1005452d
mov eax, dword [ecx + 4]
cmp eax, dword [0x100d6274]
jne 0x1005452d
mov dword [edi], 8
jmp 0x100545d4
lea ecx, [ebp - 0x14]
mov edx, str.MEDIA_DESCRIPTOR
mov ebx, 0xc
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10054559
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x10054540
mov dword [edi], 2
jmp 0x100545d4
push 2
push 0
push 0xffffffffffffffff
push 0xfffffffffffffff0
xorps xmm0, xmm0
mov byte [ebp - 0x24], 0
push esi
movq qword [ebp - 0x23], xmm0
mov dword [ebp - 0x1b], 0
mov word [ebp - 0x17], 0
mov byte [ebp - 0x15], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100545a9
push 0
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100545a9
call fcn.10015440
mov edi, eax
jmp 0x100545df
lea eax, [ebp - 0x20]
mov eax, dword [eax]
cmp eax, dword [str.NER5]
je 0x100545ce
lea eax, [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [str.NERO]
je 0x100545ce
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
jmp 0x100545dd
mov dword [edi], 1
mov eax, dword [ebp - 0x2c]
mov dword [eax], 1
xor edi, edi
cmp esi, 0xffffffff
je 0x100545eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80070057
xor ecx, ebp
pop edi
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret