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

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40a60b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40a61a
pop dword [ebp - 0x30]
mov eax, 0x8fa7f39
sub eax, 0x8b9d91f
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x27da0bbb
sub dword [ebp - 0x40], 0xd987c670
mov dword [ebp - 0x3c], 0xf3fcc8ea
add dword [ebp - 0x3c], 0x3e36835b
mov dword [ebp - 0x38], 0x7a6336d5
sub dword [ebp - 0x38], 0x2e16f2a7
mov dword [ebp - 0x34], 0xadbae83f
sub dword [ebp - 0x34], 0xadbae83f
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xa4eaa36e
sub dword [ebp - 0x40], 0x30783a18
mov dword [ebp - 0x3c], 0xc974ac6
add dword [ebp - 0x3c], 0x34d516af
mov dword [ebp - 0x38], 0x5b263e92
add dword [ebp - 0x38], 0x8492dda
mov dword [ebp - 0x34], 0x2a465e51
sub dword [ebp - 0x34], 0x2a465e51
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x463d2baa
add eax, 0xba03a4a2
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3ed1c
push 0
call eax
mov ecx, 0xe26fd81c
sub ecx, 0xe26f7c50
xor edi, edi
add edi, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x30]
mov ebx, 0x34689654
add dword [ebp - 8], eax
mov edx, dword [esi]
sub dword [ebp - 4], edx
add edx, ebx
add dword [ebp - 0xc], 0xd9ad883a
mov dword [edi], edx
xor dword [ebp - 0x28], edx
add edi, 0x9158caaa
sub edi, 0x9158caa6
add esi, 0xc48a14a9
add esi, 0x3b75eb5b
loop 0x40a72d
add eax, 0x16203
xor ebx, ebx
add ebx, eax
add eax, 0xeb5a0aab
sub eax, 0xeb5a0aa6
mov ecx, 0x305fd276
sub ecx, 0x301fd276
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x40221e
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ce99d
jg 0x402242
inc edi
cmp edi, 0x1f6502b0
jl 0x40222a
cmp dword [0x438e1c], 0x400
jne 0x40229b
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push 0x426a98
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogW]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push str.digehogacisicaxafoxanet
push esi
call fcn.004025de
push esi
push esi
call fcn.00402734
push esi
call fcn.004027e1
push esi
call fcn.004027f0
add esp, 0x18
xor edi, edi
cmp edi, 0xd0fe
jge 0x4022ac
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x58bc6e
jg 0x4022cb
inc edi
cmp edi, 0xe52f
jl 0x40229d
mov eax, dword [0x428eb4]
mov dword [0x438e1c], eax
call fcn.00402004
mov edi, 0x3078f
cmp dword [0x438e1c], 0x51f
jne 0x4022f7
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x4022df
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x40614e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428b90]
jne 0x406158
repz ret
jmp fcn.00407ac3
Function at 0x40768e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428b90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403a46
and dword [ebp - 0x14], 0
cmp dword [0x4339dc], 0
mov dword [ebp - 0x18], eax
jne 0x407741
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4077e9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4077e9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4339dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4339e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4339e4], eax
call edi
push eax
call esi
mov dword [0x4339ec], eax
test eax, eax
je 0x407741
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4339e8], eax
mov eax, dword [0x4339e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40779a
cmp dword [0x4339ec], ecx
je 0x40779a
push eax
call esi
push dword [0x4339ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40779a
test ebx, ebx
je 0x40779a
call edi
test eax, eax
je 0x407791
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407791
test byte [ebp - 8], 1
jne 0x40779a
or dword [ebp + 0x10], 0x200000
jmp 0x4077cd
mov eax, dword [0x4339e0]
cmp eax, dword [ebp - 0x18]
je 0x4077cd
push eax
call esi
test eax, eax
je 0x4077cd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4077cd
mov eax, dword [0x4339e4]
cmp eax, dword [ebp - 0x18]
je 0x4077cd
push eax
call esi
test eax, eax
je 0x4077cd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4339dc]
call esi
test eax, eax
je 0x4077e9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4077eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040614e
leave
ret
Function at 0xc91b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19b000]
push edi
jmp 0xc91b7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xc91b81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc91b70
mov eax, 1
add ebx, ebx
jne 0xc91b93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xc91ba4
jne 0xc91bc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc91bc3
dec eax
add ebx, ebx
jne 0xc91bb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xc91b88
add ebx, ebx
jne 0xc91bbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xc91c15
xor ecx, ecx
sub eax, 3
jb 0xc91bdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xc91c4a
sar eax, 1
mov ebp, eax
jmp 0xc91be6
add ebx, ebx
jne 0xc91be6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc91bb4
inc ecx
add ebx, ebx
jne 0xc91bf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc91bb4
add ebx, ebx
jne 0xc91c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xc91bf6
jne 0xc91c12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xc91bf6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xc91c34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xc91c26
jmp 0xc91b76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xc91c34
add edi, ecx
jmp 0xc91b76
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xc91c52
cmp byte [edi], 0x11
jne 0xc91c52
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 0xc91c57
lea edi, [esi + 0x1ea000]
mov eax, dword [edi]
or eax, eax
je 0xc91ccf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x309e6c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x309fe8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xc91c84
mov ecx, edi
jns 0xc91cb3
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 + 0x309fec]
or eax, eax
je 0xc91cc9
mov dword [ebx], eax
add ebx, 4
jmp 0xc91ca1
call dword [esi + 0x309ffc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xc91d00
cmp al, 0xef
ja 0xc91cf3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xc91cd5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xc91ce2
mov ebp, dword [esi + 0x309ff0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0xc91d34
sub esp, 0xffffff80
jmp 0xac7f4a
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4034e9
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [ebp - 4], 0
push str.SOFTWAREMyDriversDriverGenius
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 1
push 0
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40109b
mov dword [ebp - 0xc4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0xc4]
jmp 0x40113e
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xbc], 0
push 0x7e
push 0
lea ecx, [ebp - 0xba]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x80
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.UUID
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x401112
lea eax, [ebp - 0xbc]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov dword [ebp - 0xc0], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040275a
mov esp, ebp
pop ebp
ret
Function at 0x401220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40124f
mov dword [ebp + 8], str.kdump.dll
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401266
jmp 0x4012be
push str.KxEOpenDumpMonitorEx2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401282
jmp 0x4012be
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push 0x401160
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x10], eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x10], 0
je 0x4012be
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4026a2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004025e1
mov eax, 0x400000
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 sub.MSVCR80.dll_memset
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 0x4026f1
cmp dword [ebp - 0x1c], 5
jb 0x402709
jmp 0x402705
cmp dword [ebp - 0x10], 1
jne 0x402709
cmp dword [ebp - 0x1c], 4
ja 0x402705
jne 0x402709
cmp dword [ebp - 0x18], 0
jbe 0x402709
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x404208
call fcn.00402477
test eax, eax
jge 0x40272a
mov byte [0x406484], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040275a
add ebp, 0x78
leave
ret

Function at 0x40275a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406018]
jne 0x402764
repz ret
jmp fcn.00402c10
Function at 0x1c464790
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x1c4bf788]
push esi
test eax, eax
push edi
push ebp
jne 0x1c4647d8
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x1c4647b8
mov eax, 2
jmp 0x1c4647de
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1c4647d1
mov eax, 1
jmp 0x1c4647de
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x1c4bf788], eax
cmp eax, 2
jne 0x1c464803
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x1c4bf788], eax
cmp eax, 1
jne 0x1c46489f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x1c46481f
mov edi, dword [0x1c4be878]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x1c464840
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.1c45f010
add esp, 4
mov esi, eax
test esi, esi
jne 0x1c46485d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1c464894
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x1c4648a4
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x1c4648bf
push esi
call 0x1c4dbe8b
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1c464894
push esi
call fcn.1c45e4e0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x964bac
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00964d5c
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x964caa
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x964c4d
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x964c90
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x964c64
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x964c7f
test al, 0x40
je 0x964c76
mov ecx, dword [edi + 0x20]
jmp 0x964c7d
test al, 0x80
je 0x964c90
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x964c90
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x964c1c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4a14f4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a15cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a15e8
push ebx
push 0x4a15f8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040a768
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004077c0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a1576
mov ax, 0x83
call fcn.004a1118
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a14c8
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a157f
call fcn.004a14c8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a15d4
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x4a16e8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
jmp 0x4a17a5
cmp dword [esi + 0x10], 0x1000
jne 0x4a1793
test byte [esi + 0x15], 1
jne 0x4a1793
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a1744
cmp ebp, 2
je 0x4a1744
cmp ebp, 0x10
je 0x4a1744
cmp ebp, 0x20
jne 0x4a1760
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a1760
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a1771
mov eax, dword [esi]
add eax, ebx
call fcn.004a16e0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a1764
cmp byte [esp + 4], 0
je 0x4a1793
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a1719
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x3008aeeb
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x3008be58
call fcn.3008b35f
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3009e214
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x3008ac8a
cmp eax, esi
jne 0x3008ac7d
xor esi, esi
inc esi
mov ebx, esi
jmp 0x3008ac8d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3008ac64
xor esi, esi
inc esi
mov eax, dword [0x3009e210]
cmp eax, esi
jne 0x3008aca0
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3008accf
mov eax, dword [0x3009e210]
test eax, eax
jne 0x3008acc9
mov dword [0x3009e210], esi
push 0x3000179c
push 0x30001790
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x3008accf
jmp 0x3008adf7
mov dword [0x3009d778], esi
mov eax, dword [0x3009e210]
cmp eax, esi
jne 0x3008acf3
push 0x3000178c
push 0x30001784
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3009e210], 2
test ebx, ebx
jne 0x3008acff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3009e224], 0
je 0x3008ad23
push 0x3009e224
call fcn.3008b2e7
pop ecx
test eax, eax
je 0x3008ad23
push 0
push 2
push 0
call dword [0x3009e224]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x3008ad7f
test al, al
je 0x3008ad3d
cmp dword [ebp - 0x1c], 0
jne 0x3008ad7f
mov al, byte [esi]
test al, al
je 0x3008ad4d
cmp al, 0x20
ja 0x3008ad4d
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3008ad3d
test byte [ebp - 0x3c], 1
je 0x3008ad59
movzx eax, word [ebp - 0x38]
jmp 0x3008ad5c
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x3009d774], eax
cmp dword [0x3009d768], 0
jne 0x3008add3
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x3008ad8e
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x3008ada1
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x3008ad2a
cmp dword [0x3009d778], 0
jne 0x3008ade2
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3009d774]
jmp 0x3008ae03
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3008b3a4
ret
call fcn.3008a4a6
jmp 0x3008ac2a

Function at 0x3008b2a5
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [ecx + eax + 0x18]
jbe 0x3008b2e1
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x3008b2d7
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x3008b2e3
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x3008b2c7
xor eax, eax
pop edi
pop esi
pop ebx
ret