joyce8/EMBER2024-capa huggingface dataset:
Function at 0x958264
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x95840f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x9583f0
mov dl, 1
mov eax, dword [0x912304]
call fcn.00903804
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00904648
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x9583df
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0094a5dc
test al, al
je 0x9583d2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x958420
lea eax, [ebp - 0x254]
call fcn.009092a8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x9583d2
xor eax, eax
push ebp
push 0x9583cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x958458
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x9583b4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.009048b8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x9583b4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.009048b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9583d2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x9582d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00916164
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x958416
lea eax, [ebp - 0x260]
call fcn.00904648
ret

Function at 0x958d88
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x96f57c]
cmp byte [eax + 0xad], 0
jne 0x958df9
cmp dword [0x96f594], 0
jne 0x958dba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x958d44
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x96f594], eax
cmp dword [0x96f590], 0
jne 0x958dd5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x96f590], eax
cmp dword [0x96f598], 0
jne 0x958df9
push esp
push 0
push 0
push 0x958ce8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x96f598], eax
pop edx
ret
Function at 0x958fcc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x958fe3
add esp, 0xfffffff0
call fcn.00903b40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0091a264
mov eax, dword [0x96b898]
cmp word [eax + 2], 0
jne 0x95900b
mov eax, dword [0x96b898]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0095ab0c
mov eax, dword [0x96b960]
cmp word [eax + 2], 0
jne 0x959025
mov eax, dword [0x96b960]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0095ad18
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x911ee0]
call fcn.00903804
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x911ee0]
call fcn.00903804
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x911ee0]
call fcn.00903804
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x91e5a4]
call fcn.009246c4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x9591dc
mov eax, dword [0x96b798]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00924a98
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x95b3d8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x96b798]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0090ca50
test eax, eax
je 0x95912c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00908c60
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0090ca84
test eax, eax
je 0x959140
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.009048b8
mov byte [ebx + 0xd4], 0
push ebx
push 0x95a66c
call fcn.0091b3e0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x96b620]
cmp byte [eax], 0
jne 0x959191
mov eax, ebx
call fcn.00959320
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0095b5b4
mov eax, ebx
call fcn.0095c114
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x9591d1
call fcn.00903b98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9595a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x96f57c]
cmp dword [eax + 0x30], 0
je 0x95964a
cmp dword [ebx + 0x94], 0
jne 0x959644
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x959530
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x959644
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x95960a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x959644
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.009142c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x959619
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x95a364
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x95a399
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00904738
jmp 0x95a3a6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0090469c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x95b798
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x95b806
mov eax, esi
call fcn.00945210
test al, al
je 0x95b806
mov eax, dword [ebx + 0x84]
call fcn.00944e70
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x95b806
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x95b7fa
push 0
mov eax, dword [ebx + 0x84]
call fcn.00944e70
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0093d2d0
jmp 0x95b806
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0095b5d4
pop esi
pop ebx
ret
Function at 0x9658a4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.00904afc
xor eax, eax
push ebp
push 0x965963
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.gdi32.dll_GetTextCharset
push 0x965970
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x14], eax
call sub.user32.dll_GetKBCodePage
push eax
push ecx
and ecx, 0x16b
sub ecx, 0x98
and eax, 0x9b
or ecx, 0xfc
add ecx, 0x25
inc ecx
pop ecx
pop eax
lea eax, [ebp - 0x10]
mov dl, byte [ebp - 1]
add dl, byte [ebp - 0x14]
not dl
call fcn.00904830
push 1
call sub.gdi32.dll_GetStretchBltMode
push eax
push edx
inc eax
mov eax, 0x53
dec edx
xchg edx, eax
push eax
pop eax
inc edx
xchg edx, eax
mov eax, 0x115
or edx, 0x27
xchg edx, eax
pop edx
pop eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00904958
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x96596a
lea eax, [ebp - 0x10]
call fcn.00904648
lea eax, [ebp - 8]
call fcn.00904648
ret
Function at 0x968714
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [0x96b9a4]
mov byte [eax], 1
mov eax, 0x9678d0
call fcn.00906538
mov eax, dword [0x96b930]
mov eax, dword [eax]
call fcn.0095a918
push 0
call sub.kernel32.dll_GetConsoleWindow
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x96b930]
mov eax, dword [eax]
mov edx, 0x968794
call fcn.0095a3b0
mov eax, dword [0x96b930]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
mov ecx, dword [0x96ba54]
mov eax, dword [0x96b930]
mov eax, dword [eax]
mov edx, dword [0x965634]
call fcn.0095a930
mov eax, dword [0x96b930]
mov eax, dword [eax]
call fcn.0095a9b0
call fcn.00904554
add byte [eax], al
Function at 0x100023f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x10033024]
xor eax, esp
mov dword [esp + 0xc], eax
mov edx, str._Gspeak__shutdown
mov ecx, 0x10034008
call fcn.10006930
push eax
call fcn.10006bd0
add esp, 4
push 4
call fcn.1000aa47
add esp, 4
lea ecx, [esp + 8]
mov dword [eax], sym.gspeak_win32.dll_gs_shutdown
push ecx
push 0
push eax
push 0x100080f0
push 0
push 0
call fcn.1000f5fa
add esp, 0x18
mov dword [esp + 4], eax
test eax, eax
je 0x10002498
cmp dword [esp + 8], 0
je 0x10002483
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 8]
cmp ecx, eax
je 0x1000248a
push 0
push ecx
push dword [esp + 0xc]
call fcn.1000a3a0
add esp, 0xc
test eax, eax
jne 0x10002491
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1000aa34
mov esp, ebp
pop ebp
ret
push 1
call fcn.10008e6d
push 5
call fcn.10008e6d
push 2
call fcn.10008e6d
push 6
mov dword [esp + 0xc], 0
call fcn.10008e6d
int3

Function at 0x100024b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push 0x18
mov byte [0x10034f11], 0
call fcn.1000aa47
mov ecx, dword [ebp + 0x10]
add esp, 4
mov edx, dword [ebp + 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x10008150
mov dword [eax + 4], edx
mov edx, dword [ebp + 0xc]
push 0
push 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], sym.gspeak_win32.dll_gs_clientThread
call fcn.1000f5fa
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x10002529
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x10002522
push ecx
push eax
call fcn.1000a382
add esp, 8
test eax, eax
jne 0x10002522
mov esp, ebp
pop ebp
ret
push 1
call fcn.10008e6d
push 6
mov dword [esp + 8], 0
call fcn.10008e6d
int3

Function at 0x10002540
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push 4
mov byte [0x10034f12], 0
call fcn.1000aa47
add esp, 4
lea ecx, [esp + 4]
mov dword [eax], sym.gspeak_win32.dll_gs_statusThread
push ecx
push 0
push eax
push 0x100080f0
push 0
push 0
call fcn.1000f5fa
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x100025a1
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1000259a
push ecx
push eax
call fcn.1000a382
add esp, 8
test eax, eax
jne 0x1000259a
mov esp, ebp
pop ebp
ret
push 1
call fcn.10008e6d
push 6
mov dword [esp + 8], 0
call fcn.10008e6d
int3
Function at 0x10008a50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, ecx
mov esi, edx
push eax
push 0
push 0xf001f
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x10008abd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 2
jne 0x10008aa7
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x10008abd
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 5
mov eax, 4
mov ecx, 1
pop edi
cmove eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
jne 0x10008af7
mov eax, dword [esi]
test eax, eax
je 0x10008aec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
pop edi
mov eax, 3
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009b9c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10009bbd
jl 0x10009bb4
test edi, edi
jne 0x10009bbd
xor eax, eax
xor edx, edx
jmp 0x10009c7e
cmp dword [ebx + 0x38], 0
je 0x10009bd2
push eax
push edi
push dword [ebp + 8]
call fcn.10008410
jmp 0x10009c7e
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10009c19
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10009c19
cmp eax, edi
jb 0x10009bf3
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000c070
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x10009c1f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10009c73
mov ecx, ebx
call fcn.100094c9
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10009c5e
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10012598
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10009c73
jmp 0x10009c31
test edx, edx
je 0x10009c73
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10012598
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x100148e4
Capabilities:
Parse pe header

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

Function at 0x1001662e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a91c
push 0x1002a914
push str.FlsAlloc
push 0x1f
call fcn.100164b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016662
push dword [ebp + 8]
mov ecx, esi
call dword [0x10027158]
call esi
jmp 0x10016668
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100166ac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a92c
push 0x1002a924
push str.FlsGetValue
push 0x21
call fcn.100164b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100166e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10027158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100166eb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a934
push 0x1002a92c
push str.FlsSetValue
push 0x22
call fcn.100164b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016725
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10027158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001b4eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000b9d0
mov eax, dword [0x10033024]
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.1001794e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001b52d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001b689
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100259c0
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 + 0x10034b60]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001c4e8
mov ecx, dword [esi*4 + 0x10034b60]
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 0x1001b682
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001b682
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 0x1001b682
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001c4e8
add esp, 0x14
test edx, edx
jl 0x1001b682
jg 0x1001b5f8
test eax, eax
jb 0x1001b682
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001b682
jl 0x1001b612
cmp dword [ebp - 0x1008], eax
ja 0x1001b682
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001b630
test ebx, ebx
je 0x1001b669
cmp ecx, edi
jae 0x1001b669
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001b64a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001b656
cmp byte [ecx + 1], 0xa
jne 0x1001b656
inc ecx
jmp 0x1001b656
movzx eax, al
movsx eax, byte [eax + 0x10033290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001b630
cmp edx, ebx
jne 0x1001b630
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001b687
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000aa34
leave
ret
Function at 0x1001b980
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 + 0x10034b60]
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 0x1001b9c0
cmp byte [ebx], 0xa
jne 0x1001b9c0
or byte [edi + eax + 0x28], 4
jmp 0x1001b9c5
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 0x1001bac4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001baa7
inc eax
cmp dl, 0xd
je 0x1001b9f1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001ba17
cmp eax, ecx
jae 0x1001ba25
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 0x1001b9d9
jmp 0x1001bac4
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 0x1001baa2
cmp dword [ebp - 0x10], 0
je 0x1001baa2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10034b60]
test byte [eax + edi + 0x28], 0x48
je 0x1001ba7c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001ba67
mov byte [esi], dl
jmp 0x1001ba78
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10034b60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001bac4
cmp byte [ebp - 1], 0xa
jne 0x1001ba8b
cmp esi, ebx
jne 0x1001ba8b
mov byte [esi], 0xa
jmp 0x1001bac3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001c506
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001bac4
mov byte [esi], 0xd
jmp 0x1001bac3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10034b60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001bac1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001bac4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001bacd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10034b60]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001bb13
cmp word [ebx], dx
jne 0x1001bb13
or byte [eax + edi + 0x28], 4
jmp 0x1001bb18
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001bc7b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001bc5b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001bb59
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001bb8f
cmp eax, edx
jae 0x1001bb9d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001bb34
jmp 0x1001bc7b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001bc56
cmp dword [ebp - 0x18], 0
je 0x1001bc56
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10034b60]
test byte [eax + edi + 0x28], 0x48
je 0x1001bc2c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001bbf0
mov word [esi], cx
jmp 0x1001bc27
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10034b60]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10034b60]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10034b60]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001bc7b
pop eax
cmp word [ebp - 4], ax
jne 0x1001bc3c
cmp esi, ebx
jne 0x1001bc3c
mov word [esi], ax
jmp 0x1001bc78
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001c506
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001bc7b
push 0xd
pop eax
jmp 0x1001bc37
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10034b60]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001bc75
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001bc7b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret