joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011bf0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor edx, edx
push esi
mov esi, dword [ebp + 8]
lea esp, [esp]
mov cl, byte [edx + esi]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x10011c12
movsx eax, cl
sub eax, 0x41
jmp 0x10011c54
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x10011c21
movsx eax, cl
sub eax, 0x47
jmp 0x10011c54
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x10011c30
movsx eax, cl
add eax, 4
jmp 0x10011c54
cmp cl, 0x2b
jne 0x10011c3c
mov eax, 0x3e
jmp 0x10011c54
cmp cl, 0x2f
jne 0x10011c48
mov eax, 0x3f
jmp 0x10011c54
cmp cl, 0x3d
jne 0x10011cd4
or eax, 0xffffffff
mov dword [ebp + edx*4 - 0x10], eax
inc edx
cmp edx, 4
jl 0x10011c00
mov edx, dword [ebp - 0x10]
cmp edx, 0xffffffff
je 0x10011cd4
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x10011cd4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
push ebx
cmp ecx, 0xffffffff
jne 0x10011c8d
cmp eax, ecx
je 0x10011c86
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, 1
jmp 0x10011c98
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, esi
and eax, 0x3f
mov esi, dword [ebp + 0xc]
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [esi], al
cmp ebx, 1
jle 0x10011cc4
mov ecx, edx
shr ecx, 8
mov byte [esi + 1], cl
cmp ebx, 2
jle 0x10011ccc
mov byte [esi + 2], dl
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10011ea0
Capabilities:
Encrypt data using rc4 prga
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
push eax
or bh, 0xff
lea esi, [eax + 1]
sub bh, byte [eax]
push 0
call fcn.10012270
xor edi, edi
movzx ecx, ax
add esp, 0xc
cmp dword [ebp + 0x10], edi
jbe 0x10011ef5
movzx eax, bh
push 1
push esi
push ecx
mov bl, byte [eax + 0x100486a0]
mov eax, dword [ebp + 0xc]
xor bl, byte [esi]
mov byte [edi + eax], bl
call fcn.10012270
add esp, 0xc
movzx ecx, ax
inc esi
test bl, bl
je 0x10011ef5
inc edi
inc bh
cmp edi, dword [ebp + 0x10]
jb 0x10011ec8
push 1
lea eax, [esi + 1]
push eax
push 1
push esi
push ecx
call fcn.10012270
add esp, 0xc
movzx eax, ax
push eax
call fcn.10012270
add esp, 0xc
test ax, ax
je 0x10011f20
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10011f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
or bh, 0xff
sub bh, byte [eax]
cmp dword [ebp + 0xc], 1
jne 0x10011f4a
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push 1
push eax
push 0
lea esi, [eax + 1]
call fcn.10012270
xor edi, edi
movzx ecx, ax
add esp, 0xc
cmp dword [ebp + 0x14], edi
jbe 0x10011fc7
mov eax, dword [ebp + 0x10]
mov edx, 2
add eax, 0xfffffffe
sub edx, esi
mov dword [ebp + 8], eax
mov dword [ebp - 4], edx
lea esp, [esp]
movzx eax, bh
push 1
push esi
push ecx
mov bl, byte [eax + 0x100486a0]
lea eax, [edx + esi]
mov edx, dword [ebp + 8]
xor bl, byte [esi]
mov byte [eax + edx], bl
call fcn.10012270
add esp, 0xc
movzx ecx, ax
test bl, bl
je 0x10011fc6
mov edx, dword [ebp - 4]
lea eax, [edx + esi]
cmp eax, dword [ebp + 0xc]
jae 0x10011fbd
inc edi
inc esi
inc bh
cmp edi, dword [ebp + 0x14]
jb 0x10011f80
jmp 0x10011fc7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
push 1
lea eax, [esi + 1]
push eax
push 1
push esi
push ecx
call fcn.10012270
add esp, 0xc
movzx ecx, ax
push ecx
call fcn.10012270
add esp, 0xc
xor ecx, ecx
test ax, ax
cmovne edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.1001a8e0
mov eax, dword [0x1005fa60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or bh, 0xff
mov dword [ebp - 0x1034], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1028], eax
sub bh, byte [edi]
lea esi, [edi + 1]
mov dword [ebp - 0x1030], 0
cmp eax, 0x1000
jbe 0x1001207c
push eax
call fcn.10017a05
add esp, 4
mov dword [ebp - 0x1030], eax
test eax, eax
jne 0x10012082
push str.7p4lZIVVm5QrtbBKZt9XeU4lyjDQSHjjp5v8WMGUOYM_qhlb_3SDyQ
push eax
call fcn.10010a30
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1024]
push 1
push edi
push 0
mov dword [ebp - 0x102c], eax
call fcn.10012270
xor edi, edi
movzx edx, ax
add esp, 0xc
cmp dword [ebp - 0x1028], edi
jbe 0x100120e3
mov ecx, dword [ebp - 0x102c]
sub ecx, esi
mov dword [ebp - 0x102c], ecx
movzx eax, bh
push 1
push esi
push edx
mov bl, byte [eax + 0x100486a0]
xor bl, byte [esi]
mov byte [ecx + esi], bl
call fcn.10012270
add esp, 0xc
movzx edx, ax
inc esi
test bl, bl
je 0x100120e3
mov ecx, dword [ebp - 0x102c]
inc edi
inc bh
cmp edi, dword [ebp - 0x1028]
jb 0x100120b0
push 2
push esi
push edx
call fcn.10012270
add esp, 0xc
test ax, ax
je 0x1001210f
mov eax, dword [ebp - 0x1030]
test eax, eax
je 0x10012107
push eax
call fcn.10018fac
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x10062824]
test eax, eax
jne 0x1001214d
push dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10013da0
mov esi, eax
lea eax, [ebp - 0x24]
push 0x20
push eax
push 0x1005e430
call fcn.10011ce0
push eax
push esi
call fcn.10012c90
add esp, 0x18
test eax, eax
cmove eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [0x10062824], eax
push dword [ebp - 0x1028]
mov ebx, dword [ebp - 0x1030]
push dword [ebp - 0x1034]
push 0xffffffffffffffff
test ebx, ebx
je 0x10012179
push ebx
push 0
push 0
call eax
push ebx
mov esi, eax
call fcn.1001943c
add esp, 4
jmp 0x10012188
lea ecx, [ebp - 0x1024]
push ecx
push 0
push 0
call eax
mov esi, eax
test esi, esi
je 0x10012069
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001811f
mov esp, ebp
pop ebp
ret
Function at 0x100121b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10012260
cmp byte [edi], 0
je 0x10012260
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1001b088
call fcn.1001b067
mov esi, dword [ebp + 0xc]
mov bl, al
push 1
or cl, 0xff
sub cl, bl
push esi
push 0
mov byte [esi], cl
call fcn.10012270
movzx ecx, ax
inc esi
movzx eax, bl
push 1
push esi
push ecx
mov al, byte [eax + 0x100486a0]
xor al, byte [edi]
mov byte [esi], al
call fcn.10012270
add esp, 0x1c
movzx ecx, ax
cmp byte [edi], 0
mov edx, 2
mov dword [ebp + 8], edx
je 0x1001224d
sub edi, esi
inc bl
inc esi
movzx eax, bl
push 1
push esi
push ecx
mov al, byte [eax + 0x100486a0]
xor al, byte [edi + esi]
mov byte [esi], al
call fcn.10012270
mov edx, dword [ebp + 8]
add esp, 0xc
inc edx
movzx ecx, ax
cmp byte [edi + esi], 0
mov dword [ebp + 8], edx
jne 0x10012220
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
lea eax, [edx + 2]
mov byte [esi + 2], cl
pop esi
pop ebx
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret

Function at 0x10012270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 0x10]
xor ecx, ecx
cmp cx, ax
jae 0x100122ba
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, 0xff
push edi
movzx edi, ax
mov eax, dword [ebp + 8]
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov edx, eax
shl eax, 8
shr edx, 8
xor dx, cx
and dx, bx
movzx ecx, dx
xor ax, word [ecx*2 + 0x100487a0]
movzx eax, ax
dec edi
jne 0x10012290
pop edi
pop esi
pop ebx
pop ebp
ret
mov ax, word [ebp + 8]
pop ebp
ret
Function at 0x10012ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x1005fa60]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [0x10062838]
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x170], 0
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x10012bbc
movdqa xmm0, xmmword [str.LdrGetProcedureAAuoDjOwg_lPpd2n1c8pjcy8A6K2CoVpLoEKZliqkhkwUYFA]
push dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movdqu xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x65726464
mov word [ebp - 0x54], 0x7373
mov byte [ebp - 0x52], 0
call fcn.10013da0
mov ebx, eax
add esp, 4
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ecx + ebx + 0x78]
add ecx, ebx
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x20]
add eax, ebx
mov dword [ebp - 0x174], eax
add edx, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x184], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x188], eax
test eax, eax
je 0x10012bb0
nop
mov eax, dword [ebp - 0x184]
lea ecx, [ebp - 0x68]
movzx eax, word [eax + esi*2]
mov dword [ebp - 0x18c], eax
mov eax, dword [edx + esi*4]
add eax, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10012b98
test dl, dl
je 0x10012b94
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10012b98
add ecx, 2
add eax, 2
test dl, dl
jne 0x10012b78
xor eax, eax
jmp 0x10012b9d
sbb eax, eax
or eax, 1
test eax, eax
je 0x10012be5
mov edx, dword [ebp - 0x180]
inc esi
cmp esi, dword [ebp - 0x188]
jb 0x10012b60
mov esi, dword [0x10062838]
mov ecx, dword [ebp - 0x17c]
mov eax, dword [0x100631ec]
test eax, eax
cmovne esi, eax
mov eax, edi
shr eax, 0x10
mov dword [0x10062838], esi
test eax, eax
jne 0x10012bf8
lea eax, [ebp - 0x170]
push eax
push edi
push 0
push ecx
jmp 0x10012c72
mov esi, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x174]
mov esi, dword [eax + esi*4]
add esi, ebx
jmp 0x10012bb6
lea ecx, [ebp - 0x16c]
mov ebx, edi
mov eax, ecx
mov edx, 0x104
sub ebx, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10012c29
mov al, byte [ebx + ecx]
test al, al
je 0x10012c29
mov byte [ecx], al
inc ecx
dec edx
jne 0x10012c10
jmp 0x10012c2d
test edx, edx
jne 0x10012c2e
dec ecx
mov byte [ecx], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10012c34
mov eax, 0x104
sub edi, ecx
mov word [ebp - 0x176], ax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x170]
push eax
push 0
lea eax, [ebp - 0x178]
mov word [ebp - 0x178], di
push eax
push dword [ebp - 0x17c]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x170]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1001811f
mov esp, ebp
pop ebp
ret
Function at 0x10013d40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1005fa60]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x10063086]
test al, al
jne 0x10013d85
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xc]
mov cl, 1
cmp eax, 2
je 0x10013d7d
lea ecx, [ecx]
inc cl
mov edx, 1
shl edx, cl
cmp edx, eax
jne 0x10013d70
mov byte [0x10063086], cl
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret

Function at 0x10013da0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1005fa60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100630c8]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0xc], xmm0
push esi
mov esi, dword [ebp + 8]
movdqu xmmword [ebp - 0x1c], xmm0
push 0x1c
test eax, eax
je 0x10013ddc
lea ecx, [ebp - 0x20]
push ecx
push esi
call eax
jmp 0x10013de7
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10013e05
cmp dword [ebp - 8], 0x1000000
je 0x10013e05
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10013d40
movzx eax, al
mov ecx, eax
mov dword [ebp - 0x24], eax
shr esi, cl
shl esi, cl
test esi, esi
je 0x10013eaa
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 1
push esi
call ebx
test eax, eax
jne 0x10013eaa
push edi
mov edi, 0x5a4d
push 0x40
push esi
call ebx
test eax, eax
jne 0x10013e60
cmp word [esi], di
jne 0x10013e60
mov edi, dword [esi + 0x3c]
push 0xf8
add edi, esi
push edi
call ebx
test eax, eax
jne 0x10013e5b
cmp dword [edi], 0x4550
je 0x10013e97
mov edi, 0x5a4d
mov ecx, dword [ebp - 0x24]
or eax, 0xffffffff
shl eax, cl
add esi, eax
je 0x10013e75
push 1
push esi
call ebx
test eax, eax
je 0x10013e34
push str.Qi1GnqygDnaupI2XKp9yUHvaXFwqiRkj45FSQrL_zVNAmSvWyByCP9hAeOOutEdUkoEPhMPD_A
push 0
call fcn.10010a30
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
push str.RsycZQYTbYyEoQ9XpIiZlSu7dnxm9116Ia0ONMzUT16b_9FZVd040cUdwzzQQSrnuaNpXGsMA
push 0
call fcn.10010a30
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop ebx
pop esi
call fcn.1001811f
mov esp, ebp
pop ebp
ret
Function at 0x100140d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100140f3
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x100140f7
push 0x10049d50
push 0
call fcn.10010a30
add esp, 8
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x10014116
push str.pGf75h7WbDWMOcFJPcSju1BygJ82t4ss5EzQS2HlO9kXGjQa7q81uVhF1Ej_fK9d
push 0
call fcn.10010a30
add esp, 8
xor eax, eax
pop ebp
ret
mov eax, dword [eax + ecx + 0x78]
test eax, eax
jne 0x10014130
push str.pGf75h7WbDWMOcFJPcSju1BygJ82t4sr5RrUX3juaeNjTiYR5aQIoy1CVQ
push eax
call fcn.10010a30
add esp, 8
xor eax, eax
pop ebp
ret
mov eax, dword [eax + ecx + 0xc]
add eax, ecx
pop ebp
ret

Function at 0x100149e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046056
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1005fa60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x3c], edi
movdqu xmmword [edi + 0x30], xmm0
movq qword [edi + 0x40], xmm0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x50]
mov ecx, esi
mov dword [ebp - 0x38], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1000eeb0
mov dword [esi], eax
mov byte [ebp - 4], 5
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x34]
mov dword [edi + 0x18], 0
push eax
mov dword [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x30]
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret

Function at 0x1001ed37
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401060
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push esi
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x4010de
cmp dword [ebp + 0xc], esi
je 0x4010bf
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x4010e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40214e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40217c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x402183
cmp ebx, dword [eax + 4]
jae 0x402183
xor eax, eax
jmp 0x402373
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402194
xor eax, eax
inc eax
jmp 0x402372
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4021aa
cmp ecx, edx
jae 0x4022ef
cmp dword [eax + 4], 0
je 0x4021b3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40219b
cmp dword [ebp + 8], 0
je 0x4021d5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4022ef
cmp eax, esi
jae 0x4022ef
mov eax, dword [0x409978]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4021fa
cmp dword [esi*4 + 0x409980], edi
je 0x4022f3
inc esi
cmp esi, eax
jl 0x4021e8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40236f
cmp dword [ebp - 8], 0x1000000
jne 0x40236f
test byte [ebp - 0xc], 0xcc
je 0x402278
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40236f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40236f
cmp word [eax + 0x18], 0x10b
jne 0x40236f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40236f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402278
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402278
test byte [ecx + 0x27], 0x80
jne 0x4022ef
push 1
push 0x4099c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40218c
mov ecx, dword [0x409978]
test ecx, ecx
mov edx, ecx
jle 0x4022ac
lea eax, [ecx*4 + 0x40997c]
cmp dword [eax], edi
je 0x4022ac
dec edx
sub eax, 4
test edx, edx
jg 0x4022a0
test edx, edx
jne 0x4022dd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4022b9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4022d1
lea eax, [edx*4 + 0x409980]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4022bf
cmp ecx, 0x10
jge 0x4022dd
inc ecx
mov dword [0x409978], ecx
push 0
push 0x4099c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40218c
xor eax, eax
jmp 0x402372
test esi, esi
jle 0x40218c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4099c0
call ebx
test eax, eax
jne 0x40218c
cmp dword [esi*4 + 0x409980], edi
je 0x402349
mov eax, dword [0x409978]
lea esi, [eax - 1]
test esi, esi
jl 0x402337
cmp dword [esi*4 + 0x409980], edi
je 0x402333
dec esi
jns 0x402327
test esi, esi
jge 0x402347
cmp eax, 0x10
jge 0x402342
inc eax
mov dword [0x409978], eax
lea esi, [eax - 1]
jmp 0x402349
je 0x402361
xor ecx, ecx
test esi, esi
jl 0x402361
lea eax, [ecx*4 + 0x409980]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40234f
push 0
push 0x4099c0
call ebx
jmp 0x40218c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret