joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x48e920
jl 0x48e917
cmp dword [ebp + 0xc], 0
ja 0x48e920
xor eax, eax
xor edx, edx
jmp 0x48ea57
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x48e942
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00484e50
jmp 0x48ea57
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00482f00
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x48e9b1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00475fb0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00483d30
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0047b460
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.00483ca0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x48ea48
mov ecx, dword [ebp - 8]
call fcn.0048aac0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x48ea21
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004db056
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x48ea1f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x48ea57
jmp 0x48e9cd
cmp dword [ebp - 4], 0
jbe 0x48ea48
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.004db056
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x490b70
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502fa8
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x53e180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
push 0x288
call fcn.004dc00b
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x288
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x490be7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004d9ffd
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004dc00b
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x490d2f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x190]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x194
push edx
lea ecx, [ebp - 0x28]
call fcn.0042e760
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0xe8]
call fcn.004814e0
mov byte [ebp - 4], 1
push 0x30
lea eax, [ebp - 0x35]
push eax
call fcn.0048fdd0
add esp, 8
push eax
push 0x492a40
push 0x492700
lea ecx, [ebp - 0xe8]
call fcn.00490530
mov ecx, eax
call fcn.00490530
push eax
call fcn.0048ed00
add esp, 8
mov dword [ebp - 0x30], 0
jmp 0x490c7c
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x28]
call fcn.004028f0
cmp dword [ebp - 0x30], eax
jae 0x490ce6
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x28]
call fcn.004035c0
movsx eax, byte [eax]
push eax
push 0
push 2
lea ecx, [ebp - 0x50]
push ecx
call fcn.004c8b16
add esp, 0xc
push eax
lea edx, [ebp - 0xe8]
push edx
call fcn.0048ed20
add esp, 8
mov ecx, eax
call fcn.00490210
lea ecx, [ebp - 0x28]
call fcn.004028f0
sub eax, 1
cmp dword [ebp - 0x30], eax
jae 0x490ce4
push 0x50a394
lea eax, [ebp - 0xe8]
push eax
call fcn.0048ed80
add esp, 8
jmp 0x490c73
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004d9ffd
add esp, 4
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xe8]
call fcn.00484b20
mov eax, dword [ebp - 0x34]
or eax, 1
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.00482600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403760
mov eax, dword [ebp + 8]
jmp 0x490d54
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004d9ffd
add esp, 4
push 0x50a1b6
mov ecx, dword [ebp + 8]
call fcn.004037f0
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c662b
mov esp, ebp
pop ebp
ret
Function at 0x494860
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
call fcn.00402ba0
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4948b2
push str.Failed_to_open_shared_memory._Error_code:
mov ecx, dword [ebp + 0x1c]
call fcn.00402a50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.004113a0
xor al, al
jmp 0x49492d
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4948f9
push str.Failed_to_map_view_of_file._Error_code:
mov ecx, dword [ebp + 0x1c]
call fcn.00402a50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.004113a0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x49492d
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00402bf0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x499160
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50386d
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x53e180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], 0
push str.unknow
lea ecx, [ebp - 0x28]
call fcn.004037f0
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.004ca8c0
add esp, 0xc
mov dword [ebp - 0x144], 0x11c
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x499314
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x148], 5
jne 0x49921a
cmp dword [ebp - 0x14c], 1
jne 0x49921a
push str.winxp
lea ecx, [ebp - 0x28]
call fcn.0040a770
jmp 0x499314
cmp dword [ebp - 0x148], 6
jne 0x49923e
cmp dword [ebp - 0x14c], 0
jne 0x49923e
push str.winvista
lea ecx, [ebp - 0x28]
call fcn.0040a770
jmp 0x499314
cmp dword [ebp - 0x148], 6
jne 0x499262
cmp dword [ebp - 0x14c], 1
jne 0x499262
push str.win7
lea ecx, [ebp - 0x28]
call fcn.0040a770
jmp 0x499314
cmp dword [ebp - 0x148], 6
jne 0x499286
cmp dword [ebp - 0x14c], 2
jne 0x499286
push str.win8
lea ecx, [ebp - 0x28]
call fcn.0040a770
jmp 0x499314
cmp dword [ebp - 0x148], 6
jne 0x4992a7
cmp dword [ebp - 0x14c], 3
jne 0x4992a7
push str.win8.1
lea ecx, [ebp - 0x28]
call fcn.0040a770
jmp 0x499314
cmp dword [ebp - 0x140], 0xa
jne 0x4992d4
cmp dword [ebp - 0x13c], 0
jne 0x4992d4
cmp dword [ebp - 0x138], 0x55f0
jb 0x4992d4
push 0x50bda4
lea ecx, [ebp - 0x28]
call fcn.0040a770
jmp 0x499314
cmp dword [ebp - 0x148], 0xa
jne 0x4992f5
cmp dword [ebp - 0x14c], 0
jne 0x4992f5
push str.win10
lea ecx, [ebp - 0x28]
call fcn.0040a770
jmp 0x499314
cmp dword [ebp - 0x148], 0xa
jne 0x499314
cmp dword [ebp - 0x14c], 0
jle 0x499314
push str.win11
lea ecx, [ebp - 0x28]
call fcn.0040a770
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004037b0
mov edx, dword [ebp - 0x150]
or edx, 1
mov dword [ebp - 0x150], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403760
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c662b
mov esp, ebp
pop ebp
ret

Function at 0x499360
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 1], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x28]
cmp ecx, 9
je 0x499386
movzx edx, word [ebp - 0x28]
cmp edx, 0xc
jne 0x49938a
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x499620
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x49963e
mov ecx, dword [ebp - 8]
call fcn.00499860
jmp 0x499651
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x499651
mov ecx, dword [ebp - 8]
call fcn.004996c0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4996c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x4996e9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x499755
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x49972d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x499734
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4996e0
mov dword [ebp - 0xc], 0xe3
jmp 0x499767
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x4997d3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x4997ab
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x4997b2
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x49975e
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x49981c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x499823
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x499860
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x49987b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x4998e7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x4998bf
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x4998c6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x499872
mov esp, ebp
pop ebp
ret

Function at 0x49f370
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49f3b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x49f3b3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x49f3b5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x49f3c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 8], 0
jne 0x49f3dc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
jmp 0x49f45f
push 0x44
push 0
lea ecx, [ebp - 0x54]
push ecx
call fcn.004ca8c0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49f434
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x49f45f
cmp dword [ebp + 0xc], 0
je 0x49f446
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4c764d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c768c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c768c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c768c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4c768c
cmp dword [ecx + 0x74], 0xe
jbe 0x4c768c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4eaf77
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x517dd4
push 0x517dcc
push str.FlsAlloc
push 0x1f
call fcn.004eada2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4eafab
push dword [ebp + 8]
mov ecx, esi
call dword [0x5076b8]
call esi
jmp 0x4eafb1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4eaff5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x517de4
push 0x517ddc
push str.FlsGetValue
push 0x21
call fcn.004eada2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4eb02c
push dword [ebp + 8]
mov ecx, esi
call dword [0x5076b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4eb034
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x517dec
push 0x517de4
push str.FlsSetValue
push 0x22
call fcn.004eada2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4eb06e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5076b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4eeedc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004c6d20
mov eax, dword [0x53e180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004ec5e7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4eef1e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ef07a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004c6670
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5466b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004f00b2
mov ecx, dword [esi*4 + 0x5466b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4ef073
cmp eax, dword [ecx + edi + 0x24]
jne 0x4ef073
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ef073
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f00b2
add esp, 0x14
test edx, edx
jl 0x4ef073
jg 0x4eefe9
test eax, eax
jb 0x4ef073
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ef073
jl 0x4ef003
cmp dword [ebp - 0x1008], eax
ja 0x4ef073
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ef021
test ebx, ebx
je 0x4ef05a
cmp ecx, edi
jae 0x4ef05a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ef03b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ef047
cmp byte [ecx + 1], 0xa
jne 0x4ef047
inc ecx
jmp 0x4ef047
movzx eax, al
movsx eax, byte [eax + 0x53e688]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ef021
cmp edx, ebx
jne 0x4ef021
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ef078
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c662b
leave
ret
Function at 0x4ef54a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5466b8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ef58a
cmp byte [ebx], 0xa
jne 0x4ef58a
or byte [edi + eax + 0x28], 4
jmp 0x4ef58f
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4ef68e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4ef671
inc eax
cmp dl, 0xd
je 0x4ef5bb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4ef5e1
cmp eax, ecx
jae 0x4ef5ef
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4ef5a3
jmp 0x4ef68e
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ef66c
cmp dword [ebp - 0x10], 0
je 0x4ef66c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5466b8]
test byte [eax + edi + 0x28], 0x48
je 0x4ef646
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ef631
mov byte [esi], dl
jmp 0x4ef642
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5466b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ef68e
cmp byte [ebp - 1], 0xa
jne 0x4ef655
cmp esi, ebx
jne 0x4ef655
mov byte [esi], 0xa
jmp 0x4ef68d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004f00d0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ef68e
mov byte [esi], 0xd
jmp 0x4ef68d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5466b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ef68b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ef68e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret