joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426926
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4341bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x64
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.0040d7d0
add esp, 0xc
mov dword [ebp - 0x7c], 0x32
lea eax, [ebp - 0x9c]
xor esi, esi
mov dword [ebp - 0x9c], esi
push eax
push 0x20019
push esi
push str.SOFTWARECorelCUH2.0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x4025d0
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push esi
push esi
push str.version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4025c4
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x98]
call fcn.00402630
push 1
push esi
lea eax, [ebp - 0x80]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x80], 0x2e
call fcn.00404460
cmp eax, 0xffffffff
je 0x4025a6
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x98]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.004025f0
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00408fa0
add esp, 4
lea ecx, [ebp - 0xb4]
mov esi, eax
call fcn.004097d0
mov ecx, dword [ebp - 0x84]
cmp ecx, 8
jb 0x4025c4
inc ecx
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x98]
call fcn.00409700
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9ae
mov esp, ebp
pop ebp
ret
Function at 0x404650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426c28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4341bc]
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
cmp dword [ebx + 0x38], 0
je 0x40478d
cmp byte [ebx + 0x3e], 0
je 0x40478d
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x4046b4
xor al, al
jmp 0x40478f
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00408940
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
nop dword [eax]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40471e
sub eax, 1
je 0x404722
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x404775
xor bl, bl
jmp 0x404777
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x404757
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00413fe2
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x40471a
cmp byte [ebx + 0x3e], 0
je 0x404775
test esi, esi
jne 0x4046e0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00408df0
jmp 0x4046d9
mov bl, 1
cmp ecx, 0x10
jb 0x404789
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00408ed0
mov al, bl
jmp 0x40478f
mov al, 1
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.0040a9ae
mov esp, ebp
pop ebp
ret
Function at 0x405820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426dc6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4341bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040a9c4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00409eff
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 0x407560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42710a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4341bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0040a173
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x407620
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0040cd7e
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x433748
push eax
call fcn.0040ce00
push edi
push esi
call fcn.0040a002
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9ae
mov esp, ebp
pop ebp
ret 4

Function at 0x41ab6d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a830

Function at 0x41ab78
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a9b1
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x40de38
mov ecx, 0x6c257d51
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x2fef5efc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x47c39f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x3c93015
lea edi, [esi - 0x3892015]
push edi
or ebp, 0xffffffff
jmp 0x47c3a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47c3a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47c3a08
mov eax, 1
add ebx, ebx
jne 0x47c3a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47c3a20
jne 0x47c3a3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47c3a20
xor ecx, ecx
sub eax, 3
jb 0x47c3a50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47c3ac2
mov ebp, eax
add ebx, ebx
jne 0x47c3a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x47c3a68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47c3a8c
inc ecx
add ebx, ebx
jne 0x47c3a78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47c3a6d
jne 0x47c3a89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47c3a6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47c3aac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47c3a9d
jmp 0x47c3a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47c3aac
add edi, ecx
jmp 0x47c3a0e
pop esi
mov edi, esi
mov ecx, 0x148c84
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47c3aca
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47c3acf
lea edi, [esi + 0x43bf000]
mov eax, dword [edi]
or eax, eax
je 0x47c3b37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x43dfc7c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x43dfe40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47c3af5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x43dfe48]
or eax, eax
je 0x47c3b31
mov dword [ebx], eax
add ebx, 4
jmp 0x47c3b12
call dword [esi + 0x43dfe44]
mov ebp, dword [esi + 0x43dfe4c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47c3b6b
sub esp, 0xffffff80
jmp 0x3a38c8e
Function at 0x418f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f42
cmp edx, 0x800
jae 0x41902b
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x419000
mov dword [0x420dbc], 0x4196e0
call fcn.00419170
test eax, eax
jne 0x419048
mov dword [0x420dbc], 0x419600
ret

Function at 0x408951
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.00408969
dec esi
xor dword [edx], edi
inc edx
mov ecx, 0x94d847a0
cmp edx, eax
jne fcn.00408951
ret
Function at 0x401a5e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040b846
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x401aa3
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x476668
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x476668]
xor cx, word [edx*2 + 0x476668]
inc edx
mov word [edi + edx*2 + 0x476666], cx
cmp edx, dword [ebp + 0xc]
jl 0x401a83
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x401d81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x26
call fcn.0040cc63
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x401dc3
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x428454
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x428454]
xor cx, word [edx*2 + 0x428454]
inc edx
mov word [edi + edx*2 + 0x428452], cx
cmp edx, dword [ebp + 0xc]
jl 0x401da3
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x401dcd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x13
call fcn.0040cc63
pop ecx
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jle 0x401e0b
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, 0x4284f4
mov edi, eax
sub esi, edx
sub edi, edx
mov dl, byte [esi + ecx + 0x4284f4]
xor dl, byte [ecx + 0x4284f4]
inc ecx
mov byte [edi + ecx + 0x4284f3], dl
cmp ecx, dword [ebp + 0xc]
jl 0x401def
pop edi
pop esi
mov byte [ecx + eax], 0
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push esi
cmp dword [0x47798c], ecx
jne 0x401ee7
push 8
mov eax, ecx
pop esi
test al, 1
je 0x401ec8
shr eax, 1
xor eax, 0xedb88320
jmp 0x401eca
shr eax, 1
dec esi
jne 0x401ebb
mov dword [ecx*4 + 0x4779c0], eax
inc ecx
cmp ecx, 0x100
jl 0x401eb6
mov dword [0x47798c], 1
mov ecx, dword [ebp + 8]
lea ecx, [edx + ecx*2]
or eax, 0xffffffff
cmp edx, ecx
jae 0x401f14
push edi
movzx edi, byte [edx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x4779c0]
add edx, 2
cmp edx, ecx
jb 0x401ef5
pop edi
not eax
pop esi
pop ebp
ret 4

Function at 0x4032b9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040b846
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x4032fb
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x427ca0
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x427ca0]
xor cx, word [edx*2 + 0x427ca0]
inc edx
mov word [edi + edx*2 + 0x427c9e], cx
cmp edx, dword [ebp + 0xc]
jl 0x4032db
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x403305
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x76
call fcn.0040b846
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x403347
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x428508
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x428508]
xor cx, word [edx*2 + 0x428508]
inc edx
mov word [edi + edx*2 + 0x428506], cx
cmp edx, dword [ebp + 0xc]
jl 0x403327
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x405665
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
mov eax, ebx
push edi
mov edi, ecx
cmp ax, si
jne 0x405690
xor eax, eax
jmp 0x4057f8
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x4056bd
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4056bd
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x4057f8
cmp dword [edi + 0x54], 0
jne 0x4056ca
mov eax, ebx
jmp 0x4057f8
mov eax, edi
call fcn.00406bcc
cmp dword [edi + 0x44], 0
jne 0x4056f0
push dword [edi + 0x54]
push esi
call fcn.0040ce6a
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x4057f8
jmp 0x4056c3
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.004064b3
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40579d
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jl 0x4057e8
cmp eax, 1
jg 0x4057a5
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40574c
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x405772
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40575f
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040e574
add esp, 0x10
cmp esi, eax
jne 0x4057e8
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x4057d7
cmp esi, ebx
ja 0x4056fe
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x4057e9
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00401281
jmp 0x4056fe
mov edx, dword [ebp - 0x20]
jmp 0x405710
cmp eax, 3
jne 0x4057e8
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040ce6a
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x4057c7
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004012d8
jmp 0x4056b5
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004012d8
mov ax, word [ebp + 8]
jmp 0x4057f8
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004012d8
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c44c
leave
ret 4
Function at 0x406ad4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x406bbd
cmp byte [edi + 0x4a], 0
je 0x406bbd
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x406b12
xor al, al
jmp 0x406bbf
lea esi, [ebp - 0x20]
call fcn.004064b3
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x406b5f
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x406b64
dec eax
je 0x406b68
dec eax
dec eax
je 0x406bb9
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004012d8
mov al, bl
pop ebx
jmp 0x406bbf
mov edx, dword [ebp - 0x20]
jmp 0x406b29
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x406b74
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x406b9a
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x406b87
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040e574
add esp, 0x10
cmp esi, eax
jne 0x406b4c
cmp byte [edi + 0x4a], 0
je 0x406bb9
test esi, esi
jne 0x406b1b
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00401281
jmp 0x406b1b
mov bl, 1
jmp 0x406b4e
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c44c
leave
ret
Function at 0x4070f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x407128
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x407241
push 0x42384c
push edi
call fcn.00401ce0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x407171
mov eax, dword [esi]
jmp 0x407173
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x407241
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x4071c2
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.00401ce0
jmp 0x407241
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x4071d7
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x407241
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push 0x423b64
push 0x40
push eax
call fcn.004070d6
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.00401249
mov edi, dword [ebp - 0x4bc]
call fcn.00401d32
push ebx
push 1
mov ecx, esi
call fcn.004013ba
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040c44c
leave
ret 4

Function at 0x407254
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040b846
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x407296
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x427578
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x427578]
xor cx, word [edx*2 + 0x427578]
inc edx
mov word [edi + edx*2 + 0x427576], cx
cmp edx, dword [ebp + 0xc]
jl 0x407276
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x407f02
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x407f0a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407f25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407f25
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x407f28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
and dword [edi + 0x10], 0
xor eax, eax
mov esi, edx
mov dword [edi + 0x14], 7
push eax
mov dword [ebp - 0x234], esi
mov word [edi], ax
call fcn.0040ed40
push eax
call fcn.0040ed0d
pop ecx
pop ecx
call fcn.0040ed1f
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x407f82
mov eax, dword [esi]
jmp 0x407f84
mov eax, esi
push dword [ebp - 0x22c]
push eax
push 6
push 0x4271a8
call fcn.00407254
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x228]
call fcn.00401249
mov esi, eax
call fcn.00401d32
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.004013ba
cmp dword [edi + 0x14], 8
jb 0x407fda
mov eax, dword [edi]
jmp 0x407fdc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408000
shr eax, 4
and al, 1
je 0x408000
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x407f78
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040c44c
leave
ret