joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30002f2a
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5f4]
sub esp, 0x674
mov eax, dword [0x300080b4]
push ebx
push esi
mov esi, dword [ebp + 0x600]
push edi
mov dword [ebp + 0x5f0], eax
push 0x10
xor eax, eax
pop ecx
mov dword [ebp - 0x80], 0x44
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
neg esi
sbb esi, esi
push 0x30001698
stosd dword es:[edi], eax
and esi, 0x3a980
call fcn.300025ac
test eax, eax
je 0x30003037
cmp esi, ebx
jbe 0x30002f97
cmp dword [ebp + 0x600], ebx
je 0x30002f97
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x104
lea eax, [ebp + 0x3e8]
push eax
call fcn.30002cd3
test eax, eax
je 0x30003037
push dword [ebp + 0x5fc]
lea eax, [ebp + 0x3e8]
push 0x71
push eax
push 0x300015e8
lea eax, [ebp - 0x28]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x72
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x30002fee
cmp dword [ebp - 0x2c], ebx
jne 0x30003037
xor edi, edi
inc edi
cmp dword [ebp + 0x600], ebx
je 0x30003002
mov dword [ebp - 0x54], edi
mov word [ebp - 0x50], 7
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x30003037
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov eax, edi
jmp 0x30003039
xor eax, eax
mov ecx, dword [ebp + 0x5f0]
pop edi
pop esi
pop ebx
call fcn.3000607d
add ebp, 0x5f4
leave
ret 8
Function at 0x300030af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0xc]
shl esi, 2
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.30003643
test eax, eax
je 0x3000324b
mov ecx, esi
mov edx, ecx
push ebx
shr ecx, 2
push edi
mov edi, dword [ebp - 0xc]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0xc], ebx
rep stosb byte es:[edi], al
mov dword [ebp - 0x14], esi
jle 0x30003241
mov edi, dword [ebp + 8]
add edi, 0x10
mov dword [ebp - 0x10], edi
cmp dword [edi - 0x10], ebx
jne 0x3000322e
mov eax, dword [ebp - 0xc]
cmp dword [eax + esi*4], ebx
jne 0x3000322e
mov eax, dword [edi]
cmp byte [eax], 0
jne 0x30003122
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x3000313d
lea ecx, [ebp - 8]
push ecx
push 0x20019
push ebx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3000313d
mov dword [ebp - 8], ebx
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jge 0x3000321b
lea esi, [edi - 8]
push dword [edi]
push dword [esi + 8]
call fcn.30002c35
test eax, eax
jne 0x30003203
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor edi, edi
inc edi
mov dword [eax + ecx*4], edi
cmp dword [esi - 8], ebx
jne 0x30003203
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x30003203
mov eax, dword [esi + 4]
sub eax, ebx
je 0x30003269
dec eax
je 0x30003266
dec eax
je 0x30003250
dec eax
jne 0x30003203
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
mov dword [ebp + 8], ebx
push ecx
call fcn.30002ba5
test eax, eax
je 0x30003203
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
push 0x106
lea edi, [ebx + ebx]
push edi
call fcn.300048c4
test eax, eax
mov dword [esi - 4], eax
je 0x300031f3
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esi], edi
mov dword [esi - 8], 1
cmp dword [ebp + 8], 0
je 0x30003201
push dword [ebp + 8]
call fcn.300047d9
xor ebx, ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
add esi, 0x18
cmp eax, dword [ebp + 0xc]
jl 0x3000314c
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
je 0x3000322e
cmp eax, ebx
je 0x3000322e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
add edi, 0x18
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jl 0x300030fe
push dword [ebp - 0xc]
call fcn.30003741
pop edi
pop ebx
pop esi
leave
ret 0xc
push 3
push esi
lea eax, [esi - 4]
push eax
push dword [esi + 0xc]
push ecx
call fcn.30002ba5
test eax, eax
je 0x30003203
jmp 0x3000328c
push edi
jmp 0x30003252
lea eax, [ebp - 0x18]
push eax
lea eax, [esi - 4]
push eax
push ebx
push ebx
push dword [esi + 0xc]
mov dword [ebp - 0x18], 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30003203
mov dword [esi - 8], edi
jmp 0x30003203
Function at 0x300033ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.30003294
test eax, eax
je 0x3000343b
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000343b
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x30001750
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x30003431
cmp dword [ebp - 0x10], 1
je 0x30003431
and word [esi], ax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc

Function at 0x30003643
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, dword [0x30008054]
mov eax, dword [esp + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
add edi, 1
push ecx
and edi, 0xfffffffe
mov dword [eax], 0
call sub.KERNEL32.dll_TlsGetValue
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x300036d6
push 1
push 0x2000
push 0x10000
push 0
call ebp
mov esi, eax
test esi, esi
je 0x300036a8
push 4
push 0x1000
push 0x1000
push esi
call ebp
test eax, eax
jne 0x300036bb
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe004000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
mov edx, dword [0x30008054]
push esi
push edx
call sub.KERNEL32.dll_TlsSetValue
lea eax, [esi + 0x1000]
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
add edx, edi
cmp edx, eax
push ebx
jbe 0x30003715
mov ecx, eax
sub ecx, esi
lea ebx, [ecx + edi + 0xfff]
and ebx, 0xfffff000
cmp ebx, 0x10000
jg 0x3000372d
push 4
mov edx, ebx
sub edx, eax
push 0x1000
add edx, esi
push edx
push eax
call ebp
test eax, eax
je 0x3000372d
add ebx, esi
mov dword [esi + 4], ebx
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
pop ebx
mov dword [ecx], eax
add eax, edi
pop edi
mov dword [esi], eax
pop esi
mov eax, 1
pop ebp
ret 8
push 0xe004000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
Function at 0x3000389f
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 0x3000391a
mov edx, dword [0x300200e8]
cmp eax, ebp
jne 0x300038d6
movzx ecx, byte [pe_dos_header]
test ecx, ecx
je 0x3000391a
test dl, 1
je 0x300038f0
mov ecx, eax
and cl, 7
neg cl
mov ebx, edx
sbb ecx, ecx
add ecx, 1
and ebx, 2
xor ecx, ebx
je 0x300038fa
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x1c]
jge 0x3000394c
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 0x30003916
movzx ebp, word [ebp]
add ebp, esi
cmp eax, esi
jne 0x300038c7
mov ax, word [esi + 6]
cmp ax, 0xfffe
je 0x30003943
movzx eax, ax
cmp word [eax*2 + 0x300080e0], 5
jne 0x30003943
push eax
call fcn.300051df
add esp, 4
test eax, eax
jne 0x300038b5
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 0x30003a4f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test byte [0x300200e8], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jne 0x30003a7e
mov cx, word [eax]
test cx, cx
je 0x30003a7e
movzx ecx, cx
add ecx, eax
movzx ecx, word [ecx + 2]
push esi
lea esi, [edx + 4]
cmp ecx, esi
pop esi
jae 0x30003a8b
cmp ecx, edx
je 0x30003a8b
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.3000389f
ret

Function at 0x300049be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x300049f2
cmp byte [eax], 0
je 0x30004a36
lea eax, [eax + 1]
test eax, 3
je 0x300049f2
cmp byte [eax], 0
je 0x30004a36
lea eax, [eax + 1]
test eax, 3
je 0x300049f2
cmp byte [eax], 0
je 0x30004a36
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 0x300049f2
test cl, cl
lea eax, [eax - 4]
je 0x30004a36
test ecx, 0xff00
lea eax, [eax + 1]
je 0x30004a36
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x30004a36
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x30004a36
lea eax, [eax + 1]
jmp 0x300049f2
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x30004a45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x30004a6c
cmp word [eax], 0
je 0x30004a65
lea eax, [eax + 2]
test eax, 3
je 0x30004a6c
jmp 0x30004a53
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30004aa7
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x30004a6c
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30004aa7
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30004aa7
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x30004a6c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x30004c27
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x300080b4]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
push esi
je 0x30004d5d
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x30004d5d
push edi
mov edi, dword [ebp + 0x20]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x400
push eax
mov dword [ebp - 0x40c], 1
mov dword [esi], ebx
call fcn.30005c9a
mov dword [ebp - 0x408], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x408], ebx
je 0x30004ca5
push dword [ebp - 0x408]
mov eax, edi
shr eax, 0x17
and eax, 1
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], ebx
jne 0x30004d1c
mov eax, edi
shr eax, 0x1a
not eax
test al, 1
je 0x30004d1c
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.30005b6b
test eax, eax
je 0x30004d07
push dword [ebp - 0x408]
mov eax, edi
shr eax, 0x19
and eax, 1
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.30005c5e
cmp ebx, 5
jne 0x30004d07
cmp dword [ebp + 8], 0
jne 0x30004d07
mov dword [ebp + 8], 1
xor ebx, ebx
jmp 0x30004c81
cmp dword [esi], 0
je 0x30004d1a
xor eax, eax
cmp ebx, 0xb7
setne al
mov dword [ebp + 0xc], eax
xor ebx, ebx
mov eax, dword [esi]
cmp eax, ebx
pop edi
je 0x30004d28
cmp eax, 0xffffffff
jne 0x30004d33
mov dword [esi], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x40c], ebx
cmp dword [ebp + 0x10], ebx
je 0x30004d49
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x408]
call fcn.30004b75
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x30004d55
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40c]
jmp 0x30004d5f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.3000607d
leave
ret 0x1c
Function at 0x30005dd0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x300017a0
call fcn.3000614a
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x30005e0b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30005e0b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x30005e23
cmp eax, 0x20b
je 0x30005e10
mov dword [ebp - 0x1c], edi
jmp 0x30005e37
cmp dword [ecx + 0x84], 0xe
jbe 0x30005e0b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x30005e31
cmp dword [ecx + 0x74], 0xe
jbe 0x30005e0b
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 [0x300201b8], 0xffffffff
or dword [0x300201bc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x300201a0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x3002019c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x300201b4], eax
call fcn.300060c2
call fcn.300061cf
cmp dword [0x300080b8], edi
jne 0x30005e97
push 0x300061cc
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.300061ba
push 0x3000801c
push 0x30008018
call sub.MSVCRT.dll__initterm
push 0x30006106
call fcn.300060b0
mov eax, dword [0x30020198]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x30020194]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x30005eeb
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x30008014
push 0x3000800c
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.300020f1
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x30005f27
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x30005f5c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.30006185
ret
Function at 0x3000607d
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x300080b4]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.3000607d
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x300080b4]
jne 0x30005f68
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x436e6bc5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, str.__te
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x96803d5
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x4ac164], 1
mov dword [0x4ac160], 1
mov dword [0x4ac15c], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x4ac00c], eax
mov eax, dword [0x4ac170]
test eax, eax
jne 0x4010a0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4ac184]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x4ac16c]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x442074], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f2
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401900
Capabilities:
Encrypt data using rc4 via systemfunction032
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, ecx
call sub.KERNEL32.dll_CreateTimerQueue
test eax, eax
je 0x401937
mov esi, eax
push 0
push 0
push 0
push 0
call sub.KERNEL32.dll_CreateEventW
test eax, eax
je 0x401937
push 0
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x401937
add eax, dword [eax + 0x3c]
jne 0x40193f
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4431f8
call sub.KERNEL32.dll_LoadLibraryA
push str.RtlCaptureContext
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x1c], eax
push 0x4431f8
call sub.KERNEL32.dll_GetModuleHandleA
push str.NtContinue
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
push str.Advapi32
call sub.KERNEL32.dll_LoadLibraryA
push str.SystemFunction032
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
push str.kernel32.dll
call sub.KERNEL32.dll_LoadLibraryA
push str.VirtualProtect
push eax
call sub.KERNEL32.dll_GetProcAddress
mov ebx, eax
push str.kernel32.dll
call sub.KERNEL32.dll_LoadLibraryA
push str.WaitForSingleObject
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
push str.kernel32.dll
call sub.KERNEL32.dll_LoadLibraryA
push str.SetEvent
push eax
call sub.KERNEL32.dll_GetProcAddress
movd xmm0, dword [ebp - 0x1c]
movd xmm1, dword [ebp - 0x18]
movd xmm3, dword [ebp - 0x14]
movd xmm2, ebx
punpckldq xmm1, xmm0
punpckldq xmm3, xmm2
punpcklqdq xmm1, xmm3
pxor xmm3, xmm3
pcmpeqd xmm3, xmm1
movmskps ecx, xmm3
test ecx, ecx
jne 0x401937
cmp dword [ebp - 0x10], 0
je 0x401937
test eax, eax
je 0x401937
push 0
push 0
push 1
push 0
call sub.KERNEL32.dll_CreateEventW
test eax, eax
je 0x401937
mov ebx, eax
push edi
push eax
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
jne 0x401937
push ebx
call sub.KERNEL32.dll_SetEvent
push esi
call sub.KERNEL32.dll_DeleteTimerQueue
jmp 0x401937
Function at 0x401a50
Capabilities:
Check mutex on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
lea eax, [0x49c0c6]
lea edi, [ebp - 0x20]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], 0xb826d36e
mov edx, dword [ebp - 0x20]
call sym.obfstr::xref::inner::h6d7037b715c03012
mov ebx, 0x8d88b52d
xor ebx, dword [eax]
movzx eax, byte [eax + 4]
mov byte [ebp - 0x10], al
movzx eax, byte [0x4ac0d4]
mov ecx, 6
call sym.std::sys::pal::windows::alloc::process_heap_alloc::hf16b591a17783102
test eax, eax
je 0x401bd5
mov esi, eax
movzx eax, byte [ebp - 0x10]
mov dword [esi], ebx
xor al, 0xdb
test bl, bl
mov byte [esi + 4], al
je 0x401be4
test ebx, 0xff00
je 0x401be8
test ebx, 0xff0000
je 0x401bef
cmp ebx, 0x1000000
jb 0x401bf6
test al, al
je 0x401bfd
mov byte [esi + 5], 0
push esi
push 0
push 0
call sub.KERNEL32.dll_CreateMutexA
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x401bbc
mov ecx, 0x1770
call sym.crypt_file::ekko_common::ekko::h0db3b1aaf3142cf6
movzx eax, byte [0x4ac0d4]
mov ecx, 0x5ca63
call sym.std::sys::pal::windows::alloc::process_heap_alloc::hf16b591a17783102
test eax, eax
je 0x401c32
mov edi, eax
push 0x5ca63
push 0x44328c
push eax
call sym._memcpy
add esp, 0xc
xor eax, eax
nop word [eax + eax]
mov ecx, eax
and ecx, 0x1f
movzx ecx, byte [ecx + 0x49fcef]
xor byte [edi + eax], cl
inc eax
cmp eax, 0x5ca63
jne 0x401b40
push 0
push 0
push 0x40000
call sub.KERNEL32.dll_HeapCreate
mov ebx, eax
push 0x5ca63
push 8
push eax
call sub.KERNEL32.dll_HeapAlloc
mov dword [ebp - 0x10], eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401bae
mov dword [ebp - 0x24], ebx
mov ecx, 0xfa0
call sym.crypt_file::ekko_common::ekko::h0db3b1aaf3142cf6
push 0x5ca63
push edi
mov ebx, dword [ebp - 0x10]
push ebx
call sub.msvcrt.dll_memmove
add esp, 0xc
call ebx
push dword [ebp - 0x10]
push 0
push dword [ebp - 0x24]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x4ac0a0]
call sub.KERNEL32.dll_HeapFree
mov byte [esi], 0
push esi
push 0
push dword [0x4ac0a0]
call sub.KERNEL32.dll_HeapFree
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 1
mov edx, 6
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
xor eax, eax
jmp 0x401c02
mov eax, 1
jmp 0x401c02
mov eax, 2
jmp 0x401c02
mov eax, 3
jmp 0x401c02
mov eax, 4
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x14], eax
xor edx, edx
mov ecx, 1
push 0x44327c
push 0x4431e0
push edi
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0xc
jmp 0x401c41
mov ecx, 1
mov edx, 0x5ca63
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
ud2