joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56e3d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x626868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x62b758]
push 0
lea ecx, [esp + 0x20]
call fcn.0061be3e
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0056dd30
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0061bd6c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00618553
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00618553
push 1
push 0
push 0
mov ecx, esi
call fcn.006184fb
push 1
push 0
push 1
mov ecx, esi
call fcn.006184fb
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0061beb0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x56e550
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x626888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0061be3e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0056dd30
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0061bd6c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x62b758]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x56e614
cmp dword [esp + 0x40], 1
jne 0x56e612
cmp ecx, eax
jge 0x56e614
mov eax, ecx
cmp eax, 0xc8
jge 0x56e620
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0056e3d0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x62b754]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0061beb0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x56ee20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x626933
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00616974
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x12b8ab0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x12b89f8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x62b11c]
push eax
mov ecx, edi
call fcn.0061c0e6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0061d8e1
test eax, eax
je 0x56ef3c
mov ecx, dword [esp + 0x3c]
call fcn.0061c113
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x62b778]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x56ef00
push edi
mov ecx, esi
call fcn.006196d1
mov ecx, esi
call fcn.0056f0f0
cmp dword [esp + 0x38], 1
jne 0x56ef35
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0061983b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x571130
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x571163
push esi
call fcn.0057f460
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x57115c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x5711e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5711d2
mov eax, dword [esi + 8]
test eax, eax
je 0x571187
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5711ce
cmp eax, 2
je 0x5711d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x57117a
cmp eax, 3
je 0x5711ad
cmp eax, 1
jne 0x57117a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x57117a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x57117a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00571210
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5711f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00571210
add esp, 4
pop esi
ret
Function at 0x5adf00
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x628700
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5ae0a7
mov ecx, dword [0x12fc3b8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x5adffc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.005acc20
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.006153ab
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00615272
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x12e9ed0
call fcn.006152e0
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.005acfe0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.006153ab
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00615272
lea ecx, [esp + 0xc]
call fcn.00615786
mov ecx, dword [esp + 0xc]
push 0x12ea90c
push ecx
call fcn.00603044
add esp, 8
test eax, eax
je 0x5ae024
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x5adf5d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00615272
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00615272
jmp 0x5ae0ab
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.005adca0
test eax, eax
push 0
je 0x5ae08f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.005ac340
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x5ae075
cmp eax, 0x64
jg 0x5ae063
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [0x62b460]
mov esi, eax
jmp 0x5ae000
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [0x62b460]
mov esi, eax
jmp 0x5ae000
cmp eax, 0x64
jge 0x5adffc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [0x62b460]
mov esi, eax
jmp 0x5ae000
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.005ac340
mov esi, eax
jmp 0x5ae000
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x5ae0b5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x5b6770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x628a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005b6350
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.005b63c0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005b66a0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005b6370
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x5b6788
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x628a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005b6350
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.005b63c0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005b66a0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005b6370
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x5b9000
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5b900b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5b910e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x12be3a4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x12be3a4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x12be3a4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x12be3a4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x12be3a4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x12be3a4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x12be3a4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x12be3a4]
xor eax, edx
inc ecx
dec edi
jne 0x5b9026
pop edi
test esi, esi
je 0x5b9130
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x12be3a4]
xor eax, edx
inc ecx
dec esi
jne 0x5b9112
pop esi
pop ebx
not eax
ret
Function at 0x5e6d30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1356ce8]
xor edx, edx
cmp eax, edx
jne 0x5e6d56
xor eax, eax
mov byte [eax + 0x1356be8], al
inc eax
cmp eax, 0x100
jl 0x5e6d3e
mov dword [0x1356ce8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1356be8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5e6de7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5e6dba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5e6d88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5e6df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5e6e43
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5e6e2a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5ed7d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x62928e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005ee0f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x12c0164
call fcn.00614fb3
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5ed863
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00614fb3
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5ed85c
push 0
mov ecx, eax
call fcn.005e4970
mov dword [esi + 0xc], eax
jmp 0x5ed865
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5ed865
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x27b11fbc
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x4f4c08bc
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x403347
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x218
mov ebx, dword [esp + 0x234]
mov edi, dword [esp + 0x230]
mov esi, ebx
and esi, 0x300
lea eax, [esi + 9]
mov ecx, esp
push ecx
push eax
push edi
push dword [esp + 0x238]
call fcn.004077df
test eax, eax
jne 0x403436
mov dword [esp + 4], esi
test bl, 2
je 0x4033c2
xor eax, eax
lea ecx, [esp + 8]
mov dword [ecx], eax
mov edx, dword [esp]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x2e]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x403418
lea ebp, [esp + 0xe]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x105
push ebp
push 0
push dword [esp + 0xc]
call esi
test eax, eax
jne 0x4033f2
test bl, 1
jne 0x403418
push ebx
push ebp
push dword [esp + 8]
call fcn.00403347
test eax, eax
je 0x4033cc
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040692c
test eax, eax
je 0x403428
push 0
push dword [esp + 8]
push edi
push dword [esp + 0x238]
call eax
jmp 0x403436
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x403436
push edi
push dword [esp + 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x403906
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x403931
add eax, dword [0x421a84]
mov dword [0x421a48], eax
xor ecx, ecx
push ecx
push ecx
push eax
push dword [0x417014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403a19
test eax, eax
js 0x4039a5
mov eax, esp
push 4
push eax
push dword [0x417014]
call fcn.00407195
test eax, eax
je 0x4039fd
add dword [0x421a48], 4
push dword [esp]
call fcn.00403a19
test eax, eax
js 0x4039a5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4039a9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp]
cmp edx, ecx
cmovl ecx, edx
lea edx, [esp + 4]
push 0
push edx
push ecx
push eax
push dword [0x417014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0xfffffffd
test eax, eax
je 0x403a02
mov esi, dword [esp + 4]
add dword [0x421a48], esi
jmp 0x403a02
mov esi, eax
jmp 0x403a02
mov edi, dword [esp]
test edi, edi
jle 0x403a0e
mov ebx, dword [esp + 0x20]
xor esi, esi
mov ebp, 0x4000
cmp edi, ebp
cmovge edi, ebp
push edi
push 0x421a8c
push dword [0x417014]
call fcn.00407195
test eax, eax
je 0x4039fd
push edi
push 0x421a8c
push ebx
call fcn.004071c7
test eax, eax
je 0x403a12
add esi, edi
mov eax, dword [esp]
add dword [0x421a48], edi
sub eax, edi
mov dword [esp], eax
mov edi, eax
test eax, eax
jg 0x4039bb
jmp 0x403a02
mov esi, 0xfffffffd
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
xor esi, esi
jmp 0x403a02
mov esi, 0xfffffffe
jmp 0x403a02
Function at 0x4068a0
Capabilities:
Create directory

Disassembly:
push esi
sub esp, 0x20
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
mov dword [ecx], 0x40001
mov edx, 0x40a7d4
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
xor esi, esi
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], 0x40a7c4
mov edx, esp
mov dword [edx], 0xc
mov dword [edx + 4], ecx
mov dword [edx + 8], esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4068eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
add esp, 0x20
pop esi
ret 4

Function at 0x406965
Capabilities:
Create process on windows

Disassembly:
push esi
sub esp, 0x38
mov eax, dword [esp + 0x40]
mov dword [0x432b28], 0x44
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], ecx
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
movaps xmm0, xmmword [0x40a790]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x20], 0x432b28
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x4069c5
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov esi, dword [esp + 0x28]
mov eax, esi
add esp, 0x38
pop esi
ret 4

Function at 0x4069ce
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x406a7a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00406acb
xor esi, esi
cmp eax, 0xffffffff
je 0x406ac2
mov edi, eax
mov eax, dword [esp + 0x18]
mov ebp, eax
test al, 1
jne 0x406aa4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406aab
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x406ab4
xor esi, esi
inc esi
jmp 0x406ac2
mov eax, ebp
test al, 4
jne 0x406ac2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x406acb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
je 0x406aec
mov eax, esi
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop edi
ret 4
Function at 0x406af3
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x260
mov esi, dword [esp + 0x278]
mov ebx, dword [esp + 0x274]
push ebx
call fcn.00406d24
mov ecx, esi
test cl, 8
jne 0x406b43
mov edx, ecx
and edx, 4
mov dword [esp + 8], edx
test cl, 1
jne 0x406b5c
mov dword [esp + 4], eax
push 0x400
push ebx
push 0x432b6c
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.00406ddb
jmp 0x406b8f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x40a474]
cmp eax, 1
adc dword [ecx + 8], 0
jmp 0x406d05
test cl, 2
je 0x406cc7
test eax, eax
je 0x406cc7
mov dword [esp + 4], eax
mov esi, 0x432b6c
push 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str..
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebx], 0
jne 0x406b9f
cmp word [0x432b6c], 0x5c
jne 0x406bab
push 0x40a802
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebx + eax*2]
lea ebp, [esp + 0x10]
push ebp
push 0x432b6c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x406cb2
mov edi, eax
mov eax, dword [esp + 0x278]
and eax, 3
mov dword [esp + 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp], esi
movzx ecx, word [esp + 0x3c]
movzx eax, word [esp + 0x3e]
cmp cx, 0x2e
jne 0x406c00
test ax, ax
je 0x406c98
cmp cx, 0x2e
jne 0x406c18
cmp ax, 0x2e
jne 0x406c18
cmp word [esp + 0x40], 0
je 0x406c98
push 0x400
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [esp + 0x10], 0x10
jne 0x406c50
mov esi, dword [esp + 8]
push esi
mov ebp, dword [esp + 0x278]
push ebp
call fcn.00406a7a
test eax, eax
je 0x406c6c
push ebp
push 0xfffffffffffffff2
call fcn.004064bb
jmp 0x406c91
cmp dword [esp + 0xc], 3
jne 0x406c98
push dword [esp + 0x278]
push dword [esp + 0x278]
call fcn.00406af3
jmp 0x406c98
test esi, esi
jne 0x406c7a
mov eax, dword [0x40a474]
inc dword [eax + 8]
jmp 0x406c91
mov ebp, dword [esp + 0x274]
push ebp
push 0xfffffffffffffff1
call fcn.004064bb
push 0
push ebp
call fcn.00406e12
mov esi, dword [esp]
lea ebp, [esp + 0x10]
push ebp
push edi
call ebx
test eax, eax
jne 0x406be7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
test al, 1
je 0x406d05
mov word [esi - 2], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x406cfd
push ebx
call fcn.00406e41
test eax, eax
je 0x406d05
push ebx
call fcn.00406e69
mov esi, dword [esp + 8]
mov eax, esi
or eax, 1
push eax
push ebx
call fcn.00406a7a
test eax, eax
je 0x406cf9
push ebx
push 0xffffffffffffffe5
call fcn.004064bb
jmp 0x406d05
test esi, esi
jne 0x406d12
mov eax, dword [0x40a474]
inc dword [eax + 8]
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret 8
push ebx
push 0xfffffffffffffff1
call fcn.004064bb
push 0
push ebx
call fcn.00406e12
jmp 0x406d05