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

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x41f6d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x418015
lea edi, [esi - 0x17015]
push edi
or ebp, 0xffffffff
jmp 0x41f6f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f6f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f6e8
mov eax, 1
add ebx, ebx
jne 0x41f70b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f700
jne 0x41f71c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f700
xor ecx, ecx
sub eax, 3
jb 0x41f730
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f7a2
mov ebp, eax
add ebx, ebx
jne 0x41f73b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f748
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f76c
inc ecx
add ebx, ebx
jne 0x41f758
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f74d
jne 0x41f769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f74d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f78c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f77d
jmp 0x41f6ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f78c
add edi, ecx
jmp 0x41f6ee
pop esi
mov edi, esi
mov ecx, 0x65d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f7aa
cmp byte [edi], 6
jne 0x41f7aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41f7af
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f81e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1fab8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1fb6c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f7dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1fb70]
or eax, eax
je 0x41f818
mov dword [ebx], eax
add ebx, 4
jmp 0x41f7f9
call dword [esi + 0x1fb74]
popal
jmp 0x401220

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404660
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 0x404748
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 0x404737
jg 0x4046a0
test edx, edx
je 0x404737
nop dword [eax]
call fcn.00405d20
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4046f4
jg 0x4046b7
test esi, esi
je 0x4046f4
cmp ebx, eax
jg 0x4046c7
jl 0x4046c1
cmp edi, esi
jae 0x4046c7
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.004b9750
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 0x40471b
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 0x404731
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4046a0
jl 0x404731
test edi, edi
jne 0x4046a0
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 0x40476a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40476c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4047ea
jg 0x40477f
test esi, esi
je 0x4047ea
test eax, eax
jl 0x4047c4
jg 0x404789
test ebx, ebx
je 0x4047c4
cmp edi, eax
jg 0x404799
jl 0x404793
cmp esi, ebx
jae 0x404799
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004b9750
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 0x4047c7
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4047ea
jg 0x4047d1
test esi, esi
je 0x4047ea
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4047ea
push eax
push esi
push 1
push edx
call fcn.004bdb52
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 0x404800
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 0x4048eb
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 0x4048da
jg 0x404840
test edx, edx
je 0x4048da
nop dword [eax]
call fcn.00405d40
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x404897
jg 0x404857
test esi, esi
je 0x404897
cmp ebx, eax
jg 0x404867
jl 0x404861
cmp edi, esi
jae 0x404867
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.004b9750
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 0x4048bc
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4048d4
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 0x404840
jl 0x4048d4
test edi, edi
jne 0x404840
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 0x40490d
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x40490f
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4049c5
jg 0x40492a
test esi, esi
je 0x4049c5
test eax, eax
jl 0x404973
jg 0x404934
test ebx, ebx
je 0x404973
cmp edi, eax
jg 0x404944
jl 0x40493e
cmp esi, ebx
jae 0x404944
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004b9750
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 0x40497a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x4049c5
jg 0x404984
test esi, esi
je 0x4049c5
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x4049c5
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x4049b0
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.004be12c
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 0x404d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6f1114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404d50
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1496
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404d8c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x404d8c
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.004a1496
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404e73
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404db4
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 0x404de7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004bd222
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.004a1496
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 0x404e73
cmp eax, 1
jle 0x404e46
cmp eax, 3
jne 0x404e73
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00403440
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.004a1496
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404e63
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004bdb52
add esp, 0x10
cmp edi, eax
jne 0x404e73
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x404d77
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1496
mov esp, ebp
pop ebp
ret 4
Function at 0x405970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6f1114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x405a13
cmp byte [esi + 0x3d], 0
je 0x405a13
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4059c9
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 0x4059db
sub eax, 1
je 0x4059df
sub eax, 2
je 0x405a13
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1496
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4059fc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004bdb52
add esp, 0x10
cmp edi, eax
jne 0x4059c9
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1496
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a1496
mov esp, ebp
pop ebp
ret

Function at 0x406030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63cfc0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6f1114]
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_char__struct_std::char_traits_char__.0
call fcn.004a14a7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0049e7ce
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 0x409170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov dword [ebp - 4], ecx
xor edi, edi
xor ecx, ecx
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4091aa
mov edx, dword [ebp + 0xc]
sub edx, esi
mov al, byte [esi + edi]
mov ebx, dword [ebp - 4]
xor byte [ebx + ecx], al
lea eax, [edi + 1]
xor edi, edi
inc ecx
cmp eax, edx
cmovne edi, eax
cmp ecx, dword [ebp - 8]
jb 0x409191
test esi, esi
je 0x4091d7
mov ecx, dword [ebp + 0x10]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4091cd
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4091de
push ecx
push esi
call fcn.004a14d7
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004bd1a9
int3
Function at 0x42c780
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63ff1b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x6f1114]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x42c849
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42c849
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
shrd esi, eax, 0x1e
push 0x84
lea eax, [ebp - 0xb4]
push 0
push eax
call fcn.004b95f0
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.0044d926
push esi
lea eax, [ebp - 0xb4]
mov dword [ebp - 4], 0
push str.iRYO:
push eax
call fcn.0044de9f
mov edi, dword [edi + 0x768]
add esp, 0xc
test edi, edi
je 0x42c83e
mov eax, dword [edi]
lea ecx, [ebp - 0xb4]
mov esi, dword [eax + 0x2c]
call fcn.0044daf7
push eax
mov ecx, edi
call esi
lea ecx, [ebp - 0xb4]
call fcn.0044d9e9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a1496
mov esp, ebp
pop ebp
ret 4

Function at 0x42c870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
mov esi, ecx
cmp dword [esi + 0x764], 0
je 0x42c9bb
push 0x208
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004b95f0
add esp, 0xc
mov dword [esp + 0xc], 0
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
xorps xmm0, xmm0
lea eax, [esp + 8]
movlpd qword [esp + 0x1c], xmm0
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 0x6d99cc
mov dword [esp + 0x1c], 8
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x42c9bb
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jl 0x42c98a
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c98a
movzx eax, word [esp + 0x28]
push eax
call fcn.004c38db
add esp, 4
test eax, eax
je 0x42c976
cmp word [esp + 0x2a], 0x3a
jne 0x42c976
cmp word [esp + 0x2c], 0x5c
jne 0x42c976
mov ecx, dword [esi + 0x764]
lea edx, [esp + 0x28]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0042c780
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.004a1496
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 4]
sub esp, 0x18
mov ecx, esp
push 0x6d99e8
call fcn.004023b0
jmp 0x42c9b1
mov esi, dword [esi + 4]
sub esp, 0x18
mov ecx, esp
xor eax, eax
push 0x11
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x6d9a10
mov word [ecx], ax
call fcn.00402400
mov ecx, esi
call fcn.0042b690
add esp, 0x18
mov ecx, dword [esp + 0x234]
pop esi
xor ecx, esp
call fcn.004a1496
mov esp, ebp
pop ebp
ret
Function at 0x42c9d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63ff62
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x6f1114]
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
push str.ToClose
lea ecx, [ebx + 0x14]
call fcn.004475d8
test eax, eax
je 0x42ca22
mov ecx, eax
call fcn.00456223
xor ecx, ecx
test al, al
sete cl
mov dword [ebx + 0x778], ecx
push str.CreateIco
lea ecx, [ebx + 0x14]
call fcn.004475d8
test eax, eax
je 0x42ca9b
mov ecx, eax
call fcn.00456223
test al, al
je 0x42ca91
cmp dword [0x6fe224], 0
mov dword [ebx + 0x774], 1
jne 0x42ca8a
push 0x3e0
call fcn.004a14a7
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x3e0
push 0
push esi
mov dword [ebp - 4], 0
call fcn.004b95f0
add esp, 0x10
mov ecx, esi
call fcn.004358e0
mov dword [ebp - 4], 0xffffffff
mov dword [0x6fe224], eax
call fcn.00436920
jmp 0x42ca9b
mov dword [ebx + 0x774], 0
push str.AutoRun
lea ecx, [ebx + 0x14]
call fcn.004475d8
test eax, eax
je 0x42cac0
mov ecx, eax
call fcn.00456223
xor ecx, ecx
test al, al
setne cl
mov dword [ebx + 0x770], ecx
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x6d75b0
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42cb61
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebx + 0x778]
push 4
push eax
push 4
push 0
push str.Close
push dword [ebp - 0x14]
call edi
push 4
lea eax, [ebx + 0x774]
push eax
push 4
push 0
push str.Desktop
push dword [ebp - 0x14]
call edi
push 4
lea eax, [ebx + 0x770]
push eax
push 4
push 0
push str.AutoRun
push dword [ebp - 0x14]
call edi
lea esi, [ebx + 0x77c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push 0
push str.SaveDir
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x14]
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 - 0x10]
xor ecx, ebp
call fcn.004a1496
mov esp, ebp
pop ebp
ret