joyce8/EMBER2024-capa huggingface dataset:
Function at 0x580930
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x804
mov eax, dword [0x6dc0d0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push ebp
xor ecx, ecx
push esi
lea eax, [ecx + 1]
push edi
lea ecx, [ecx]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
lea esi, [eax + eax]
and edx, 0x1b
mov dword [esp + ecx*4 + 0x410], eax
mov dword [esp + eax*4 + 0x10], ecx
xor edx, esi
xor eax, edx
inc ecx
and eax, 0xff
cmp ecx, 0x100
jl 0x580950
mov eax, 1
mov ecx, 0x71a0b0
lea esp, [esp]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
add eax, eax
and edx, 0x1b
xor eax, edx
add ecx, 4
and eax, 0xff
cmp ecx, 0x71a0d8
jl 0x580990
mov byte [0x71c1d8], 0x63
mov byte [0x71b13b], 0
mov ebx, 1
mov ecx, dword [esp + ebx*4 + 0x10]
add ecx, ecx
add ecx, ecx
lea edx, [esp + 0x80c]
sub edx, ecx
mov eax, dword [edx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, 0xff
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, 0xff
xor eax, edx
mov byte [ebx + 0x71c1d8], al
mov byte [eax + 0x71b0d8], bl
inc ebx
cmp ebx, 0x100
jl 0x5809c8
xor ecx, ecx
lea ebx, [ebx]
movzx esi, byte [ecx + 0x71c1d8]
mov edx, esi
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea eax, [esi + esi]
xor edx, eax
and edx, 0xff
mov eax, edx
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, edx
mov dword [ecx*4 + 0x71bdd8], eax
rol eax, 8
mov dword [ecx*4 + 0x71b9d8], eax
rol eax, 8
mov dword [ecx*4 + 0x71b5d8], eax
rol eax, 8
mov dword [ecx*4 + 0x71b1d8], eax
movzx eax, byte [ecx + 0x71b0d8]
test eax, eax
je 0x580af6
mov esi, dword [esp + eax*4 + 0x10]
mov edx, dword [esp + 0x48]
lea eax, [esi + edx]
cdq
mov edi, 0xff
idiv edi
mov eax, dword [esp + 0x34]
add eax, esi
mov ebp, dword [esp + edx*4 + 0x410]
cdq
idiv edi
mov ebx, dword [esp + edx*4 + 0x410]
mov edx, dword [esp + 0x44]
lea eax, [esi + edx]
cdq
idiv edi
mov eax, dword [esp + 0x3c]
add eax, esi
mov esi, 0xff
mov edi, dword [esp + edx*4 + 0x410]
cdq
idiv esi
mov edx, dword [esp + edx*4 + 0x410]
jmp 0x580afe
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor edx, edx
shl edx, 8
xor edx, edi
shl edx, 8
xor edx, ebx
shl edx, 8
xor edx, ebp
mov dword [ecx*4 + 0x71acd8], edx
rol edx, 8
mov dword [ecx*4 + 0x71a8d8], edx
rol edx, 8
mov dword [ecx*4 + 0x71a4d8], edx
rol edx, 8
mov dword [ecx*4 + 0x71a0d8], edx
inc ecx
cmp ecx, 0x100
jl 0x580a40
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00589034
add esp, 0x804
ret
Function at 0x580b60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x11c
mov eax, dword [0x6dc0d0]
xor eax, esp
mov dword [esp + 0x118], eax
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
mov eax, edx
sub eax, 0x80
push edi
mov edi, dword [esp + 0x124]
je 0x580bb1
sub eax, 0x40
je 0x580ba9
sub eax, 0x40
jne 0x580d64
mov dword [edi], 0xe
jmp 0x580bb7
mov dword [edi], 0xc
jmp 0x580bb7
mov dword [edi], 0xa
push esi
push edx
push ecx
lea eax, [esp + 0x10]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.005803d0
mov eax, dword [esp + 0x14]
shl eax, 4
add eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov ecx, dword [edi]
dec ecx
add esi, 0x10
sub eax, 0x10
test ecx, ecx
jle 0x580d4d
nop
movzx edx, byte [eax + 3]
movzx edx, byte [edx + 0x71c1d8]
mov edx, dword [edx*4 + 0x71a0d8]
movzx edi, byte [eax + 2]
movzx edi, byte [edi + 0x71c1d8]
xor edx, dword [edi*4 + 0x71a4d8]
movzx edi, byte [eax + 1]
movzx edi, byte [edi + 0x71c1d8]
xor edx, dword [edi*4 + 0x71a8d8]
mov edi, dword [eax]
and edi, 0xff
movzx edi, byte [edi + 0x71c1d8]
xor edx, dword [edi*4 + 0x71acd8]
dec ecx
mov dword [esi], edx
mov edx, dword [eax + 4]
movzx edi, byte [eax + 7]
movzx edi, byte [edi + 0x71c1d8]
and edx, 0xff
movzx edx, byte [edx + 0x71c1d8]
mov edx, dword [edx*4 + 0x71acd8]
xor edx, dword [edi*4 + 0x71a0d8]
movzx edi, byte [eax + 6]
movzx edi, byte [edi + 0x71c1d8]
xor edx, dword [edi*4 + 0x71a4d8]
movzx edi, byte [eax + 5]
movzx edi, byte [edi + 0x71c1d8]
xor edx, dword [edi*4 + 0x71a8d8]
add esi, 0x10
mov dword [esi - 0xc], edx
mov edx, dword [eax + 8]
movzx edi, byte [eax + 0xb]
movzx edi, byte [edi + 0x71c1d8]
and edx, 0xff
movzx edx, byte [edx + 0x71c1d8]
mov edx, dword [edx*4 + 0x71acd8]
xor edx, dword [edi*4 + 0x71a0d8]
movzx edi, byte [eax + 0xa]
movzx edi, byte [edi + 0x71c1d8]
xor edx, dword [edi*4 + 0x71a4d8]
movzx edi, byte [eax + 9]
movzx edi, byte [edi + 0x71c1d8]
xor edx, dword [edi*4 + 0x71a8d8]
sub eax, 0x10
mov dword [esi - 8], edx
mov edx, dword [eax + 0x1c]
movzx edi, byte [eax + 0x1f]
movzx edi, byte [edi + 0x71c1d8]
and edx, 0xff
movzx edx, byte [edx + 0x71c1d8]
mov edx, dword [edx*4 + 0x71acd8]
xor edx, dword [edi*4 + 0x71a0d8]
movzx edi, byte [eax + 0x1e]
movzx edi, byte [edi + 0x71c1d8]
xor edx, dword [edi*4 + 0x71a4d8]
movzx edi, byte [eax + 0x1d]
movzx edi, byte [edi + 0x71c1d8]
xor edx, dword [edi*4 + 0x71a8d8]
mov dword [esi - 4], edx
test ecx, ecx
jg 0x580c00
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
pop esi
mov ecx, dword [esp + 0x11c]
pop edi
xor ecx, esp
call fcn.00589034
add esp, 0x11c
ret
Function at 0x581af0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x730
mov eax, dword [0x6dc0d0]
xor eax, esp
mov dword [esp + 0x72c], eax
mov eax, dword [esp + 0x738]
push ebx
mov ebx, dword [esp + 0x738]
push esi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x581b29
xor eax, eax
jmp 0x581cbe
test eax, eax
je 0x581b22
push edi
push ebx
push 1
lea eax, [esp + 0x1a]
push 1
push eax
call fcn.00589969
push 0x200
xor edi, edi
lea ecx, [esp + 0x54c]
push edi
push ecx
add esi, 0x10
call fcn.00588e70
lea edx, [esp + 0x30]
push edx
push str._02X
push esi
call fcn.0058b092
add esp, 0x28
test eax, eax
jle 0x581b9e
lea esp, [esp]
cmp edi, 0x200
jge 0x581b9e
mov al, byte [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
add esi, 2
push str._02X
mov byte [esp + edi + 0x540], al
push esi
inc edi
call fcn.0058b092
add esp, 0xc
test eax, eax
jg 0x581b70
push ebp
push 0x100
lea edx, [esp + 0x540]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00580b60
mov ebp, dword [esp + 0x758]
mov cl, byte [esp + 0x75c]
add esp, 0xc
xor edi, edi
mov byte [esp + 0x13], cl
test ebp, ebp
jle 0x581c7d
push ebx
push 0x10
lea edx, [esp + 0x144]
push 1
push edx
call fcn.00589969
add esp, 0x10
cmp eax, 0x10
jne 0x581ca6
lea eax, [esp + 0x13c]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00580d80
mov ecx, dword [esp + 0x30]
xor eax, eax
add esp, 0x10
xor dl, dl
mov byte [esp + 0x15], al
mov byte [esp + 0x14], al
lea esi, [ecx + edi + 1]
mov cl, byte [esp + eax + 0x13c]
add byte [esp + 0x13], cl
mov byte [esi + eax - 1], cl
mov cl, byte [esp + eax + 0x13d]
add byte [esp + 0x14], cl
mov byte [esi + eax], cl
mov cl, byte [esp + eax + 0x13e]
add byte [esp + 0x15], cl
mov byte [esi + eax + 1], cl
mov cl, byte [esp + eax + 0x13f]
mov byte [esi + eax + 2], cl
add eax, 4
add dl, cl
cmp eax, 0x10
jl 0x581c21
add dl, byte [esp + 0x15]
mov ebx, dword [esp + 0x1c]
add dl, byte [esp + 0x14]
add edi, 0x10
add byte [esp + 0x13], dl
cmp edi, ebp
jl 0x581bd5
push ebx
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.00589969
mov al, byte [esp + 0x26]
add esp, 0x10
cmp al, byte [esp + 0x17]
jne 0x581ca6
cmp al, byte [esp + 0x13]
jne 0x581ca6
mov eax, 1
jmp 0x581cbc
push 0
push str.Error__
push str.Header_Version_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebp
pop edi
mov ecx, dword [esp + 0x734]
pop esi
pop ebx
xor ecx, esp
call fcn.00589034
add esp, 0x730
ret 0x10

Function at 0x589034
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6dc0d0]
jne 0x58903e
repz ret
jmp fcn.00590ec6
Function at 0x59f83f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6dc0d0]
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.00595cff
and dword [ebp - 0x14], 0
cmp dword [0x71d100], 0
mov dword [ebp - 0x18], eax
jne 0x59f8f2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x59f99a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x59f99a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5d7d50
push ebx
mov dword [0x71d100], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x71d104], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x71d108], eax
call edi
push eax
call esi
mov dword [0x71d110], eax
test eax, eax
je 0x59f8f2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x71d10c], eax
mov eax, dword [0x71d10c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x59f94b
cmp dword [0x71d110], ecx
je 0x59f94b
push eax
call esi
push dword [0x71d110]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x59f94b
test ebx, ebx
je 0x59f94b
call edi
test eax, eax
je 0x59f942
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x59f942
test byte [ebp - 8], 1
jne 0x59f94b
or dword [ebp + 0x10], 0x200000
jmp 0x59f97e
mov eax, dword [0x71d104]
cmp eax, dword [ebp - 0x18]
je 0x59f97e
push eax
call esi
test eax, eax
je 0x59f97e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x59f97e
mov eax, dword [0x71d108]
cmp eax, dword [ebp - 0x18]
je 0x59f97e
push eax
call esi
test eax, eax
je 0x59f97e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x71d100]
call esi
test eax, eax
je 0x59f99a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x59f99c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00589034
leave
ret

Function at 0x424640
Capabilities:
Encode data using xor

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
mov ebp, esp
lea ebx, [esp - 0x3e80]
xor eax, eax
push eax
cmp esp, ebx
jne 0x424658
inc esi
inc esi
push ebx
push 0x22394
push edi
add ebx, 4
push ebx
push 0x962f
push esi
add ebx, 4
jmp loc.00428000
Function at 0x4051c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40a6a8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4051df
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40a6a4], 1
mov byte [0x40a6a0], bl
jne 0x405239
mov ecx, dword [0x40aa28]
test ecx, ecx
je 0x405227
mov esi, dword [0x40aa24]
sub esi, 4
cmp esi, ecx
jb 0x405227
mov eax, dword [esi]
test eax, eax
je 0x405220
call eax
mov ecx, dword [0x40aa28]
sub esi, 4
cmp esi, ecx
jae 0x405212
push 0x407014
push 0x407010
call fcn.00405270
add esp, 8
push 0x40701c
push 0x407018
call fcn.00405270
add esp, 8
test ebx, ebx
jne 0x405260
push ebp
mov dword [0x40a6a8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x432003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401ae8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebx, section..text
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
sub ebx, 0x1000
mov dword [0x4028f4], ebx
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401b11
push esp
mov eax, str.contents
mov dword [ebp - 4], eax
lea eax, [0x401187]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x4028f4]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
xor eax, eax
push eax
push dword [0x4028f4]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x402904], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x402904]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401bc9
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401bb0
pop ebp
ret 0x10
Function at 0x40143f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x90]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x40145e
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x401452
add esi, 0x10000
push esi
mov eax, 0x40301b
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004013a7
mov dword [0x4030dc], eax
push 0x403023
push 0x3e8
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4014a2
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4014b3
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4014c7
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x4014d5
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x4014f1
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.0040129b
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x401544
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4015ba
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401c56
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x401037
push dword [ebp + 0xc]
call fcn.00401267
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x401825
add eax, dword [ebp + 8]
call eax
leave
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x40126c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f004]
jne 0x401276
repz ret
jmp fcn.00401864

Function at 0x40981d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f004]
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.004042e0
and dword [ebp - 0x14], 0
cmp dword [0x431d9c], 0
mov dword [ebp - 0x18], eax
jne 0x4098d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409978
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409978
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x431d9c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x431da0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x431da4], eax
call edi
push eax
call esi
mov dword [0x431dac], eax
test eax, eax
je 0x4098d0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x431da8], eax
mov eax, dword [0x431da8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409929
cmp dword [0x431dac], ecx
je 0x409929
push eax
call esi
push dword [0x431dac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409929
test ebx, ebx
je 0x409929
call edi
test eax, eax
je 0x409920
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409920
test byte [ebp - 8], 1
jne 0x409929
or dword [ebp + 0x10], 0x200000
jmp 0x40995c
mov eax, dword [0x431da0]
cmp eax, dword [ebp - 0x18]
je 0x40995c
push eax
call esi
test eax, eax
je 0x40995c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40995c
mov eax, dword [0x431da4]
cmp eax, dword [ebp - 0x18]
je 0x40995c
push eax
call esi
test eax, eax
je 0x40995c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x431d9c]
call esi
test eax, eax
je 0x409978
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40997a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040126c
leave
ret
Function at 0x422030
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x42f004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x433b34]
push edi
mov edi, dword [0x435fb4]
call fcn.00421f70
cmp dword [0x435fb4], 0x2f
jne 0x4220c4
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00421fa0
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.0040126c
add esp, 0x41c
ret
Function at 0x422560
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x435fb4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519af
mov edi, 0x8e46a6f0
jmp 0x422580
mov dword [0x435c1c], edi
cmp eax, 0x3dc
jne 0x42259a
push 0
push 0
push 0
call esi
mov eax, dword [0x435fb4]
dec ebx
jne 0x422580
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x4225b0
cmp eax, 0xa5f
jne 0x4225d2
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x435fb4]
cmp esi, 0x846143
jne 0x4225e9
mov eax, dword [0x430bf0]
add eax, 0xa231
mov dword [0x435fb4], eax
cmp eax, 0x141
jne 0x422604
mov dword [0x4322c0], 0xec58acac
mov dword [0x4322c4], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x4225b0
call fcn.004220e0
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x422050
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x42f004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x433b34]
push edi
mov edi, dword [0x435fb4]
call fcn.00421f90
cmp dword [0x435fb4], 0x2f
jne 0x4220e4
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00421fc0
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.0040126c
add esp, 0x41c
ret
Function at 0x422580
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x435fb4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519af
mov edi, 0x8e46a6f0
jmp 0x4225a0
mov dword [0x435c1c], edi
cmp eax, 0x3dc
jne 0x4225ba
push 0
push 0
push 0
call esi
mov eax, dword [0x435fb4]
dec ebx
jne 0x4225a0
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x4225d0
cmp eax, 0xa5f
jne 0x4225f2
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x435fb4]
cmp esi, 0x846143
jne 0x422609
mov eax, dword [0x430bf0]
add eax, 0xa231
mov dword [0x435fb4], eax
cmp eax, 0x141
jne 0x422624
mov dword [0x4322c0], 0xec58acac
mov dword [0x4322c4], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x4225d0
call fcn.00422100
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10

Function at 0x1000206b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x100020a6
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x1000209f
mov eax, dword [edx + 8]
jmp loc.10008000
add edx, 0x28
cmp edx, esi
jne 0x10002090
xor eax, eax