joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100066f0
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov edx, 0x1505
mov dword [esp + 4], ebx
push esi
mov esi, ebx
test ebx, ebx
jne 0x1000670e
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
movsx ecx, byte [ebx]
test ecx, ecx
je 0x10006728
mov eax, edx
lea esi, [esi + 1]
shl edx, 5
add edx, ecx
movsx ecx, byte [esi]
add edx, eax
test ecx, ecx
jne 0x10006715
push ebp
test edx, edx
mov ebp, 1
mov ecx, ebp
mov eax, 0xc0906d
cmovne ecx, edx
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3fd
push edi
push 0x10091aa0
sub ecx, eax
cmovne ebp, ecx
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10091a84]
mov ecx, dword [eax + esi*8]
test ecx, ecx
je 0x10006850
lea edi, [eax + esi*8]
cmp ecx, ebp
jne 0x100067ad
mov ecx, dword [edi + 4]
mov eax, ebx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100067a0
test dl, dl
je 0x1000679c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100067a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006780
xor eax, eax
jmp 0x100067a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x100068b7
push dword [edi + 4]
push ebx
push str.hash_collision___s_vs__s_
push str.htab_hash
push 4
push 0
call fcn.10006230
mov eax, 0x14191f7
add esp, 0x18
mul ebp
mov eax, ebp
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ebp
shr eax, 9
imul eax, eax, 0x3fb
sub edx, eax
inc edx
mov dword [esp + 0x14], edx
mov ecx, esi
sub ecx, edx
cmp esi, edx
lea eax, [ecx + 0x3fd]
cmova eax, ecx
mov esi, eax
mov edi, esi
cmp edi, ebp
je 0x1000684c
mov eax, dword [0x10091a84]
mov ebx, dword [eax + edi*8]
cmp ebx, ebp
jne 0x10006840
mov eax, dword [eax + edi*8 + 4]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10006833
test dl, dl
je 0x1000682f
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10006833
add ecx, 2
add eax, 2
test dl, dl
jne 0x10006813
xor eax, eax
jmp 0x10006838
sbb eax, eax
or eax, 1
test eax, eax
je 0x10006848
mov edx, dword [esp + 0x14]
mov esi, edi
test ebx, ebx
je 0x1000684c
jmp 0x100067e8
mov esi, edi
jmp 0x100068b7
mov ebx, dword [esp + 0x10]
cmp dword [0x10091a80], 0x3fd
jb 0x1000687b
push 0x3fd
push str.hash_table_is_full___lu_entries_
push str.htab_hash
push 1
push 0
call fcn.10006230
add esp, 0x14
xor esi, esi
jmp 0x100068b7
push ebx
call fcn.1004ea70
mov ecx, eax
add esp, 4
mov eax, dword [0x10091a84]
mov dword [eax + esi*8 + 4], ecx
lea eax, [eax + esi*8]
test ecx, ecx
jne 0x100068af
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 1
push ecx
call fcn.10006230
add esp, 0x10
xor esi, esi
jmp 0x100068b7
inc dword [0x10091a80]
mov dword [eax], ebp
push 0x10091aa0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x10006ff0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x10091a94]
push ebx
inc eax
xor bl, bl
mov dword [0x10091a94], eax
push esi
mov esi, dword [esp + 0xc]
push edi
cmp eax, 1
jne 0x10007118
call fcn.10006960
mov dword [0x10091c70], eax
test eax, eax
jne 0x1000703a
push str.failed_to_detect_Windows_version
push str.windows_init
push 1
push esi
call fcn.10006230
add esp, 0x10
mov edi, 0xfffffff4
jmp 0x100071a3
cmp eax, 4
jge 0x10007046
push str.Windows_version_is_too_old
jmp 0x10007020
cmp dword [0x10091a84], 0
je 0x100070a0
push str.program_assertion_failed___hash_table_already_allocated
push str.htab_create
push 1
push esi
call fcn.10006230
add esp, 0x10
push esi
call fcn.10008de0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100071a3
push esi
mov bl, 1
call fcn.10010bb0
add esp, 4
test eax, eax
jne 0x10007103
push str.UsbDk_backend_is_available
push str.windows_init
push 4
push esi
call fcn.10006230
mov byte [0x10091945], bl
jmp 0x10007115
push 0x10091aa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x3fd
push str.using__lu_entries_hash_table
push str.htab_create
push 4
push esi
call fcn.10006230
push 8
push 0x3fe
mov dword [0x10091a80], 0
call fcn.1004ce42
add esp, 0x1c
mov dword [0x10091a84], eax
test eax, eax
jne 0x10007064
push str.could_not_allocate_space_for_hash_table
push str.htab_create
push 1
push esi
call fcn.10006230
add esp, 0x10
mov edi, 0xfffffff5
jmp 0x100071a3
push str.UsbDk_backend_is_not_available
push str.windows_init
push 3
push esi
call fcn.10006230
add esp, 0x10
push 1
push 0
push 0
push 0xffffffffffffffff
mov dword [esi + fcn.10008de0], 0x10082498
mov edi, 0xfffffff5
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x12c], eax
test eax, eax
jne 0x1000715e
xor ecx, ecx
call fcn.100064e0
push eax
push str.failed_to_create_I_O_completion_port:__s
push str.windows_init
push 1
push esi
call fcn.10006230
add esp, 0x14
jmp 0x100071a3
push 0
push 0
push esi
push 0x10006da0
push 0
push 0
call fcn.10056d7b
add esp, 0x18
mov dword [esi + 0x130], eax
test eax, eax
jne 0x100071a1
push str.failed_to_create_I_O_completion_port_thread
push str.windows_init
push 1
push esi
call fcn.10006230
add esp, 0x10
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100071a3
xor edi, edi
cmp dword [0x10091a94], 1
jne 0x100071f2
test edi, edi
je 0x100071f2
cmp byte [0x10091945], 0
je 0x100071da
mov eax, dword [0x10091c20]
test eax, eax
je 0x100071d3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x10091c20], 0
mov byte [0x10091945], 0
test bl, bl
je 0x100071e7
push esi
call fcn.10008e60
add esp, 4
call fcn.100066a0
dec dword [0x10091a94]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x1002b080
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push edi
push 0
call fcn.10002020
mov edi, eax
test edi, edi
jne 0x1002b094
xor al, al
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x20]
lea eax, [ebx + 0x10]
push eax
push 1
call fcn.1004ce42
mov edx, eax
add esp, 8
test edx, edx
jne 0x1002b0d3
call fcn.1004ce2f
push dword [eax]
push str.Unable_to_allocate_buffer_for_libusb_control_transfer._Error:__d.
push dword [esp + 0x18]
push 2
call fcn.1002aac0
add esp, 0x10
push edi
call fcn.10002070
pop ebx
xor al, al
pop edi
pop ecx
ret
mov eax, dword [esp + 0x24]
push esi
lea esi, [ebx + 8]
add esi, edx
test eax, eax
je 0x1002b0e3
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov al, byte [esp + 0x18]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0xd], al
mov byte [esp + 0xc], cl
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov word [edx + 2], ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0xd], al
mov byte [esp + 0xc], cl
movzx eax, word [esp + 0xc]
mov word [edx + 4], ax
mov eax, ebx
shr eax, 8
mov byte [esp + 0xd], al
mov byte [edx], 0xc0
mov byte [esp + 0xc], bl
movzx eax, word [esp + 0xc]
mov word [edx + 6], ax
mov eax, dword [esp + 0x14]
push edi
mov eax, dword [eax + 8]
mov dword [edi], eax
mov word [edi + 5], 0
mov dword [edi + 8], 0
mov dword [edi + 0x20], edx
movzx eax, word [edx + 6]
mov ecx, eax
mov dword [edi + 0x1c], esi
and ecx, 0xffffff00
movzx eax, al
or ecx, eax
mov dword [edi + 0x18], 0x1002ae70
add ecx, 8
mov byte [edi + 4], 2
mov dword [edi + 0x10], ecx
call fcn.100023f0
mov esi, eax
call fcn.1004ce2f
test esi, esi
mov dword [eax], esi
pop esi
jne 0x1002b0c7
pop ebx
mov al, 1
pop edi
pop ecx
ret
Function at 0x1002bfb0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0
push esi
push 0x1002bf40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
call fcn.1004ce2f
pop esi
mov dword [eax], 0
mov al, 1
ret
Function at 0x1002fec0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0xc
mov eax, dword [0x1008ce00]
xor eax, esp
mov dword [esp + 8], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 6
lea ecx, [esp + 4]
movzx eax, ax
push ecx
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [esp]
push eax
call fcn.1004f679
mov ecx, dword [esp + 0xc]
add esp, 4
xor ecx, esp
mov dword [0x1008fcdc], eax
call fcn.10045740
add esp, 0xc
ret

Function at 0x100300b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [0x1008deec]
test eax, eax
je 0x10030153
mov eax, dword [eax + 8]
test eax, eax
je 0x10030153
mov eax, dword [eax + 0x68]
test eax, eax
je 0x100300d3
mov eax, dword [eax]
jmp 0x100300d5
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10030153
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0
push 0
push dword [0x1008df24]
push dword [0x1008df1c]
call fcn.100358f0
mov esi, eax
add esp, 0x10
lea ecx, [esi*2 + 2]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [esi + 1]
push ecx
push eax
push dword [0x1008df24]
push dword [0x1008df1c]
call fcn.100358f0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov byte [0x1008df31], 1
pop esi
ret
Function at 0x10036d90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 1
je 0x10036da7
cmp eax, 8
je 0x10036da7
mov dword [esp + 4], eax
jmp method.Fl_Window.virtual_8
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, 1
ret 4

Function at 0x10037930
Capabilities:
Capture screenshot

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push dword [0x1008def8]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call edi
mov ebx, eax
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.GDI32.dll_SaveDC]
push dword [esp + 0x2c]
mov dword [esp + 0x18], eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [0x1008fb90], 0
jne 0x10037a39
push 0x1006f16c
mov byte [0x1008fb90], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10037a7d
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1008fb8c], eax
test eax, eax
je 0x10037a7d
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x10037a7d
push 1
push 1
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
mov ebp, eax
call edi
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SaveDC]
push ebp
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x1010101
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
push dword [0x1008b628]
push 1
push 1
push 0
push 0
push ebx
push 1
push 1
push 0
push 0
push esi
call dword [0x1008fb8c]
push edi
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_RestoreDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x2c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x10037a39
mov al, 1
mov byte [0x1008fb91], al
jmp 0x10037a3e
mov al, byte [0x1008fb91]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x10]
test al, al
je 0x10037a89
push dword [0x1008b628]
mov eax, dword [esp + 0x2c]
push eax
push esi
push edi
push ebp
push ebx
push eax
push esi
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [0x1008def8]
call dword [0x1008fb8c]
test eax, eax
jne 0x10037aaa
jmp 0x10037a89
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
push 0xcc0020
push edi
push ebp
push ebx
push dword [esp + 0x38]
push esi
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [0x1008def8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x1c
Function at 0x1003af50
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ebx
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x1003af60
push 0
sub edi, ecx
push 0
push edi
push ebx
call fcn.100358f0
lea esi, [eax + 1]
lea ecx, [esi + esi]
push ecx
push dword [0x1008fce4]
call fcn.1004ce4d
push esi
push eax
push edi
push ebx
mov dword [0x1008fce4], eax
call fcn.100358f0
mov ecx, dword [0x1008fce4]
xor edx, edx
push edx
push ecx
mov word [ecx + eax*2], dx
call fcn.100550a0
add esp, 0x30
test eax, eax
je 0x1003b03f
push 0x2f
push ebx
call fcn.10047750
mov edi, eax
add esp, 8
test edi, edi
jne 0x1003afc9
pop edi
pop esi
xor al, al
pop ebx
ret
sub edi, ebx
lea eax, [edi + 1]
push eax
call fcn.100494ab
push edi
mov esi, eax
push ebx
push esi
call fcn.10047080
push esi
mov byte [esi + edi], 0
call fcn.1003af50
push esi
call fcn.10049123
mov edi, ebx
add esp, 0x18
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1003aff6
push 0
sub edi, ecx
push 0
push edi
push ebx
call fcn.100358f0
lea esi, [eax + 1]
lea ecx, [esi + esi]
push ecx
push dword [0x1008fce4]
call fcn.1004ce4d
push esi
push eax
push edi
push ebx
mov dword [0x1008fce4], eax
call fcn.100358f0
mov ecx, dword [0x1008fce4]
xor edx, edx
push ecx
mov word [ecx + eax*2], dx
call fcn.10055ae9
add esp, 0x2c
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x1003d180
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov dword [esp + 4], ebx
cmp dword [ebx + 0x1c], 0
jne 0x1003d1a5
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10036ab0
mov eax, 1
pop ebx
pop ecx
ret 0x28
mov ecx, dword [0x1008fc44]
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov eax, dword [ecx]
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
push ebp
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x34]
push dword [esp + 0x34]
push edi
push esi
call dword [eax + 0xb4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x28]
sub eax, esi
add dword [ecx], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
sub eax, edi
mov edi, dword [esp + 0x2c]
add dword [edi], eax
mov esi, dword [ecx]
test esi, esi
jns 0x1003d211
add dword [edx], esi
mov esi, dword [esp + 0x30]
mov eax, dword [ecx]
sub dword [esi], eax
xor esi, esi
mov dword [ecx], 0
mov ecx, dword [edx]
lea eax, [ecx + esi]
cmp eax, dword [ebx + 4]
jle 0x1003d222
mov ecx, dword [ebx + 4]
sub ecx, esi
mov dword [edx], ecx
test ecx, ecx
jle 0x1003d32c
mov edx, dword [edi]
test edx, edx
jns 0x1003d243
add dword [ebp], edx
mov ecx, dword [esp + 0x34]
mov eax, dword [edi]
sub dword [ecx], eax
xor edx, edx
mov dword [edi], 0
mov ecx, dword [ebp]
mov esi, dword [ebx + 8]
lea eax, [ecx + edx]
cmp eax, esi
jle 0x1003d257
mov ecx, esi
sub ecx, edx
mov dword [ebp], ecx
test ecx, ecx
jle 0x1003d32c
cmp dword [ebx + 0x24], 0
jne 0x1003d322
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x1c]
mov dword [esp + 0x1c], esi
lea eax, [ecx + 7]
mov dword [esp + 0x18], ecx
cdq
and edx, 7
lea ebp, [edx + eax]
lea eax, [ecx + 0xf]
sar ebp, 3
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add eax, eax
mov dword [esp + 0x34], eax
imul eax, esi
push eax
call fcn.10045fd8
add esp, 4
mov dword [esp + 0x38], eax
mov ecx, eax
test esi, esi
jle 0x1003d301
mov dword [esp + 0x30], esi
test ebp, ebp
jle 0x1003d2e6
mov ebx, ebp
nop dword [eax]
movzx esi, byte [edi]
inc edi
mov eax, esi
shr esi, 4
and eax, 0xf
mov dl, byte [eax + 0x1008cc74]
mov al, byte [esi + 0x1008cc74]
xor al, dl
and al, 0xf
xor al, dl
mov byte [ecx], al
inc ecx
sub ebx, 1
jne 0x1003d2c0
mov eax, dword [esp + 0x34]
sub eax, ebp
add ecx, eax
sub dword [esp + 0x30], 1
jne 0x1003d2b3
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
push eax
push 1
push 1
push esi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_CreateBitmap]
push dword [esp + 0x38]
mov esi, eax
call fcn.10045fe1
add esp, 4
mov dword [ebx + 0x24], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x28
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x28
Function at 0x1004d3e4
Capabilities:
Parse pe header

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

Function at 0x1005c5b9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10075bf4
push 0x10075bec
push str.FlsAlloc
push 0x1f
call fcn.1005c438
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005c5ed
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006b408]
call esi
jmp 0x1005c5f3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005c637
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10075c04
push 0x10075bfc
push str.FlsGetValue
push 0x21
call fcn.1005c438
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005c66e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006b408]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005c676
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10075c0c
push 0x10075c04
push str.FlsSetValue
push 0x22
call fcn.1005c438
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005c6b0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1006b408]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005d159
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 + 0x10091398]
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 0x1005d199
cmp byte [ebx], 0xa
jne 0x1005d199
or byte [edi + eax + 0x28], 4
jmp 0x1005d19e
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 0x1005d29d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1005d280
inc eax
cmp dl, 0xd
je 0x1005d1ca
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1005d1f0
cmp eax, ecx
jae 0x1005d1fe
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 0x1005d1b2
jmp 0x1005d29d
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 0x1005d27b
cmp dword [ebp - 0x10], 0
je 0x1005d27b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10091398]
test byte [eax + edi + 0x28], 0x48
je 0x1005d255
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1005d240
mov byte [esi], dl
jmp 0x1005d251
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10091398]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005d29d
cmp byte [ebp - 1], 0xa
jne 0x1005d264
cmp esi, ebx
jne 0x1005d264
mov byte [esi], 0xa
jmp 0x1005d29c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1005cf52
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005d29d
mov byte [esi], 0xd
jmp 0x1005d29c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10091398]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005d29a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005d29d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005d2a6
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 + 0x10091398]
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 0x1005d2ec
cmp word [ebx], dx
jne 0x1005d2ec
or byte [eax + edi + 0x28], 4
jmp 0x1005d2f1
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 0x1005d454
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 0x1005d434
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1005d332
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005d368
cmp eax, edx
jae 0x1005d376
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 0x1005d30d
jmp 0x1005d454
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 0x1005d42f
cmp dword [ebp - 0x18], 0
je 0x1005d42f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10091398]
test byte [eax + edi + 0x28], 0x48
je 0x1005d405
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 0x1005d3c9
mov word [esi], cx
jmp 0x1005d400
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10091398]
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 + 0x10091398]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10091398]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1005d454
pop eax
cmp word [ebp - 4], ax
jne 0x1005d415
cmp esi, ebx
jne 0x1005d415
mov word [esi], ax
jmp 0x1005d451
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1005cf52
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1005d454
push 0xd
pop eax
jmp 0x1005d410
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10091398]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1005d44e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1005d454
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret