joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fb70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov edx, dword [esp + 0x40]
mov esi, 0xffffffff
mov ecx, 0xfffffffd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebp, esi
add ecx, 3
cmp byte [edx + esi + 1], 0
lea esi, [esi + 1]
jne 0x43fb90
shr ecx, 2
movzx eax, byte [edx + esi - 1]
cmp eax, 0x3d
je 0x43fbb1
cmp eax, 0x2e
jne 0x43fbb2
dec ecx
movzx eax, byte [edx + esi - 2]
cmp eax, 0x3d
je 0x43fbc1
cmp eax, 0x2e
jne 0x43fbc2
dec ecx
mov dword [esp], ecx
mov edx, 0
test esi, esi
je 0x43fcba
xor ecx, ecx
mov edi, 2
jmp 0x43fbf2
lea eax, [edi + 4]
add edi, 2
mov ecx, edx
cmp edi, esi
mov edi, eax
jae 0x43fcba
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x40]
mov ebp, esi
mov esi, eax
movzx eax, byte [eax + edi - 2]
push eax
call fcn.00421cc0
add esp, 4
mov bh, al
movzx eax, byte [esi + edi - 1]
mov esi, ebp
mov ebp, dword [esp + 8]
push eax
call fcn.00421cc0
add esp, 4
mov bl, al
shl bh, 2
shr al, 4
and al, 3
or al, bh
lea edx, [ebp + 1]
mov ecx, dword [esp + 0x44]
mov byte [ecx + ebp], al
cmp edi, esi
jae 0x43fbe0
mov eax, dword [esp + 0x40]
movzx eax, byte [eax + edi]
push eax
mov dword [esp + 8], edx
call fcn.00421cc0
mov edx, dword [esp + 8]
add esp, 4
cmp al, 0x40
je 0x43fbe0
mov ecx, eax
shr cl, 2
and cl, 0xf
shl bl, 4
or bl, cl
lea edx, [ebp + 2]
mov ecx, dword [esp + 0x44]
mov byte [ecx + ebp + 1], bl
lea ecx, [edi + 1]
cmp ecx, esi
jae 0x43fbe0
mov ecx, dword [esp + 0x40]
movzx ecx, byte [ecx + edi + 1]
push ecx
mov byte [esp + 8], al
mov ebx, edx
call fcn.00421cc0
mov edx, ebx
add esp, 4
movzx ecx, byte [esp + 4]
cmp al, 0x40
je 0x43fbe0
shl cl, 6
add al, cl
mov ecx, dword [esp + 0x44]
mov byte [ecx + ebp + 2], al
add ebp, 3
mov edx, ebp
jmp 0x43fbe0
mov esi, dword [esp]
cmp edx, esi
mov eax, 0
jne 0x43fd67
mov ebp, dword [esp + 0x44]
lea eax, [ebp + 0x20]
mov dword [esp + 8], eax
mov ebx, esi
not ebx
and ebx, 0x20
mov dword [esp], esi
and esi, 0xffffffdf
lea edi, [esp + 0xc]
mov eax, ebp
mov ecx, 8
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [esp + 0x2c]
xor edx, edx
xor ecx, ecx
mov eax, dword [esp + 8]
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, esi
sub eax, ebx
je 0x43fd62
mov esi, dword [esp]
mov ecx, esi
and ecx, 1
cmp esi, 0x21
je 0x43fd4c
mov edi, eax
sub edi, ecx
xor edx, edx
nop
nop
nop
nop
nop
mov esi, edx
and esi, 0x1e
movzx ebx, byte [esp + esi + 0xc]
xor bl, byte [ebp + edx + 0x20]
mov byte [ebp + edx], bl
lea esi, [edx + 1]
and esi, 0x1f
movzx ebx, byte [esp + esi + 0xc]
xor bl, byte [ebp + edx + 0x21]
mov byte [ebp + edx + 1], bl
add edx, 2
cmp edi, edx
jne 0x43fd20
test ecx, ecx
je 0x43fd62
mov ecx, edx
and ecx, 0x1f
movzx ecx, byte [esp + ecx + 0xc]
xor cl, byte [ebp + edx + 0x20]
mov byte [ebp + edx], cl
mov byte [ebp + eax], 0
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4475e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov ecx, ebx
add ecx, ebp
mov edx, edi
adc edx, 0
xor eax, eax
mov esi, 0xfffffffe
cmp esi, ecx
mov ecx, 0
sbb ecx, edx
mov esi, dword [esp + 0x2c]
jb 0x447686
mov ecx, ebx
shr ecx, 2
mov edx, ebp
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebx
and edx, 0xfffffffc
add esi, edx
add edx, ebp
mov ebp, ebx
and ebp, 3
mov ecx, ebp
shr ecx, 1
mov ebx, edx
mov edi, esi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esp + 0x30]
mov ecx, edi
xor ecx, 2
and ecx, ebp
je 0x4477f1
and edi, 2
movzx ebx, byte [edx + edi]
mov byte [esi + edi], bl
cmp ecx, 1
je 0x4477f1
mov ebp, esi
movzx ebx, byte [edx + edi + 1]
mov byte [esi + edi + 1], bl
cmp ecx, 2
je 0x4477f1
mov esi, edi
movzx ecx, byte [edx + edi + 2]
mov byte [ebp + edi + 2], cl
jmp 0x4477f1
mov dword [esp + 4], 0xd8dbdac5
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x4476d6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.00448600
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x4476b0
mov eax, dword [esp + 4]
mov ecx, dword [0x456b34]
test ecx, ecx
je 0x447732
xor edx, edx
mov edi, dword [0x456b38]
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x7789b0cb
je 0x447704
inc edx
cmp ecx, edx
jne 0x4476f0
mov edi, dword [esp + 0x28]
jmp 0x447732
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
mov edi, dword [esp + 0x28]
je 0x447732
lea eax, [esp + 0xc]
push 2
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 7
push dword [0x456b3c]
push ecx
call fcn.00445e60
add esp, 0x28
test eax, eax
js 0x4477f1
push 0x1e03da9a
push dword [0x45eb48]
call fcn.00448c90
add esp, 8
push 0
push 0
push ebx
push esi
push edi
push ebp
push dword [esp + 0x24]
call eax
mov esi, eax
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0xd8dbdac5
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x4477a6
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.00448600
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x447780
mov ecx, dword [0x456b34]
test ecx, ecx
je 0x4477d1
mov edx, dword [esp + 4]
xor ebx, ebx
mov ebp, dword [0x456b38]
mov eax, esi
nop
nop
cmp dword [ebp + ebx*8], 0x7e776f1
je 0x4477d5
inc ebx
cmp ecx, ebx
jne 0x4477c0
jmp 0x4477f1
mov eax, esi
jmp 0x4477f1
mov ecx, dword [ebp + ebx*8 + 4]
cmp ecx, edx
je 0x4477f1
push edi
push 1
push dword [0x456b3c]
push ecx
call fcn.00445e60
mov eax, esi
add esp, 0x10
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x448c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebx, dword [esp + 0x3c]
movzx esi, word [ebx]
mov dword [esp + 4], 0x17167f6d
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x448cf6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.0044ac70
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x448cd0
xor eax, eax
cmp dword [esp + 4], esi
setne al
xor esi, esi
jmp dword [eax*4 + 0x455654]
mov edi, dword [ebx + 0x3c]
mov ebx, dword [ebx + edi]
mov dword [esp + 4], 0xb7b64478
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x448d66
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.0044acd0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x448d40
xor eax, eax
cmp ebx, dword [esp + 4]
setne al
jmp dword [eax*4 + 0x45565c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [edx + edi + 0x78]
mov edi, dword [edx + edi + 0x7c]
test edi, edi
sete al
test ebx, ebx
sete cl
or cl, al
movzx eax, cl
jmp dword [eax*4 + 0x455674]
mov dword [esp + 0x10], edi
mov eax, dword [edx + ebx + 0x20]
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [edx + ebx + 0x24]
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [edx + ebx + 0x1c]
add eax, edx
mov dword [esp + 0x14], eax
xor esi, esi
xor eax, eax
cmp esi, dword [edx + ebx + 0x18]
setb al
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], ebx
jmp dword [eax*4 + 0x45568c]
mov eax, dword [case.0x448d6f.5]
nop
jmp eax
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5f815c6d
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
test ch, bh
add eax, 0x788b0000
cmp al, 3
clc
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.5f815a76
xchg ebp, eax
lds eax, [eax]
and ecx, dword [edi]
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.5f815a76
ja 0x5f815d19
frstor dword [ecx]
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x5f815cd0
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x5f815cca
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x5f815cbb
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.5f815a76
stosd dword es:[edi], eax
pop edx
mov edx, 0xa8458d84
push eax
call fcn.5f815a86
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.5f815a3b
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x5f815d64
jmp [ebx - 0x727b45a6]
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.5f815a76
cdq
mov al, byte [0x458dbca6]
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x5f815e7a
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga
Inspect section memory permissions

Disassembly:
inc ebp
cmpsb byte [esi], byte es:[edi]
inc ecx
call fcn.5f815a86
push eax
push esi
push dword [ebp + 8]
call fcn.5f815a3b
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.5f815a86
push eax
push esi
push dword [ebp + 8]
call fcn.5f815a3b
add esp, 0x30
mov dword [ebp - 0xb8], eax
invalid
invalid
sti
Function at 0x5f816075
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x5f8160ac
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x5f816087
and eax, 0xffff
push eax
jmp 0x5f81608b
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5f815a3b
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x5f816265
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x5f81606c
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x5f81600d
Function at 0x5f81668b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
loope 0x5f8166a7
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
inc dword [eax]

Function at 0x5f81669b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
invalid

Function at 0x5f81673d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x5f81676a
cmp dword [ebp - 0x398], 0
je 0x5f816934
cmp dword [ebp + 0xc], 1
je 0x5f816934
cmp dword [ebp + 0xc], 8
jne 0x5f8168fc
and byte [ebp - 0x6b8], 0
invalid
movsd dword es:[edi], dword [esi]
dec ecx
stc

Function at 0x5f8231ab
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x5f8231e8
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x5f8231e1
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x5f8231ed
add edx, 0x28
cmp edx, esi
jne 0x5f8231d2
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x5f8231ea

Function at 0x5f826105
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5f8069d4
push 0x5f8069cc
push 0x5f805580
push 0
call fcn.5f826083
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5f82613a
push dword [ebp + 8]
mov ecx, esi
call dword [0x5f833194]
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x5f82617f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5f8069e4
push 0x5f8069dc
push 0x5f8055a4
push 2
call fcn.5f826083
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x5f8261b3
mov ecx, esi
call dword [0x5f833194]
call esi
jmp 0x5f8261b9
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x5f8261bc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5f8069ec
push 0x5f8069e4
push 0x5f8055b8
push 3
call fcn.5f826083
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x5f8261f3
mov ecx, esi
call dword [0x5f833194]
call esi
jmp 0x5f8261f9
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x5f82e320
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x5f82e35e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x5f82e356
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x5f82e360
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x5f82e346
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5f82e430
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x5f82e461
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5f82e461
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x5f82e461
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10011e6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp dword [ebp + 8], 2
mov dword [ebp - 0xc], eax
jl 0x1001359
cmp dword [ebp + 8], 4
jl 0x1001244
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp + 8], esi
call fcn.010010d8
test eax, eax
je 0x1001359
push esi
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.loadperf.dll_UpdatePerfNameFilesA]
jmp 0x1001364
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
call fcn.0100115a
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 4], eax
je 0x100129b
push eax
call ebx
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
je 0x100129b
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_mbstowcs]
add esp, 0xc
push 0x10010ac
push dword [ebp + 8]
call sub.loadperf.dll_BackupPerfRegistryToFileW
jmp 0x10012e1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
call fcn.010011a0
test eax, eax
mov dword [ebp - 4], eax
je 0x10012e6
push eax
call ebx
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
je 0x10012e6
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_mbstowcs]
add esp, 0xc
push 0
push dword [ebp + 8]
call sub.loadperf.dll_RestorePerfRegistryFromFileW
push dword [ebp + 8]
jmp 0x1001348
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x10012f8
cmp cl, 0x2f
jne 0x1001359
mov cl, byte [eax + 1]
cmp cl, 0x74
je 0x1001305
cmp cl, 0x54
jne 0x1001359
cmp byte [eax + 2], 0x3a
jne 0x1001359
add eax, 3
test eax, eax
mov dword [ebp + 8], eax
je 0x1001359
push eax
call ebx
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1001359
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.msvcrt.dll_mbstowcs]
add esp, 0xc
push ebx
push 0
call dword [sym.imp.loadperf.dll_SetServiceAsTrustedW]
push ebx
push 0
mov edi, eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
jmp 0x1001364
push 0
push dword [ebp - 0xc]
call dword [sym.imp.loadperf.dll_LoadPerfCounterTextStringsW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001376
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10010b0
call fcn.01001514
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10013b1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013b1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10013c9
cmp eax, 0x20b
je 0x10013b6
mov dword [ebp - 0x1c], edi
jmp 0x10013dd
cmp dword [ecx + 0x84], 0xe
jbe 0x10013b1
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10013d7
cmp dword [ecx + 0x74], 0xe
jbe 0x10013b1
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002220], 0xffffffff
or dword [0x1002224], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100221c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002218]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002228], eax
call fcn.0100150e
cmp dword [section..data], edi
jne 0x1001438
push fcn.0100150e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010014fc
push 0x1001088
push 0x1001084
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002214]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002210]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001080
push 0x100107c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010011e6
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10014af
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10014e4
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100154d
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x402f70
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404744
test esi, esi
jne 0x402fa7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404834
jmp 0x402fc8
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e0c
mov dword [esp], eax
test esi, esi
je 0x402fc8
cmp dword [ebx], 0
je 0x402fc8
dec esi
jmp 0x402faf
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403764
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x50e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037dc
xor eax, eax
push ebp
push 0x4037d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403818
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037dc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x50e020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x50e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40451c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51504c], 0
je 0x40457d
cmp word [0x515220], 0xd7b2
jne 0x404545
cmp dword [0x515228], 0
jbe 0x404545
mov eax, 0x51521c
call dword [0x515238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x50e06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50e030], 0
jne 0x404599
push 0
push 0x50e064
push 0x50e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402b98
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x51504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046c0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc