joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4432b2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4432e7
cmp edi, dword [esi + 0xc]
jge 0x4432e7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4432e7
cmp edi, dword [eax + 8]
jge 0x4432e7
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4432e9
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4433ed
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x443421
jmp fcn.0043532f
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x443492
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x44358b
cmp eax, dword [edi + 0xc]
jge 0x44358b
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4434e3
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x443574
cmp dword [ebp + 0xc], ebx
je 0x443574
jmp 0x44350d
push 0x10
call fcn.0044317e
cmp eax, ebx
je 0x4434f9
mov ecx, eax
call fcn.004433e4
mov esi, eax
jmp 0x4434fb
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x443524
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x443534
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x443546
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043532f
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00427dd0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x443586
cmp ecx, dword [esi + 8]
jge 0x443586
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x44358c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44364a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x443678
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x443696
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004435b4
jmp 0x443696
mov eax, dword [esi + 0x14]
test eax, eax
je 0x443696
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004435b4
test edi, edi
mov eax, edi
jne 0x443680
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4806f4]
test ecx, ecx
je 0x443749
jmp 0x443649
ret 8
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x7e542a99
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x572f1c3c
nop
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128
Function at 0x74980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x9b01c]
push edi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0xc704ba
nop
push eax
nop
call 0x7741e026
mov ebx, eax
push 0xa4fb0
mov dword [ebp - 4], ebx
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
mov byte [ebx + edi], 0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x74a9a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x752243d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0xa4fb0
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x74a26
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
push 0xa4fb0
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0xc704bf
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x76e30
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x76ed1
mov eax, dword [ebx]
push 0x40
push eax
push esi
call 0x75219910
nop
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x76f00
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x76f00
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x76ed1
mov ecx, dword [ebx]
push edi
push 0xf8
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x75219910
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x76f00
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x76f00
movzx eax, word [esi + 0x46]
test ax, ax
je 0x76f00
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.002a90f4]
push eax
call dword [fcn.002a9088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x76ed7
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.000774d0
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x568010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor eax, eax
push esi
push edi
cmp byte [0x9d014], al
je 0x56802d
inc eax
cmp byte [eax + 0x9d014], 0
jne 0x568023
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
inc eax
call fcn.00546a40
mov dword [esi], eax
test eax, eax
je 0x56804b
push 0x9d014
push eax
call dword [fcn.002a9134]
mov esi, dword [0x2a8aa4]
xor eax, eax
cmp byte [esi], al
je 0x56805e
inc eax
cmp byte [esi + eax], 0
jne 0x568057
inc eax
call fcn.00546a40
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x568075
push esi
push ebx
call dword [fcn.002a9134]
lea eax, [ebp - 0x24]
push eax
call dword [0x2a9044]
mov eax, dword [ebp - 0x16]
xor edi, edi
lea esi, [eax + eax*4]
mov word [0x2a8ec0], si
cmp dword [ebp + 0xc], edi
jle 0x5680e9
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx ecx, si
mov dword [ebp - 4], eax
mov edi, edi
mov eax, ecx
shr eax, 2
xor eax, ecx
shr eax, 1
xor eax, ecx
shr eax, 2
xor eax, ecx
and eax, 1
mov dword [0x2a8ec4], eax
shl eax, 0xf
shr si, 1
or si, ax
movzx ecx, si
xor edx, edx
mov ebx, 0xb
mov eax, ecx
div ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
inc edi
mov dl, byte [edx + ebx]
mov byte [eax + edi - 1], dl
cmp edi, dword [ebp + 0xc]
jl 0x5680a0
mov word [0x2a8ec0], si
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx], 0
test ebx, ebx
je 0x568161
mov ecx, dword [ebx - 8]
lea eax, [ebx - 0x10]
mov dword [eax], 1
test ecx, ecx
je 0x568131
cmp dword [ecx], 0
je 0x568131
cmp dword [0x2a91c4], ecx
jne 0x56811b
mov dword [0x2a91c4], eax
mov esi, dword [ecx + 4]
add dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x568131
mov dword [ecx + 0xc], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x568161
cmp dword [ecx], 0
je 0x568161
cmp dword [0x2a91c4], eax
jne 0x56814b
mov dword [0x2a91c4], ecx
mov esi, dword [eax + 4]
add dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov eax, dword [eax + 8]
test eax, eax
je 0x568161
mov dword [eax + 0xc], ecx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56a520
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x2a90e0]
test esi, esi
jne 0x56a538
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x56a531
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x56a531
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x56a59a
jmp 0x56a580
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x2a8bf0]
add eax, esi
call fcn.00567fb0
test eax, eax
je 0x56a5a3
inc edi
cmp edi, dword [ebp - 4]
jb 0x56a580
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x336f302b
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x36ba1a7c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1000c2d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push edi
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 0x10]
mov dword [esp + 0xc], ebx
lea ecx, [edx + edi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x1000c413
push esi
mov esi, dword [esp + 0x2c]
lea ebx, [ebx]
cmp ebp, edx
jb 0x1000c37b
mov ecx, dword [eax + 0x14]
mov ebp, dword [esp + 0x28]
push edi
lea eax, [ecx + 1]
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x1000c334
push edx
push edi
push ebx
call fcn.10003e90
mov ebp, dword [esp + 0x34]
jmp 0x1000c344
mov ebp, dword [esp + 0x28]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.1000a830
add esp, 0x10
push ebx
call fcn.1000a1e0
push dword [esp + 0x18]
push edi
push ebx
call fcn.1000a210
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.1000a210
push dword [esp + 0x34]
push ebx
call fcn.1000a240
mov edx, dword [esp + 0x38]
add esp, 0x24
mov ecx, dword [esp + 0x30]
xor ebp, ebp
mov eax, edx
mov edi, ecx
sub eax, ebp
cmp ecx, eax
mov ecx, dword [esp + 0x18]
cmova edi, eax
add ecx, ebp
cmp dword [esp + 0x34], 0
je 0x1000c41f
xor ebx, ebx
test edi, edi
je 0x1000c3f0
cmp edi, 0x10
jb 0x1000c3dd
lea eax, [ecx - 1]
lea edx, [esi - 1]
add eax, edi
add edx, edi
cmp esi, eax
ja 0x1000c3b4
cmp edx, ecx
jae 0x1000c3dd
mov eax, edi
mov edx, edi
and eax, 0xf
sub edx, eax
lea ecx, [ecx]
movdqu xmm1, xmmword [ecx]
add ebx, 0x10
add ecx, 0x10
movdqu xmm0, xmmword [esi]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
add esi, 0x10
cmp ebx, edx
jb 0x1000c3c0
cmp ebx, edi
jae 0x1000c3f0
mov edx, edi
sub ecx, esi
sub edx, ebx
mov al, byte [ecx + esi]
xor byte [esi], al
inc esi
dec edx
jne 0x1000c3e7
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add ebp, edi
mov edx, dword [esp + 0x14]
sub ecx, edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
jne 0x1000c310
pop esi
pop edi
mov dword [eax + 0x10], ebp
xor eax, eax
pop ebp
pop ebx
add esp, 0x10
ret
push edi
push ecx
push edi
push esi
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
add esi, edi
jmp 0x1000c3f4
Function at 0x1000e520
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x1005fe78]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
test edi, edi
je 0x1000e67b
lea eax, [esp + 0x10]
push eax
push 0x400
push dword [esi + 0x1c]
call fcn.1003a010
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1000e661
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.MSVCR120.dll__stat64i32]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push 0x30
push eax
push esi
call fcn.1003bb30
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1000e661
lea ebp, [eax + 0x30]
cmp dword [esp + 0x18], eax
jge 0x1000e5ac
mov ebx, 0x2711
jmp 0x1000e661
mov esi, dword [esp + 0x60]
test esi, esi
jle 0x1000e65d
push 0x1004e33c
push edi
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000e65d
mov edi, 0x400
cmp esi, edi
push eax
cmovl edi, esi
push edi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x1000e63d
push edi
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.1003bb30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1000e650
add ebp, dword [esp + 0x1c]
sub esi, edi
test esi, esi
jle 0x1000e63d
push dword [esp + 0x18]
mov edi, 0x400
cmp esi, edi
cmovl edi, esi
push edi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jg 0x1000e5f6
push 0x400
push 0
push dword [esp + 0x18]
call sub.MSVCR120.dll_memset
add esp, 0xc
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000e675
push eax
push dword [esi + 0x1c]
call fcn.10039ff0
add esp, 8
mov eax, ebx
test ebp, ebp
jne 0x1000e680
mov eax, 0x2711
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10003e90
add esp, 0x44
ret
Function at 0x10034340
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x1005fe78]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x98], 0
je 0x10034379
push 0
push 1
push dword [esi + 0x38]
lea eax, [esi + 8]
push eax
push dword [esi]
call fcn.100331a0
add esp, 0x14
test eax, eax
jne 0x1003443e
push 0x10
push dword [esi + 0x3c]
lea eax, [esp + 0xc]
push 0x10
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
mov eax, 0xf
inc byte [esp + eax + 4]
jne 0x1003439c
dec eax
jns 0x10034393
push ebp
push 0x10
lea eax, [esp + 0xc]
push eax
lea ebp, [esi + 8]
push ebp
push dword [esi]
call fcn.100268f0
add esp, 0x10
test eax, eax
jne 0x1003443d
mov eax, 0xf
nop
inc byte [esp + eax + 8]
jne 0x100343c9
dec eax
jns 0x100343c0
push 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esi + 0x18]
push eax
push dword [esi]
call fcn.10003e90
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1003443b
cmp dword [esi + 0x38], 0x10
jbe 0x10034414
mov eax, 0xf
nop
inc byte [esp + eax + 8]
jne 0x100343f9
dec eax
jns 0x100343f0
push 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esi + 0x28]
push eax
push dword [esi]
call fcn.100268f0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1003443b
push edi
mov edi, dword [esp + 0x2c]
xor ecx, ecx
test edi, edi
jle 0x10034430
push ebx
mov ebx, dword [esp + 0x2c]
mov al, byte [ecx + ebx]
xor byte [ecx + ebp], al
inc ecx
cmp ecx, edi
jl 0x10034424
pop ebx
mov dword [esi + 0x98], 1
pop edi
mov eax, edx
pop ebp
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.1004475d
add esp, 0x14
ret

Function at 0x10034680
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x10
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov dword [esp + 0x10], 0
mov esi, dword [edi + 0x8c]
lea ebx, [edi + 0x50]
lea eax, [esi + 0x3f]
cdq
and edx, 0x3f
add eax, edx
and eax, 0xffffffc0
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, ecx
cmovb eax, ecx
mov dword [edi + 0x38], eax
mov ecx, eax
lea eax, [edi + 8]
add eax, ecx
mov dword [edi + 0x3c], eax
lea eax, [ecx + 0x10]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
push esi
push 0
push dword [edi + 4]
call fcn.1000e290
add esp, 0x18
test eax, eax
jne 0x10034773
cmp dword [edi + 0x90], eax
je 0x10034737
mov eax, dword [edi + 0x94]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
cmova ecx, eax
xor eax, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x10034723
jmp 0x10034710
mov ecx, dword [edi + 0x90]
mov cl, byte [eax + ecx]
xor byte [ebx + eax], cl
inc eax
cmp eax, dword [esp + 0x10]
jl 0x10034710
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
push 0x30
lea eax, [edi + 8]
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [edi + 0x38]
add eax, 0x10
mov dword [edi + 0x98], 1
push eax
push ebx
push edi
call fcn.10034340
add esp, 0x18
test eax, eax
jne 0x10034773
mov dword [edi + 0x80], 1
mov dword [edi + 0x84], eax
pop edi
pop esi
pop ebx
ret
Function at 0x10034910
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x1005fe78]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 8], 0
mov eax, dword [edi + 0x38]
lea esi, [edi + 0x50]
add eax, 0x10
push eax
lea eax, [esp + 0xc]
push eax
push esi
push dword [edi + 0x8c]
push 0
push dword [edi + 4]
call fcn.1000e290
add esp, 0x18
test eax, eax
jne 0x10034a7d
mov edx, dword [esp + 8]
cmp edx, dword [esp + 0x2c]
push ebx
cmova edx, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0xc], edx
test edx, edx
jle 0x1003497e
mov ebx, dword [esp + 0x2c]
mov al, byte [ecx + ebx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, edx
jl 0x10034973
cmp dword [edi + 0x98], 0
mov eax, dword [edi + 0x38]
lea ebx, [eax + 0x10]
je 0x100349aa
push 0
push 1
push eax
lea eax, [edi + 8]
push eax
push dword [edi]
call fcn.10003e90
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x10034a66
push 0x10
push dword [edi + 0x3c]
lea eax, [esp + 0x18]
push 0x10
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
mov eax, 0xf
inc byte [esp + eax + 0x10]
jne 0x100349cd
dec eax
jns 0x100349c4
push 0x10
lea eax, [esp + 0x14]
push eax
lea esi, [edi + 8]
push esi
push dword [edi]
call fcn.100268f0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x10034a66
mov eax, 0xf
inc byte [esp + eax + 0x10]
jne 0x100349fa
dec eax
jns 0x100349f1
push 0x10
lea eax, [esp + 0x14]
push eax
lea eax, [edi + 0x18]
push eax
push dword [edi]
call fcn.100268f0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x10034a66
cmp dword [edi + 0x38], 0x10
jbe 0x10034a44
mov eax, 0xf
inc byte [esp + eax + 0x10]
jne 0x10034a29
dec eax
jns 0x10034a20
push 0x10
lea eax, [esp + 0x14]
push eax
lea eax, [edi + 0x28]
push eax
push dword [edi]
call fcn.100268f0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x10034a66
test ebx, ebx
jle 0x10034a5c
jmp 0x10034a50
mov al, byte [esi + 0x48]
lea esi, [esi + 1]
xor byte [esi - 1], al
dec ebx
jne 0x10034a50
mov dword [edi + 0x98], 1
mov eax, ecx
pop ebx
test ecx, ecx
jne 0x10034a7d
mov dword [edi + 0x80], 1
mov dword [edi + 0x84], ecx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.1004475d
add esp, 0x18
ret