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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov edx, dword [eax + 8]
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push ebx
push 5
push ecx
mov eax, esp
mov dword [eax], esi
call edx
push ebx
push ecx
mov eax, esp
push dword [ebp + 8]
mov dword [eax], esi
call fcn.1000e6c0
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x14], 0
test bl, bl
jne 0x1001dd48
mov byte [ebp - 8], bl
mov byte [esi], 0xe8
jmp 0x1001dd83
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
setne al
mov byte [ebp - 8], al
mov byte [esi], 0xe8
test al, al
je 0x1001dd80
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call ebx
mov ebx, dword [ebp + 0x14]
push ebx
push 4
push ecx
mov ecx, esp
inc esi
push ecx
mov dword [ecx], edi
mov ecx, esp
mov dword [ecx], esi
call fcn.1000e560
mov eax, dword [ebp + 8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002b1d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010b570]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1002b28c
cmp byte [esi + 0x3d], 0
je 0x1002b28c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002b27a
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 0x1002b242
sub eax, 1
je 0x1002b246
sub eax, 2
jne 0x1002b27a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10099d54
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002b263
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100a03a7
add esp, 0x10
cmp edi, eax
jne 0x1002b27a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10099d54
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10099d54
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10099d54
mov esp, ebp
pop ebp
ret
Function at 0x1002e110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1010b570]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1002e140
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10099d54
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1002e17c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1002e17c
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.10099d54
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1002e264
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1002e1a4
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 0x1002e1d7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1009fa30
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.10099d54
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], 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 - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x1002e237
sub eax, 1
je 0x1002e237
sub eax, 2
jne 0x1002e264
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10023090
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10099d54
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002e254
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100a03a7
add esp, 0x10
cmp edi, eax
jne 0x1002e264
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x1002e167
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10099d54
mov esp, ebp
pop ebp
ret 4
Function at 0x1002eff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x1002f0bd
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x1002f0ac
jg 0x1002f028
test edx, edx
je 0x1002f0ac
call fcn.1001aa80
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x1002f075
jg 0x1002f03e
test esi, esi
je 0x1002f075
cmp ebx, eax
jg 0x1002f04d
jl 0x1002f048
cmp edi, esi
jae 0x1002f04d
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 8]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.1009b5b0
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1002f099
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x1002f0a6
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x1002f028
jl 0x1002f0a6
test edi, edi
jne 0x1002f028
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
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 [ebp - 0x14], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
test edx, edx
je 0x1002f0e1
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x1002f0e6
xor edx, edx
mov dword [ebp - 0xc], eax
mov eax, edx
cdq
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], edx
test edi, edi
jl 0x1002f145
jg 0x1002f0f9
test esi, esi
je 0x1002f145
test edx, edx
jl 0x1002f140
jg 0x1002f103
test eax, eax
je 0x1002f140
cmp edi, edx
jg 0x1002f115
jl 0x1002f10d
cmp esi, eax
jae 0x1002f115
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [ebp - 0x10]
call fcn.1009b5b0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add ebx, edx
mov ecx, dword [ebp - 4]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x1002f148
mov ebx, dword [ebp + 8]
jmp 0x1002f152
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x1002f16b
jg 0x1002f152
test esi, esi
je 0x1002f16b
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1002f16b
push eax
push esi
push 1
push ebx
call fcn.100a03a7
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002f650
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 0xba6818
call fcn.1000d4c0
mov ecx, dword fs:[0x2c]
add esp, 4
mov edx, dword [0x1011a918]
mov esi, eax
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1011b7fc]
cmp ecx, dword [edx + 4]
jg 0x1002f804
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 1
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov bl, byte [esi]
test eax, eax
je 0x1002f6c5
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test bl, bl
je 0x1002f704
cmp byte [0x101190fc], 0
je 0x1002f704
push 0xffffffffffffffff
call fcn.1000efd0
add esp, 4
test eax, eax
je 0x1002f704
mov ecx, eax
call fcn.1000efb0
test eax, eax
je 0x1002f704
cmp byte [0x101190fc], 0
je 0x1002f6fb
mov ecx, 1
jmp 0x1002f6fd
xor ecx, ecx
mov word [eax + 0x10e], cx
mov al, byte [0x101199d4]
cmp al, byte [0x101190fc]
je 0x1002f7fe
call fcn.1005c140
mov cl, byte [ebp + 8]
push 1
push 0x1002f8f0
push 0x53f417
mov byte [eax + 0xa8], cl
call fcn.1000ecc0
push 1
push 1
push 0x57c59b
call fcn.1000eac0
push 1
push 0x1002f9c0
push 0x57c59c
call fcn.1000ecc0
push 1
push 1
push 0x81e5d4
call fcn.1000eac0
push 1
push 0x1002f9c0
push 0x81e5d5
call fcn.1000ecc0
push 1
push 1
push 0x74542d
call fcn.1000eac0
add esp, 0x48
push 1
push 0x1002f9c0
push 0x74542e
call fcn.1000ecc0
push 1
push 1
push 0x748a7c
call fcn.1000eac0
push 1
push 0x1002f8c0
push 0x748a7d
call fcn.1000ecc0
push 1
push 0x20
push 0x746a08
call fcn.1000eb50
push 1
push 0x20
push 0x746a58
call fcn.1000eb50
mov eax, dword [0x1010bfc8]
add esp, 0x3c
mov dword [eax + 0xc], 0
mov eax, dword [0x1010bfc8]
mov dword [eax + 0x10], 0
call fcn.1000efa0
call fcn.1000ef90
mov al, byte [0x101190fc]
mov byte [0x101199d4], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1011b7fc
call fcn.10099c7e
add esp, 4
cmp dword [0x1011b7fc], 0xffffffff
jne 0x1002f689
mov ecx, 0x1011b7f0
mov dword [0x1011b7f0], 0x100fcaac
mov dword [0x1011b7f8], 0
mov dword [0x1011b7f4], 0
call fcn.1000e840
push 0x1011b7fc
call fcn.10099c34
add esp, 4
jmp 0x1002f689
Function at 0x1003e0e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c2130
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1010b570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100997ee
mov esi, eax
add esp, 4
test esi, esi
je 0x1003e139
push 1
mov dword [ebp - 4], 0
call fcn.100986ca
add esp, 4
mov dword [esi + 4], eax
jmp 0x1003e13b
xor esi, esi
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
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 ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x2c], edx
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 - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x10119468]
mov ecx, dword [0x1011946c]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 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
Function at 0x1003eaa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c22ec
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1010b570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x1003eb54
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x68]
push 9
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
call fcn.1003e590
mov ecx, dword [edi + 0x1c]
xor ebx, ebx
mov edx, dword [edi + 0x10]
mov byte [ebp - 4], 6
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x1003eb9b
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x1003eb9b
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x1003eba5
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
lea eax, [ebp - 0xd]
and ecx, 0x1f
push eax
push 1
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.100405a0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x1003ebd4
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30

Function at 0x1004d3c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c37e0
mov eax, dword fs:[0]
push eax
mov eax, dword [0x1010b570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
movq qword [ecx + 4], xmm0
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0xf
mov byte [ecx + 0x18], 0
mov dword [ecx + 0x28], 1
mov word [ecx + 0x18], 0x30
mov dword [ebp - 4], 0xffffffff
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x40], 0
mov eax, ecx
mov dword [ecx + 0x44], 0xf
mov byte [ecx + 0x30], 0
mov dword [ecx + 0x40], 0
mov byte [ecx + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1004ee70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push dword [ebp + 8]
call fcn.1000d4c0
add esp, 4
lea ecx, [ebp - 4]
push eax
call fcn.1000e530
movzx eax, byte [ebp + 0xc]
xor edx, edx
mov esi, dword [ebp - 4]
mov dword [ebp - 0x14], edx
test eax, eax
jne 0x1004eea0
xor al, al
jmp 0x1004eebc
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebp - 8], al
mov bl, byte [esi]
test al, al
je 0x1004eeda
mov ecx, dword [ebp - 0xc]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004eef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [ebp + 8]
call fcn.1000d4c0
add esp, 4
lea ecx, [ebp - 4]
push eax
call fcn.1000e530
movzx eax, byte [ebp + 0x10]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x14], 0
test eax, eax
jne 0x1004ef23
mov byte [ebp - 8], 0
jmp 0x1004ef3d
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov al, byte [ebp + 0xc]
mov byte [esi], al
cmp byte [ebp - 8], 0
je 0x1004ef5f
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005bf60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc4]
lea edx, [ebp + 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100e91e0]
sub esi, 1
jne 0x1005bf80
mov eax, dword [0x1011a68c]
not ebx
cmp dword [eax + 0x1bd0], ebx
jne 0x1005bfaf
mov dword [eax + 0x1bd4], ebx
cmp dword [eax + 0x1c0c], ebx
jne 0x1005bfbe
mov byte [eax + 0x1c10], 1
mov eax, dword [0x1011a68c]
cmp dword [eax + 0x1bb8], ebx
jne 0x1005bfdb
push 0
push dword [ebp + 8]
push 4
push ebx
call fcn.1005a340
add esp, 0x10
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x1005c9d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1005c9e2
mov dword [edi], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1005cb00
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005c9fa
pop edi
pop esi
pop ebp
ret
push ebx
push esi
call fcn.100a8676
add esp, 4
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
je 0x1005caec
push 2
push 0
push esi
call fcn.100a016d
add esp, 0xc
test eax, eax
jne 0x1005caec
push esi
call fcn.100a8676
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1005caec
push 0
push dword [ebp + 0x10]
push esi
call fcn.100a016d
add esp, 0xc
test eax, eax
jne 0x1005caec
mov eax, dword [0x1011a68c]
test eax, eax
je 0x1005ca5e
inc dword [eax + 0x36c]
push dword [0x1011a694]
mov eax, dword [ebp + 0x14]
add eax, ebx
push eax
call dword [0x1010b158]
add esp, 8
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1005caec
push esi
push ebx
push 1
push eax
call fcn.1009fd20
add esp, 0x10
cmp eax, ebx
je 0x1005cabd
push esi
call fcn.1009f49c
mov eax, dword [0x1011a68c]
add esp, 4
test eax, eax
je 0x1005caa3
dec dword [eax + 0x36c]
push dword [0x1011a694]
mov eax, dword [ebp + 0x10]
push eax
call dword [0x1010b15c]
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x1005cad5
push eax
mov eax, dword [ebp + 0x10]
add eax, ebx
push 0
push eax
call fcn.1009bb30
add esp, 0xc
push esi
call fcn.1009f49c
add esp, 4
test edi, edi
je 0x1005cae4
mov dword [edi], ebx
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call fcn.1009f49c
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x1005cd10
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 0x1005cd73
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1005cd56
cmp edi, 2
jb 0x1005cd56
cmp byte [esi], cl
jne 0x1005cd56
cmp byte [esi + 1], cl
jne 0x1005cd56
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100e91e0]
jmp 0x1005cd27
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100e91e0]
test edi, edi
jne 0x1005cd27
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1005cda8
nop word [eax + eax]
cmp cl, 0x23
jne 0x1005cd8f
cmp byte [esi], cl
jne 0x1005cd8f
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 + 0x100e91e0]
test cl, cl
jne 0x1005cd80
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x1005d0a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x1005d0c0
cmp eax, esi
jae 0x1005d235
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x1005d235
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x100e9728]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x1005d0f2
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp - 3]
mov byte [ebp - 4], cl
cmp esi, edx
jae 0x1005d107
mov bh, byte [esi]
jmp 0x1005d109
xor bh, bh
lea esi, [eax + 2]
mov byte [ebp - 3], bh
cmp esi, edx
jae 0x1005d117
mov ch, byte [esi]
jmp 0x1005d119
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 2], ch
cmp esi, edx
jae 0x1005d127
mov bl, byte [esi]
jmp 0x1005d129
xor bl, bl
movzx edx, ch
movzx ecx, cl
movzx esi, bh
movzx edi, bl
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x100e9748]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x100e9770]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x100e975c]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x100e9784]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x1005d21c
xor edx, edx
cmp byte [ebp - 4], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1005d0ae
add eax, ebx
test esi, esi
je 0x1005d22b
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1005d0ae
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret