joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413340
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x488ec8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x413400
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edx
mov eax, dword [0x488ec8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
mov dword [ebp - 4], ecx
pop edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x413510
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x488ec8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x413640
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x488ec8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x413664
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, 4
cmp dword [ebp - 8], eax
jl 0x4136b1
mov ecx, dword [ebp - 8]
add ecx, 0x4000
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
add ecx, 5
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x49a0c4]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x413710
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x488ec8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x41374e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x41374e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x413750
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x43ca0d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x499c98], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
jne 0x43ca43
push 0x499c7c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x499c98], 1
push 0x499c7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x499c94]
cmp eax, ebx
mov edi, eax
je 0x43caa7
cmp dword [ebp - 4], ebx
jne 0x43cbe7
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x43ca7a
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x43ca6b
jmp 0x43ca98
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.0043c85f
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x43ca59
cmp dword [ebp - 4], ebx
jne 0x43cbe7
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x43cbe7
mov edi, dword [0x499c94]
jmp 0x43cae7
cmp dword [edi + 0xc], 0x3f
jl 0x43cb81
mov edi, dword [edi]
cmp edi, ebx
jne 0x43cadb
push 0x310
push 8
push dword [0x499294]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x43cbde
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [edi + 8], eax
je 0x43cbd0
push ebx
push ebx
push edi
push 0x43c8b0
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x43cbc7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043c85f
mov eax, dword [0x499c94]
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
je 0x43cb79
mov dword [eax + 4], edi
mov dword [0x499c94], edi
jmp 0x43cbe7
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.0043c85f
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x43cbe7
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x499294]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x499c7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43df0c
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x154
push 8
push dword [0x499294]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x49a03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x49a040], esi
and dword [esi + 0x88], 0
or dword [esi + 0x8c], 0xffffffff
or dword [esi + 0x90], 0xffffffff
push esi
mov dword [esi + 0x84], 0xffffff
mov dword [esi + 0x6c], 2
mov dword [esi + 0x70], 0x3f
call fcn.004432c1
mov dword [esi + 0x58], 0x43de8b
mov dword [esi + 0x5c], 0x43deca
mov dword [esi + 0x10], fcn.0043d059
mov dword [esi + 0x30], 0x43d1d8
mov dword [esi + 0x64], 0x43d2e1
mov dword [esi + 0x60], 0x43d32c
mov dword [esi + 0x34], 0x43da2a
mov dword [esi + 0x24], 0x43d8c9
mov dword [esi + 0x28], 0x43d8f2
mov dword [esi + 0x2c], 0x43d91d
mov dword [esi + 0x44], 0x43dd1b
mov eax, esi
pop esi
ret 4

Function at 0x43ebfb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
push esi
mov esi, dword [ecx + 0xb4]
mov dword [ebp - 4], esi
je 0x43ec6e
mov eax, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x43ec5d
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x10]
jne 0x43ec42
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x43ec22
pop edi
pop ebx
pop esi
leave
ret 0x1c

Function at 0x43f9fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xb4]
je 0x43fa76
push ebx
imul eax, eax, 3
push esi
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 8]
mov esi, edx
imul esi, dword [ebp + 0x10]
add eax, edi
mov edi, eax
mov dword [ebp + 0x18], eax
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x43fa5e
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x10]
jne 0x43fa44
mov edi, dword [ebp + 0x18]
dec dword [ebp + 0x20]
add edi, dword [ebp + 0xc]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x18], edi
jne 0x43fa26
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x402cb0
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f8
push 0
push 0
push 0
push 1
push str.Mozilla_5.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x402e08
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402b40
add esp, 8
mov dword [ebp - 0x1c], eax
push 0
push 0x80000000
push 0
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.00405080
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x3c]
call fcn.00405210
cmp dword [ebp - 0x14], 0
je 0x402dfe
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00402b40
add esp, 8
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0
push 1
push 0x40
push 0x20
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x104]
call fcn.00404bf0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00405210
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx + 4]
lea ecx, [ebp + edx - 0x104]
call fcn.00402680
movzx eax, al
test eax, eax
je 0x402de2
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x400
lea edx, [ebp - 0x504]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x402dd7
cmp dword [ebp - 0x10], 0
jbe 0x402dd7
mov ecx, dword [ebp - 0x10]
xor edx, edx
push edx
push ecx
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0x104]
call fcn.00404d50
jmp 0x402d98
lea ecx, [ebp - 0x104]
call fcn.00404b40
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x104]
call fcn.00402e20
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x402e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.0040b790
add esp, 0xc
mov dword [ebp - 0x94], 0x94
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402ea0
cmp dword [ebp - 0x90], 6
jne 0x402ea0
cmp dword [ebp - 0x8c], 1
jne 0x402ea0
mov al, 1
jmp 0x402ea2
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x402f40
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
call fcn.004114c3
mov eax, dword [eax]
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.004114c3
mov ecx, dword [eax]
push ecx
push str._c_del__q__s
lea edx, [ebp - 0x110]
push edx
call fcn.00401170
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4035a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00402ee0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403240
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402f40
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x403f70
jl 0x403f67
cmp dword [ebp + 0xc], 0
ja 0x403f70
xor eax, eax
xor edx, edx
jmp 0x4040a7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x403f92
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00404940
jmp 0x4040a7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.004060d0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x404001
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004040b0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00406230
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00406ca0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.004061b0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x404098
mov ecx, dword [ebp - 8]
call fcn.00405bf0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x404071
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00410d80
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40406f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x4040a7
jmp 0x40401d
cmp dword [ebp - 4], 0
jbe 0x404098
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00410d80
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4137fd
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ceb8
push 0x42ceb0
push str.FlsAlloc
push 0x1f
call fcn.00418988
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418b51
push dword [ebp + 8]
mov ecx, esi
call dword [0x429190]
call esi
jmp 0x418b57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418b9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42cec8
push 0x42cec0
push str.FlsGetValue
push 0x21
call fcn.00418988
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418bd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x429190]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x418bda
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ced0
push 0x42cec8
push str.FlsSetValue
push 0x22
call fcn.00418988
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418c14
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x429190]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41a355
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ab60
mov eax, dword [0x438050]
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.00415e72
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a397
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a4f3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427e10
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 + 0x439920]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041b156
mov ecx, dword [esi*4 + 0x439920]
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 0x41a4ec
cmp eax, dword [ecx + edi + 0x24]
jne 0x41a4ec
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 0x41a4ec
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b156
add esp, 0x14
test edx, edx
jl 0x41a4ec
jg 0x41a462
test eax, eax
jb 0x41a4ec
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a4ec
jl 0x41a47c
cmp dword [ebp - 0x1008], eax
ja 0x41a4ec
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a49a
test ebx, ebx
je 0x41a4d3
cmp ecx, edi
jae 0x41a4d3
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a4b4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a4c0
cmp byte [ecx + 1], 0xa
jne 0x41a4c0
inc ecx
jmp 0x41a4c0
movzx eax, al
movsx eax, byte [eax + 0x4382d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a49a
cmp edx, ebx
jne 0x41a49a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a4f1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a256
leave
ret
Function at 0x41a5ee
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 + 0x439920]
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 0x41a62e
cmp byte [ebx], 0xa
jne 0x41a62e
or byte [edi + eax + 0x28], 4
jmp 0x41a633
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 0x41a732
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41a715
inc eax
cmp dl, 0xd
je 0x41a65f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41a685
cmp eax, ecx
jae 0x41a693
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 0x41a647
jmp 0x41a732
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 0x41a710
cmp dword [ebp - 0x10], 0
je 0x41a710
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x439920]
test byte [eax + edi + 0x28], 0x48
je 0x41a6ea
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41a6d5
mov byte [esi], dl
jmp 0x41a6e6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x439920]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41a732
cmp byte [ebp - 1], 0xa
jne 0x41a6f9
cmp esi, ebx
jne 0x41a6f9
mov byte [esi], 0xa
jmp 0x41a731
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b174
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41a732
mov byte [esi], 0xd
jmp 0x41a731
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x439920]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a72f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a732
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a73b
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 + 0x439920]
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 0x41a781
cmp word [ebx], dx
jne 0x41a781
or byte [eax + edi + 0x28], 4
jmp 0x41a786
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 0x41a8e9
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 0x41a8c9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41a7c7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41a7fd
cmp eax, edx
jae 0x41a80b
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 0x41a7a2
jmp 0x41a8e9
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 0x41a8c4
cmp dword [ebp - 0x18], 0
je 0x41a8c4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x439920]
test byte [eax + edi + 0x28], 0x48
je 0x41a89a
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 0x41a85e
mov word [esi], cx
jmp 0x41a895
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x439920]
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 + 0x439920]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x439920]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41a8e9
pop eax
cmp word [ebp - 4], ax
jne 0x41a8aa
cmp esi, ebx
jne 0x41a8aa
mov word [esi], ax
jmp 0x41a8e6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b174
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41a8e9
push 0xd
pop eax
jmp 0x41a8a5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x439920]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41a8e3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41a8e9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret