joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5aa649
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005aa46d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5aa7b8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5aa7b8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5aa76d
jg 0x5aa6a5
test eax, eax
je 0x5aa763
push 1
push 0x1000
call fcn.00592987
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5aa6c8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5aa75a
push 0x8000
push ebx
call fcn.0058c269
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5aa6f1
jg 0x5aa6ec
cmp ecx, 0x1000
jb 0x5aa6f1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00595357
add esp, 0x10
cmp eax, 0xffffffff
je 0x5aa736
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5aa6ec
jl 0x5aa71d
test ecx, ecx
jne 0x5aa6de
push dword [ebp - 0xc]
push ebx
call fcn.0058c269
push esi
call fcn.0058f52d
add esp, 0xc
xor ebx, ebx
jmp 0x5aa7c6
cmp byte [edi + 0x24], 0
je 0x5aa74d
cmp dword [edi + 0x20], 5
jne 0x5aa74d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5aa758
mov ebx, dword [edi + 0x18]
jmp 0x5aa75a
xor ebx, ebx
push esi
call fcn.0058f52d
pop ecx
jmp 0x5aa7c6
test ecx, ecx
jg 0x5aa72f
jl 0x5aa76d
test eax, eax
jae 0x5aa72f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005949c0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5aa78d
cmp byte [edi + 0x1c], 0
je 0x5aa72f
jmp 0x5aa7be
push ebx
call fcn.005921d1
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x5aa72f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5aa7c6
cmp byte [edi + 0x1c], 0
je 0x5aa7c3
mov ebx, dword [edi + 0x18]
jmp 0x5aa7c6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005949c0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ae327
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x5ae34a
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x5ae3e7
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.005ad87b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5ae36d
push ebx
call fcn.0056d1c3
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x5ae3c3
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x65b400]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x5ae398
call fcn.0056d1c3
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x5ae3c3
push esi
push 1
push eax
call fcn.0056df45
push ebx
mov esi, eax
call fcn.0056d1c3
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x5ae3cc
push dword [ebp - 4]
call dword [0x65b404]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x5ae3e6
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.005ae29f
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x5b1e40
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.005c1ce1
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x5b22f1
xor eax, eax
jmp 0x5b23ed
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x545d8d
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
call fcn.005b3d21
push esi
push eax
call fcn.00545da0
add esp, 0x14
test eax, eax
je 0x5b232c
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.005c1e9c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.005b3d03
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.005b5c22
add esp, 0x28
test eax, eax
jne 0x5b2363
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
cmp dword [ebp - 8], esi
jne 0x5b23a4
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.005c1e6d
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x5b239f
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
je 0x5b23d4
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.005c1dae
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.005c1d68
add esp, 0x14
jmp 0x5b22ea
push esi
push esi
push esi
push dword [ebp - 4]
call fcn.005c1c30
push dword [ebp - 4]
call fcn.005b26c6
mov eax, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
leave
ret
Function at 0x5b58ce
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x5b5904
push edi
mov edi, 0x10c
cmp dword [ebp + 0xc], edi
jae 0x5b58f7
push eax
call fcn.005c1d54
push 2
call fcn.005c1ccd
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call fcn.005423a0
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x5b763e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.005c1ce1
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x5b766b
xor eax, eax
jmp 0x5b780f
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x545d8d
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2ac], esi
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2b0], esi
call fcn.005b3d21
push esi
push eax
call fcn.00545da0
add esp, 0x14
test eax, eax
je 0x5b76b8
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.005c1e9c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.005b3d03
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.005b5c22
add esp, 0x28
test eax, eax
jne 0x5b76ef
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
jne 0x5b772b
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.005c1e6d
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x5b772b
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0x5b5e26
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x9c], fcn.005b5e75
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], ecx
cmp dword [ebp - 8], esi
jne 0x5b77ab
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.5
push eax
call fcn.005c9b53
add esp, 0xc
cmp eax, 0xfffffffa
je 0x5b7794
cmp eax, 0xfffffffc
je 0x5b778d
cmp eax, 0xfffffffe
je 0x5b7786
test eax, eax
je 0x5b77a6
push str.Unknown_zlib_error
jmp 0x5b7799
push str.zlib_stream_error
jmp 0x5b7799
push str.zlib_memory_error
jmp 0x5b7799
push str.zlib_version_error
push dword [ebp - 4]
call fcn.005b3d3d
pop ecx
mov dword [ebp - 8], edi
pop ecx
cmp dword [ebp - 8], esi
je 0x5b77db
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.005c1dae
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.005c1d68
add esp, 0x14
jmp 0x5b7664
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push esi
push esi
mov eax, dword [eax + 0xb0]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [eax + 0xb4]
mov dword [ecx + 0x88], eax
call fcn.005bd876
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x5c806b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x2c]
mov edx, dword [edi + 0x74]
mov dword [ebp - 0xc], ebx
mov eax, dword [edi + 0x2c]
mov esi, dword [edi + 0x3c]
add eax, 0xfffffefa
sub esi, dword [edi + 0x6c]
add eax, ebx
sub esi, edx
mov dword [ebp - 8], esi
cmp dword [edi + 0x6c], eax
jb 0x5c8114
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.00541e20
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
mov esi, ecx
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
movzx ecx, bx
movzx eax, word [edi]
mov edx, eax
mov dword [ebp - 4], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x5c80c2
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, dword [edi + 0x40]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx eax, word [edi]
mov edx, eax
sub eax, dword [ebp - 4]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x5c80ef
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, ebx
mov ebx, dword [edi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x5c8238
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x74]
add edx, ecx
add edx, dword [edi + 0x38]
cmp eax, esi
mov dword [ebp - 4], edx
cmovbe esi, eax
test esi, esi
je 0x5c8182
sub eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x5c8155
push esi
push dword [ebx]
push dword [ebx + 0x30]
call fcn.005cbcef
jmp 0x5c8165
cmp eax, 2
jne 0x5c816e
push esi
push dword [ebx]
push dword [ebx + 0x30]
call fcn.005c9fdb
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [ebx + 0x30], eax
push esi
push dword [ebx]
push edx
call fcn.00541e20
add dword [ebx], esi
add esp, 0xc
add dword [ebx + 8], esi
mov ecx, dword [edi + 0x74]
lea edx, [ecx + esi]
mov dword [ebp - 8], edx
mov dword [edi + 0x74], edx
cmp edx, 3
jb 0x5c81b2
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
mov edx, dword [ebp - 8]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp edx, 0x106
jae 0x5c81ca
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x5c81ca
mov ebx, dword [ebp - 0xc]
jmp 0x5c8080
mov ecx, dword [edi + 0x16c0]
mov esi, dword [edi + 0x3c]
cmp ecx, esi
jae 0x5c8238
mov ebx, dword [edi + 0x6c]
add ebx, edx
cmp ecx, ebx
jae 0x5c8208
mov eax, 0x102
sub esi, ebx
cmp esi, eax
cmova esi, eax
mov eax, dword [edi + 0x38]
push esi
add eax, ebx
push 0
push eax
call fcn.005423a0
lea eax, [esi + ebx]
add esp, 0xc
mov dword [edi + 0x16c0], eax
jmp 0x5c8238
lea eax, [ebx + 0x102]
cmp ecx, eax
jae 0x5c8238
sub ebx, ecx
sub esi, ecx
lea eax, [ebx + 0x102]
cmp eax, esi
cmovbe esi, eax
mov eax, dword [edi + 0x38]
push esi
add eax, ecx
push 0
push eax
call fcn.005423a0
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5c9fdb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x5c9fe8
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.005ca0df
Function at 0x402120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c40
call fcn.004032c0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr edx, 0xa
xor dl, 1
shr ecx, 0xe
and dl, 5
and cl, 3
add dl, 3
add cl, 5
movsx edx, dl
movsx ecx, cl
imul edx, ecx
movsx ecx, al
movsx edx, dl
imul edx, ecx
mov byte [ebp + eax - 0x50c08], dl
inc eax
cmp eax, 0x50bfe
jb 0x4021a3
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c3c], 0x50bfe
mov dword [ebp - 0x50c40], eax
lea eax, [ebp - 0x50c40]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
mov dword [ebp - 0x50c24], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040260e
mov esp, ebp
pop ebp
ret
Function at 0x402e3e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402e7d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402e7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402e7d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402e7d
cmp dword [ecx + 0x74], 0xe
jbe 0x402e7d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100223a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov edi, 0x1000
push edi
mov esi, 0x100faa0
push esi
call dword [sym.imp.msvcrt.dll__vsnwprintf]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor ecx, ecx
add esp, 0x10
add eax, 0x40
cmp dword [ebp + 8], eax
setne cl
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test al, 1
mov dword [ebp + 8], eax
push 0
je 0x1002294
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10022c2
push 0
push edi
mov edi, 0x1011aa0
push edi
push dword [ebp - 4]
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x10022cb
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10022cb
mov eax, dword [ebp - 8]
jmp 0x10022cd
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1002b07
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x1002cc9
mov eax, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.msvcrt.dll_calloc]
inc eax
push 1
push eax
call edi
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x1002b52
push 8
pop eax
jmp 0x1002cc8
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x1002cc8
mov eax, dword [ebp + 0x18]
cmp dword [eax], ebx
jne 0x1002ca4
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x1002ca4
cmp dword [ebp + 0x14], ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ebx
jne 0x1002ba1
mov eax, 0x1012aa0
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
add esi, 0x64
push 2
push esi
call edi
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1002bc2
xor eax, eax
jmp 0x1002cc8
push 2
push esi
call edi
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x1002bdd
push ebx
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x1002cc7
push esi
push edi
push 0x8f
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x1002bf8
mov eax, 0x1012aa0
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
add esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push ebx
push eax
call fcn.0100223a
push dword [sym.imp.msvcrt.dll__iob]
call dword [sym.imp.msvcrt.dll_fgetwc]
add esp, 0xc
mov esi, eax
call dword [sym.imp.msvcrt.dll__flushall]
movzx eax, si
cmp eax, 0x61
je 0x1002c45
cmp eax, 0x6e
je 0x1002c45
cmp eax, 0x79
jne 0x1002c4c
mov dword [ebp + 0xc], 1
cmp dword [ebp + 0xc], 0
je 0x1002c0d
push ebx
call edi
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], 0x1001504
push eax
call fcn.0100223a
cmp si, 0x61
pop ecx
pop ecx
je 0x1002c99
cmp si, 0x41
je 0x1002c99
cmp si, 0x79
je 0x1002ca2
cmp si, 0x59
je 0x1002ca2
cmp si, 0x6e
je 0x1002bbb
cmp si, 0x4e
jne 0x1002ca2
jmp 0x1002bbb
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
xor ebx, ebx
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1003418
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x100358f
mov eax, dword [ebp - 4]
inc eax
push edi
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x1003466
push 8
pop eax
jmp 0x100358f
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x1003482
mov esi, eax
jmp 0x1003585
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.01003396
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jne 0x100349f
mov ebx, 0x1012aa0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x20
push 0x10015b8
push eax
call fcn.0100223a
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp eax, 3
je 0x1003546
jbe 0x100352d
cmp eax, 5
jbe 0x1003524
cmp eax, 7
jne 0x100352d
mov eax, dword [ebp - 4]
add eax, edi
cmp edi, eax
mov esi, edi
jae 0x100356e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
cmp word [esi], 0
jne 0x1003500
push 0x1001244
push eax
call fcn.0100223a
pop ecx
inc esi
pop ecx
inc esi
jmp 0x1003519
push esi
push 0x100145c
push eax
call fcn.0100223a
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x10
lea esi, [esi + eax*2]
mov eax, dword [ebp - 4]
add eax, edi
cmp esi, eax
jb 0x10034e1
jmp 0x100356e
push dword [edi]
push 0x10015ac
jmp 0x1003533
push edi
push 0x100145c
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.0100223a
add esp, 0xc
jmp 0x100356e
xor esi, esi
cmp dword [ebp - 4], esi
jbe 0x100356e
movzx eax, byte [esi + edi]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x10015a0
push eax
call fcn.0100223a
add esp, 0xc
inc esi
cmp esi, dword [ebp - 4]
jb 0x100354d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x1001504
push eax
call fcn.0100223a
pop ecx
pop ecx
xor esi, esi
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1003eb3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0xc]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1003fac
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1003f09
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003fa9
mov eax, dword [ebp - 0x10]
inc dword [ebp - 8]
imul eax, dword [ebp - 8]
push ebx
push edi
push 2
push eax
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
xor ebx, ebx
cmp dword [ebp - 0x10], esi
pop ecx
mov edi, eax
jbe 0x1003f56
cmp dword [ebp - 4], esi
jne 0x1003f56
mov eax, dword [ebp - 8]
push esi
mov dword [ebp - 4], eax
imul eax, ebx
push esi
push esi
push esi
lea ecx, [ebp - 4]
push ecx
lea eax, [edi + eax*2]
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
cmp ebx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jb 0x1003f29
xor ebx, ebx
cmp dword [ebp - 4], esi
jne 0x1003f7e
cmp ebx, dword [ebp - 0x10]
jae 0x1003f7e
mov eax, dword [ebp - 8]
imul eax, ebx
lea eax, [edi + eax*2]
push eax
push dword [ebp - 0xc]
call fcn.01003eb3
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1003f7e
inc ebx
jmp 0x1003f5d
cmp edi, esi
je 0x1003f8a
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
pop edi
pop ebx
jne 0x1003fa9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
leave
ret 8