joyce8/EMBER2024-capa huggingface dataset:
Function at 0x511c60
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push 0x617f28
mov esi, ecx
call fcn.00476460
mov ebx, dword [esp + 0xc]
mov dword [esi + 0x1e0], 0x12345678
mov dword [esi + 0x1e4], 0x23456789
mov dword [esi + 0x1e8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x511cf4
push edi
mov eax, 0x12345678
mov edi, 0x23456789
mov edx, 0x34567890
movsx ecx, cl
lea ebx, [ebx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x617f28]
movzx ecx, al
add ecx, edi
mov dword [esi + 0x1e0], eax
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 0x1e4], edi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x617f28]
mov dword [esi + 0x1e8], edx
mov cl, byte [ebx]
test cl, cl
jne 0x511ca6
pop edi
pop esi
pop ebx
ret 4

Function at 0x511d00
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp byte [0x58ebe8], 0
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
mov ecx, dword [esp + 0x10]
je 0x511de2
push ebx
mov ebx, ecx
imul ebx, eax
cmp byte [esi + 4], 0
je 0x511d4e
push ebx
push edi
lea eax, [esi + 8]
push eax
call fcn.004db740
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
pop ebx
push 0
push eax
push ecx
push edi
mov ecx, esi
call fcn.00510540
pop edi
pop esi
ret 0xc
push ebp
mov ebp, edi
test ebx, ebx
je 0x511de0
lea esp, [esp]
movsx eax, byte [ebp]
lea ebp, [ebp + 1]
mov ecx, dword [esi + 0x1e0]
xor eax, ecx
mov edx, dword [esi + 0x1e8]
mov edi, edx
movzx eax, al
and edi, 0xfffd
shr ecx, 8
or edi, 2
xor ecx, dword [eax*4 + 0x617f28]
movzx eax, cl
add eax, dword [esi + 0x1e4]
imul eax, eax, 0x8088405
mov dword [esi + 0x1e0], ecx
inc eax
mov dword [esi + 0x1e4], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x617f28]
mov eax, edi
xor eax, 1
mov dword [esi + 0x1e8], edx
imul eax, edi
shr eax, 8
xor byte [ebp - 1], al
sub ebx, 1
jne 0x511d60
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
push 0
push eax
push ecx
push edi
mov ecx, esi
call fcn.00510540
pop edi
pop esi
ret 0xc
Function at 0x51b5d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x50
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov esi, dword [esp + 0x58]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51b61a
test al, 0x10
jne 0x51b605
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x51b61a
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0051dca8
add esp, 0x50
ret 4
xor eax, eax
mov dword [esp + 0x10], 0x54266c
mov dword [esp + 0x28], eax
lea ecx, [esp + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x64b794]
mov dword [esp + 0x14], 0x54266c
mov dword [esp + 0x18], 0x54266c
mov dword [esp + 0x1c], 0x54266c
mov dword [esp + 0x20], 0x54266c
mov dword [esp + 0x24], 0x54266c
mov dword [esp + 0x50], 0x11
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x48], 2
call fcn.004b2040
mov ecx, dword [esp + 0x54]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x50
ret 4

Function at 0x51ed03
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x51ed42
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x51ed42
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x51ed42
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x51ed42
cmp dword [ecx + 0x74], 0xe
jbe 0x51ed42
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x528309
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 + 0x618da0]
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 0x528349
cmp byte [ebx], 0xa
jne 0x528349
or byte [eax + edi + 0x28], 4
jmp 0x52834e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x52844c
mov al, byte [edx]
cmp al, 0x1a
je 0x52842e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x52837d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5283a2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5283ac
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 0x52835f
jmp 0x52844c
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 0x528429
cmp dword [ebp - 0xc], 0
je 0x528429
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x618da0]
test byte [eax + edi + 0x28], 0x48
je 0x528403
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5283ee
mov byte [esi], dl
jmp 0x5283ff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x618da0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x52844c
cmp byte [ebp - 1], 0xa
jne 0x528412
cmp esi, ebx
jne 0x528412
mov byte [esi], 0xa
jmp 0x52844b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005282ab
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x52844c
mov byte [esi], 0xd
jmp 0x52844b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x618da0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x528448
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x52844c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x528455
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 + 0x618da0]
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 0x528498
cmp word [esi], dx
jne 0x528498
or byte [edi + eax + 0x28], 4
jmp 0x52849d
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 0x5285f0
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 0x5285d0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5284df
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x528515
cmp eax, edx
jae 0x528521
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 0x5284b7
jmp 0x5285f0
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 0x5285cc
cmp dword [ebp - 0x14], 0
je 0x5285cc
mov eax, dword [ebx*4 + 0x618da0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5285a4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x52856d
mov word [esi], cx
jmp 0x5285a0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x618da0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x618da0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x618da0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x5285f0
pop ebx
cmp word [ebp - 4], bx
jne 0x5285b5
cmp esi, dword [ebp + 0xc]
jne 0x5285b5
mov word [esi], bx
jmp 0x5285ed
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005282ab
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5285f0
push 0xd
jmp 0x5285e9
mov ecx, dword [ebx*4 + 0x618da0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5285e7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5285f0
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 0x52f20e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x55aef4
push 0x55aeec
push str.FlsAlloc
push 0x1e
call fcn.0052f08f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x52f242
push dword [ebp + 8]
mov ecx, esi
call dword [0x541740]
call esi
jmp 0x52f248
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x52f28c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x55af04
push 0x55aefc
push str.FlsGetValue
push 0x20
call fcn.0052f08f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x52f2c3
push dword [ebp + 8]
mov ecx, esi
call dword [0x541740]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x52fa4f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0052f9cb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x52fbc7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x52fbc7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x52fb76
jg 0x52faa8
test eax, eax
je 0x52fb6c
push 1
push 0x1000
call fcn.0052eeff
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x52face
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x52fb63
push 0x8000
push ebx
call fcn.0052a8aa
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x52fafa
jg 0x52faf5
cmp ecx, 0x1000
jb 0x52fafa
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0052956f
add esp, 0x10
cmp eax, 0xffffffff
je 0x52fb3f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x52faf5
jl 0x52fb26
test ecx, ecx
jne 0x52fae7
push dword [ebp - 0xc]
push ebx
call fcn.0052a8aa
push esi
call fcn.0052cd1c
add esp, 0xc
xor edi, edi
jmp 0x52fbd8
cmp byte [edi + 0x24], 0
je 0x52fb56
cmp dword [edi + 0x20], 5
jne 0x52fb56
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x52fb61
mov edi, dword [edi + 0x18]
jmp 0x52fb63
xor edi, edi
push esi
call fcn.0052cd1c
pop ecx
jmp 0x52fbd8
test ecx, ecx
jg 0x52fb38
jl 0x52fb76
test eax, eax
jae 0x52fb38
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005282ab
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x52fb99
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x52fb38
jmp 0x52fbd0
push ebx
call fcn.0052f961
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x52fb38
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x52fbd8
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x52fbd5
mov edi, dword [edi + 0x18]
jmp 0x52fbd8
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005282ab
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x530037
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052fea8
Function at 0x5303a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0051dcc0
mov eax, dword [0x572844]
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.0052a819
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5303e4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x530540
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0051dcf0
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 + 0x618da0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0052828d
mov ecx, dword [esi*4 + 0x618da0]
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 0x530539
cmp eax, dword [edi + ecx + 0x24]
jne 0x530539
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 0x530539
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0052828d
add esp, 0x14
test edx, edx
jl 0x530539
jg 0x5304af
test eax, eax
jb 0x530539
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x530539
jl 0x5304c9
cmp dword [ebp - 0x1008], eax
ja 0x530539
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5304e7
test ebx, ebx
je 0x530520
cmp ecx, edi
jae 0x530520
mov al, byte [ecx]
cmp al, 0xd
jne 0x530501
lea eax, [edi - 1]
cmp ecx, eax
jae 0x53050d
cmp byte [ecx + 1], 0xa
jne 0x53050d
inc ecx
jmp 0x53050d
movzx eax, al
movsx eax, byte [eax + 0x5728b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5304e7
cmp edx, ebx
jne 0x5304e7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x53053e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0051dca8
leave
ret
Function at 0x532140
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5321dd
push ebx
push esi
call fcn.00532109
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0052fc48
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x53218a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5321dc
push edi
push eax
call fcn.0052cd56
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5321aa
call fcn.0052cd1c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5321db
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0052fc48
add esp, 0x20
test eax, eax
jne 0x5321c9
push edi
call fcn.0052cd1c
jmp 0x5321d1
push ebx
call fcn.0052cd1c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x537da0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x537dcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x537dcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402eae
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004064f5
xor ebx, ebx
cmp eax, ebx
jne 0x402f91
test byte [ebp + 0x10], 2
je 0x402f0f
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f76
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f4b
test edi, edi
jne 0x402f76
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402eae
test eax, eax
jne 0x402f54
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406a7c
test eax, eax
jne 0x402f86
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f91
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f91
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40337c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4033a7
mov ecx, dword [0x7a82f8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x79f734], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403484
cmp eax, esi
jl 0x40347e
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004061fb
test eax, eax
je 0x40346e
push dword [ebp + 8]
add dword [0x79f734], 4
call fcn.00403484
mov ebx, eax
cmp ebx, esi
jl 0x40347c
cmp dword [ebp + 0x10], esi
jne 0x40344a
cmp dword [ebp + 8], esi
jle 0x40347c
mov esi, 0x793730
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40340c
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004061fb
test eax, eax
je 0x40346e
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.0040622a
test eax, eax
je 0x403446
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x79f734], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4033fb
jmp 0x40347c
push 0xfffffffffffffffe
jmp 0x403470
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403455
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403473
push 0xfffffffffffffffd
pop eax
jmp 0x40347e
mov ebx, dword [ebp - 4]
add dword [0x79f734], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405c6b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a4790], 0x44
push eax
xor eax, eax
push 0x7a4790
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405caa
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405cae
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406153
mov edi, eax
cmp edi, 0xffffffff
je 0x405d8d
test byte [esp + 0x10], 1
push esi
je 0x405d6f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405d75
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405d7e
xor eax, eax
inc eax
jmp 0x405d8f
test byte [esp + 0x10], 4
jne 0x405d8d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405d94
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040605f
test bl, 8
mov dword [ebp - 8], eax
je 0x405dd3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8328], eax
jmp 0x405f50
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405ded
test eax, eax
je 0x405efe
test bl, 2
je 0x405efe
mov esi, 0x7a3790
push edi
push esi
call fcn.00406688
cmp dword [ebp + 8], 0
je 0x405e0c
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405e12
push edi
call fcn.00405fa3
cmp word [edi], 0
jne 0x405e22
cmp word [0x7a3790], 0x5c
jne 0x405e2d
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ef3
cmp word [ebp - 0x22c], 0x2e
jne 0x405e77
cmp word [ebp - 0x22a], 0
je 0x405ed6
cmp word [ebp - 0x22a], 0x2e
jne 0x405e77
cmp word [ebp - 0x228], 0
je 0x405ed6
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406688
test byte [ebp - 0x258], 0x10
je 0x405ea2
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ed6
push dword [ebp + 0xc]
push edi
call fcn.00405d94
jmp 0x405ed6
push dword [ebp - 4]
push edi
call fcn.00405d4c
test eax, eax
jne 0x405ece
cmp dword [ebp - 4], eax
je 0x405ec6
push edi
push 0xfffffffffffffff1
call fcn.0040570d
push 0
push edi
call fcn.00406448
jmp 0x405ed6
inc dword [0x7a8328]
jmp 0x405ed6
push edi
push 0xfffffffffffffff2
call fcn.0040570d
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405e4f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405efe
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405f50
cmp dword [ebp - 8], esi
jne 0x405f12
inc dword [0x7a8328]
jmp 0x405f50
push edi
call fcn.004069e5
test eax, eax
je 0x405f50
push edi
call fcn.00405f57
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405d4c
test eax, eax
jne 0x405f48
cmp dword [ebp - 4], esi
je 0x405f0a
push edi
push 0xfffffffffffffff1
call fcn.0040570d
push esi
push edi
call fcn.00406448
jmp 0x405f50
push edi
push 0xffffffffffffffe5
call fcn.0040570d
pop edi
pop esi
pop ebx
leave
ret 8