joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor al, 0x56
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x4f]
test byte [ebx + 0xdbe8428], dl
add byte [eax], al
mov ecx, dword [esi - 0x70]
xchg esi, eax
fadd qword [ebx - 0x76a8fe07]
inc ebp
cld
cmp byte [ebp + 8], al
lar ebx, word [eax + eax + 0x7e8b0000]
cmp al, 0x28
clc
je 0x40b395
mov dl, 0x5e
cmp byte [ebx + 0x5778eff], al
cmp edi, 0xffffff8e
ja 0x40b311
or eax, 0xffffffff
jmp 0x40b313
mov eax, edi
mov edx, dword [edx + 4]
lea ecx, [ebp + 8]
push 0x4d
push ecx
push eax
jge 0x40b371
call dword [sym.imp.KERNEL32.dll_WriteFile]
test dword [edx + 0x74], edx
push ebx
push ebp
inc ebp
lds ecx, [ebx + 0x4e0cf37f]
push edi
add esi, edi
cmp ebx, 0
sub edi, eax
add ebx, eax
sbb byte [esi + 0x50], dl
test edi, edi
lodsb al, byte [esi]
dec esi
push esp
ja 0x40b307
mov eax, dword [ebp + 8]
cmp eax, dword [ecx + 0x3c46]
xor dword [eax], eax
pop ebx
lodsd eax, dword [esi]
jmp 0x40b339
inc ebp
sub cl, byte [ebx + 0x568bfc45]
push eax
mov ecx, dword [esi + 0x54]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x50], edx
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x58ae46b2
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3dc142d4
nop
nop
nop
nop
test eax, eax
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x421a5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00428cb0
mov eax, dword [0x4846c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041b83b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x421aa0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421bfc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428ce0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x486200]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421e84
mov ecx, dword [esi*4 + 0x486200]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x421bf5
cmp eax, dword [edi + ecx + 0x24]
jne 0x421bf5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421bf5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421e84
add esp, 0x14
test edx, edx
jl 0x421bf5
jg 0x421b6b
test eax, eax
jb 0x421bf5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421bf5
jl 0x421b85
cmp dword [ebp - 0x1008], eax
ja 0x421bf5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421ba3
test ebx, ebx
je 0x421bdc
cmp ecx, edi
jae 0x421bdc
mov al, byte [ecx]
cmp al, 0xd
jne 0x421bbd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421bc9
cmp byte [ecx + 1], 0xa
jne 0x421bc9
inc ecx
jmp 0x421bc9
movzx eax, al
movsx eax, byte [eax + 0x485160]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421ba3
cmp edx, ebx
jne 0x421ba3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x421bfa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a729
leave
ret
Function at 0x425c62
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x486200]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425ca2
cmp byte [ebx], 0xa
jne 0x425ca2
or byte [eax + edi + 0x28], 4
jmp 0x425ca7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x425da5
mov al, byte [edx]
cmp al, 0x1a
je 0x425d87
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x425cd6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x425cfb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x425d05
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x425cb8
jmp 0x425da5
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425d82
cmp dword [ebp - 0xc], 0
je 0x425d82
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486200]
test byte [eax + edi + 0x28], 0x48
je 0x425d5c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425d47
mov byte [esi], dl
jmp 0x425d58
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486200]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425da5
cmp byte [ebp - 1], 0xa
jne 0x425d6b
cmp esi, ebx
jne 0x425d6b
mov byte [esi], 0xa
jmp 0x425da4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421ea2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425da5
mov byte [esi], 0xd
jmp 0x425da4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486200]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425da1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425da5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425dae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486200]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425df1
cmp word [esi], dx
jne 0x425df1
or byte [edi + eax + 0x28], 4
jmp 0x425df6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x425f49
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x425f29
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x425e38
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425e6e
cmp eax, edx
jae 0x425e7a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x425e10
jmp 0x425f49
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425f25
cmp dword [ebp - 0x14], 0
je 0x425f25
mov eax, dword [ebx*4 + 0x486200]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x425efd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x425ec6
mov word [esi], cx
jmp 0x425ef9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486200]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486200]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486200]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425f49
pop ebx
cmp word [ebp - 4], bx
jne 0x425f0e
cmp esi, dword [ebp + 0xc]
jne 0x425f0e
mov word [esi], bx
jmp 0x425f46
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421ea2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425f49
push 0xd
jmp 0x425f42
mov ecx, dword [ebx*4 + 0x486200]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425f40
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425f49
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x428ab0
Capabilities:
Parse pe header

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

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4011c6
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call fcn.0040114f
call section..text
movzx eax, al
cmp eax, 1
jne 0x4011e9
push 5
pop eax
jmp 0x4013b8
and dword [ebp - 0x40], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x44], 0
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0x330
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, eax
add ebx, 0xc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x30]
mov ecx, 0x18
xor esi, esi
xor ebx, ebx
add bl, byte [edi + ecx - 1]
add esi, ebx
loop 0x401234
cmp esi, dword [ebp - 0x2c]
je 0x401249
mov eax, dword [eax]
cmp eax, ebx
jne 0x40122a
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
nop
popal
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x550724
push dword [0x550700]
push 0x550704
push dword [0x550724]
push 0x550728
call fcn.0040102b
add esp, 0x14
push 0x550728
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
push 0x550744
push dword [0x550700]
push 0x550704
push dword [0x550744]
push 0x550748
call fcn.0040102b
add esp, 0x14
push 0x550748
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0x550764
push dword [0x550700]
push 0x550704
push dword [0x550764]
push 0x550768
call fcn.0040102b
add esp, 0x14
push 0x550768
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x40402c]
mov dword [ebp - 0x10], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x404030
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10]
push eax
push dword [section..data]
push 0x404004
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0x20
push dword [0x40402c]
push dword [ebp - 4]
call dword [ebp - 0x24]
push 0x4046fc
push dword [0x4046d0]
push 0x4046d4
push dword [0x4046fc]
push 0x404700
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [0x5507bc], eax
and dword [ebp - 0x28], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
push dword [ebp - 0x28]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [0x5507bc]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001b23
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
jne 0x1001b59
push esi
push 0x10
push esi
push esi
push 0x4f5
push esi
call fcn.010037d6
xor eax, eax
jmp 0x1001bc0
lea eax, [ebp - 0x14]
push eax
push 0x10012e4
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
push esi
jne 0x1001ba5
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001b4f
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001bbd
push esi
push 0x10
push esi
push esi
push 0x4f7
jmp 0x1001b4f
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x1001bc8
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x100c600], 0
je 0x1001c0d
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c0d
push 0x100c600
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x1001c54
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001ccf
push 0x10012f8
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01007460
lea eax, [ebp - 0x108]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ccf
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01006b33
leave
ret

Function at 0x1001ce4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d2f
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001d26
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x10023d4
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100251a
cmp byte [edi], 0
je 0x100251a
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001ede
push 0x1001328
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f18
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x24c], eax
je 0x1002519
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001ede
test byte [ebp - 0x248], 0x10
lea eax, [ebp - 0x21c]
je 0x10024bd
push 0x1001324
push eax
call ebx
test eax, eax
je 0x10024ea
push 0x1001320
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
je 0x10024ea
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f18
push 0x10012e1
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01007460
lea eax, [ebp - 0x108]
push eax
call fcn.010023d4
jmp 0x10024ea
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f18
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100244e
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01006b33
leave
ret 4
Function at 0x100312f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
push dword [ebp + 8]
xor ebx, ebx
push ebx
call esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, dword [ebp + 0x10]
ja 0x1003196
cmp dword [ebp + 0xc], ebx
je 0x1003196
cmp edi, ebx
jne 0x1003163
xor eax, eax
jmp 0x1003196
push 0xa
push dword [ebp + 8]
push ebx
call esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x100315f
push edi
push esi
push dword [ebp + 0xc]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10031d1
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov cl, byte [edi]
xor ebx, ebx
cmp cl, bl
je 0x1003240
push esi
lea esi, [edi + 1]
mov al, byte [esi]
cmp al, 0x3a
mov dword [ebp + 8], ebx
jne 0x10031fb
cmp byte [edi + 2], 0x5c
jne 0x10031fb
lea esi, [edi + 3]
jmp 0x100323b
cmp cl, 0x5c
jne 0x100323b
cmp al, cl
jne 0x100323b
lea esi, [edi + 2]
mov dword [ebp + 8], 2
jmp 0x100323b
cmp byte [esi], 0x5c
jne 0x1003232
cmp byte [esi - 1], 0x3a
je 0x1003232
cmp dword [ebp + 8], ebx
je 0x1003225
dec dword [ebp + 8]
jmp 0x1003232
push ebx
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], bl
jne 0x1003210
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1003e38
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x100d2a0]
test esi, esi
mov ebx, esi
je 0x1003e9a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100dee4], 0
jne 0x1003e89
cmp dword [0x100daf0], 0
jne 0x1003e89
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebx]
mov esi, dword [esi + 4]
call edi
push ebx
call edi
test esi, esi
mov ebx, esi
jne 0x1003e62
pop edi
xor eax, eax
cmp dword [0x100dee0], eax
pop esi
pop ebx
je 0x1003ef8
cmp dword [0x100dee4], eax
jne 0x1003ef8
cmp dword [0x100daf0], eax
jne 0x1003ef8
push 0x100d2a4
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01001ede
test byte [0x100daf4], 0x20
je 0x1003ee1
lea eax, [ebp - 0x108]
push eax
call fcn.010073f7
push 0x1001320
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.010023d4
cmp word [0x100d0cc], 1
je 0x1003f10
cmp dword [0x100dee0], 0
je 0x1003f10
call fcn.01001bc8
mov ecx, dword [ebp - 4]
and dword [0x100dee0], 0
xor ecx, ebp
call fcn.01006b33
leave
ret