joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1001f7b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x1001f7db
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1001f7e0
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1001f862
jg 0x1001f7f5
test esi, esi
je 0x1001f862
test ecx, ecx
jl 0x1001f845
jg 0x1001f7ff
test eax, eax
je 0x1001f845
cmp edi, ecx
jg 0x1001f811
jl 0x1001f809
cmp esi, eax
jae 0x1001f811
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x1001f862
jg 0x1001f848
test esi, esi
je 0x1001f862
jmp 0x1001f848
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1001f862
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002c070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101007cd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x10155700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push str.c:Exo_Bold.ttf
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
movups xmmword [ebp - 0x24], xmm0
call fcn.1000d4e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 0xf
push 0x10110df0
cmova eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
push esi
push 0x162bc
push 1
push 0x1013c020
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.1000b760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002c240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1002c25f
push 0
push 0
push dword [ebp + 8]
push 0x1002c120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x1002d490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
cmp byte [ebx + 0x2b], 0
je 0x1002d624
movaps xmm5, xmmword [0x101290c0]
lea ecx, [ebx + 8]
movaps xmm6, xmmword [0x1010f9c0]
mov edx, 0xffffff99
movups xmm4, xmmword [0x10129130]
mov dword [ebp - 8], ecx
sub edx, ebx
push esi
mov ecx, 0xffffff97
mov dword [ebp - 4], 0xffffff92
sub ecx, ebx
mov dword [ebp - 0x14], edx
push edi
mov dword [ebp - 0xc], ecx
mov edi, 0xffffff96
sub edi, ebx
mov esi, 0xffffff98
sub esi, ebx
mov dword [ebp - 0x10], edi
mov ecx, 0xffffff8e
mov dword [ebp - 0x18], esi
sub ecx, ebx
xor eax, eax
sub dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
movd xmm0, eax
add ecx, ebx
pshufd xmm1, xmm0, 0
add edi, ebx
movd xmm0, dword [ebx - 8]
paddd xmm1, xmm6
punpcklbw xmm0, xmm0
add eax, 0x10
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
movd xmm3, edi
xorps xmm1, xmm0
mov edi, dword [ebp - 0x10]
andps xmm1, xmm4
movd xmm0, ecx
mov ecx, dword [ebp - 4]
packuswb xmm1, xmm1
add ecx, ebx
packuswb xmm1, xmm1
movd dword [ebx - 8], xmm1
pshufd xmm1, xmm0, 0
movd xmm0, dword [ebx - 4]
paddd xmm1, xmm5
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, ecx
andps xmm1, xmm4
lea ecx, [edx + ebx]
packuswb xmm1, xmm1
lea edx, [esi + ebx]
mov esi, dword [ebp - 0xc]
packuswb xmm1, xmm1
add esi, ebx
movd dword [ebx - 4], xmm1
pshufd xmm1, xmm0, 0
movd xmm0, dword [ebx]
paddd xmm1, xmm5
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
movd xmm2, ecx
xorps xmm1, xmm0
mov ecx, dword [ebp - 0x1c]
andps xmm1, xmm4
movd xmm0, edx
mov edx, dword [ebp - 0x14]
punpckldq xmm3, xmm0
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [ebx], xmm1
movd xmm0, dword [ebx + 4]
punpcklbw xmm0, xmm0
movd xmm1, esi
mov esi, dword [ebp - 0x18]
punpcklwd xmm0, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
psrad xmm0, 0x18
xorps xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd dword [ebx + 4], xmm3
add ebx, 0x10
cmp eax, 0x20
jb 0x1002d504
mov ebx, dword [ebp - 0x20]
pop edi
pop esi
cmp eax, 0x2a
jae 0x1002d620
lea edx, [eax + ebx]
lea ecx, [eax - 0x6e]
inc eax
xor byte [edx], cl
cmp eax, 0x2a
jb 0x1002d612
mov byte [ebx + 0x2b], 0
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002e8c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10155700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [0x10156b10]
call fcn.1008db20
movups xmm4, xmmword [0x10129130]
push esi
mov dword [ebp - 0x48], eax
mov dword [ebx], eax
xor eax, eax
mov dword [ebp - 0x38], 0xe9d7e3d8
mov dword [ebp - 0x34], 0xefccf5ff
mov dword [ebp - 0x30], 0xd2c5fcf1
mov word [ebp - 0x2c], 0xd1
mov byte [ebp - 0x2a], 1
push edi
nop dword [eax]
lea edx, [eax - 0x68]
lea edi, [eax - 0x6a]
movd xmm0, edx
movd xmm3, edi
lea ecx, [eax - 0x67]
punpckldq xmm3, xmm0
lea esi, [eax - 0x69]
movd xmm0, dword [ebp + eax - 0x38]
punpcklbw xmm0, xmm0
movd xmm2, ecx
movd xmm1, esi
punpcklwd xmm0, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
psrad xmm0, 0x18
xorps xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd dword [ebp + eax - 0x38], xmm3
add eax, 4
cmp eax, 0xc
jb 0x1002e910
pop edi
pop esi
cmp eax, 0xd
jae 0x1002e97d
nop
lea ecx, [eax - 0x6a]
xor byte [ebp + eax - 0x38], cl
inc eax
cmp eax, 0xd
jb 0x1002e970
mov byte [ebp - 0x2a], 0
xor ecx, ecx
mov dword [ebp - 0x44], 0xf5fce3f8
mov dword [ebp - 0x40], 0xf1f8b5f6
mov word [ebp - 0x3c], 0xf2
mov byte [ebp - 0x3a], 1
nop dword [eax + eax]
lea eax, [ecx - 0x6a]
xor byte [ebp + ecx - 0x44], al
inc ecx
cmp ecx, 9
jb 0x1002e9a0
lea eax, [ebp - 0x44]
mov byte [ebp - 0x3a], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 8], 0
push ecx
push 0x1fffff
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebx]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100b18d1
mov esp, ebp
pop ebp
ret
Function at 0x1002f460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x3000
push dword [ebp + 8]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
pop ebp
ret 4

Function at 0x100320c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101010e1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10155700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.FW1FontWrapper::CFW1Object_struct_IFW1FontWrapper_.0
mov dword [edi + 4], 0
mov dword [edi + 8], 1
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi], vtable.FW1FontWrapper::CFW1FontWrapper.0
xor eax, eax
movups xmmword [edi + 0xc], xmm0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], ax
mov byte [ebp - 4], 1
lea esi, [edi + 0x58]
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0x9100
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [ebp - 0x14], esi
push 8
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call fcn.100b1893
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov byte [ebp - 4], 3
lea esi, [edi + 0x84]
mov dword [ebp - 0x18], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.100b1893
add esp, 8
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov byte [ebp - 4], 5
lea eax, [edi + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push eax
mov byte [edi + 0x98], 0
mov dword [edi + 0x9c], 0
call esi
lea eax, [edi + 0x6c]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10034390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010135e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10155700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.FW1FontWrapper::CFW1Object_struct_IFW1GlyphProvider_.0
mov dword [edi + 4], 0
mov dword [edi + 8], 1
mov dword [ebp - 4], 0
lea esi, [edi + 0x1c]
mov dword [edi], vtable.FW1FontWrapper::CFW1GlyphProvider.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [ebp - 0x14], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.100b1893
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov byte [ebp - 4], 2
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 3
lea esi, [edi + 0x40]
mov dword [ebp - 0x18], esi
push 0x20
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100b1893
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 5
lea eax, [edi + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push eax
call esi
lea eax, [edi + 0x60]
push eax
call esi
lea eax, [edi + 0x78]
push eax
call esi
lea eax, [edi + 0x90]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10037150
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101016d8
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x10155700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.FW1FontWrapper::CFW1Object_struct_IFW1GlyphSheet_.0
mov dword [edi + 4], 0
mov dword [edi + 8], 1
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi], vtable.FW1FontWrapper::CFW1GlyphSheet.0
xor eax, eax
movups xmmword [edi + 0xc], xmm0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], ax
mov byte [ebp - 4], 1
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov word [edi + 0x2c], ax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov word [edi + 0x5c], ax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
lea eax, [edi + 0x78]
push eax
movups xmmword [edi + 0x68], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1003fc80
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10101d86
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10155700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], esi
push 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1003fcef
xorps xmm0, xmm0
mov ecx, esi
push eax
movups xmmword [esi], xmm0
push 0x10127e7f
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.1000d4e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
jmp 0x1003fda6
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x1003fd2f
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x10127e7f
mov dword [esi + 0x14], 0
call fcn.1000d4e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
jmp 0x1003fda6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
xorps xmm0, xmm0
test edx, edx
je 0x1003fd00
mov ecx, edx
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fd60
sub ecx, dword [ebp - 0x30]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1000d4e0
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1000b830
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1000b760
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b18d1
mov esp, ebp
pop ebp
ret
Function at 0x100434a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0xff
lea eax, [edi + 0x68]
push eax
lea eax, [edi + 0x168]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 0xc
xor esi, esi
push esi
call ebx
test ax, ax
setne al
mov byte [edi + esi + 0x68], al
inc esi
cmp esi, 0xff
jl 0x100434c5
pop edi
pop esi
pop ebx
ret
Function at 0x1004b910
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10155700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ebp - 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
mov dword [ebp - 8], edi
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10113c30]
sub esi, 1
jne 0x1004b943
mov eax, dword [0x10156a5c]
not ebx
cmp dword [eax + 0x1be0], ebx
jne 0x1004b972
mov dword [eax + 0x1be4], ebx
cmp dword [eax + 0x1c1c], ebx
jne 0x1004b981
mov byte [eax + 0x1c20], 1
mov eax, dword [0x10156a5c]
cmp dword [eax + 0x1bc8], ebx
jne 0x1004b99c
push 0
push edi
push 4
push ebx
call fcn.1004a260
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b18d1
mov esp, ebp
pop ebp
ret 4

Function at 0x1004c1e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1004c1f2
mov dword [edi], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1004c320
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004c20a
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
je 0x1004c301
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1004c301
push esi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1004c301
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1004c301
mov eax, dword [0x10156a5c]
test eax, eax
je 0x1004c270
inc dword [eax + 0x36c]
push dword [0x10156a64]
mov eax, dword [ebp + 0x14]
add eax, ebx
push eax
call dword [0x101522f8]
add esp, 8
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1004c301
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x1004c2d1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x10156a5c]
add esp, 4
test eax, eax
je 0x1004c2b7
dec dword [eax + 0x36c]
push dword [0x10156a64]
mov eax, dword [ebp + 0x10]
push eax
call dword [0x101522fc]
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x1004c2e9
push eax
mov eax, dword [ebp + 0x10]
add eax, ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x1004c2f9
mov dword [edi], ebx
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x1004c4f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
not ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
test edi, edi
je 0x1004c553
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1004c536
cmp edi, 2
jb 0x1004c536
cmp byte [esi], cl
jne 0x1004c536
cmp byte [esi + 1], cl
jne 0x1004c536
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10113c30]
jmp 0x1004c507
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10113c30]
test edi, edi
jne 0x1004c507
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1004c588
nop word [eax + eax]
cmp cl, 0x23
jne 0x1004c56f
cmp byte [esi], cl
jne 0x1004c56f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10113c30]
test cl, cl
jne 0x1004c560
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x1004da00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x2fac], 0
lea esi, [edi + 0x2fb0]
je 0x1004da7b
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1004da36
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100586b0
push dword [ebp + 0x10]
mov ecx, esi
mov dword [esi], 0
push dword [ebp + 0xc]
call fcn.10058260
mov edx, dword [esi]
mov ecx, 0x10156a60
push dword [edi + 0x2fac]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fb8]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
ret
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.10058260
pop edi
pop esi
pop ebp
ret
Function at 0x10054c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10156a5c]
push esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x2f60], 0
test esi, esi
je 0x10054cb9
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push edi
push eax
call fcn.10054cc0
push 0x101142bc
push esi
mov edi, eax
call fcn.1004c320
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10054cb8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
ret

Function at 0x100570a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x10156a5c]
cmp byte [edi + 0x2f5d], 0
lea eax, [edi + 0x20]
jne 0x100571c5
mov ecx, dword [eax]
push ebx
test ecx, ecx
je 0x100571bd
push esi
push 0x101142b8
push ecx
call fcn.1004c320
mov esi, eax
add esp, 8
test esi, esi
je 0x100571b9
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x100571af
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100571af
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x100571af
push 0
push dword [ebp - 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100571af
mov eax, dword [0x10156a5c]
test eax, eax
je 0x10057145
inc dword [eax + 0x36c]
push dword [0x10156a64]
push ebx
call dword [0x101522f8]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100571af
push esi
push dword [ebp - 4]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp - 4]
je 0x1005719b
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x10156a5c]
test eax, eax
je 0x10057189
dec dword [eax + 0x36c]
push dword [0x10156a64]
push ebx
call dword [0x101522fc]
add esp, 8
jmp 0x100571b9
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 4]
push ebx
call fcn.1004d5c0
add esp, 0xc
jmp 0x1005717a
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [edi + 0x20]
pop esi
mov byte [edi + 0x2f5d], 1
pop ebx
movss xmm0, dword [edi + 0x2f60]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x10057216
subss xmm0, dword [edi + 0x18]
comiss xmm1, xmm0
movss dword [edi + 0x2f60], xmm0
jb 0x10057216
mov eax, dword [eax]
test eax, eax
je 0x10057205
push eax
call fcn.10054c60
add esp, 4
mov dword [edi + 0x2f60], 0
pop edi
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x354], 1
mov dword [edi + 0x2f60], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10058d10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101039b3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10155700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 1
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov byte [ebp - 4], 2
mov eax, 0xffff
mov word [ecx + 0x3e], ax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x3a], 0xffffffff
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov word [ecx + 0x38], ax
mov byte [ecx + 0x40], al
mov dword [ecx + 0x44], 0x3f800000
mov dword [ecx + 0x4c], eax
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x50], eax
mov word [ecx + 0x54], ax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret