joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005b47
Capabilities:
Create thread

Disassembly:
mov eax, 0x1001b7c4
call fcn.1001afa8
push ecx
push ebx
push esi
push edi
push 0x24
mov edi, ecx
call fcn.10009ad6
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
push dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [esi], ecx
lea ecx, [esi + 4]
call fcn.100051ab
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
mov eax, dword [eax]
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [ebp - 4], 1
lea ebx, [edi + 4]
push ebx
push eax
push esi
push 0x10007500
push eax
push eax
call fcn.1000d163
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x10005bbc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
and dword [ebx], 0
push 6
call fcn.10008fbb
int3

Function at 0x10005bc7
Capabilities:
Create thread

Disassembly:
mov eax, 0x1001b7dd
call fcn.1001afa8
push ecx
push ebx
push esi
push edi
push 4
mov esi, ecx
xor ebx, ebx
call fcn.10009ad6
mov dword [ebp - 0x10], eax
mov dword [eax], 0x10003fca
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x10007580
push ebx
push ebx
call fcn.1000d163
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x10005c1a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 6
mov dword [edi], ebx
call fcn.10008fbb
int3

Function at 0x10008e30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10008e0c
pop esi
leave
ret 8

Function at 0x1000e52d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000e56c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e56c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e56c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000e56c
cmp dword [ecx + 0x74], 0xe
jbe 0x1000e56c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1001076c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e914
push 0x1001e90c
push str.FlsAlloc
push 0x1f
call fcn.100105eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100107a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c1e4]
call esi
jmp 0x100107a6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x100107ea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e924
push 0x1001e91c
push str.FlsGetValue
push 0x21
call fcn.100105eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010821
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c1e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10010829
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e92c
push 0x1001e924
push str.FlsSetValue
push 0x22
call fcn.100105eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010863
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c1e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10013d60
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 0x10013dfd
push ebx
push esi
call fcn.10013d29
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.10013cbd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10013daa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10013dfc
push edi
push eax
call fcn.10012258
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10013dca
call fcn.1000f6ab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10013dfb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10013cbd
add esp, 0x20
test eax, eax
jne 0x10013de9
push edi
call fcn.1000f6ab
jmp 0x10013df1
push ebx
call fcn.1000f6ab
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 0x10013e00
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10013e11
pop esi
ret
push ebx
push edi
push esi
call fcn.10013d29
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10012258
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10013e39
push ebx
push esi
push edi
call fcn.1000b010
add esp, 0xc
push 0
call fcn.1000f6ab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10014209
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10013e4e
Function at 0x10015701
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x10029c18]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10015741
cmp byte [ebx], 0xa
jne 0x10015741
or byte [edi + eax + 0x28], 4
jmp 0x10015746
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10015845
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10015828
inc eax
cmp dl, 0xd
je 0x10015772
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10015798
cmp eax, ecx
jae 0x100157a6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001575a
jmp 0x10015845
push 0
lea eax, [ebp - 0x10]
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 0x10015823
cmp dword [ebp - 0x10], 0
je 0x10015823
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10029c18]
test byte [eax + edi + 0x28], 0x48
je 0x100157fd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100157e8
mov byte [esi], dl
jmp 0x100157f9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10029c18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10015845
cmp byte [ebp - 1], 0xa
jne 0x1001580c
cmp esi, ebx
jne 0x1001580c
mov byte [esi], 0xa
jmp 0x10015844
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100154fa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10015845
mov byte [esi], 0xd
jmp 0x10015844
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10029c18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10015842
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10015845
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001584e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10029c18]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10015894
cmp word [ebx], dx
jne 0x10015894
or byte [eax + edi + 0x28], 4
jmp 0x10015899
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100159fc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100159dc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100158da
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10015910
cmp eax, edx
jae 0x1001591e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100158b5
jmp 0x100159fc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100159d7
cmp dword [ebp - 0x18], 0
je 0x100159d7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10029c18]
test byte [eax + edi + 0x28], 0x48
je 0x100159ad
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10015971
mov word [esi], cx
jmp 0x100159a8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10029c18]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10029c18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10029c18]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100159fc
pop eax
cmp word [ebp - 4], ax
jne 0x100159bd
cmp esi, ebx
jne 0x100159bd
mov word [esi], ax
jmp 0x100159f9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100154fa
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100159fc
push 0xd
pop eax
jmp 0x100159b8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10029c18]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100159f6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100159fc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001758c
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10017508
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100176fb
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100176fb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100176b0
jg 0x100175e8
test eax, eax
je 0x100176a6
push 1
push 0x1000
call fcn.1001045b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001760b
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001769d
push 0x8000
push ebx
call fcn.10017439
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10017634
jg 0x1001762f
cmp ecx, 0x1000
jb 0x10017634
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10011705
add esp, 0x10
cmp eax, 0xffffffff
je 0x10017679
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 0x1001762f
jl 0x10017660
test ecx, ecx
jne 0x10017621
push dword [ebp - 0xc]
push ebx
call fcn.10017439
push esi
call fcn.1000f6ab
add esp, 0xc
xor ebx, ebx
jmp 0x10017709
cmp byte [edi + 0x24], 0
je 0x10017690
cmp dword [edi + 0x20], 5
jne 0x10017690
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001769b
mov ebx, dword [edi + 0x18]
jmp 0x1001769d
xor ebx, ebx
push esi
call fcn.1000f6ab
pop ecx
jmp 0x10017709
test ecx, ecx
jg 0x10017672
jl 0x100176b0
test eax, eax
jae 0x10017672
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100154fa
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100176d0
cmp byte [edi + 0x1c], 0
je 0x10017672
jmp 0x10017701
push ebx
call fcn.10014894
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10017672
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10017709
cmp byte [edi + 0x1c], 0
je 0x10017706
mov ebx, dword [edi + 0x18]
jmp 0x10017709
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100154fa
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10019570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001959d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001959d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432fd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3e3d24b7
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7d42fdd
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x403160
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x43679a
call fcn.00424731
lea eax, [ebp - 0x10]
push eax
call fcn.0040e688
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea esi, [ebp - 0x10]
call fcn.0040e38d
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
push 1
push str.InstallDir
mov ebx, str.SoftwareAdvancedSystemRepairPro
push ebx
push SysReAllocString
call edi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
call fcn.0040e38d
push eax
push 1
push str.InstallDir
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040d08f
call fcn.00424809
ret

Function at 0x403d0f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435b57
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x44cd60]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x44cd60]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
and dword [esp + 0x1c], 0
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00422bd0
lea eax, [esp + 0x20]
push str..
push eax
mov esi, edi
call fcn.004143e4
add esp, 0x14
and dword [esp + 0x280], 0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0040d08f
cmp dword [esp + 0x10], 0xffffffff
je 0x403e8f
lea eax, [esp + 0x48]
push 0x440b10
push eax
call fcn.00423686
pop ecx
pop ecx
test eax, eax
je 0x403e6e
lea eax, [esp + 0x48]
push 0x440b14
push eax
call fcn.00423686
pop ecx
pop ecx
test eax, eax
je 0x403e6e
lea eax, [esp + 0x18]
push 0x440b1c
push eax
mov esi, edi
call fcn.004143e4
mov dword [esp + 0x288], 1
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.004143e4
add esp, 0x10
mov byte [esp + 0x280], 3
lea ecx, [esp + 0x18]
call fcn.0040d08f
test byte [esp + 0x1c], 0x10
je 0x403e44
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.00403d0f
pop ecx
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x80
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040d08f
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403db1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x403e9d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00405140
mov esp, ebp
pop ebp
ret
Function at 0x403ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x403ee4
cmp dword [edi + 0x54], 0
jne 0x403ee4
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00403745
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004169a3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4040bd
Capabilities:
Get token privileges

Disassembly:
push 0x20
mov eax, 0x435829
call fcn.00424731
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40417d
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b577
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
jne 0x404102
call fcn.00423538
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
sub eax, esi
push eax
push esi
push 3
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x404149
xor ecx, ecx
cmp dword [esi], edi
jbe 0x404139
lea eax, [esi + 0xc]
mov dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x40412b
push edi
push edi
push dword [ebp - 0x14]
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], edi
je 0x404167
push dword [ebp - 0x20]
call fcn.00415dbd
pop ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00410add
call fcn.00424809
ret