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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x198
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], esi
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x10007893
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [eax + 4], 0
xor edx, edx
mov eax, dword [esi + 0xc]
mov ecx, str.DXi_Show
xor edi, edi
mov dword [eax], 0
call fcn.100069a0
xor edx, edx
mov dword [esp + 0xc], eax
mov ecx, str.DX_Show_Unknown
call fcn.100069a0
xorps xmm0, xmm0
mov dword [esp + 8], eax
push 0x124
lea eax, [esp + 0x7c]
movlpd qword [esp + 0x38], xmm0
push edi
push eax
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
mov dword [esp + 0x3c], 0x44
call fcn.10020640
mov dl, byte [ebp + 8]
xor eax, eax
add esp, 0xc
cmp dword [esp + 8], eax
setne al
xor ecx, ecx
add eax, 0x30
cmp dword [esp + 0xc], ecx
push eax
setne cl
lea eax, [esi + 0x48]
add ecx, 0x30
test dl, dl
push ecx
push eax
mov ecx, str.__sbin64_scan.x64.exe___dxe__c_c
mov eax, str.__sbin64_scan.x64.exe___dxi__c_c
cmove eax, ecx
push eax
lea eax, [esp + 0x88]
push eax
call fcn.100173c0
add esp, 0x14
lea eax, [esp + 0x10]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esi + 0x48]
push eax
push edi
push 0x40
push edi
push edi
push edi
lea eax, [esp + 0x98]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10007a00
push 0xffffffffffffffff
push dword [esp + 0x14]
add esi, 0x10
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
cmp eax, 0x102
je 0x100079bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 4]
cmp ecx, 0x80
je 0x100079b7
cmp ecx, 0x40
jne 0x100079cf
mov edi, dword [eax + 8]
jmp 0x100079cf
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100079e6
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100079f1
push eax
call ecx
xorps xmm0, xmm0
push esi
movaps xmmword [esp + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10007a10
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2b8
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x28], 0x44
push 0x124
lea eax, [esp + 0x19c]
movlpd qword [esp + 0x30], xmm0
push 0
push eax
mov edi, ecx
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
call fcn.10020640
add esp, 0xc
lea eax, [esp + 0x70]
push 0x124
push 0
push eax
call fcn.10020640
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x7c]
add esp, 0xc
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10007a90
lea eax, [esp + 0x70]
push eax
call fcn.1005c4ea
add esp, 4
lea eax, [esp + 0x70]
lea esi, [edi + 0x48]
push str.ladspavst.x64
push eax
call fcn.1001f540
add esp, 8
test eax, eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
jne 0x10007ae2
push esi
lea eax, [esp + 0x1a4]
push str.__sbin64_scan.x64.exe___shl__s__d
push eax
call fcn.100173c0
add esp, 0x14
jmp 0x10007aff
lea eax, [edi + 0x290]
push eax
push esi
lea eax, [esp + 0x1a8]
push str.__sbin64_scan.x64.exe___shl__s_s__d
push eax
call fcn.100173c0
add esp, 0x18
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x2c]
movaps xmmword [esp + 0x14], xmm0
push eax
push esi
push 0
push 0x40
push 0
push 0
push 0
lea eax, [esp + 0x1b8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10007bda
push 0xffffffffffffffff
push dword [esp + 0x14]
lea esi, [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
cmp eax, 0x102
je 0x10007b9d
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [edi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10007b76
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10007b81
push eax
call edi
xorps xmm0, xmm0
push esi
movaps xmmword [esp + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, word [esp + 0x24]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10007bc0
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10007bcb
push eax
call edi
xorps xmm0, xmm0
push esi
movaps xmmword [esp + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007bf0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2b8
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x28], 0x44
push 0x124
lea eax, [esp + 0x19c]
movlpd qword [esp + 0x30], xmm0
push 0
push eax
mov edi, ecx
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
call fcn.10020640
add esp, 0xc
lea eax, [esp + 0x70]
push 0x124
push 0
push eax
call fcn.10020640
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x7c]
add esp, 0xc
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10007c70
lea eax, [esp + 0x70]
push eax
call fcn.1005c4ea
add esp, 4
lea eax, [esp + 0x70]
lea esi, [edi + 0x48]
push str.ladspavst
push eax
call fcn.1001f540
add esp, 8
test eax, eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
jne 0x10007cc2
push esi
lea eax, [esp + 0x1a4]
push str.__sscan.exe___shl__s__d
push eax
call fcn.100173c0
add esp, 0x14
jmp 0x10007cdf
lea eax, [edi + 0x290]
push eax
push esi
lea eax, [esp + 0x1a8]
push str.__sscan.exe___shl__s_s__d
push eax
call fcn.100173c0
add esp, 0x18
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x2c]
movaps xmmword [esp + 0x14], xmm0
push eax
push esi
push 0
push 0x40
push 0
push 0
push 0
lea eax, [esp + 0x1b8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10007dba
push 0xffffffffffffffff
push dword [esp + 0x14]
lea esi, [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
cmp eax, 0x102
je 0x10007d7d
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [edi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10007d56
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10007d61
push eax
call edi
xorps xmm0, xmm0
push esi
movaps xmmword [esp + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, word [esp + 0x24]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10007da0
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10007dab
push eax
call edi
xorps xmm0, xmm0
push esi
movaps xmmword [esp + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10008d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10008f07
push str.VST_PATH
mov byte [esi], 0
call fcn.10045305
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10008d7d
mov edx, esi
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10008d30
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10008d42
push 0x3b
push esi
sub edi, ecx
call fcn.1001f2d0
add esp, 8
test eax, eax
je 0x10008d73
nop word [eax + eax]
mov byte [eax], 0x3b
inc eax
push 0x3b
push eax
call fcn.1001f2d0
add esp, 8
test eax, eax
jne 0x10008d60
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 1
push 0
push str.SOFTWAREVST
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10008e49
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.10020640
add esp, 0xc
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push 0
push str.VSTPluginsPath
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
test eax, eax
jne 0x10008e47
call edi
lea ecx, [ebp - 0x128]
mov edx, esi
mov eax, ecx
sub edx, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10008e00
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008e12
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
js 0x10008e31
cmp byte [eax + esi], 0x5c
jne 0x10008e31
mov byte [eax + esi], 0
sub eax, 1
jns 0x10008e22
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x10008e34
sub esi, eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
call edi
lea eax, [ebp + 8]
push eax
push 1
push 0
push str.SOFTWAREVST
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008f07
push 0x124
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.10020640
add esp, 0xc
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push 0
push str.VSTPluginsPath
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
test eax, eax
jne 0x10008f05
call edi
lea ecx, [ebp - 0x128]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10008eb7
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008ed0
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
js 0x10008eef
cmp byte [eax + esi], 0x5c
jne 0x10008eef
mov byte [eax + esi], 0
sub eax, 1
jns 0x10008ee0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10008ef2
sub esi, ecx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
call edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10017720
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d136
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, esi
push ebx
call fcn.1000ee30
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
test ebx, ebx
je 0x100178d2
push 0x64
call fcn.1001d922
mov edi, 0x64
mov esi, eax
push edi
push 0
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
call fcn.10020640
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
cmp dword [eax + 0x10], 0
jne 0x1001785a
push edi
push esi
push ebx
push str.Path
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
cmp eax, 0x63
jne 0x10017814
nop
lea ebx, [edi + 0x2710]
test ebx, ebx
jle 0x100177f8
test esi, esi
je 0x100177de
push esi
call fcn.1001d92b
add esp, 4
mov dword [ebp - 0x1c], 0
push ebx
mov dword [ebp - 0x18], 0
call fcn.1001d922
mov esi, eax
mov edi, ebx
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
push edi
push esi
push dword [ebp + 0x14]
push str.Path
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
lea ecx, [edi - 1]
cmp eax, ecx
je 0x100177c0
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017820
mov edi, dword [ebp + 8]
sub ecx, edx
push ecx
push esi
mov ecx, edi
call fcn.1000f950
test esi, esi
je 0x10017842
push esi
call fcn.1001d92b
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0x14]
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x10017864
mov ecx, dword [eax]
push ecx
push edi
push esi
push ebx
push str.Path
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, eax
lea eax, [edi - 1]
cmp ecx, eax
jne 0x100178c1
mov eax, dword [ebp - 0x10]
lea ebx, [edi + 0x2710]
test ebx, ebx
jle 0x10017857
test esi, esi
je 0x100178a2
push esi
call fcn.1001d92b
add esp, 4
mov dword [ebp - 0x1c], 0
push ebx
mov dword [ebp - 0x18], 0
call fcn.1001d922
mov esi, eax
mov edi, ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
jmp 0x10017857
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100178c6
jmp 0x10017827
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10019ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d518
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008c0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10019f31
push esi
push esi
push esi
push 2
call fcn.1001cd60
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.100193c0
push 2
push 0
push esi
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.1004735d
push esi
call fcn.10047b9f
push 0
push 0
push esi
mov ebx, eax
call fcn.1004735d
add esp, 0x1c
test ebx, ebx
jg 0x10019f8c
push 0
push 0
push 0
push 0xd
mov ecx, edi
call fcn.1001cd60
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x10], 0x1008cd20
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.100184c0
lea eax, [ebx + 1]
push eax
call fcn.1001d922
push esi
push 1
push ebx
push eax
mov dword [ebp - 0x14], eax
mov byte [eax], 0
call fcn.10046e43
add esp, 0x14
cmp eax, 1
je 0x10019fe5
push dword [ebp - 0x14]
call fcn.1001d92b
add esp, 4
mov ecx, edi
push 0
push 0
push 0
push 2
call fcn.1001cd60
xor bl, bl
jmp 0x1001a085
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov esi, eax
mov byte [eax + ebx], 0
cmp byte [eax], 0
je 0x1001a04d
mov al, byte [esi]
cmp al, 0xa
jne 0x1001a00f
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.10018390
inc esi
mov ecx, esi
jmp 0x1001a048
cmp al, 0xd
jne 0x1001a047
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x1001a025
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.10018390
push 1
lea eax, [ebp + 8]
mov byte [ebp + 8], 0xa
push eax
lea ecx, [ebp - 0x10]
call fcn.10018390
cmp byte [esi + 1], 0xa
lea ecx, [esi + 1]
jne 0x1001a043
lea ecx, [esi + 2]
mov esi, ecx
jmp 0x1001a048
inc esi
cmp byte [esi], 0
jne 0x10019ff5
sub esi, ecx
je 0x1001a05b
push esi
push ecx
lea ecx, [ebp - 0x10]
call fcn.10018390
push dword [ebp - 0x14]
call fcn.1001d92b
mov eax, dword [ebp - 0x10]
add esp, 4
mov edx, dword [edi]
add eax, 8
mov ecx, edi
push dword [ebp + 0xc]
push 0
push eax
call dword [edx + 8]
cmp byte [edi + 0x2c], 0
je 0x1001a083
xor bl, bl
jmp 0x1001a085
mov bl, 1
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x1008cd20
je 0x1001a099
push ecx
call fcn.1001d92b
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100478bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100793d0
mov eax, dword [0x1008c0c0]
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.1005e6f3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100478fd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10047a59
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10079320
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 + 0x1008d4b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006681f
mov ecx, dword [esi*4 + 0x1008d4b8]
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 0x10047a52
cmp eax, dword [ecx + edi + 0x24]
jne 0x10047a52
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 0x10047a52
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006681f
add esp, 0x14
test edx, edx
jl 0x10047a52
jg 0x100479c8
test eax, eax
jb 0x10047a52
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10047a52
jl 0x100479e2
cmp dword [ebp - 0x1008], eax
ja 0x10047a52
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10047a00
test ebx, ebx
je 0x10047a39
cmp ecx, edi
jae 0x10047a39
mov al, byte [ecx]
cmp al, 0xd
jne 0x10047a1a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10047a26
cmp byte [ecx + 1], 0xa
jne 0x10047a26
inc ecx
jmp 0x10047a26
movzx eax, al
movsx eax, byte [eax + 0x1008c308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10047a00
cmp edx, ebx
jne 0x10047a00
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10047a57
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001e07f
leave
ret

Function at 0x10059f47
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10059f86
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10059f86
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10059f86
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10059f86
cmp dword [ecx + 0x74], 0xe
jbe 0x10059f86
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10062340
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100824a4
push 0x1008249c
push str.FlsAlloc
push 0x1f
call fcn.1006200e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10062374
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007e244]
call esi
jmp 0x1006237a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100623be
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100824b4
push 0x100824ac
push str.FlsGetValue
push 0x21
call fcn.1006200e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100623f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007e244]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100623fd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100824bc
push 0x100824b4
push str.FlsSetValue
push 0x22
call fcn.1006200e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10062437
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007e244]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1006556a
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 + 0x1008d4b8]
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 0x100655aa
cmp byte [ebx], 0xa
jne 0x100655aa
or byte [edi + eax + 0x28], 4
jmp 0x100655af
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 0x100656ae
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10065691
inc eax
cmp dl, 0xd
je 0x100655db
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10065601
cmp eax, ecx
jae 0x1006560f
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 0x100655c3
jmp 0x100656ae
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 0x1006568c
cmp dword [ebp - 0x10], 0
je 0x1006568c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1008d4b8]
test byte [eax + edi + 0x28], 0x48
je 0x10065666
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10065651
mov byte [esi], dl
jmp 0x10065662
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1008d4b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100656ae
cmp byte [ebp - 1], 0xa
jne 0x10065675
cmp esi, ebx
jne 0x10065675
mov byte [esi], 0xa
jmp 0x100656ad
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006683d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100656ae
mov byte [esi], 0xd
jmp 0x100656ad
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1008d4b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100656ab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100656ae
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret