joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e3e4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x50e3fb
mov eax, ebx
call fcn.0050dd60
cmp dword [ebx + 0x68], 0
jne 0x50e408
mov eax, ebx
call fcn.0050dce4
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x50e5a3
cmp dword [ebx + 0x68], 0
je 0x50e5a3
mov edx, esp
mov eax, esi
call fcn.00511858
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.0050dbb0
lea eax, [esp + 0x14]
xor edx, edx
call fcn.00511908
cmp eax, dword [esp]
je 0x50e47d
lea eax, [esp + 0x14]
xor edx, edx
call fcn.0051191c
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x50e459
adc edx, 0
push edx
lea eax, [esp + 0x18]
xor edx, edx
call fcn.00511908
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x50e472
adc edx, 0
push edx
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x50e490
mov eax, dword [eax + 0x28]
call fcn.0044c05c
mov esi, eax
jmp 0x50e493
mov esi, dword [ebx + 0x5c]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x50e4a4
or esi, 0xffffffff
jmp 0x50e4ae
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.00444f94
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x68]
call fcn.00444fb8
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.00444fe0
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.00445004
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.005118a4
mov eax, edi
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
push 0x61b
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.0044c05c
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.0044c05c
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.0044c05c
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.00427250
call fcn.00422dc0
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.0044c05c
push eax
mov eax, dword [0x528284]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x68]
call fcn.0044c05c
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x50e8c4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.00402ec0
lea eax, [esp + 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x50eac1
push 0
push 0x50eacc
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x50eac1
push 0
push 0x50eadc
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x50eac1
push 0
push 0x50eaec
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x50eac1
push 0
push 0x50eafc
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebp, eax
test ebp, ebp
je 0x50eac1
push 0
push 0
push 0x418
push ebp
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jle 0x50eac1
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ebp
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x50eac1
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x50eac1
push 0x40
push 0x1000
push 0x1000
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x50eac1
or edi, 0xffffffff
cmp edi, dword [esp + 4]
jge 0x50eaa9
inc edi
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x417
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x50ea9f
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x50ea9f
test byte [esp + 0x51], 0xd
jne 0x50ea9f
mov al, byte [esp + 0x50]
and al, 8
cmp al, 8
je 0x50ea9f
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x60]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x50ea9f
cmp dword [esp + 0x10], 0
je 0x50ea9f
mov eax, dword [0x5285b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
cmp eax, dword [esp]
jne 0x50ea9f
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x41d
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x50ea7c
lea eax, [esp + 0x10]
push eax
push 0x10
push ebx
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0x10], 0
je 0x50eaa9
lea eax, [esp + 0x14]
push eax
push ebp
call sub.user32.dll_GetWindowRect
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
call fcn.00406608
jmp 0x50eaa9
cmp edi, dword [esp + 4]
jl 0x50e9d5
push 0x8000
push 0
mov eax, dword [esp + 0x14]
push eax
push esi
call sub.kernel32.dll_VirtualFreeEx
push esi
call sub.kernel32.dll_CloseHandle
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0xde0108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00de0258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xde012e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xde011a
add dl, dl
jne 0xde0139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xde018c
xor eax, eax
add dl, dl
jne 0xde0146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xde022d
add dl, dl
jne 0xde0155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xde0160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xde016b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xde0176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xde0182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xde0125
mov eax, 1
add dl, dl
jne 0xde019a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xde01a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xde0191
sub eax, ebx
mov ebx, 1
jne 0xde01d8
mov ecx, 1
add dl, dl
jne 0xde01be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xde01c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xde01b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xde0125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xde01ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xde01fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xde01e6
cmp eax, 0x7d00
jae 0xde021d
cmp eax, 0x500
jb 0xde0218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xde0125
cmp eax, 0x7f
ja 0xde0220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xde0125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xde024e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xde0125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100018a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ba2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10038639
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x1000192b
push eax
push esi
call fcn.10039b23
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x100c190c
call fcn.10038787
int3
Function at 0x10006740
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x7f00
mov esi, eax
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
mov dword [esp + 0x58], 0
push 0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x100043e0
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x4c], 6
mov dword [esp + 0x54], 0x100c1efc
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push esi
push 0
push 0
push 0x1f4
push 0x1f4
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x100c1f38
push dword [esp + 0x78]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x1000684f
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea eax, [esp + 0xc]
push eax
call esi
lea eax, [esp + 0xc]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
jne 0x10006830
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006860
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x7f00
mov esi, eax
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
mov dword [esp + 0x58], 0
push 0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x10005570
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x4c], 6
mov dword [esp + 0x54], 0x100c2204
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push esi
push 0
push 0
push 0x190
push 0x258
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x100c2238
push dword [esp + 0x78]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x1000696f
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea eax, [esp + 0xc]
push eax
call esi
lea eax, [esp + 0xc]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
jne 0x10006950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006980
Capabilities:
Get disk information

Disassembly:
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesTransactedW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextStreamW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call dword [sym.imp.KERNEL32.dll_IsSystemResumeAutomatic]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveVectoredContinueHandler]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemRegistryQuota]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleDisplayMode]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push 0
push 0
push 0
push 0x100c2428
push 0
push 0x100c245c
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatEx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
push 0
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSizeEx]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x100c2498
push 0
push 0x100c24c8
call dword [sym.imp.KERNEL32.dll_LCMapStringEx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FlsSetValue]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSizeEx]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateConsoleScreenBuffer]
xor eax, eax
lock dec dword [eax]
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
ret
Function at 0x10008a80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bb90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ecx + 4]
mov dword [ebp - 0x10], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], 0x100c2988
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.1003a9a0
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10039a25
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.10008bc0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax], 0x100c2870
mov byte [eax + 0x48], 0
mov byte [eax + 0x3e], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x100b8254]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x100b8258]
mov dword [ebx], 0
pop edi
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x40], eax
mov eax, edx
pop esi
mov dword [edx + 0x4c], 0
mov dword [edx + 0x38], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100484f1
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bdca8
push 0x100bdca0
push 0x100bb604
push 0x1f
call fcn.1004cb10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004ccd9
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b99a4]
call esi
jmp 0x1004ccdf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004cd23
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bdcb8
push 0x100bdcb0
push 0x100bb628
push 0x21
call fcn.1004cb10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004cd5a
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b99a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004cd62
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bdcc0
push 0x100bdcb8
push 0x100bb63c
push 0x22
call fcn.1004cb10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004cd9c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100b99a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100501ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1003b940
mov eax, dword [0x1005e080]
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.1004bad5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005020c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10050368
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1005b4a0
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 + 0x100b7308]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1005083b
mov ecx, dword [esi*4 + 0x100b7308]
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 0x10050361
cmp eax, dword [ecx + edi + 0x24]
jne 0x10050361
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 0x10050361
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005083b
add esp, 0x14
test edx, edx
jl 0x10050361
jg 0x100502d7
test eax, eax
jb 0x10050361
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10050361
jl 0x100502f1
cmp dword [ebp - 0x1008], eax
ja 0x10050361
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005030f
test ebx, ebx
je 0x10050348
cmp ecx, edi
jae 0x10050348
mov al, byte [ecx]
cmp al, 0xd
jne 0x10050329
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10050335
cmp byte [ecx + 1], 0xa
jne 0x10050335
inc ecx
jmp 0x10050335
movzx eax, al
movsx eax, byte [eax + 0x1005e4e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005030f
cmp edx, ebx
jne 0x1005030f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10050366
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003b07e
leave
ret
Function at 0x10050aef
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 + 0x100b7308]
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 0x10050b2f
cmp byte [ebx], 0xa
jne 0x10050b2f
or byte [edi + eax + 0x28], 4
jmp 0x10050b34
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 0x10050c33
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10050c16
inc eax
cmp dl, 0xd
je 0x10050b60
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10050b86
cmp eax, ecx
jae 0x10050b94
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 0x10050b48
jmp 0x10050c33
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 0x10050c11
cmp dword [ebp - 0x10], 0
je 0x10050c11
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b7308]
test byte [eax + edi + 0x28], 0x48
je 0x10050beb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10050bd6
mov byte [esi], dl
jmp 0x10050be7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b7308]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10050c33
cmp byte [ebp - 1], 0xa
jne 0x10050bfa
cmp esi, ebx
jne 0x10050bfa
mov byte [esi], 0xa
jmp 0x10050c32
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10050859
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10050c33
mov byte [esi], 0xd
jmp 0x10050c32
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b7308]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10050c30
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10050c33
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret