joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4137b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x45e084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0xc]
mov esi, edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], eax
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x20], ecx
jb 0x413803
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x413824
nop
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x413810
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and ecx, edx
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
lea eax, [eax + ecx*8]
mov esi, dword [esi + 4]
mov dword [ebp - 0x18], eax
cmp esi, dword [eax]
je 0x4138bb
mov esi, dword [eax + 4]
mov esi, dword [esi]
cmp esi, dword [eax]
je 0x4138bb
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 0x10
lea eax, [esi + 8]
mov edx, dword [eax + 0x10]
jb 0x413859
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x413863
mov ecx, dword [edi]
push edx
push eax
mov edx, ebx
call fcn.004124a0
add esp, 8
test al, al
mov eax, dword [ebp - 0x18]
je 0x413844
mov edi, dword [ebp + 0x10]
push edi
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
dec dword [eax + 8]
call fcn.0040be60
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x4138e8
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
push dword [ebp - 0x24]
mov ebx, dword [ebp - 0x1c]
mov ecx, ebx
push esi
push edi
call fcn.00412790
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004128c0
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
mov byte [eax + 4], 1
jmp 0x41389d
Function at 0x418320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445320
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45e084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.o.0
call fcn.00426a54
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00425319
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a7e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4474c6
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x45e084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, 0x41
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x18], eax
nop dword [eax]
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x220]
mov word [ebp - 0x18], di
push 0
push eax
mov dword [ebp - 0x16], 0x3a
call fcn.00428df0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x41a8a6
lea esi, [ebp - 0x220]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a874
sub esi, ecx
mov ecx, ebx
sar esi, 1
cmp dword [ebx + 0x14], 8
jb 0x41a88d
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x220]
push esi
push eax
push 0
call fcn.00418850
add esp, 0xc
test eax, eax
je 0x41a8f3
inc edi
cmp di, 0x5a
jbe 0x41a830
mov ebx, dword [ebp - 0x224]
xor eax, eax
push eax
push 0x456880
mov ecx, ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
call fcn.0040b0c0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], cx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x240], 7
cmp ecx, eax
jb 0x41aa51
sub ecx, eax
or edx, 0xffffffff
cmp ecx, 0xffffffff
cmovb edx, ecx
cmp dword [ebx + 0x14], 8
jb 0x41a93b
mov ebx, dword [ebx]
push edx
lea eax, [ebx + eax*2]
push eax
lea ecx, [ebp - 0x254]
call fcn.0040b0c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
lea edx, [ecx + 2]
mov word [ebp - 0x23c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a975
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040b0c0
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.0041acf0
mov edx, dword [ebp - 0x228]
add esp, 0xc
cmp edx, 8
jb 0x41a9f1
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a9e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aa56
push edx
push ecx
call fcn.00426dff
add esp, 8
mov edx, dword [ebp - 0x240]
xor eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
cmp edx, 8
jb 0x41aa4a
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aa40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aa5b
push edx
push ecx
call fcn.00426dff
add esp, 8
mov eax, esi
jmp 0x41a8d5
call fcn.0040bec0
call fcn.0042bce9
call fcn.0042bce9
int3
Function at 0x41da00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447819
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45e084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], 0
jb 0x41da55
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 2
push eax
push 0
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x41daf9
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov ecx, esi
push eax
mov eax, dword [ebp - 0x14]
shr eax, 1
push eax
mov dword [ebp - 0x18], 1
call fcn.004196b0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41daa1
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x41daa9
mov edi, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push 2
push edi
push 0
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x41dac9
push eax
push str.Cannot_get_string_value:_RegGetValue_failed.
jmp 0x41daff
mov ecx, dword [ebp - 0x14]
shr ecx, 1
dec ecx
push 0
push ecx
mov ecx, esi
call fcn.004196b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret 8
push eax
push str.Cannot_get_size_of_string_value:_RegGetValue_failed.
lea ecx, [ebp - 0x2c]
call fcn.00413f00
push 0x45d04c
lea eax, [ebp - 0x2c]
push eax
call fcn.00428275
int3
Function at 0x41df80
Capabilities:
Connect to wmi namespace via wbemlocator
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4478c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x45e084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push 0x44c678
push 1
push 0
push 0x44c668
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x41e00c
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [edi], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41e179
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
jmp 0x41e179
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 5
xor ecx, ecx
mov esi, dword [ebp - 0x18]
mov eax, dword [esi]
mov dword [ebp - 0x34], 0x62007e
mov dword [ebp - 0x30], 0x7b0061
mov dword [ebp - 0x2c], 0x72006c
mov ebx, dword [eax + 0xc]
mov eax, 0xa
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0x7e007b
mov dword [ebp - 0x24], 0x70062
mov dword [ebp - 0x20], 0x36
lea eax, [ecx + 0x2c]
xor word [ebp + ecx*2 - 0x34], ax
inc ecx
mov eax, dword [ebp - 0x38]
cmp ecx, eax
jb 0x41e053
xor ecx, ecx
mov word [ebp + eax*2 - 0x34], cx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041de70
mov byte [ebp - 4], 6
mov eax, dword [eax]
test eax, eax
je 0x41e084
mov eax, dword [eax]
jmp 0x41e086
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
call ebx
mov esi, dword [ebp - 0x1c]
mov ebx, eax
test esi, esi
je 0x41e0ee
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x41e0e7
test esi, esi
je 0x41e0e7
mov eax, dword [esi]
test eax, eax
je 0x41e0c5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41e0dc
push eax
call fcn.004267c2
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00426dff
add esp, 8
mov dword [ebp - 0x1c], 0
test ebx, ebx
jns 0x41e118
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [edi], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41e10f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 9
jmp 0x41e16c
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x41e159
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [edi], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41e150
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xc
jmp 0x41e16c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [edi], eax
mov dword [ebp - 4], 0xe
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41e179
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret 4
Function at 0x41ec80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x41ed68
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x41ed57
jg 0x41ecc0
test edx, edx
je 0x41ed57
nop dword [eax]
call fcn.0040b640
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41ed14
jg 0x41ecd7
test esi, esi
je 0x41ed14
cmp ebx, eax
jg 0x41ece7
jl 0x41ece1
cmp edi, esi
jae 0x41ece7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004282f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x41ed3b
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x41ed51
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x41ecc0
jl 0x41ed51
test edi, edi
jne 0x41ecc0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 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 + 0x10], eax
test eax, eax
je 0x41ed8a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x41ed8c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x41ee0a
jg 0x41ed9f
test esi, esi
je 0x41ee0a
test eax, eax
jl 0x41ede4
jg 0x41eda9
test ebx, ebx
je 0x41ede4
cmp edi, eax
jg 0x41edb9
jl 0x41edb3
cmp esi, ebx
jae 0x41edb9
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004282f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x41ede7
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41ee0a
jg 0x41edf1
test esi, esi
je 0x41ee0a
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x41ee0a
push eax
push esi
push 1
push edx
call fcn.0042ce9d
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 0x41ee20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x41ef0b
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x41eefa
jg 0x41ee60
test edx, edx
je 0x41eefa
nop dword [eax]
call fcn.0040b660
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41eeb7
jg 0x41ee77
test esi, esi
je 0x41eeb7
cmp ebx, eax
jg 0x41ee87
jl 0x41ee81
cmp edi, esi
jae 0x41ee87
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [esp + 0x18]
call fcn.004282f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x41eedc
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x41eef4
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
add eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jg 0x41ee60
jl 0x41eef4
test edi, edi
jne 0x41ee60
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
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 + 0x10], eax
test eax, eax
je 0x41ef2d
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x41ef2f
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x41efe5
jg 0x41ef4a
test esi, esi
je 0x41efe5
test eax, eax
jl 0x41ef93
jg 0x41ef54
test ebx, ebx
je 0x41ef93
cmp edi, eax
jg 0x41ef64
jl 0x41ef5e
cmp esi, ebx
jae 0x41ef64
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004282f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x41ef9a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x41efe5
jg 0x41efa4
test esi, esi
je 0x41efe5
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x41efe5
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x41efd0
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [esp + 0x1c]
call fcn.0042c84b
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 0x41f360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45e084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x41f390
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41f3cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41f3cc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x41f4b3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x41f3f4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41f427
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0042c563
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
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 - 0x30]
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 0x41f4b3
cmp eax, 1
jle 0x41f486
cmp eax, 3
jne 0x41f4b3
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0041e9a0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41f4a3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0042ce9d
add esp, 0x10
cmp edi, eax
jne 0x41f4b3
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x41f3b7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004267b1
mov esp, ebp
pop ebp
ret 4
Function at 0x41f650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45e084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x41f6f3
cmp byte [esi + 0x3d], 0
je 0x41f6f3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41f6a9
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, 0
je 0x41f6bb
sub eax, 1
je 0x41f6bf
sub eax, 2
je 0x41f6f3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41f6dc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0042ce9d
add esp, 0x10
cmp edi, eax
jne 0x41f6a9
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004267b1
mov esp, ebp
pop ebp
ret
Function at 0x422780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447ccf
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x45e084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x18], 0
call fcn.00421c60
push eax
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00421bd0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xcc]
cmp edx, 8
jb 0x422827
mov ecx, dword [ebp - 0xe0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42281d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422ade
push edx
push ecx
call fcn.00426dff
add esp, 8
xor eax, eax
mov dword [ebp - 0xd0], 0
cmp dword [esi + 0x14], 8
mov word [ebp - 0xe0], ax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xcc], 7
lea eax, [eax*2 + 2]
jb 0x422856
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x42285e
mov edi, dword [edi]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x422ae3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4228c3
cmp eax, 0x80000001
je 0x4228c3
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x4228c3
cmp eax, 0x80000000
je 0x4228c3
cmp eax, 0x80000005
je 0x4228c3
cmp eax, 0x80000007
je 0x4228c3
cmp eax, 0x80000004
je 0x4228c3
cmp eax, 0x80000060
je 0x4228c3
cmp eax, 0x80000050
je 0x4228c3
cmp eax, 0x80000003
je 0x4228c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004267b1
mov esp, ebp
pop ebp
ret 0xc
call fcn.0042bce9
push eax
push str.Cannot_write_string_value:_RegSetValueEx_failed.
lea ecx, [ebp - 0x124]
call fcn.00413f00
push 0x45d04c
lea eax, [ebp - 0x124]
push eax
call fcn.00428275
int3

Function at 0x422cc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
xor edx, edx
push esi
lea esi, [ecx + 4]
test eax, eax
je 0x422cde
nop dword [eax]
lea eax, [edx + 0x2c]
xor word [esi + edx*2], ax
inc edx
mov eax, dword [ecx]
cmp edx, eax
jb 0x422cd0
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, esi
pop esi
ret