joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021ef
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx]
mov al, byte [eax + 0x6c1378]
mov byte [ecx], al
movzx eax, byte [ecx + 1]
mov al, byte [eax + 0x6c1378]
mov byte [ecx + 1], al
movzx eax, byte [ecx + 2]
mov al, byte [eax + 0x6c1378]
mov byte [ecx + 2], al
movzx eax, byte [ecx + 3]
mov al, byte [eax + 0x6c1378]
mov byte [ecx + 3], al
pop ebp
ret 4

Function at 0x402656
Capabilities:
Reference http user-agent string

Disassembly:
push 4
mov eax, 0x62b071
call fcn.004e5a4b
mov eax, ecx
mov dword [ebp - 0x10], eax
lea ebx, [eax + 0x14]
xor ecx, ecx
push 0xf
pop edx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov byte [ebx], cl
mov dword [ebp - 4], ecx
lea ecx, [eax + 0x2c]
and dword [ecx + 0x10], 0
mov dword [ecx + 0x14], edx
mov byte [ecx], 0
lea edi, [eax + 0x44]
and dword [edi + 0x10], 0
mov dword [edi + 0x14], edx
mov byte [edi], 0
lea esi, [eax + 0x5c]
and dword [esi + 0x10], 0
mov dword [esi + 0x14], edx
xor edx, edx
mov byte [esi], dl
mov byte [ebp - 4], 3
and dword [eax + 0x74], 0
push 5
mov word [eax], dx
pop edx
push 0x6c18bc
mov byte [eax + 2], 1
mov dword [eax + 4], edx
mov dword [eax + 8], 0x3c
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x500000
call fcn.004060b1
push 0x6c18bc
mov ecx, ebx
call fcn.004060b1
push 0x6c18bc
mov ecx, edi
call fcn.004060b1
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_70.0.3538.25_Safari_537.36_Core_1.70.3741.400_QQBrowser_10.5.3863.400
mov ecx, esi
call fcn.004060b1
mov eax, dword [ebp - 0x10]
call fcn.004e5a25
ret
Function at 0x402eb3
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov cl, 1
push esi
mov dword [ebp - 4], ecx
mov byte [ebx + 0x88], 1
mov esi, dword [ebx + 0x34]
cmp esi, dword [ebx + 0x38]
je 0x402f23
push edi
mov edi, dword [esi]
add esi, 4
test edi, edi
je 0x402f1d
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
jae 0x402f1d
cmp dword [edi + 0xc], 0
je 0x402f1d
cmp dword [edi + 0x10], 0
je 0x402f1d
push 0
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 1
jne 0x402f1a
push 0xffffffffffffffff
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor edx, edx
test eax, eax
movzx ecx, cl
cmovne ecx, edx
mov dword [ebp - 4], ecx
jmp 0x402f1d
mov ecx, dword [ebp - 4]
cmp esi, dword [ebx + 0x38]
jne 0x402ed0
pop edi
pop esi
mov al, cl
pop ebx
leave
ret
Function at 0x403bc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
inc ebx
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
lea eax, [edi + 4]
push eax
call fcn.00475f38
push eax
call fcn.00405fa7
mov esi, dword [edi + 0x34]
pop ecx
pop ecx
jmp 0x403c36
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x403c36
cmp byte [ebp - 1], 0
je 0x403c01
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
sete byte [ebp - 1]
mov al, byte [ebp - 2]
test al, al
je 0x403c2c
cmp dword [ecx + 0xc], 0
je 0x403c27
cmp dword [ecx + 0x10], 0
je 0x403c27
push 0
push dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x403c27
xor al, al
jmp 0x403c29
mov al, bl
mov byte [ebp - 2], al
cmp byte [ebp - 1], 0
jne 0x403c36
test al, al
je 0x403c3b
cmp esi, dword [edi + 0x38]
jne 0x403be8
lea eax, [edi + 4]
push eax
call fcn.00475f5d
push eax
call fcn.00405fa7
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x403c60
cmp byte [ebp - 1], 0
movzx eax, byte [ebp - 2]
cmovne eax, ebx
mov byte [ecx], al
cmp byte [ebp - 1], 0
je 0x403c6e
mov eax, dword [edi + 0x34]
cmp eax, dword [edi + 0x38]
jne 0x403c70
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x403c79
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 4]
push eax
call fcn.00475f38
push eax
call fcn.00405fa7
cmp dword [edi], 0
pop ecx
pop ecx
je 0x403d16
mov esi, dword [edi + 0x38]
sub esi, dword [edi + 0x34]
mov ebx, dword [ebp + 8]
sar esi, 2
imul eax, esi, 0xc
push 0xfffffffffffffffc
pop ecx
mov dword [ebp - 4], esi
sub ecx, eax
test ebx, ebx
je 0x403cc2
mov ebx, dword [ebx]
imul eax, ebx, 0xc
lea esi, [ebx + 1]
mov dword [ebp - 4], esi
add ecx, eax
jmp 0x403cc4
xor ebx, ebx
mov eax, ecx
push 2
cdq
push edx
push eax
push dword [edi]
call fcn.00500ddf
add esp, 0x10
test eax, eax
jne 0x403d16
cmp ebx, esi
jge 0x403d16
push dword [edi]
mov eax, dword [edi + 0x34]
push 1
push 4
mov esi, dword [eax + ebx*4]
push esi
call fcn.00501034
push dword [edi]
lea eax, [esi + 4]
push 1
push 4
push eax
call fcn.00501034
push dword [edi]
lea eax, [esi + 8]
push 1
push 4
push eax
call fcn.00501034
add esp, 0x30
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x403cdd
mov ecx, dword [edi]
call fcn.00402723
lea eax, [edi + 4]
push eax
call fcn.00475f5d
push eax
call fcn.00405fa7
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404113
Capabilities:
Copy file
Move file

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x34]
jmp 0x40413c
mov eax, dword [esi]
add esi, 4
test eax, eax
je 0x40413c
cmp dword [eax + 0xc], 0
je 0x40413c
cmp dword [eax + 0x10], 0
je 0x40413c
push 0xffffffffffffffff
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, dword [edi + 0x38]
jne 0x40411c
mov ecx, edi
pop edi
pop esi
jmp fcn.00403d35
Function at 0x404ed7
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x8c], 0
je 0x405141
cmp byte [ebx + 0x88], 0
je 0x404f13
mov byte [ebx + 0xb9], 1
xor al, al
jmp 0x40514a
call fcn.00403952
cmp dword [ebx + 0x80], 0
mov esi, eax
je 0x404f3d
lea eax, [ebx + 0x70]
cmp dword [eax + 0x14], 0x10
jb 0x404f2e
mov eax, dword [eax]
push eax
push 0x2714
push esi
call fcn.004363f0
add esp, 0xc
push str.gzip
push 0x2776
push esi
call fcn.004363f0
add esp, 0xc
lea edi, [ebx + 0x40]
mov edx, edi
mov ecx, esi
call fcn.00404217
test al, al
je 0x404f0c
cmp dword [edi + 0x14], 0x10
jb 0x404f68
mov edi, dword [edi]
push edi
push 0x2712
push esi
call fcn.004363f0
mov edi, dword [ebx + 0x8c]
mov eax, 0x400
add esp, 0xc
cmp edi, eax
jbe 0x404f90
mov edi, eax
mov dword [ebp - 0x42c], eax
jmp 0x404f98
shr edi, 1
mov dword [ebp - 0x42c], edi
push 0x10
call fcn.004e4913
pop ecx
push eax
push 0x2711
and dword [eax + 4], 0
and dword [eax + 8], 0
push esi
mov dword [eax], ebx
mov dword [eax + 0xc], edi
call fcn.004363f0
add esp, 0xc
push 0x403a87
push 0x4e2b
push esi
call fcn.004363f0
add esp, 0xc
push 8
push 0x44
push esi
call fcn.004363f0
add esp, 0xc
push 1
push 0x34
push esi
call fcn.004363f0
add esp, 0xc
push 1
push 0x63
push esi
call fcn.004363f0
add esp, 0xc
lea edi, [ebp - 0x24]
xor eax, eax
push 8
pop ecx
push dword [ebp - 0x42c]
rep stosd dword es:[edi], eax
push str.1__d
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.004055e2
lea eax, [ebp - 0x24]
push eax
push 0x2717
push esi
call fcn.004363f0
add esp, 0x1c
push 1
push 0x13
push esi
call fcn.004363f0
add esp, 0xc
push 5
push 0x14
push esi
call fcn.004363f0
add esp, 0xc
push dword [0x6e5190]
push 0x4e
push esi
call fcn.004363f0
add esp, 0xc
cmp dword [0x6e51dc], 0
jbe 0x4050ac
mov edi, 0x400
lea eax, [ebp - 0x428]
push edi
push 0
push eax
call fcn.004fc480
add esp, 0xc
mov eax, 0x6e51cc
cmp dword [0x6e51e0], 0x10
cmovae eax, dword [0x6e51cc]
push edi
push eax
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.00505145
lea eax, [ebp - 0x428]
push eax
push 0x2720
push esi
call fcn.004363f0
add esp, 0x1c
jmp 0x4050be
push 1
push 0x3a
push esi
call fcn.004363f0
add esp, 0xc
mov edi, 0x400
cmp dword [0x6e51f4], 0
jbe 0x405112
push edi
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004fc480
add esp, 0xc
mov eax, 0x6e51e4
cmp dword [0x6e51f8], 0x10
cmovae eax, dword [0x6e51e4]
push edi
push eax
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.00505145
lea eax, [ebp - 0x428]
push eax
push 0x2722
push esi
call fcn.004363f0
add esp, 0x1c
jmp 0x405125
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_70.0.3538.25_Safari_537.36_Core_1.70.3741.400_QQBrowser_10.5.3863.400
push 0x2722
push esi
call fcn.004363f0
add esp, 0xc
push esi
call fcn.00432ee0
neg eax
pop ecx
sbb al, al
inc al
push esi
mov byte [ebx + 0x8a], al
call fcn.00432e60
pop ecx
jmp 0x405148
mov byte [ebx + 0x8a], 0
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e48e6
leave
ret
Function at 0x4065e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40660d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406be6
jmp 0x4066c2
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40662f
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x406631
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4066b6
jg 0x406646
test esi, esi
je 0x4066b6
test ecx, ecx
jl 0x406699
jg 0x406650
test eax, eax
je 0x406699
cmp edi, ecx
jg 0x406664
jl 0x40665a
cmp esi, eax
jae 0x406664
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004fc5e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x4066b6
jg 0x40669c
test esi, esi
je 0x4066b6
jmp 0x40669c
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x4066b6
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.00501034
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4066cb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x4066ee
jl 0x4066e5
test edi, edi
jne 0x4066ee
xor eax, eax
xor edx, edx
jmp 0x4067d6
cmp dword [ebx + 0x38], 0
je 0x406703
push esi
push edi
push dword [ebp + 8]
call fcn.00406caf
jmp 0x4067d6
mov eax, dword [ebx + 0x1c]
mov ecx, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40674c
mov eax, dword [ebx + 0x2c]
cmp dword [eax], 0
jbe 0x40674c
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.004fc5e0
mov eax, dword [ebx + 0x2c]
mov ecx, edi
add dword [ebp + 8], esi
sub ecx, esi
add esp, 0xc
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x406752
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
je 0x4067ca
mov ecx, ebx
call fcn.004072ae
mov eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
cmp eax, 0xfff
jbe 0x4067a6
mov ecx, dword [ebp + 8]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call fcn.00504a7b
mov ecx, dword [ebp + 8]
add esp, 0x10
mov edx, dword [ebp - 4]
add ecx, eax
sub edx, eax
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp + 0x10], edx
cmp eax, 0xfff
jne 0x4067a2
cmp edx, eax
ja 0x40676f
jmp 0x4067a9
sub edi, edx
jmp 0x4067cf
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov ecx, eax
test eax, eax
je 0x4067cd
push dword [ebx + 0x4c]
push edx
push 1
push dword [ebp + 8]
call fcn.00504a7b
mov ecx, dword [ebp + 0x10]
add esp, 0x10
sub ecx, eax
jmp 0x4067cd
mov ecx, dword [ebp - 8]
sub edi, ecx
sbb esi, 0
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406a17
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x406a3d
xor eax, eax
jmp 0x406b01
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x406a66
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x406a66
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x406b01
cmp dword [esi + 0x4c], 0
je 0x406aff
mov ecx, esi
call fcn.004072ae
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x406a92
push dword [esi + 0x4c]
push eax
call fcn.004083e4
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x406aff
mov byte [ebp - 0x28], al
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 - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x406aff
cmp eax, 1
jle 0x406ace
cmp eax, 3
jne 0x406aff
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x406a84
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x406af1
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.00501034
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x406aff
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x406b01
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e48e6
leave
ret 4

Function at 0x4072fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x407355
cmp byte [esi + 0x3d], bl
je 0x407355
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40738e
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, ebx
je 0x407366
sub eax, 1
je 0x407369
dec eax
sub eax, 1
jne 0x40738e
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e48e6
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x407386
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00501034
add esp, 0x10
cmp edi, eax
jne 0x40738e
cmp byte [esi + 0x3d], bl
sete al
jmp 0x407357
xor al, al
jmp 0x407357

Function at 0x4085db
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x40c02b
Capabilities:
Hash data using murmur3

Disassembly:
push 0x20
mov eax, 0x62b89a
call fcn.004e5a4b
mov ebx, ecx
cmp dword [ebx], 0
jne 0x40c13e
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx + 4]
sar ecx, 3
cmp ecx, 2
jle 0x40c13e
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x28]
mov esi, eax
mov dword [ebp - 0x2c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
mov eax, ecx
xor edx, edx
shr eax, 1
inc edx
add eax, ecx
mov dword [ebp - 0x14], edx
cmp eax, edx
jbe 0x40c07f
add edx, edx
cmp edx, eax
jb 0x40c076
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
mov esi, edx
shl esi, 2
push esi
call fcn.0040b19c
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40c134
push esi
push 0
push eax
call fcn.004fc480
mov edi, dword [ebx + 4]
add esp, 0xc
mov edx, edi
jmp 0x40c128
mov eax, dword [edx + 4]
test eax, eax
je 0x40c0b6
xor esi, esi
jmp 0x40c0b8
mov esi, dword [edx]
test eax, eax
cmovne esi, eax
test esi, esi
je 0x40c125
mov eax, esi
shr eax, 0x10
xor eax, esi
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
mov ecx, dword [ebp - 0x14]
imul eax, eax, 0xc2b2ae35
dec ecx
mov dword [ebp + 8], ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov eax, dword [ebp - 0x1c]
and ecx, dword [ebp + 8]
and dword [ebp - 0x18], 0
cmp dword [eax + ecx*4], 0
je 0x40c115
cmp dword [eax + ecx*4], esi
je 0x40c125
mov eax, dword [ebp - 0x18]
inc ecx
add ecx, eax
and ecx, dword [ebp + 8]
inc eax
cmp eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
jbe 0x40c0f3
jmp 0x40c125
mov dword [eax + ecx*4], esi
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
add edi, 8
add edx, 8
cmp edx, dword [ebx + 8]
jne 0x40c0ab
mov dword [ebx + 8], edi
lea ecx, [ebp - 0x2c]
call fcn.0040b286
jmp 0x40c14c
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
call fcn.004103e0
mov dword [ebx + 8], eax
call fcn.004e5a25
ret 4

Function at 0x412b74
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x108]
xor edi, edi
push eax
push 0x20019
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412c22
push esi
mov esi, 0xff
lea eax, [ebp - 0x104]
push esi
push edi
push eax
call fcn.004fc480
add esp, 0xc
mov dword [ebp - 0x10c], esi
lea eax, [ebp - 0x128]
push eax
push edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 0x108]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x412c22
mov eax, dword [ebp - 0x110]
jmp 0x412c25
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004e48e6
leave
ret
Function at 0x412c32
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x134
mov eax, 0x62bc55
call fcn.004e5a7f
mov dword [ebp - 0x138], edx
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, 0x20019
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x134], 0
mov dword [ebp - 0x140], eax
mov eax, edi
or edi, ecx
and eax, ecx
push ecx
cmovne edi, ecx
mov ecx, ebx
call fcn.00412b74
xor esi, esi
mov dword [ebp - 0x13c], eax
inc esi
pop ecx
cmp eax, esi
jge 0x412c87
xor eax, eax
jmp 0x412d98
lea eax, [ebp - 0x134]
push eax
push edi
push 0
push dword [ebp - 0x138]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412d92
mov ebx, 0x104
push ebx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004fc480
add esp, 0xc
lea eax, [ebp - 0x118]
push ebx
push eax
push 0
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412d82
cmp esi, dword [ebp - 0x13c]
jg 0x412d8a
and dword [ebp - 0x138], 0
lea eax, [ebp - 0x138]
push eax
push edi
push 0
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412d66
and dword [ebp - 0x120], eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 0x130], al
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x11c], 0xf
call fcn.004060b1
mov ecx, dword [ebp - 0x140]
lea eax, [ebp - 0x130]
and dword [ebp - 4], 0
push eax
call fcn.004051ac
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.004060fd
push dword [ebp - 0x138]
call ebx
push 0x104
lea ecx, [ebp - 0x118]
mov eax, esi
push ecx
push eax
push dword [ebp - 0x134]
inc esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x412cdd
push dword [ebp - 0x134]
call ebx
mov eax, dword [ebp - 0x13c]
call fcn.004e5a3a
ret
Function at 0x413530
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x44
mov eax, 0x62be6f
call fcn.004e5a7f
mov eax, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call esi
mov edi, eax
push edi
call fcn.004e48f7
pop ecx
mov ebx, eax
push ebx
push edi
mov dword [ebp - 0x3c], ebx
call esi
xor esi, esi
mov dword [ebp - 0x14], 0xf
and dword [ebp - 0x18], esi
mov byte [ebp - 0x28], 0
and dword [ebp - 4], esi
mov eax, edi
cdq
xor edi, edi
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x413601
mov al, byte [ebx]
mov byte [ebp - 0x2c], al
mov eax, dword [ebp - 0x3c]
mov word [ebp - 0x2b], 0x5c3a
mov byte [ebp - 0x29], 0
lea eax, [eax + edi*4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4135f5
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4135f5
test edi, edi
je 0x4135df
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
shrd ecx, eax, 0x14
cmp esi, ecx
jge 0x4135f5
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004060b1
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
shrd esi, eax, 0x14
inc edi
add ebx, 4
cmp edi, dword [ebp - 0x30]
jl 0x413592
mov ebx, dword [ebp - 0x3c]
push ebx
call fcn.004e4900
pop ecx
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push eax
call fcn.00405bfc
lea ecx, [ebp - 0x28]
call fcn.004060fd
mov eax, dword [ebp - 0x40]
call fcn.004e5a3a
ret
Function at 0x413625
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x110]
push ebx
push eax
mov esi, edx
mov edi, ecx
call fcn.004fc480
push 0x104
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004fc480
add esp, 0x18
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x41373b
lea eax, [ebp - 0x234]
push eax
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x41372f
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x41371d
push 0x104
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x220], ebx
add eax, ecx
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], bl
cmp ecx, eax
je 0x413704
sub eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x230]
push eax
call fcn.00406068
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004052f6
lea ecx, [ebp - 0x230]
call fcn.004060fd
mov eax, dword [ebp - 0x238]
push dword [ebp - 0x234]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi + 0x10], ebx
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004e48e6
leave
ret