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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x10022fa8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x10022f97
jg 0x10022f00
test edx, edx
je 0x10022f97
nop dword [eax]
call fcn.10024560
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10022f54
jg 0x10022f17
test esi, esi
je 0x10022f54
cmp ebx, eax
jg 0x10022f27
jl 0x10022f21
cmp edi, esi
jae 0x10022f27
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.10062ee0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x10022f7b
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x10022f91
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10022f00
jl 0x10022f91
test edi, edi
jne 0x10022f00
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x10022fca
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x10022fcc
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x1002304a
jg 0x10022fdf
test esi, esi
je 0x1002304a
test eax, eax
jl 0x1002302e
jg 0x10022fe9
test ebx, ebx
je 0x1002302e
cmp edi, eax
jg 0x10022ff9
jl 0x10022ff3
cmp esi, ebx
jae 0x10022ff9
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.10062ee0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x1002304a
jg 0x10023031
test esi, esi
je 0x1002304a
jmp 0x10023031
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1002304a
push eax
push esi
push 1
push edx
call fcn.10075e50
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10023060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10023092
jl 0x10023085
test ecx, ecx
jne 0x10023092
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10023152
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10024580
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100230fe
jg 0x100230bd
test esi, esi
je 0x100230fe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x100230d5
mov eax, dword [esp + 0x10]
jl 0x100230cf
cmp eax, esi
jae 0x100230d5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10062ee0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1002311f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1002313b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x100230a4
jl 0x1002313b
test ecx, ecx
jne 0x100230a4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10023191
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10023191
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10062ee0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x10023200
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x100231b7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x100231e9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10079310
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10023214
cmp edi, eax
ja 0x100231c5
test ecx, ecx
je 0x10023200
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10079310
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100235e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10129014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10023610
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005db50
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1002364c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1002364c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005db50
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10023735
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10023674
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100236a7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100741d0
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005db50
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x10023735
cmp eax, 1
jle 0x10023708
cmp eax, 3
jne 0x10023735
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.100741d0
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005db50
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10023725
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10075e50
add esp, 0x10
cmp edi, eax
jne 0x10023735
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10023637
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005db50
mov esp, ebp
pop ebp
ret 4
Function at 0x100240c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10129014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1002417c
cmp byte [esi + 0x3d], 0
je 0x1002417c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002416a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10024132
sub eax, 1
je 0x10024136
sub eax, 2
jne 0x1002416a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005db50
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10024153
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10075e50
add esp, 0x10
cmp edi, eax
jne 0x1002416a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005db50
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005db50
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1005db50
mov esp, ebp
pop ebp
ret
Function at 0x10024430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8150
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10129014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
push 0x49
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.28.29333includexlocale
push 2
push 8
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10077f70
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1002454a
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100600e0
mov dword [edi + 4], eax
lea ebx, [esi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [esi + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [esi + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x34], edi
lea edi, [esi + 0x14]
mov dword [ebp - 0x14], edx
add esi, 0x24
mov edx, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x18]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x18]
mov dword [edx], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x1012e374]
mov edx, dword [0x1012e378]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1005f1a0
int3
Function at 0x100248e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8190
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10129014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 0x49
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.28.29333includexlocale
push 2
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10077f70
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100249b7
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100600e0
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1005f1a0
int3
Function at 0x100287f0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10129014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1012e198], 0
push edi
nop dword [eax]
cmp byte [0x1012e1f3], 0
jne 0x10028906
push str.Kernel32.dll
call esi
push 0
mov edi, eax
call esi
mov word [ebp - 0xc], 0x2eeb
lea esi, [eax + 0x202aaa]
lea eax, [ebp - 8]
push eax
push 0x40
push 2
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ax, word [ebp - 0xc]
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test edi, edi
je 0x10028900
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetTickCount
push edi
call esi
mov dword [0x1012e20c], eax
call eax
push str.GetTickCount64
push edi
mov dword [0x1012e214], eax
call esi
mov dword [0x1012e204], eax
call eax
push 0x100e9db0
push edi
mov dword [0x1012e210], eax
call esi
push 0x1012e308
mov dword [0x1012e208], eax
call eax
call fcn.1005c990
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1005ce70
push 0x100595f0
push 0x1012e20c
call fcn.1005c420
push 0x10059630
push 0x1012e204
call fcn.1005c420
push 0x10059670
push 0x1012e208
call fcn.1005c420
call fcn.1005c9f0
mov byte [0x1012e1f3], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, 7
call fcn.10055310
test eax, eax
je 0x10028920
push 0xfa
call ebx
jmp 0x10028820
cmp dword [0x1012e360], 0
pop edi
je 0x10028954
mov eax, dword [0x1012e34c]
mov edx, 0x10027260
push 0x1012e1ac
mov esi, dword [eax + 0x540]
mov ecx, esi
call fcn.10057040
test eax, eax
jne 0x10028954
lea edx, [eax + 1]
mov ecx, esi
call fcn.10057390
push 0xfa
call ebx
push 0
push 0
push 0
push 0x10028740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1005db50
mov esp, ebp
pop ebp
ret

Function at 0x1002b420
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10129014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
push 0x40
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub esi, eax
push esi
push eax
push ebx
call fcn.10062ee0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp + 8]
call fcn.10001c40
mov ecx, dword [ebp + 0xc]
pop esi
pop ebx
test ecx, ecx
je 0x1002b49f
mov eax, dword [ebp + 0x14]
sub eax, ecx
push eax
push ecx
call fcn.1001af10
add esp, 8
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov eax, dword [ebp + 8]
push 8
push eax
mov dword [ebp + 8], 0
call fcn.1001af10
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.1005db50
mov esp, ebp
pop ebp
ret
Function at 0x1002b4f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10129014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1012e1b9], 0
jne 0x1002b55b
push edi
push 4
call fcn.1005dec0
add esp, 4
mov dword [0x1012e1bc], eax
mov dword [eax], 0x3f800000
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edi, [eax + 0x20a677]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x1012e1bc]
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [0x1012e1b9], 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005db50
mov esp, ebp
pop ebp
ret

Function at 0x1002d180
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1002d1cc
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1002d1af
cmp edi, 2
jb 0x1002d1af
cmp byte [esi], cl
jne 0x1002d1af
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100e3350]
test edi, edi
jne 0x1002d195
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1002d1fb
cmp cl, 0x23
jne 0x1002d1e2
cmp byte [esi], cl
jne 0x1002d1e2
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 + 0x100e3350]
test cl, cl
jne 0x1002d1d3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1002d350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1002d363
mov dword [edi], 0
mov edx, 0x100e81a8
call fcn.1002d210
mov esi, eax
test esi, esi
je 0x1002d44c
push esi
call fcn.10082ac0
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1002d443
push 2
push 0
push esi
call fcn.10079ba0
add esp, 0xc
test eax, eax
jne 0x1002d443
push esi
call fcn.10082ac0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1002d443
push 0
push dword [ebp + 8]
push esi
call fcn.10079ba0
add esp, 0xc
test eax, eax
jne 0x1002d443
mov eax, dword [0x1012e1cc]
test eax, eax
je 0x1002d3d6
inc dword [eax + 0x374]
push dword [0x1012e1c8]
push ebx
call fcn.1002cc30
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x1002d443
push esi
push ebx
push 1
push eax
call fcn.10079310
add esp, 0x10
push esi
cmp eax, ebx
je 0x1002d42d
call fcn.10074ec0
mov eax, dword [0x1012e1cc]
add esp, 4
test eax, eax
je 0x1002d415
dec dword [eax + 0x374]
push dword [0x1012e1c8]
push dword [ebp + 8]
call fcn.1002cc40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.10074ec0
add esp, 4
test edi, edi
je 0x1002d43b
mov dword [edi], ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.10074ec0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x100302b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8d53
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x10129014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1012e1cc]
test eax, eax
je 0x100302e6
inc dword [eax + 0x374]
push dword [0x1012e1c8]
push 0x3b88
call fcn.1002cc30
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xd]
add esp, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1003031f
push ecx
mov ecx, eax
call fcn.1002bd40
mov edi, eax
mov dword [ebp - 0x14], eax
jmp 0x10030324
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov esi, 0x100e80fd
mov eax, dword [0x1012e1cc]
test eax, eax
mov dword [ebp - 0x20], 0
cmove eax, edi
mov dword [ebp - 0x34], str.Window
mov dword [0x1012e1cc], eax
or edx, 0xffffffff
mov al, 0x57
or edi, 0xffffffff
cmp al, 0x23
jne 0x10030363
cmp byte [esi], al
jne 0x10030363
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x100e3350]
test al, al
jne 0x10030355
mov edi, dword [ebp - 0x14]
not edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0x1003cef0
mov dword [ebp - 0x28], 0x1003cf90
mov esi, dword [edi + 0x2d40]
mov ecx, dword [edi + 0x2d44]
mov dword [ebp - 0x24], 0x1003d060
cmp esi, ecx
jne 0x1003044a
inc esi
test ecx, ecx
je 0x100303bd
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100303c2
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1003044a
mov eax, dword [0x1012e1cc]
test eax, eax
je 0x100303da
inc dword [eax + 0x374]
push dword [0x1012e1c8]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.1002cc30
mov edx, dword [edi + 0x2d48]
add esp, 8
mov dword [ebp - 0x14], eax
test edx, edx
je 0x1003043e
mov ecx, dword [edi + 0x2d40]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call fcn.10062ee0
mov ecx, dword [edi + 0x2d48]
add esp, 0xc
test ecx, ecx
je 0x1003042c
mov eax, dword [0x1012e1cc]
test eax, eax
je 0x1003042c
dec dword [eax + 0x374]
push dword [0x1012e1c8]
push ecx
call fcn.1002cc40
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [edi + 0x2d48], eax
mov dword [edi + 0x2d44], esi
mov eax, dword [edi + 0x2d40]
movups xmm0, xmmword [ebp - 0x34]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2d48]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, edi
inc dword [edi + 0x2d40]
mov byte [edi], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100330b0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x100330ef
cmp bl, 0x23
jne 0x100330d1
cmp byte [esi], bl
jne 0x100330d1
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x100e3350]
test bl, bl
jne 0x100330c2
mov ebx, dword [0x1012e1cc]
not eax
mov esi, dword [ebx + 0x19a0]
mov edi, dword [ebx + 0x19a8]
mov ecx, edi
test esi, esi
je 0x10033134
nop dword [eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10033128
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1003312a
mov esi, edx
test esi, esi
jne 0x10033110
mov ecx, dword [ebx + 0x19a8]
mov edx, dword [ebx + 0x19a0]
lea ecx, [ecx + edx*8]
cmp edi, ecx
je 0x1003314c
cmp dword [edi], eax
jne 0x1003314c
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1003c800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x1012e1cc]
push edi
cmp byte [esi + 0x2d58], 0
je 0x1003c89e
cmp dword [esi + 0x2d60], 0
lea edi, [esi + 0x2d64]
je 0x1003c890
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1003c849
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, edi
call fcn.1003ddf0
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.1002d890
mov edx, dword [edi]
mov ecx, 0x1012e1c1
push dword [esi + 0x2d60]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2d6c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call fcn.10075e50
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.1002d890
pop edi
pop esi
mov esp, ebp
pop ebp
ret