joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031e0
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 0x403212
jl 0x403205
test ecx, ecx
jne 0x403212
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 0x4032d2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004053f0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40327e
jg 0x40323d
test esi, esi
je 0x40327e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x403255
mov eax, dword [esp + 0x10]
jl 0x40324f
cmp eax, esi
jae 0x403255
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040a320
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 0x40329f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4032bb
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 0x403224
jl 0x4032bb
test ecx, ecx
jne 0x403224
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]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x403316
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x403316
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040a320
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
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x403387
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40333c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x403372
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00410241
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403387
cmp edi, eax
ja 0x403350
test edi, edi
je 0x403387
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00410241
add esp, 0x10
sub edi, eax
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 0x403700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x437080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403730
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e92
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40376c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40376c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e92
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403867
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403794
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 0x4037c7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040d63c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e92
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
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 dword [edx + 0x1c]
sub eax, 0
je 0x403827
sub eax, 1
je 0x403827
sub eax, 2
jne 0x403867
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040d63c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e92
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403844
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040fad5
add esp, 0x10
cmp edi, eax
jne 0x403867
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e92
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408e92
mov esp, ebp
pop ebp
ret 4
Function at 0x403c10
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b97c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x437080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0
mov dword [ebx], 0x4341fc
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov byte [ebx + 0xa8], 0
push 0
push 0
lea esi, [ebx + 4]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x18], 1
call fcn.004055e0
mov dword [ebp - 4], 1
lea edi, [esi + 0x28]
mov eax, dword [ebx]
mov dword [ebp - 0x14], esi
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [edi], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00408ea5
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 2
call fcn.00408491
mov ecx, ebx
mov dword [esi + 4], eax
add esp, 4
mov dword [ecx + 0x38], esi
lea ecx, [ecx + 4]
call fcn.00405f20
mov eax, ebx
lea esi, [eax + 8]
mov dword [eax + 4], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0x10], esi
lea edx, [eax + 0xc]
mov esi, ebx
mov byte [eax + 0x4c], 0
lea ecx, [eax + 0x18]
mov byte [eax + 0x41], 0
mov dword [eax + 0x14], edx
mov dword [eax + 0x20], ecx
lea eax, [esi + 0x1c]
mov dword [esi + 0x24], eax
mov dword [esi + 0x34], edi
lea ebx, [esi + 0x28]
mov dword [esi + 0x30], ebx
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov eax, ebx
mov dword [ebx + 0x50], 0
mov ecx, dword [0x438db4]
mov edx, dword [0x438db8]
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x3c], 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 4
Function at 0x405110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x437080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4051ca
cmp byte [esi + 0x3d], 0
je 0x4051ca
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4051b8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405180
sub eax, 1
je 0x405184
sub eax, 2
jne 0x4051b8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e92
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4051a1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040fad5
add esp, 0x10
cmp edi, eax
jne 0x4051b8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e92
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e92
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00408e92
mov esp, ebp
pop ebp
ret

Function at 0x405f80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bbb0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x437080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.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
mov dword [edi + 0x30], 0
call fcn.00408ea5
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00408491
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00405f20
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 0x409b01
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409b40
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409b40
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409b40
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409b40
cmp dword [ecx + 0x74], 0xe
jbe 0x409b40
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41e2b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e12a

Function at 0x4232bc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422f39
Function at 0x42b080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b0ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b0ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x365f2a2a
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7ce354c8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10001340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10005340
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x100013b3
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
test eax, eax
je 0x10001397
mov dword [ebp - 0x10], 5
push dword [ebp - 0x24]
call eax
add esp, 4
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov eax, dword [ecx + 4]
test eax, eax
je 0x100013b3
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.10013460
add esp, 0xc
mov eax, dword [esi + 0x10]
mov ecx, eax
neg ecx
jo 0x100013cc
jae 0x100013cc
push 1
push eax
push dword [esi + 0x14]
call fcn.10013460
add esp, 0xc
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
nop
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x30], eax
je 0x10001406
inc eax
lea edx, [ecx + 0x260]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
call fcn.10011480
mov ecx, dword [ebp - 0x28]
jmp 0x100013e0
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1000142b
imul eax, eax, 0x260
push 4
push eax
push dword [ebp - 0x2c]
call fcn.10013460
add esp, 0xc
mov dword [ebp - 0x10], 1
lea eax, [esi + 0x44]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
call fcn.10011a30
add esp, 4
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10001461
shl eax, 4
lea eax, [eax + eax*2]
push 8
push eax
push dword [edi + 0x48]
call fcn.10013460
add esp, 0xc
mov esi, dword [edi + 0x54]
mov edi, dword [edi + 0x58]
test edi, edi
je 0x1000148c
lea ebx, [esi + 0x5c]
jmp 0x10001476
add ebx, 0x78
dec edi
je 0x1000148c
mov eax, dword [ebx - 4]
test eax, eax
je 0x10001470
push 1
push eax
push dword [ebx]
call fcn.10013460
add esp, 0xc
jmp 0x10001470
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x100014a5
imul eax, eax, 0x78
push 8
push eax
push esi
call fcn.10013460
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10006b70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10007950
lea eax, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x10], 5
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
add eax, 0x30
mov dword [ebp - 0x24], eax
push eax
call fcn.1000a630
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10006bd5
shl eax, 3
push 4
push eax
push dword [esi + 0x34]
call fcn.10013460
add esp, 0xc
mov eax, dword [esi + 0x64]
test eax, eax
je 0x10006bf3
lock dec dword [eax]
jne 0x10006bf3
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 4
lea ecx, [eax + 0x64]
call fcn.10007410
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x68]
test esi, esi
je 0x10006c3a
mov edi, dword [ebp - 0x20]
push dword [edi + 0x70]
call dword [sym.imp.kernel32.dll_CloseHandle]
lock dec dword [esi]
mov esi, edi
jne 0x10006c1c
lea eax, [esi + 0x68]
push eax
call fcn.100069c0
add esp, 4
mov eax, dword [esi + 0x6c]
lock dec dword [eax]
jne 0x10006c3a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 3
add eax, 0x6c
push eax
call fcn.10006e40
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 2
add eax, 0x40
push eax
call fcn.10005530
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
lock dec dword [eax]
jne 0x10006c70
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x10], 1
call fcn.10006b10
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x10006c9d
lock dec dword [eax]
jne 0x10006c9d
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x84]
mov dword [ebp - 0x10], 0
call fcn.10006b10
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x88]
test eax, eax
je 0x10006cc7
lock dec dword [eax]
jne 0x10006cc7
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x8c]
mov dword [ebp - 0x10], 0xffffffff
call fcn.10006b10
cmp esi, 0xffffffff
je 0x10006ce2
lock dec dword [esi + 4]
jne 0x10006ce2
push 8
push 0xa8
push esi
call fcn.10013460
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100098e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [edx], 2
movdqa xmmword [ecx], xmm0
ret
Function at 0x1001b630
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
mov cl, 4
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, ebx
or eax, edi
je 0x1001b6aa
xor eax, eax
cmp esi, ebx
sbb eax, edi
mov eax, ebx
cmovb eax, esi
cmp eax, esi
ja 0x1001b783
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x10]
push eax
push dword [esp + 0x48]
push dword [ebp]
push edx
call dword [ecx + 0xc]
add esp, 0x10
movzx eax, byte [esp + 0x10]
cmp al, 4
jne 0x1001b6b9
mov edx, dword [esp + 0x14]
mov eax, edi
mov cl, 4
cmp ebx, edx
sbb eax, 0
jb 0x1001b78f
sub ebx, edx
sbb edi, 0
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edi
mov eax, dword [esp + 0x3c]
test esi, esi
jne 0x1001b6da
jmp 0x1001b76e
xor edx, edx
mov eax, dword [esp + 0x3c]
test esi, esi
jne 0x1001b6da
jmp 0x1001b76e
movzx ecx, byte [esp + 0x13]
movzx edi, word [esp + 0x11]
mov edx, dword [esp + 0x14]
shl ecx, 0x10
or edi, ecx
mov ecx, eax
mov eax, dword [esp + 0x3c]
test esi, esi
je 0x1001b76e
mov dword [esp + 4], edi
mov byte [esp + 3], cl
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov ebp, dword [esp + 0x44]
mov dword [esp + 8], edx
nop word cs:[eax + eax]
nop dword [eax]
mov edx, ecx
mov dword [esp + 0xc], esi
movzx esi, cl
shr ecx, 8
or edx, 3
mov eax, edx
and eax, 0xfffffffe
imul eax, edx
mov edx, ebx
shr ebx, 8
xor ah, byte [ebp]
xor dl, ah
mov byte [ebp], ah
inc ebp
movzx edx, dl
xor ebx, dword [edx*4 + 0x101ce868]
movzx edx, bl
add edx, edi
imul edi, edx, 0x8088405
inc edi
mov edx, edi
shr edx, 0x18
xor esi, edx
xor ecx, dword [esi*4 + 0x101ce868]
mov esi, dword [esp + 0xc]
dec esi
jne 0x1001b700
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 8]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], edi
movzx ecx, byte [esp + 3]
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x3c]
shl edi, 8
movzx ecx, cl
mov dword [eax + 4], edx
or ecx, edi
mov dword [eax], ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x101ceda0
push esi
push eax
call fcn.101cc950
mov dword [esp + 0x10], str.number_of_read_bytes_exceeds_limit
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 0
push 0x101ceddc
lea eax, [esp + 0x14]
push eax
call fcn.101cc530
int3
Function at 0x10023720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
test byte [edx], 1
je 0x1002374e
mov esi, dword [edx + 0x30]
cmp dword [edx + 0x24], 0xffffffff
mov edi, dword [edx + 0x34]
mov ebx, dword [edx + 0x38]
mov ebp, dword [edx + 0x3c]
lea eax, [edx + 8]
mov edx, eax
je 0x10023847
push 0
jmp 0x10023849
xor eax, eax
cmp byte [edx + 0xe], 0
jne 0x1002387f
mov esi, dword [edx + 0x34]
mov ebx, dword [edx + 4]
mov edi, dword [edx + 0x30]
movzx eax, byte [edx + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], esi
jmp 0x10023785
add ebx, ecx
mov dword [edx + 4], ebx
mov ah, al
xor al, 1
test ebx, ebx
je 0x100237a6
cmp ebx, esi
jae 0x100237a0
cmp byte [edi + ebx], 0xbf
jg 0x100237a6
jmp 0x10023889
jne 0x10023889
cmp ebx, esi
je 0x10023857
movzx ecx, byte [edi + ebx]
movzx ebp, cl
test cl, cl
jns 0x1002380d
mov edx, edi
movzx edi, byte [edi + ebx + 1]
and ebp, 0x1f
and edi, 0x3f
cmp cl, 0xdf
jbe 0x100237f8
movzx esi, byte [edx + ebx + 2]
shl edi, 6
and esi, 0x3f
or esi, edi
cmp cl, 0xf0
jb 0x100237ff
movzx ecx, byte [edx + ebx + 3]
shl esi, 6
and ebp, 7
shl ebp, 0x12
and ecx, 0x3f
or ecx, esi
mov esi, dword [esp + 8]
or ebp, ecx
jmp 0x10023808
shl ebp, 6
or ebp, edi
jmp 0x10023808
shl ebp, 0xc
or ebp, esi
mov esi, dword [esp + 8]
mov edi, edx
mov edx, dword [esp]
test ah, 1
jne 0x1002386b
mov ecx, 1
cmp ebp, 0x80
jb 0x10023780
mov ecx, 2
cmp ebp, 0x800
jb 0x10023780
cmp ebp, 0x10000
mov ecx, 4
sbb ecx, 0
jmp 0x10023780
push 1
push ebp
push ebx
push edi
push esi
call fcn.10023160
add esp, 0x20
jmp 0x10023884
test ah, 1
mov byte [edx + 0xc], al
jne 0x10023870
mov ecx, dword [esp + 4]
mov byte [edx + 0xe], 1
xor eax, eax
jmp 0x1002387f
mov esi, ebx
mov byte [edx + 0xc], al
mov ecx, dword [esp + 4]
mov eax, 1
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov dword [ecx], eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [edx + 0xc], al
push 0x101d4ab8
push esi
push ebx
push esi
push edi
call fcn.101ccb20
int3