joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436f20
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x30]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 4], 0
mov edi, dword [ebx + 4]
mov ebp, dword [ebx]
lea eax, [edi + 1]
push eax
push esi
call fcn.00437d90
add esp, 8
test eax, eax
je 0x436f72
test edi, edi
je 0x436f64
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0
jmp 0x436f81
push str.Out_of_memory
push 1
call fcn.004365c0
add esp, 8
mov dword [esi + 0x10], 0
lea edi, [esi + 0xc]
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
inc eax
add eax, ebp
push eax
push edi
call fcn.00437d90
add esp, 8
test eax, eax
je 0x436fcf
test ebp, ebp
je 0x436fc1
mov eax, dword [edi + 4]
add eax, dword [edi]
push ebp
push dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [edi + 4], ebp
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov byte [ecx + eax], 0
jmp 0x436fde
push str.Out_of_memory
push 1
call fcn.004365c0
add esp, 8
mov dword [esi + 0x1c], 0
add esi, 0x18
mov edi, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x18]
mov eax, dword [esi + 4]
inc eax
add eax, edi
add eax, eax
push eax
push esi
call fcn.00437d90
add esp, 8
test eax, eax
je 0x437032
test edi, edi
je 0x43701f
mov ecx, dword [esi + 4]
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
push ebx
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [esi + 4], edi
xor edx, edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov word [eax + ecx*2], dx
pop ebx
ret
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 8], str.Out_of_memory
mov dword [esp + 4], 1
jmp fcn.004365c0

Function at 0x43e210
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x43e228
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
cmp dword [esp + 0xc], 0
jne 0x43e232
xor eax, eax
ret
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 4]
push 0
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43e29a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x43e273
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xb
or eax, 0xffffffff
ret
cmp eax, 0x6d
je 0x43e22f
cmp eax, 5
jne 0x43e28d
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.0043df40
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret
Function at 0x43e4d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x43e4e8
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43e534
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x43e527
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.0043df40
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x45526d
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x47e79c], 0
push ebx
push esi
mov esi, 0x47e7a4
jne 0x455299
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x47e7bc], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x47e79c], 1
push dword [0x47e7bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x455336
push 0x14
push 8
push dword [0x47e018]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x455360
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x47e7a0]
test eax, eax
je 0x4552db
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x47e7a0], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x455365
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x47e7bc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x47e018]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x455360
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x4559d9
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x47e018]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x47e8d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x47e8d4], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0045860c
mov dword [esi + 0x58], 0x4565ec
mov eax, esi
mov dword [esi + 0x5c], 0x456638
mov dword [esi + 0x10], fcn.0045618d
mov dword [esi + 0x30], 0x45607f
mov dword [esi + 0x64], 0x4566c2
mov dword [esi + 0x60], 0x45667a
mov dword [esi + 0x34], 0x455d2f
mov dword [esi + 0x24], 0x455d06
mov dword [esi + 0x28], 0x455cdb
mov dword [esi + 0x2c], 0x455c2d
mov dword [esi + 0x44], 0x4563f2
pop esi
ret 4
Function at 0x45b8d6
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x45b98c
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x45b96c
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x45b947
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x45b981
add edi, dword [esp + 0x14]
jmp 0x45b985
add edi, dword [esp + 0x24]
test edx, edx
jne 0x45b925
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x45bc97
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x45bd71
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x45bd47
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x45bd0f
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x45bd5e
add edi, ecx
jmp 0x45bd62
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x45bce5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x45c391
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x45c446
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x45c427
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x45c402
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x45c43c
add edx, dword [esp + 0x14]
jmp 0x45c440
add edx, dword [esp + 0x24]
test esi, esi
jne 0x45c3e0
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x401510
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401536
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4015ca
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401585
cmp eax, 0x40
je 0x401585
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401529
cmp eax, 0x40
je 0x401529
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401529
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
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, 0x403d6a
nop
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x27508670
Capabilities:
Access peb ldr_data

Disassembly:
push edi
push ebx
push ebp
sub esp, 0x3a4
mov eax, dword fs:[0x30]
mov dword [esp + 0x3a0], esi
mov edi, dword [eax + 0xc]
add edi, 0xc
mov edi, dword [edi]
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x2750868c
movzx eax, word [ecx]
test eax, eax
je 0x27508737
xor edx, edx
inc edx
movzx eax, word [ecx + edx*2]
test eax, eax
jne 0x275086a2
test edx, edx
je 0x27508737
mov ebx, edx
xor eax, eax
shr ebx, 1
je 0x275087c2
mov dword [esp + 0xc], edi
xor ebp, ebp
movzx esi, word [ecx + ebp*4]
cmp esi, 0x41
jl 0x275086d8
cmp esi, 0x5a
lea edi, [esi + 0x20]
jg 0x275086d8
mov esi, edi
imul eax, eax, 0x1003f
movzx esi, si
add eax, esi
movzx esi, word [ecx + ebp*4 + 2]
cmp esi, 0x41
jl 0x275086f7
cmp esi, 0x5a
lea edi, [esi + 0x20]
jg 0x275086f7
mov esi, edi
imul eax, eax, 0x1003f
inc ebp
movzx esi, si
add eax, esi
cmp ebp, ebx
jb 0x275086c5
mov edi, dword [esp + 0xc]
lea ebp, [ebp + ebp + 1]
lea ebx, [ebp - 1]
cmp ebx, edx
jae 0x27508739
movzx ecx, word [ecx + ebp*2 - 2]
cmp ecx, 0x41
jl 0x2750872a
cmp ecx, 0x5a
lea edx, [ecx + 0x20]
jg 0x2750872a
mov ecx, edx
imul eax, eax, 0x1003f
movzx edx, cx
add eax, edx
jmp 0x27508739
xor eax, eax
cmp eax, 0xba12ec4e
jne 0x2750868c
mov edi, dword [edi + 0x18]
lea ebp, [esp + 0xc]
mov eax, ebp
mov esi, dword [esp + 0x3a0]
mov ebx, dword [edi + 0x1561]
lea edx, [edi + 0x1569]
lea ecx, [ebx*4]
call fcn.275087dc
mov edx, dword [edi + 0x1565]
test ebx, ebx
jbe 0x2750879a
mov ecx, ebx
shr ecx, 1
je 0x275087bb
xor eax, eax
add dword [esp + eax*8 + 0xc], edx
add dword [esp + eax*8 + 0x10], edx
inc eax
cmp eax, ecx
jb 0x2750877e
lea eax, [eax + eax + 1]
lea ecx, [eax - 1]
cmp ecx, ebx
jae 0x2750879a
add dword [esp + eax*4 + 8], edx
mov dword [esp + 0x394], ebp
lea ecx, [esp + 0x384]
mov eax, dword [ebp]
add eax, edi
mov dword [ecx], edi
call eax
add esp, 0x3a4
pop ebp
pop ebx
pop edi
ret
mov eax, 1
jmp 0x2750878f
mov ebp, 1
jmp 0x2750870f

Function at 0x27538b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x27538b4d
pop edi
pop ebx
pop ebp
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x27538b84
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x27538b80
lea ecx, [ecx]
cmp esi, eax
jae 0x27538b84
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x27538b70
cmp esi, eax
jb 0x27538b8d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x275933a0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x275ba2ec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.275932df
mov eax, sym.msidcrl40.dll_Ordinal_32
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.2757fdd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x275933ef
cmp dword [ebp - 0x1c], 5
jb 0x27593407
jmp 0x27593403
cmp dword [ebp - 0x10], 1
jne 0x27593407
cmp dword [ebp - 0x1c], 4
ja 0x27593403
jne 0x27593407
cmp dword [ebp - 0x18], 0
jbe 0x27593407
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x2752cb68
call fcn.27546fb0
test eax, eax
jge 0x27593428
mov byte [0x275bb844], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.2757f388
add ebp, 0x78
leave
ret

Function at 0x2759386c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x275bc908], 0
push esi
jne 0x275937df
call fcn.2759370a
test eax, eax
je 0x27593822
mov eax, dword [0x275bc908]
cmp eax, 1
jne 0x27593800
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x27593822
pop esi
ret
push eax
call dword [0x275bc910]
test eax, eax
jne 0x2759386a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x27593826
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x275bc908]
call dword [0x275bc910]
mov edi, eax
test edi, edi
je 0x2759384d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x27593869
lea edi, [esi + 0xff0]
push esi
push dword [0x275bc908]
call dword [0x275bc90c]
add esi, 0x10
cmp esi, edi
jb 0x27593853
mov eax, esi
pop edi
pop esi
ret
jmp 0x275937cc
Function at 0x4069c1
Capabilities:
Encode data using xor

Disassembly:
pop edi
sal byte [ebx], cl
rcr byte [ebx - 0x75], 0xe5
pop ebx
mov esp, ebp
push edi
ret 8
sub eax, 0xc7075ba6
inc ebx
pushal
add dword [eax], eax
add bh, bl
mov ecx, dword [eax + 0x18]
mov esi, dword [eax + 0x20]
mov edi, 0xb4042c
xor edx, edx
popfd
jne 0x40698a
pop edi
mov dword [ebx + 0x30], 0x5b01
xor byte [ecx], al
pop ebx
add byte [eax], al
pop esi
xor eax, eax
pop ebx
mov esp, ebp
mov ah, cl
or byte [ebx], dh
jge 0x4069e0
jne 0x4069fc
add byte [edi + 0x5e], bl
pop ebx
mov esp, ebp
mov dl, 0xfe
or byte [edx - 0x70], bh
jp 0x40698e
nop
nop
Function at 0x4017a5
Capabilities:
Extract resource via kernel32 functions
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x4021bc
push 0x65
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401862
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401861
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401861
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0xf013f
push ebx
push 0x4021c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401861
push edi
push esi
push 3
push ebx
push str._ONI_stager
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401861
call fcn.00401868
mov ebx, str._ONI_svc32
mov esi, eax
mov ecx, ebx
call fcn.00401674
mov edi, str._ONI_svc64
mov ecx, edi
call fcn.00401674
call fcn.0040112f
test eax, eax
push esi
cmove edi, ebx
push ecx
mov ecx, edi
call fcn.004011ad
pop ecx
pop ecx
test eax, eax
je 0x401861
mov ecx, edi
call fcn.0040151a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x201a41c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x201a426
pushal
call 0x201a42c
pop ebp
sub ebp, 0x10
sub ebp, 0x1c1a41c
jmp 0x201a442
mov eax, 0x1c1a41c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cb
mov edx, 0x2c8c310d
xor byte [eax], dl
inc eax
dec ecx
jne 0x201a459
jmp 0x201a46c
xchg al, al
xchg byte [ecx + esi - 0x73f2f2f3], al
int3

Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x4012a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_send]
pop esi
pop ebp
ret

Function at 0x4012e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_recv]
pop esi
pop ebp
ret

Function at 0x401320
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
mov dword [esp], ecx
mov dword [esp + 4], 0x4004667f
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
cmp eax, 0
setne al
and al, 1
mov byte [ebp - 9], al
mov dword [ebp - 0x14], 0xdff0b0f4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
sub eax, 0xcd356c01
je 0x4013d2
jmp 0x401379
mov eax, dword [ebp - 0x18]
sub eax, 0xdff0b0f4
je 0x4013b7
jmp 0x40138c
mov eax, dword [ebp - 0x18]
sub eax, 0x523874a9
je 0x4013f7
jmp 0x40139f
mov eax, dword [ebp - 0x18]
sub eax, 0x7730bbd7
je 0x4013e5
jmp 0x4013b2
jmp 0x40140f
mov dl, byte [ebp - 9]
mov eax, 0x7730bbd7
mov ecx, 0xcd356c01
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x40140f
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x523874a9
jmp 0x40140f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x523874a9
jmp 0x40140f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403296
mov eax, dword [ebp - 0x1c]
add esp, 0x28
pop ebp
ret
jmp 0x401363