joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x81d808]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40310d
cmp dword [0x81d80c], 0
jne 0x4030f9
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00401760
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x402fb0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41c0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x402fc0
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41c0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402ff5
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401760
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403054
sub edx, esi
sar edx, 1
je 0x40310d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x403070
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40310d
xor eax, eax
push ebx
test edx, edx
je 0x4030a8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x4030a8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x403091
xor eax, eax
test edx, edx
je 0x4030c2
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x4030c2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4030b0
xor eax, eax
test edx, edx
je 0x4030df
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x4030df
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4030d0
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x81d808]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x403e40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x81e204]
sub esp, 0x11c
test eax, eax
jne 0x403f3e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00401760
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x403e90
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41c100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x403ea0
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41c104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x403ed5
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00402a00
pop edi
pop esi
pop ebx
test eax, eax
je 0x403f39
mov eax, dword [eax + 0x18]
test eax, eax
je 0x403f39
mov dword [0x81e204], eax
add esp, 0x11c
ret
mov eax, dword [0x81e204]
add esp, 0x11c
ret
Function at 0x41b9a2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x9300b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x930200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9300d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9300c2
add dl, dl
jne 0x9300e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x930134
xor eax, eax
add dl, dl
jne 0x9300ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9301d5
add dl, dl
jne 0x9300fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x930108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x930113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x93011e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x93012a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9300cd
mov eax, 1
add dl, dl
jne 0x930142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x93014d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x930139
sub eax, ebx
mov ebx, 1
jne 0x930180
mov ecx, 1
add dl, dl
jne 0x930166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x930171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x93015d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9300cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x930197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9301a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x93018e
cmp eax, 0x7d00
jae 0x9301c5
cmp eax, 0x500
jb 0x9301c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9300cd
cmp eax, 0x7f
ja 0x9301c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9300cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9301f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9300cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x71b5b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14f000]
mov dword [edi + 0x17d1e4], 0xf67900
push edi
jmp 0x71b5da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x71b5e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71b5d0
mov eax, 1
add ebx, ebx
jne 0x71b5f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x71b604
jne 0x71b623
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71b623
dec eax
add ebx, ebx
jne 0x71b610
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x71b5e8
add ebx, ebx
jne 0x71b61f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x71b675
xor ecx, ecx
sub eax, 3
jb 0x71b63b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x71b6aa
sar eax, 1
mov ebp, eax
jmp 0x71b646
add ebx, ebx
jne 0x71b646
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71b614
inc ecx
add ebx, ebx
jne 0x71b654
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71b614
add ebx, ebx
jne 0x71b661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x71b656
jne 0x71b672
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x71b656
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x71b694
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x71b686
jmp 0x71b5d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x71b694
add edi, ecx
jmp 0x71b5d6
pop esi
mov edi, esi
mov ecx, 0x8f59
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x71b6b2
cmp byte [edi], 0x16
jne 0x71b6b2
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 0x71b6b7
lea edi, [esi + 0x30f000]
mov eax, dword [edi]
or eax, eax
je 0x71b72f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x387530]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x387750]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x71b6e4
mov ecx, edi
jns 0x71b713
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 + 0x387758]
or eax, eax
je 0x71b729
mov dword [ebx], eax
add ebx, 4
jmp 0x71b701
call dword [esi + 0x387754]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x71b760
cmp al, 0xef
ja 0x71b753
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x71b735
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x71b742
mov ebp, dword [esi + 0x38775c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x267]
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 0x71b794
sub esp, 0xffffff80
jmp 0x4e2757
Function at 0x85dc30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x34e000]
push edi
or ebp, 0xffffffff
jmp 0x85dc52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x85dc59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x85dc48
mov eax, 1
add ebx, ebx
jne 0x85dc6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x85dc7c
jne 0x85dc8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x85dc8c
dec eax
add ebx, ebx
jne 0x85dc88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x85dc60
xor ecx, ecx
sub eax, 3
jb 0x85dca4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x85dd16
sar eax, 1
mov ebp, eax
jmp 0x85dcaf
add ebx, ebx
jne 0x85dcaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x85dcbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x85dce0
inc ecx
add ebx, ebx
jne 0x85dccc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x85dcc1
jne 0x85dcdd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x85dcc1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x85dd00
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x85dcf1
jmp 0x85dc4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x85dd00
add edi, ecx
jmp 0x85dc4e
pop esi
mov edi, esi
mov ecx, 0xcb62
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x85dd1e
cmp byte [edi], 0x2e
jne 0x85dd1e
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 eax, ebx
loop 0x85dd23
lea edi, [esi + 0x459000]
mov eax, dword [edi]
or eax, eax
je 0x85dd9b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x45ddd8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x45df18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x85dd50
mov ecx, edi
jns 0x85dd7f
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 + 0x45df1c]
or eax, eax
je 0x85dd95
mov dword [ebx], eax
add ebx, 4
jmp 0x85dd6d
call dword [esi + 0x45df20]
popal
jmp 0x5b6ec1
Function at 0x401058
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and byte [ebp - 8], 0
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push edi
push str.HeapFree
push str.kernel32.dll
mov byte [ebp - 0x14], 0x4b
mov byte [ebp - 0x13], 0x45
mov byte [ebp - 0x12], 0x52
mov byte [ebp - 0x11], 0x4e
mov byte [ebp - 0x10], 0x45
mov byte [ebp - 0xf], 0x4c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call edi
and byte [ebp - 0x16], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
mov byte [ebp - 0x24], 0x47
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x50
mov byte [ebp - 0x20], 0x72
mov byte [ebp - 0x1f], 0x6f
mov byte [ebp - 0x1e], 0x63
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x73
mov byte [ebp - 0x1b], 0x73
mov byte [ebp - 0x1a], 0x48
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x70
call esi
push eax
call edi
push dword [ebp + 8]
push 0
call eax
push eax
call dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x40116c
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x401a48
call fcn.00401a10
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], esp
jne 0x4011c6
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0x4550
jne 0x4011c6
mov ebx, 0x2000
mov edi, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 4
push ebx
push dword [esi + 0x50]
push dword [esi + 0x34]
call edi
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4011cd
push 4
push ebx
push dword [esi + 0x50]
push eax
call edi
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4011cd
xor eax, eax
jmp 0x401302
push 0x14
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x20]
push 0x4020e0
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], 0x3f
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
push 4
push 0x1000
push dword [eax + 0x50]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, 0x401226
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x401311
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x401a54
call fcn.00401a10
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.VirtualAlloc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, dword [ebp + 0x10]
and dword [ebp - 0x14], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
mov dword [ebp - 0x18], esi
mov eax, dword [edi]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x40140c
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40139f
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x4013fe
mov eax, dword [esi + 0xc]
push 4
add eax, dword [ebp - 0x1c]
push 0x1000
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push ebx
push 0
push eax
mov dword [esi + 8], eax
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x4013fe
push 4
push 0x1000
push eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0x4020e0
push eax
mov dword [ebp - 0x24], 0x55
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
push dword [eax + 0x10]
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push eax
push dword [ebp - 0x20]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, 0x4013ee
ret
inc dword [ebp - 0x14]
add esi, 0x28
mov dword [ebp - 0x18], esi
jmp 0x401355
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40157a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x401a60
call fcn.00401a10
sub esp, 0x4c
push ebx
push esi
and byte [ebp - 0x3c], 0
and byte [ebp - 0x4c], 0
push edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x10], esp
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 0x48], 0x49
push eax
mov byte [ebp - 0x47], 0x73
mov byte [ebp - 0x46], 0x42
mov byte [ebp - 0x45], 0x61
mov byte [ebp - 0x44], 0x64
mov byte [ebp - 0x43], 0x52
mov byte [ebp - 0x42], 0x65
mov byte [ebp - 0x41], 0x61
mov byte [ebp - 0x40], 0x64
mov byte [ebp - 0x3f], 0x50
mov byte [ebp - 0x3e], 0x74
mov byte [ebp - 0x3d], 0x72
mov byte [ebp - 0x58], 0x4b
mov byte [ebp - 0x57], 0x45
mov byte [ebp - 0x56], 0x52
mov byte [ebp - 0x55], 0x4e
mov byte [ebp - 0x54], 0x45
mov byte [ebp - 0x53], 0x4c
mov byte [ebp - 0x52], 0x33
mov byte [ebp - 0x51], 0x32
mov byte [ebp - 0x50], 0x2e
mov byte [ebp - 0x4f], 0x64
mov byte [ebp - 0x4e], 0x6c
mov byte [ebp - 0x4d], 0x6c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [esi]
mov ebx, dword [esi + 4]
add eax, 0x80
mov dword [ebp - 0x24], ebx
cmp dword [eax + 4], 0
jbe 0x401673
mov edi, dword [eax]
add edi, ebx
push 0x14
push edi
mov dword [ebp - 0x28], edi
call dword [ebp - 0x2c]
test eax, eax
jne 0x401673
mov eax, dword [edi + 0xc]
test eax, eax
je 0x401673
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x40166f
mov eax, dword [esi + 0xc]
lea eax, [eax*4 + 4]
push eax
push dword [esi + 8]
call fcn.0040110a
pop ecx
mov dword [esi + 8], eax
test eax, eax
pop ecx
jne 0x401685
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [eax + ecx*4], edx
inc dword [esi + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4016a3
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x10]
add eax, ebx
jmp 0x4016ab
mov eax, dword [edi + 0x10]
add eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x40177f
test eax, 0x80000000
je 0x4016f2
and eax, 0xffff
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
lea eax, [ebp - 0x34]
push 0x4020e0
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x34], 0x42
call sub.MSVCRT.dll__CxxThrowException
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push 0x4020e0
push eax
mov dword [ebp - 0x30], 0x42
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
add eax, 2
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, 0x4016d6
ret
cmp dword [ebp - 0x1c], 0
je 0x401673
add edi, 0x14
jmp 0x40162e
Function at 0x4018ab
Capabilities:
Encode data using xor

Disassembly:
movzx eax, byte [esp + 0xc]
cdq
mov ecx, 0xfe
push esi
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x58
test esi, esi
jbe 0x4018d4
mov eax, dword [esp + 8]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x4018c8
pop esi
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427004]
jne 0x40100a
repz ret
jmp fcn.004012d4

Function at 0x4054c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427004]
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.00403471
and dword [ebp - 0x14], 0
cmp dword [0x42995c], 0
mov dword [ebp - 0x18], eax
jne 0x405576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40561e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40561e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42995c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x429960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x429964], eax
call edi
push eax
call esi
mov dword [0x42996c], eax
test eax, eax
je 0x405576
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x429968], eax
mov eax, dword [0x429968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4055cf
cmp dword [0x42996c], ecx
je 0x4055cf
push eax
call esi
push dword [0x42996c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4055cf
test ebx, ebx
je 0x4055cf
call edi
test eax, eax
je 0x4055c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4055c6
test byte [ebp - 8], 1
jne 0x4055cf
or dword [ebp + 0x10], 0x200000
jmp 0x405602
mov eax, dword [0x429960]
cmp eax, dword [ebp - 0x18]
je 0x405602
push eax
call esi
test eax, eax
je 0x405602
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405602
mov eax, dword [0x429964]
cmp eax, dword [ebp - 0x18]
je 0x405602
push eax
call esi
test eax, eax
je 0x405602
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42995c]
call esi
test eax, eax
je 0x40561e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405620
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x423790
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x6d63a4]
mov eax, dword [0x6d60c8]
xor ecx, ecx
mov word [0x6d63c0], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x6d63ac], 0x6e0072
mov dword [0x6d63b0], 0x6c0065
mov dword [0x6d63b4], 0x320033
mov dword [0x6d63b8], 0x64002e
mov dword [0x6d63bc], 0x6c006c
mov dword [0x6d63a8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x4239b0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x427dd0]
sub esp, 0x10
push ebx
mov ebx, dword [0x6d60c8]
push edi
mov edi, dword [0x6d63a4]
push eax
call fcn.004238c0
add esp, 4
cmp dword [0x6d63a4], 0x2f
jne 0x423a0d
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, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00423910
pop edi
pop ebx
mov esp, ebp
pop ebp
ret