joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fd47
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49fd92
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a01ff
test al, al
jne 0x49fd8c
sub edx, 2
cmp edx, edi
jne 0x49fd72
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49fdb4
lea eax, [edi + 2]
cmp edx, eax
je 0x49fdb4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049f940
add esp, 0x10
jmp 0x49feae
push esi
lea ecx, [ebp - 0x255]
call fcn.004a01ff
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49fdf7
push dword [ebp - 0x25c]
jmp 0x49fda4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49fe34
cmp word [ebp - 0x226], 0
je 0x49fe55
cmp word [ebp - 0x226], ax
jne 0x49fe34
cmp word [ebp - 0x224], 0
je 0x49fe55
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049f940
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49fea1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49fe0e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49fe89
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49feae
push 0x49f328
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405443
add esp, 0x10
jmp 0x49fe7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402fea
leave
ret

Function at 0x4a5810
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404232
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a587f
cmp esi, dword [ebp - 4]
je 0x4a587a
cmp dword [ebp + 0xc], 0
je 0x4a587a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a5857
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a5238
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a5881
xor eax, eax
inc eax
jmp 0x4a5881
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10002ad7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, ecx
mov dword [esi], eax
test edx, edx
je 0x10002b03
mov eax, dword [ebp + 8]
lea ecx, [esi + 8]
push ecx
push 0x40
push edx
push eax
mov dword [esi + 4], edx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne al
mov byte [esi + 0xc], al
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10007adf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x10007b09
jl 0x10007b00
test ebx, ebx
jne 0x10007b09
xor eax, eax
xor edx, edx
jmp 0x10007bc2
cmp dword [ecx + 0x38], 0
je 0x10007b1c
push esi
push ebx
push edx
call fcn.10006717
jmp 0x10007bc2
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10007b5c
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x10007b5c
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.1004a3a0
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x10007bb8
call fcn.1000845f
mov edx, dword [ebp - 4]
mov eax, edi
cmp edi, 0xfff
jbe 0x10007ba3
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call fcn.1005f7f8
mov edx, dword [ebp - 4]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [ebp - 4], edx
cmp eax, ecx
jne 0x10007bb8
cmp edi, ecx
mov ecx, dword [ebp - 8]
ja 0x10007b74
mov eax, edi
test eax, eax
je 0x10007bb8
push dword [ecx + 0x4c]
push edi
push 1
push edx
call fcn.1005f7f8
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000b1ac
Capabilities:
Create thread

Disassembly:
push 0x28
mov eax, 0x100792f1
call fcn.100497dc
cmp byte [0x100bfc3c], 0
jne 0x1000ad3c
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x100bdf84
push eax
mov ecx, 0x100bddf0
call fcn.10005f2c
mov esi, dword [0x100bddf4]
mov eax, dword [0x100bddf8]
lea edi, [esi + eax*4]
jmp 0x1000ad31
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
add esi, 4
cmp esi, edi
jne 0x1000ad27
mov byte [0x100bfc3c], 1
xor esi, esi
push esi
push esi
push esi
push 0x10009d7f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 8
pop ebx
xor eax, eax
lea edi, [ebp - 0x30]
mov ecx, ebx
rep stosd dword es:[edi], eax
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x30]
mov dword [eax], str.MGRModMenu.ini
mov dword [eax + 4], 0xe
call fcn.10002264
push ecx
push ecx
mov eax, esp
mov dword [ebp - 4], esi
push ecx
push ecx
mov edi, str.Settings
lea ecx, [ebp - 0x30]
mov dword [eax], str.UIColor.RGBMode
mov dword [eax + 4], 0xf
mov eax, esp
push esi
mov dword [eax], edi
mov dword [eax + 4], ebx
call fcn.10002432
movss xmm1, dword [0x100b6860]
test eax, eax
push ecx
push ecx
mov eax, esp
setne byte [0x100bfc44]
push ecx
push ecx
lea ecx, [ebp - 0x30]
mov dword [eax], str.UIColor.RGBDelay
mov dword [eax + 4], 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
call fcn.10002548
push ecx
push ecx
mov eax, esp
movss dword [0x100bcb50], xmm0
push ecx
push ecx
lea ecx, [ebp - 0x30]
mov dword [eax], str.UIColor.SelectedPreset
mov dword [eax + 4], 0x16
mov eax, esp
push 0x8f
mov dword [eax], edi
mov dword [eax + 4], ebx
call fcn.10002432
mov edx, dword [0x100bfcdc]
imul ecx, eax, 0xc
mov dword [0x100bcb54], eax
mov eax, dword [ecx + 0x100ac958]
mov dword [edx + 0x19c2050], eax
mov eax, dword [ecx + 0x100ac95c]
mov dword [edx + 0x19c2054], eax
mov eax, dword [ecx + 0x100ac960]
lea ecx, [ebp - 0x18]
mov dword [edx + 0x19c2058], eax
call fcn.1000608b
lea ecx, [ebp - 0x30]
call fcn.100073e9
call fcn.1004978b
ret
jmp 0x1000aced

Function at 0x1000b6ae
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
mov edi, ecx
mov esi, 0xff
push 0x1b
call ebx
shr eax, 0xf
and al, 1
jne 0x1000b707
push 0x12
call ebx
shr eax, 0xf
and al, 1
jne 0x1000b6fb
push 1
call ebx
shr eax, 0xf
and al, 1
jne 0x1000b6fb
push 2
call ebx
shr eax, 0xf
and al, 1
jne 0x1000b6fb
xor dl, dl
mov ecx, esi
call fcn.10002aac
test al, al
jne 0x1000b702
dec esi
test esi, esi
jg 0x1000b6c2
jmp 0x1000b70f
mov dword [edi + 0x10], esi
jmp 0x1000b70b
and dword [edi + 0x10], 0
mov byte [edi + 0x1b], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b714
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x100bfcc0]
cmp byte [eax], 0
je 0x1000b75e
cmp byte [ecx + 0x1b], 0
jne 0x1000b75e
cmp byte [ecx + 0x1a], 0
je 0x1000b740
mov eax, dword [0x100bfd34]
test dword [eax], 0x1000
jne 0x1000b75e
cmp byte [0x100bdf9d], 0
jne 0x1000b75e
cmp dword [ecx + 0x1c], 3
je 0x1000b75e
cmp dword [ecx + 0x1c], 2
jne 0x1000b74f
mov al, 1
ret
cmp dword [ecx + 0x1c], 1
mov ecx, dword [ecx + 0x10]
sete dl
jmp fcn.10002aac
xor al, al
ret

Function at 0x1000dcca
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
not edx
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1008a908]
inc edi
sub esi, 1
jne 0x1000dcd8
pop edi
not edx
pop esi
mov eax, edx
pop ebp
ret

Function at 0x1000dcf8
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov edx, ebx
test edi, edi
je 0x1000dd5c
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x1000dd24
cmp edi, 2
jb 0x1000dd24
cmp byte [esi], al
jne 0x1000dd24
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1008a908]
test edi, edi
jne 0x1000dd0d
jmp 0x1000dd63
cmp al, 0x23
jne 0x1000dd4a
cmp byte [esi], al
jne 0x1000dd4a
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1008a908]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000dd3c
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x1000de5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x1000de7f
push 0x824
push str.E:Visual_Studio_ProjectsMod_MenusMGRCheatMenumgrCheat_srcimguiimgui.cpp
push str.filename__mode
call fcn.100606c6
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000de89
and dword [edi], 0
mov edx, 0x100b2468
mov ecx, esi
call fcn.1000dd6c
mov esi, eax
test esi, esi
je 0x1000def1
mov ecx, esi
call fcn.1000de03
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000deea
mov ecx, ebx
call fcn.10010793
mov dword [ebp + 8], eax
test eax, eax
je 0x1000deea
push esi
push ebx
push 1
push eax
call fcn.1005f7f8
add esp, 0x10
push esi
cmp eax, ebx
je 0x1000ded9
call fcn.10054e9b
pop ecx
mov ecx, dword [ebp + 8]
call fcn.100107c5
jmp 0x1000def1
call fcn.10054e9b
pop ecx
test edi, edi
je 0x1000dee5
mov dword [edi], ebx
mov eax, dword [ebp + 8]
jmp 0x1000def3
push esi
call fcn.10054e9b
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1002945b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10029475
mov dword [esi + 4], edi
mov dword [esi], edi
call fcn.100107c5
mov dword [esi + 8], edi
lea ecx, [esi + 0xc]
call fcn.10022be6
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10029492
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
call fcn.100107c5
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100294b3
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call fcn.100107c5
mov dword [esi + 0x44], edi
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100294c8
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
call fcn.100107c5
mov dword [esi + 0x50], edi
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100294dd
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
call fcn.100107c5
mov dword [esi + 0x5c], edi
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1002bc17
Function at 0x10031230
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push esi
call fcn.1003121b
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1003125b
and dword [esi], eax
pop esi
ret
Function at 0x10047090
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x100bfe9c]
push esi
xor esi, esi
jmp 0x100470a2
cmp dword [edx + 4], esi
jne 0x100470ee
mov edx, dword [edx]
test edx, edx
jne 0x1004709b
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x100470fb
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x100470c9
mov eax, dword [0x100bfe9c]
pop edi
mov dword [edx], eax
mov dword [0x100bfe9c], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret

Function at 0x10047955
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100bc080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10047a35
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10047a2e
push ebx
cmp dword [ebp - 0x20], 0x10
jb 0x10047a13
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10047a13
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10047a13
mov edx, dword [esi]
test edx, edx
jne 0x100479e1
push 0x200
push edx
push dword [0x100bfc10]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10047a2d
lea ebx, [esi + 8]
jmp 0x10047a09
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x10047a09
shl eax, 3
push eax
push edx
push 0
push dword [0x100bfc10]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10047a2d
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10047999
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10048db4
leave
ret
Function at 0x10047a43
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.10047955
cmp dword [esi], ebx
je 0x10047aa3
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x10047aa2
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10047a99
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10047801
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x10047a69
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10047aa7
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10047af3
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10047ae2
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10047adb
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10047ab8
pop ebx
push dword [esi]
push 0
push dword [0x100bfc10]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x10047af5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100bc080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x100bfe90]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10047b3f
push 0xa
pop eax
jmp 0x10047b7e
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10047b5a
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10048db4
leave
ret
Function at 0x10060bf4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10049f40
mov eax, dword [0x100bc080]
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.100657f8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10060c36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10060d92
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10078970
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 + 0x100bf648]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006c1d4
mov ecx, dword [esi*4 + 0x100bf648]
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 0x10060d8b
cmp eax, dword [ecx + edi + 0x24]
jne 0x10060d8b
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 0x10060d8b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006c1d4
add esp, 0x14
test edx, edx
jl 0x10060d8b
jg 0x10060d01
test eax, eax
jb 0x10060d8b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10060d8b
jl 0x10060d1b
cmp dword [ebp - 0x1008], eax
ja 0x10060d8b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10060d39
test ebx, ebx
je 0x10060d72
cmp ecx, edi
jae 0x10060d72
mov al, byte [ecx]
cmp al, 0xd
jne 0x10060d53
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10060d5f
cmp byte [ecx + 1], 0xa
jne 0x10060d5f
inc ecx
jmp 0x10060d5f
movzx eax, al
movsx eax, byte [eax + 0x100bc350]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10060d39
cmp edx, ebx
jne 0x10060d39
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10060d90
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10048db4
leave
ret

Function at 0x100648a0
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007ffc8
push 0x1007ffc0
push str.FlsAlloc
push 0x1f
call fcn.1006a6f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006a8dc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007b24c]
call esi
jmp 0x1006a8e2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1006a926
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007ffd8
push 0x1007ffd0
push str.FlsGetValue
push 0x21
call fcn.1006a6f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006a95d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007b24c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1006a965
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007ffe0
push 0x1007ffd8
push str.FlsSetValue
push 0x22
call fcn.1006a6f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006a99f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007b24c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1006b66c
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 + 0x100bf648]
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 0x1006b6ac
cmp byte [ebx], 0xa
jne 0x1006b6ac
or byte [edi + eax + 0x28], 4
jmp 0x1006b6b1
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 0x1006b7b0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006b793
inc eax
cmp dl, 0xd
je 0x1006b6dd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1006b703
cmp eax, ecx
jae 0x1006b711
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 0x1006b6c5
jmp 0x1006b7b0
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 0x1006b78e
cmp dword [ebp - 0x10], 0
je 0x1006b78e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100bf648]
test byte [eax + edi + 0x28], 0x48
je 0x1006b768
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006b753
mov byte [esi], dl
jmp 0x1006b764
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100bf648]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006b7b0
cmp byte [ebp - 1], 0xa
jne 0x1006b777
cmp esi, ebx
jne 0x1006b777
mov byte [esi], 0xa
jmp 0x1006b7af
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006c1f2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006b7b0
mov byte [esi], 0xd
jmp 0x1006b7af
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100bf648]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006b7ad
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006b7b0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret