joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ed55
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004130c0
mov eax, dword [0x45aa54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041e35a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ed97
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41eef3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004133d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x462b20]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041b560
mov ecx, dword [esi*4 + 0x462b20]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41eeec
cmp eax, dword [ecx + edi + 0x24]
jne 0x41eeec
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41eeec
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b560
add esp, 0x14
test edx, edx
jl 0x41eeec
jg 0x41ee62
test eax, eax
jb 0x41eeec
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41eeec
jl 0x41ee7c
cmp dword [ebp - 0x1008], eax
ja 0x41eeec
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ee9a
test ebx, ebx
je 0x41eed3
cmp ecx, edi
jae 0x41eed3
mov al, byte [ecx]
cmp al, 0xd
jne 0x41eeb4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41eec0
cmp byte [ecx + 1], 0xa
jne 0x41eec0
inc ecx
jmp 0x41eec0
movzx eax, al
movsx eax, byte [eax + 0x45abd0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ee9a
cmp edx, ebx
jne 0x41ee9a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41eef1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004130ab
leave
ret
Function at 0x4226c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x462b20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x422705
cmp byte [ebx], 0xa
jne 0x422705
or byte [edi + eax + 0x28], 4
jmp 0x42270a
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x422809
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4227ec
inc eax
cmp dl, 0xd
je 0x422736
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42275c
cmp eax, ecx
jae 0x42276a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42271e
jmp 0x422809
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4227e7
cmp dword [ebp - 0x10], 0
je 0x4227e7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x462b20]
test byte [eax + edi + 0x28], 0x48
je 0x4227c1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4227ac
mov byte [esi], dl
jmp 0x4227bd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x462b20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x422809
cmp byte [ebp - 1], 0xa
jne 0x4227d0
cmp esi, ebx
jne 0x4227d0
mov byte [esi], 0xa
jmp 0x422808
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b57e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422809
mov byte [esi], 0xd
jmp 0x422808
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x462b20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422806
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422809
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422812
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x462b20]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x422858
cmp word [ebx], dx
jne 0x422858
or byte [eax + edi + 0x28], 4
jmp 0x42285d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4229c0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4229a0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42289e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4228d4
cmp eax, edx
jae 0x4228e2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x422879
jmp 0x4229c0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42299b
cmp dword [ebp - 0x18], 0
je 0x42299b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x462b20]
test byte [eax + edi + 0x28], 0x48
je 0x422971
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x422935
mov word [esi], cx
jmp 0x42296c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x462b20]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x462b20]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x462b20]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4229c0
pop eax
cmp word [ebp - 4], ax
jne 0x422981
cmp esi, ebx
jne 0x422981
mov word [esi], ax
jmp 0x4229bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b57e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4229c0
push 0xd
pop eax
jmp 0x42297c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x462b20]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4229ba
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4229c0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423ee7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x450180
push 0x450178
push str.FlsAlloc
push 0x1f
call fcn.00423da6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423f1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4311f0]
call esi
jmp 0x423f21
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x423f65
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x450190
push 0x450188
push str.FlsGetValue
push 0x21
call fcn.00423da6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423f9c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4311f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x423fa4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x450198
push 0x450190
push str.FlsSetValue
push 0x22
call fcn.00423da6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423fde
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4311f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x429fad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42a04a
push ebx
push esi
call fcn.00429f76
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00425fb9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x429ff7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42a049
push edi
push eax
call fcn.00424482
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42a017
call fcn.00423c05
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42a048
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00425fb9
add esp, 0x20
test eax, eax
jne 0x42a036
push edi
call fcn.00423c05
jmp 0x42a03e
push ebx
call fcn.00423c05
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42a04d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42a05e
pop esi
ret
push ebx
push edi
push esi
call fcn.00429f76
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00424482
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42a086
push ebx
push esi
push edi
call fcn.00414920
add esp, 0xc
push 0
call fcn.00423c05
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42a7e0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a2fb

Function at 0x42f590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f5bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f5bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4239f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x423a05
pop dword [ebp - 8]
mov eax, 0x3e29c2ff
add eax, 0xc2187706
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3def5
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x550d
mov ebx, eax
mov esi, 0x567a5a52
add esi, 0xa9ca6bae
add esi, dword [ebp - 8]
mov edi, 0xbc625d7e
sub edi, 0x5650588f
mov dword [ebp - 4], 0x7fb2405d
mov edx, dword [esi]
xor dword [ebp - 4], edx
sub edx, edi
add dword [ebp - 4], edx
mov dword [ebx], edx
mov dword [ebp - 4], 0xb3492fac
add ebx, 0xb921fadc
add ebx, 0x46de0528
add esi, 0x8659fe9
sub esi, 0x8659fe5
loop 0x423a59
add eax, 0x14707
mov ebx, eax
add eax, 0x89c87e4c
add eax, 0x763781b9
mov ecx, 0x52f90140
add ecx, 0xad46fec0
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4281f2
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x436de3
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43a908
mov dword [esi + 4], 0x43a8f4
mov dword [esi + 8], 0x438e70
mov dword [esi + 0xc], 0x43a8d8
mov dword [esi + 0x10], 0x43a8c4
mov dword [esi + 0x14], 0x43a8b4
mov dword [esi + 0x18], 0x438e60
mov dword [esi + 0x1c], 0x438e50
mov dword [esi + 0x20], 0x43a8ac
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.004028e9
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004028e9
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
or dword [esi + 0x9c], 0xffffffff
mov byte [ebp - 4], 7
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
mov byte [esi + 0xa6], bl
mov byte [esi + 0xa7], bl
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov dword [esi + 0xac], ebx
mov dword [esi], 0x43a880
mov dword [esi + 4], 0x43a86c
mov dword [esi + 8], 0x43a854
mov dword [esi + 0xc], 0x43a838
mov dword [esi + 0x10], 0x43a824
mov dword [esi + 0x14], 0x43a814
mov dword [esi + 0x18], 0x43a804
mov dword [esi + 0x1c], 0x43a7f4
mov dword [esi + 0x20], 0x43a7ec
call fcn.0040d4f9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x28], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x366a78a4
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
mov ecx, 0x580d3b88
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x100024b5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x1006f6a0
push eax
lea eax, [ebp - 0x28]
xor esi, esi
push eax
call fcn.1004a893
add esp, 0xc
test eax, eax
jne 0x1000251d
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push 0x20
push 1
push eax
call fcn.1004ab9c
add esp, 0x10
cmp eax, 0x20
jne 0x10002514
push 8
lea eax, [ebp - 0x24]
push str.QHDIFF01
push eax
call fcn.10047295
add esp, 0xc
test eax, eax
push 2
pop ecx
cmove esi, ecx
push dword [ebp - 0x28]
call fcn.1004a950
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10041739
leave
ret
Function at 0x1000393a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
test edi, edi
je 0x1000394b
mov dword [edi], ecx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10003a97
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x13c4], ecx
test eax, eax
je 0x10003a97
mov ebx, dword [ebp + 0x14]
test ebx, ebx
js 0x10003a97
cmp byte [esi + 0x1390], cl
je 0x1000398d
test edi, edi
je 0x10003981
or dword [edi], 0xffffffff
or dword [esi + 0x13c4], 0xffffffff
jmp 0x10003aaa
test ebx, ebx
jne 0x100039a2
test edi, edi
je 0x10003997
mov dword [edi], ecx
mov dword [esi + 0x13c4], ecx
jmp 0x10003aaa
mov dword [esi + 0x13a8], ebx
mov dword [esi + 0x13a4], eax
jmp 0x10003a46
cmp dword [esi + 0x1398], 0
jne 0x10003a03
push dword [esi]
call fcn.10002b96
pop ecx
test al, al
jne 0x10003a03
push dword [esi]
lea eax, [esi + 4]
push 0x1388
push 1
push eax
call fcn.1004ab9c
push dword [esi]
mov dword [ebp + 8], eax
call fcn.1004bc17
add esp, 0x14
test eax, eax
jne 0x10003a56
mov eax, dword [ebp + 8]
mov dword [esi + 0x138c], eax
mov dword [esi + 0x1398], eax
lea eax, [esi + 4]
mov dword [esi + 0x1394], eax
lea eax, [esi + 0x1394]
push eax
call fcn.10003733
test eax, eax
jne 0x10003a7a
push dword [esi]
call fcn.10002b96
pop ecx
test al, al
je 0x10003a3c
xor eax, eax
cmp dword [esi + 0x1398], eax
jne 0x10003a3e
cmp dword [esi + 0x13a8], eax
jbe 0x10003a3e
push 0xfffffffffffffff9
pop eax
test edi, edi
je 0x10003aa4
mov dword [edi], eax
jmp 0x10003aa4
xor eax, eax
cmp dword [esi + 0x13a8], eax
je 0x10003a6c
push dword [esi]
call fcn.1004bc17
pop ecx
test eax, eax
je 0x100039b3
test edi, edi
je 0x10003a60
mov dword [edi], 0xfffffffa
mov dword [esi + 0x13c4], 0xfffffffa
jmp 0x10003aaa
test edi, edi
je 0x10003a72
mov dword [edi], eax
mov dword [esi + 0x13c4], eax
jmp 0x10003a93
push 4
pop ecx
cmp eax, ecx
jne 0x10003a34
test edi, edi
je 0x10003a87
mov dword [edi], ecx
sub ebx, dword [esi + 0x13a8]
mov dword [esi + 0x13c4], ecx
mov eax, ebx
jmp 0x10003aac
push 0xfffffffffffffffe
pop eax
test edi, edi
je 0x10003aa0
mov dword [edi], eax
test esi, esi
je 0x10003aaa
mov dword [esi + 0x13c4], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x10007632
movsx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1008ecb0]
inc esi
sub edx, 1
jne 0x1000761a
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x10007755
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 4]
push edi
xor edi, edi
push edi
push 1
push edi
push edi
push eax
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x10007796
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x10007792
push 8
push 1
push edi
push edi
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
jne 0x10007796
xor eax, eax
jmp 0x100077b3
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push edi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x1000adf0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x30]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x38], ecx
push edi
push eax
push 0x18
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
push eax
push esi
call ebx
test eax, eax
je 0x1000af05
cmp dword [ebp - 0x30], 0x18
jne 0x1000af05
cmp dword [ebp - 0x2c], 3
jne 0x1000af05
mov eax, dword [ebp - 0x28]
mov ecx, 0x23c
cmp eax, ecx
jb 0x1000af05
xor edx, edx
div ecx
test edx, edx
jne 0x1000af05
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xa00000
jg 0x1000af05
cmp dword [ebp - 0x34], edi
jne 0x1000af05
mov edx, dword [ebp - 0x28]
lea ecx, [edx + 0x18]
cmp eax, ecx
jne 0x1000af05
push edx
call fcn.100413ba
mov edi, eax
pop ecx
test edi, edi
je 0x1000af05
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
push edi
push esi
call ebx
test eax, eax
je 0x1000aef6
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x30], eax
jne 0x1000aef6
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call fcn.1000cfa2
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10047295
add esp, 0x18
test eax, eax
jne 0x1000aef6
mov ebx, dword [ebp - 0x38]
lea esi, [ebx + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
xor edx, edx
mov ecx, 0x23c
div ecx
mov ecx, ebx
push eax
push edi
call fcn.1000ba90
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
push edi
call fcn.100413ac
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1000af07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041739
leave
ret 4
Function at 0x1000b16d
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x10069f67
call fcn.100417b5
mov edi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000b2d6
xor esi, esi
cmp dword [edi + 0x28], esi
jne 0x1000b195
xor eax, eax
inc eax
jmp 0x1000b2d6
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
push esi
push esi
push 0x80
push 2
push 7
push 0x40000000
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.1000ab40
mov ebx, dword [ebp - 0x3c]
test eax, eax
jne 0x1000b2c9
lea eax, [edi + 0xc]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
imul eax, dword [edi + 8], 0x23c
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1000b1f6
lea eax, [edi + 0xc]
mov dword [edi + 0x28], esi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000b2c6
push eax
call fcn.100413ba
mov dword [ebp - 0x30], eax
pop ecx
test eax, eax
jne 0x1000b213
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000b2c9
mov ecx, dword [edi + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
cmp eax, ecx
je 0x1000b250
mov ebx, dword [ebp - 0x34]
push 0x23c
add eax, 0x14
push eax
push ebx
call fcn.10046290
add esp, 0xc
lea ecx, [ebp - 0x2c]
add ebx, 0x23c
call fcn.10006a8b
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edi + 4]
jne 0x1000b225
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x30]
call fcn.1000cfa2
add esp, 0xc
mov dword [edi + 0x28], esi
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d0
push 1
push ebx
call fcn.1000def4
add esp, 0xc
test eax, eax
je 0x1000b2ba
push esi
lea eax, [ebp - 0x34]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000b29e
call fcn.1000ab29
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x30]
call fcn.1000b399
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push 1
push dword [ebp - 0x30]
call fcn.100413ac
pop ecx
pop ecx
xor esi, esi
inc esi
test ebx, ebx
je 0x1000b2d4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.1004175f
ret 4