joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41642d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425c68
push 0x425c60
push str.FlsAlloc
push 0x1e
call fcn.004162ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416461
push dword [ebp + 8]
mov ecx, esi
call dword [0x42315c]
call esi
jmp 0x416467
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4164ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425c78
push 0x425c70
push str.FlsGetValue
push 0x20
call fcn.004162ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4164e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42315c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x417966
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 + 0x42f930]
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 0x4179a6
cmp byte [ebx], 0xa
jne 0x4179a6
or byte [eax + edi + 0x28], 4
jmp 0x4179ab
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417aa9
mov al, byte [edx]
cmp al, 0x1a
je 0x417a8b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4179da
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4179ff
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417a09
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 0x4179bc
jmp 0x417aa9
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 0x417a86
cmp dword [ebp - 0xc], 0
je 0x417a86
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42f930]
test byte [eax + edi + 0x28], 0x48
je 0x417a60
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417a4b
mov byte [esi], dl
jmp 0x417a5c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42f930]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417aa9
cmp byte [ebp - 1], 0xa
jne 0x417a6f
cmp esi, ebx
jne 0x417a6f
mov byte [esi], 0xa
jmp 0x417aa8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418879
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417aa9
mov byte [esi], 0xd
jmp 0x417aa8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42f930]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417aa5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417aa9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417ab2
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 + 0x42f930]
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 0x417af5
cmp word [esi], dx
jne 0x417af5
or byte [edi + eax + 0x28], 4
jmp 0x417afa
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 0x417c4d
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 0x417c2d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417b3c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417b72
cmp eax, edx
jae 0x417b7e
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 0x417b14
jmp 0x417c4d
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 0x417c29
cmp dword [ebp - 0x14], 0
je 0x417c29
mov eax, dword [ebx*4 + 0x42f930]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417c01
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417bca
mov word [esi], cx
jmp 0x417bfd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42f930]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42f930]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42f930]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x417c4d
pop ebx
cmp word [ebp - 4], bx
jne 0x417c12
cmp esi, dword [ebp + 0xc]
jne 0x417c12
mov word [esi], bx
jmp 0x417c4a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418879
add esp, 0x10
cmp word [ebp - 4], bx
je 0x417c4d
push 0xd
jmp 0x417c46
mov ecx, dword [ebx*4 + 0x42f930]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417c44
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417c4d
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 0x41846e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004182df
Function at 0x41b9ee
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 0x41ba8b
push ebx
push esi
call fcn.0041b9b7
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.004159c2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ba38
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ba8a
push edi
push eax
call fcn.00419741
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ba58
call fcn.00415052
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ba89
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004159c2
add esp, 0x20
test eax, eax
jne 0x41ba77
push edi
call fcn.00415052
jmp 0x41ba7f
push ebx
call fcn.00415052
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 0x41ba8e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41ba9f
pop esi
ret
push ebx
push edi
push esi
call fcn.0041b9b7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00419741
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41bac7
push ebx
push esi
push edi
call fcn.004077e0
add esp, 0xc
push 0
call fcn.00415052
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x42089a
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.00420816
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x420a12
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x420a12
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4209c1
jg 0x4208f3
test eax, eax
je 0x4209b7
push 1
push 0x1000
call fcn.004158e9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x420919
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4209ae
push 0x8000
push ebx
call fcn.00413d19
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 0x420945
jg 0x420940
cmp ecx, 0x1000
jb 0x420945
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004191c4
add esp, 0x10
cmp eax, 0xffffffff
je 0x42098a
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 0x420940
jl 0x420971
test ecx, ecx
jne 0x420932
push dword [ebp - 0xc]
push ebx
call fcn.00413d19
push esi
call fcn.00415052
add esp, 0xc
xor edi, edi
jmp 0x420a23
cmp byte [edi + 0x24], 0
je 0x4209a1
cmp dword [edi + 0x20], 5
jne 0x4209a1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4209ac
mov edi, dword [edi + 0x18]
jmp 0x4209ae
xor edi, edi
push esi
call fcn.00415052
pop ecx
jmp 0x420a23
test ecx, ecx
jg 0x420983
jl 0x4209c1
test eax, eax
jae 0x420983
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418879
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4209e4
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x420983
jmp 0x420a1b
push ebx
call fcn.0041bed7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x420983
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 0x420a23
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x420a20
mov edi, dword [edi + 0x18]
jmp 0x420a23
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00418879
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x421fe0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42200d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42200d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4afc40
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
sub esi, esi
push 1
push esi
push esi
push edi
push esi
pop ebx
mov dword [ebp - 8], esi
call fcn.004accbb
mov ecx, edx
mov dword [ebp - 0x18], eax
and eax, ecx
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
je 0x4afcc8
push 2
push esi
push esi
push edi
call fcn.004accbb
push eax
pop ecx
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4afcc8
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x4afd5f
jg 0x4afca2
or esi, esi
je 0x4afd5f
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
or eax, eax
jne 0x4afcd4
call fcn.004a7784
mov dword [eax], 0xc
call fcn.004a7784
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.004afe1e
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
or eax, eax
jl 0x4afcfc
jg 0x4afcf5
cmp esi, 0x1000
jb 0x4afcfc
mov eax, 0x1000
jmp 0x4afcfe
mov eax, esi
push eax
push dword [ebp - 0xc]
push edi
call fcn.004ac0c8
add esp, 0xc
cmp eax, 0xffffffff
je 0x4afd25
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x4afd40
jg 0x4afce7
or esi, esi
je 0x4afd40
jmp 0x4afce7
call fcn.004a7750
cmp dword [eax], 5
jne 0x4afd3a
call fcn.004a7784
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.004afe1e
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4afdc5
or eax, eax
jg 0x4afdd1
jl 0x4afd69
or esi, esi
jae 0x4afdd1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004accbb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4afcc8
push edi
call fcn.004af84a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov ebx, eax
mov eax, edx
push ebx
pop ecx
and ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
jne 0x4afdd1
call fcn.004a7784
mov dword [eax], 0xd
call fcn.004a7750
push eax
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x4afcc8
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.004accbb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4afcc8
sub eax, eax
jmp 0x4afccf

Function at 0x601e2d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
or byte [ebp + 0x71], al
dec ebp
jno 0x601e7c
and al, 0xff
fild dword [eax + ebx*8 - 0x1931c185]
into
out 0x4f, al
movsb byte es:[edi], byte [esi]
dec ebx
loopne 0x601e2b
Function at 0x16dd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.016dd1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x16dd07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16dd06a
add dl, dl
jne 0x16dd089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16dd0dc
xor eax, eax
add dl, dl
jne 0x16dd096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16dd17d
add dl, dl
jne 0x16dd0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16dd0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16dd0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16dd0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x16dd0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x16dd075
mov eax, 1
add dl, dl
jne 0x16dd0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16dd0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16dd0e1
sub eax, ebx
mov ebx, 1
jne 0x16dd128
mov ecx, 1
add dl, dl
jne 0x16dd10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16dd119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16dd105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16dd075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x16dd13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16dd14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16dd136
cmp eax, 0x7d00
jae 0x16dd16d
cmp eax, 0x500
jb 0x16dd168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16dd075
cmp eax, 0x7f
ja 0x16dd170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16dd075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x16dd19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x16dd075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405d50
Capabilities:
Delete file

Disassembly:
mov eax, 0x414669
call fcn.004144dc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x4c]
test eax, eax
mov dword [ebp - 4], 2
je 0x405660
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40566e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 0x8c]
cmp dword [eax], 0
je 0x405681
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40569a
push dword [eax + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4056a8
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi + 0x78]
test eax, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x4056b8
push eax
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4056c2
push eax
call ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4056cf
push eax
call ebx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4056dc
push eax
call ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
test eax, eax
je 0x4056f3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call ebx
mov ecx, esi
call fcn.00405565
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.00405504
lea ecx, [esi + 0x54]
call fcn.00405362
lea ecx, [esi + 0x24]
call fcn.00403f52
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push esi
mov esi, ecx
push 0x418904
mov dword [esi], 0x40162c
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
pop esi
jmp 0x405638

Function at 0x406131
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x418978], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x406175
call ebx
test eax, eax
jns 0x40616b
push 0x4017d0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4017c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x418974], eax
mov dword [0x418978], 1
mov eax, dword [0x418974]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x406191
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x4061c1
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x4061b7
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x4061ab
push dword [eax + 8]
call dword [eax]
jmp 0x4061b1
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x4061c0
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x406234
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418984], 1
push ebx
push esi
push edi
jne 0x406257
or dword [0x418984], 1
call fcn.004061e0
mov dword [0x418980], eax
push 4
pop eax
call fcn.00414560
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4062ec
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188cc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x4062ec
cmp eax, 1
je 0x40630d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4062ec
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4062b9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4062e8
xor eax, eax
inc eax
jmp 0x40632c
cmp edi, eax
jae 0x4062f0
xor eax, eax
jmp 0x40632c
cmp eax, esi
jae 0x4062f7
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4188cc]
jmp 0x406310
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4064ca
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x40681b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
cmp word [ecx], 0
mov eax, dword [esp + 4]
push ebx
mov ebx, eax
je 0x4068a9
cmp word [eax], 0
push ebp
push esi
push edi
je 0x4068a4
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
cmp word [ebx], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
je 0x406893
mov ax, word [edi]
test ax, ax
je 0x4068ad
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x406893
push esi
call ebp
push edi
mov dword [esp + 0x18], eax
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, eax
sub ecx, edi
sub edx, esi
xor ecx, edx
test ecx, 0xfffffffe
jne 0x406893
jmp 0x406889
inc esi
inc esi
movzx edx, word [esi]
inc edi
inc edi
movzx ecx, word [edi]
sub edx, ecx
je 0x40688d
cmp esi, eax
jb 0x40687b
cmp word [esi], 0
jne 0x406847
cmp word [edi], 0
je 0x4068ad
push ebx
call ebp
mov ebx, eax
cmp word [ebx], 0
jne 0x40683b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, ebx
jmp 0x4068a6
Function at 0x406a5d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x200c
lea ebp, [esp - 0x1f8c]
call fcn.00414560
mov eax, dword [0x4188a0]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp + 0x1f88], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x406ad1
cmp dword [ebp - 0x7c], 1
jne 0x406ad5
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x80], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x406ad1
cmp word [ebp - 0x78], si
je 0x406ad1
inc eax
jmp 0x406ade
xor eax, eax
jmp 0x406ade
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1f88]
pop esi
call fcn.00414161
add ebp, 0x1f8c
leave
ret 4

Function at 0x407408
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x414704
call fcn.004144dc
sub esp, 0x214
mov eax, dword [0x4188a0]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x214]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.0040647b
cmp eax, esi
jne 0x4074a7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x407461
lea eax, [ebp - 0x210]
push eax
call fcn.00407408
cmp eax, esi
jne 0x4074a6
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x407451
call fcn.00406416
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00406416
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00414161
leave
ret 4