joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003b0e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10195134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x1003b1a9
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x1003b126
sub edi, 0x8000000
jmp 0x1003b1a1
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1003b1a9
cmp dword [ebp - 0x10], 0x10000
jne 0x1003b18c
cmp dword [ebp - 0x14], 0x10000
jb 0x1003b18c
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1003b264
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1003b1a9
sub edi, 0x10000
jmp 0x1003b1a1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x1003b111
movzx eax, si
test eax, eax
je 0x1003b1b8
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x1003b262
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1003b1e5
add esi, 0x8000000
jmp 0x1003b25a
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call ebx
test eax, eax
je 0x1003b262
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x1003b245
cmp ecx, 0x10000
jb 0x1003b245
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1003b264
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1003b262
add esi, 0x10000
jmp 0x1003b25a
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1003b25a
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1003b1d0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100da971
mov esp, ebp
pop ebp
ret
Function at 0x1003b2f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10195134]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1019a670], 0
jne 0x1003b379
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x1019a670
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1003b379
push esi
mov esi, dword [0x1019a67c]
mov dword [0x1019a684], eax
mov dword [0x1019a680], eax
mov dword [0x1019a678], eax
push edi
test esi, esi
je 0x1003b35a
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x1003b371
mov esi, dword [esi + 4]
test esi, esi
jne 0x1003b341
xor eax, eax
pop edi
mov dword [0x1019a62c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100da971
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003b35c
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.100da971
mov esp, ebp
pop ebp
ret
Function at 0x1003b7d0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1019a62c]
push esi
mov esi, ecx
test eax, eax
jne 0x1003b83e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x1003b7ea
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.100da9b5
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003b82b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.100da9a2
add esp, 8
mov dword [0x1019a62c], esi
mov eax, esi
mov dword [0x1019a678], 0
pop edi
pop esi
ret
mov eax, dword [0x1019a680]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x1019a680], edi
pop edi
pop esi
ret
Function at 0x1003cc70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1003cca8
sub eax, 1
jne 0x1003ccb4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x100c2f30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
push dword [0x10199c5c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10045e00
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 0x10045ee7
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 0x10045ed6
jg 0x10045e40
test edx, edx
je 0x10045ed6
nop dword [eax]
call fcn.10009750
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10045e93
jg 0x10045e57
test esi, esi
je 0x10045e93
cmp ebx, eax
jg 0x10045e67
jl 0x10045e61
cmp edi, esi
jae 0x10045e67
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.100dc770
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 0x10045eba
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 0x10045ed0
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10045e40
jl 0x10045ed0
test edi, edi
jne 0x10045e40
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 0x10045f09
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x10045f0b
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10045f89
jg 0x10045f1e
test esi, esi
je 0x10045f89
test eax, eax
jl 0x10045f6d
jg 0x10045f28
test ebx, ebx
je 0x10045f6d
cmp edi, eax
jg 0x10045f38
jl 0x10045f32
cmp esi, ebx
jae 0x10045f38
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.100dc770
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 0x10045f89
jg 0x10045f70
test esi, esi
je 0x10045f89
jmp 0x10045f70
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10045f89
push eax
push esi
push 1
push edx
call fcn.100e4cc4
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 0x10045fa0
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 0x10045fd2
jl 0x10045fc5
test ecx, ecx
jne 0x10045fd2
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 0x10046092
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10009770
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1004603e
jg 0x10045ffd
test esi, esi
je 0x1004603e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10046015
mov eax, dword [esp + 0x10]
jl 0x1004600f
cmp eax, esi
jae 0x10046015
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.100dc770
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 0x1004605f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1004607b
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 0x10045fe4
jl 0x1004607b
test ecx, ecx
jne 0x10045fe4
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 0x100460cb
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x100460cb
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.100dc770
mov eax, dword [ebx + 0x2c]
add esp, 0xc
add dword [esp + 0xc], esi
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 0x1004613b
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x100460f1
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 0x10046124
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.100e4f0d
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x1004614f
cmp edi, eax
ja 0x10046100
test ecx, ecx
je 0x1004613b
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.100e4f0d
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 0x100464c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10195134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100464f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100da971
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1004652c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1004652c
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.100da971
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10046616
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10046554
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 0x10046587
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100e3fb1
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.100da971
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
sub eax, 0
je 0x100465e9
sub eax, 1
je 0x100465e9
sub eax, 2
jne 0x10046616
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.100e3fb1
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.100da971
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10046606
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100e4cc4
add esp, 0x10
cmp edi, eax
jne 0x10046616
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10046517
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100da971
mov esp, ebp
pop ebp
ret 4
Function at 0x10046b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10195134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10046bdc
cmp byte [esi + 0x3d], 0
je 0x10046bdc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10046bca
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 0x10046b92
sub eax, 1
je 0x10046b96
sub eax, 2
jne 0x10046bca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100da971
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10046bb3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100e4cc4
add esp, 0x10
cmp edi, eax
jne 0x10046bca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100da971
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100da971
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100da971
mov esp, ebp
pop ebp
ret
Function at 0x1004f430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov ebx, eax
mov edi, eax
and ebx, 7
je 0x1004f45d
cmp eax, ebx
jge 0x1004f451
call fcn.1004ebd0
mov eax, dword [esi + 8]
mov ecx, ebx
shr dword [esi + 0xc], cl
sub eax, ebx
mov dword [esi + 8], eax
mov edi, eax
xor ecx, ecx
test eax, eax
jle 0x1004f480
mov edx, dword [esi + 0xc]
mov al, byte [esi + 0xc]
mov byte [ebp + ecx - 4], al
inc ecx
lea eax, [edi - 8]
shr edx, 8
mov dword [esi + 0xc], edx
mov edi, eax
test eax, eax
jg 0x1004f466
mov dword [esi + 8], edi
jns 0x1004f4a4
mov ecx, dword [0x10198f60]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], 0x1013a174
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 4
jge 0x1004f4c7
mov edi, dword [esi + 4]
mov eax, dword [esi]
nop
cmp eax, edi
jb 0x1004f4b8
xor dl, dl
jmp 0x1004f4bd
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x1004f4b0
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x1004f50f
mov ecx, dword [0x10198f60]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], str.zlib_corrupt
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x1004f53a
mov ecx, dword [0x10198f60]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], str.read_past_buffer
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x1004f558
push edi
mov ecx, esi
call fcn.1004ed10
add esp, 4
test eax, eax
je 0x1004f49b
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.100dc770
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10059260
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x139c
call fcn.100dbcb0
mov eax, dword [0x10195134]
xor eax, esp
mov dword [esp + 0x1398], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [esp + 0x14], ebx
call fcn.100c5946
mov dword [esp + 0x139c], 0xffffffff
mov esi, 1
mov dword [esp + 0x1c], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, esi
mov dword [esp + esi*4 + 0x1c], eax
inc esi
cmp esi, 0x270
jb 0x100592a2
sub edi, ebx
mov dword [esp + 0x18], 0x270
cmp edi, 0xffffffff
jne 0x100592ed
lea ecx, [esp + 0x18]
call fcn.1005d240
add eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1398]
xor ecx, esp
call fcn.100da971
mov esp, ebp
pop ebp
ret
lea ebx, [edi + 1]
mov dword [esp + 0x10], ebx
jmp 0x100592f9
lea ebx, [edi + 1]
xor esi, esi
xor eax, eax
test edi, edi
je 0x1005930f
lea ecx, [esp + 0x18]
call fcn.1005d240
mov esi, eax
or eax, 0xffffffff
xor edx, edx
div ebx
mov ecx, eax
mov ebx, edx
xor edx, edx
mov eax, esi
div dword [esp + 0x10]
cmp eax, ecx
jb 0x10059327
cmp ebx, edi
jne 0x100592f6
mov eax, esi
mov ecx, dword [esp + 0x13a4]
xor edx, edx
div dword [esp + 0x10]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
add eax, edx
call fcn.100da971
mov esp, ebp
pop ebp
ret
Function at 0x1005d240
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x1005d29e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x1005d260
mov eax, dword [edi]
jmp 0x1005d389
cmp eax, 0x4e0
jb 0x1005d389
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x1005d2c0
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x1005d310
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10067090
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 0x100670dc
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100670bf
cmp edi, 2
jb 0x100670bf
cmp byte [esi], cl
jne 0x100670bf
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 + 0x1014a540]
test edi, edi
jne 0x100670a5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1006710b
cmp cl, 0x23
jne 0x100670f2
cmp byte [esi], cl
jne 0x100670f2
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 + 0x1014a540]
test cl, cl
jne 0x100670e3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x100672a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x100672b2
test esi, esi
jne 0x100672c9
push 0x5e4
push 0x10142ea8
push str.filename__mode
call fcn.100e369b
add esp, 0xc
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100672d6
mov dword [ebx], 0
mov edx, esi
mov ecx, edi
call fcn.10067120
mov esi, eax
test esi, esi
je 0x100673be
push esi
call fcn.100e59b0
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x100673b5
push 2
push 0
push esi
call fcn.100e4a2f
add esp, 0xc
test eax, eax
jne 0x100673b5
push esi
call fcn.100e59b0
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x100673b5
push 0
push dword [ebp + 8]
push esi
call fcn.100e4a2f
add esp, 0xc
test eax, eax
jne 0x100673b5
mov eax, dword [0x10199bf4]
test eax, eax
je 0x10067348
inc dword [eax + 0x374]
push dword [0x10199bf8]
push edi
call fcn.100664c0
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x100673b5
push esi
push edi
push 1
push eax
call fcn.100e4f0d
add esp, 0x10
push esi
cmp eax, edi
je 0x1006739f
call fcn.100e51d1
mov eax, dword [0x10199bf4]
add esp, 4
test eax, eax
je 0x10067387
dec dword [eax + 0x374]
push dword [0x10199bf8]
push dword [ebp + 8]
call fcn.100664d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.100e51d1
add esp, 4
test ebx, ebx
je 0x100673ad
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.100e51d1
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x10069800
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xc4]
test ecx, ecx
jg 0x1006982e
push 0x58d
push 0x1017bf28
push str.Size___0
call fcn.100e369b
mov ecx, dword [esi + 0xc4]
add esp, 0xc
mov eax, dword [esi + 0xcc]
mov edi, 4
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1014a540]
sub edi, 1
jne 0x10069842
mov ecx, dword [0x10199bf4]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1a50], eax
jne 0x10069874
mov dword [ecx + 0x1a54], eax
cmp dword [ecx + 0x1a8c], eax
jne 0x10069883
mov byte [ecx + 0x1a90], 1
pop ebp
ret 4

Function at 0x10069890
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10195134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0xc4]
test edx, edx
jg 0x100698cb
push 0x58d
push 0x1017bf28
push str.Size___0
call fcn.100e369b
mov edx, dword [esi + 0xc4]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edi, 0x10
movss xmm0, dword [ecx]
subss xmm0, dword [esi + 0xc]
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xcc]
lea esi, [ebp - 0x14]
mov edx, dword [eax + edx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1014a540]
sub edi, 1
jne 0x10069925
mov eax, dword [0x10199bf4]
not edx
pop edi
pop esi
cmp dword [eax + 0x1a50], edx
jne 0x10069956
mov dword [eax + 0x1a54], edx
cmp dword [eax + 0x1a8c], edx
jne 0x10069965
mov byte [eax + 0x1a90], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.100da971
mov esp, ebp
pop ebp
ret 4