joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ee5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439bcc]
jne 0x409eef
repz ret
jmp fcn.00412cda

Function at 0x40bacb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439bcc]
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.0040598a
and dword [ebp - 0x14], 0
cmp dword [0x468380], 0
mov dword [ebp - 0x18], eax
jne 0x40bb7e
push 0x402acc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40bc26
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ac0
push ebx
call edi
test eax, eax
je 0x40bc26
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402ab0
push ebx
mov dword [0x468380], eax
call edi
push eax
call esi
push 0x402a9c
push ebx
mov dword [0x468384], eax
call edi
push eax
call esi
push 0x402a80
push ebx
mov dword [0x468388], eax
call edi
push eax
call esi
mov dword [0x468390], eax
test eax, eax
je 0x40bb7e
push 0x402a68
push ebx
call edi
push eax
call esi
mov dword [0x46838c], eax
mov eax, dword [0x46838c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40bbd7
cmp dword [0x468390], ecx
je 0x40bbd7
push eax
call esi
push dword [0x468390]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40bbd7
test ebx, ebx
je 0x40bbd7
call edi
test eax, eax
je 0x40bbce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40bbce
test byte [ebp - 8], 1
jne 0x40bbd7
or dword [ebp + 0x10], 0x200000
jmp 0x40bc0a
mov eax, dword [0x468384]
cmp eax, dword [ebp - 0x18]
je 0x40bc0a
push eax
call esi
test eax, eax
je 0x40bc0a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40bc0a
mov eax, dword [0x468388]
cmp eax, dword [ebp - 0x18]
je 0x40bc0a
push eax
call esi
test eax, eax
je 0x40bc0a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x468380]
call esi
test eax, eax
je 0x40bc26
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40bc28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ee5
leave
ret

Function at 0x414760
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0x818
cmp dword [0x4e3aec], 0x37
jne 0x4147c8
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x403400
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov ecx, dword [0x4e3f00]
mov eax, dword [0x4e35d0]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x818
ret
Function at 0x6fa03b90
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, eax
sub esp, 0x3c
mov edi, dword [eax + 0x60]
jmp 0x6ff996f4
Function at 0x6fa16190
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx ebx, byte [edx]
movzx ebp, byte [edi + 1]
mov edi, 2
add ebx, 0x111
add ebp, 0x211
shl ebx, 4
shl ebp, 4
add ebx, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 8]
xor ecx, dword [eax + ebp]
mov ebx, dword [ebx + 0xc]
xor edx, dword [eax + ebp + 4]
xor esi, dword [eax + ebp + 8]
mov eax, dword [eax + ebp + 0xc]
xor eax, ebx
mov ebx, dword [esp + 0x18]
movzx ebp, byte [ebx + edi]
mov ebx, edi
shl ebx, 8
lea ebx, [ebp + ebx + 0x111]
mov ebp, dword [esp + 0x14]
shl ebx, 4
xor ecx, dword [ebp + ebx]
xor edx, dword [ebp + ebx + 4]
xor esi, dword [ebp + ebx + 8]
mov ebp, eax
mov eax, dword [esp + 0x14]
xor ebp, dword [eax + ebx + 0xc]
mov eax, dword [esp + 0x18]
lea ebx, [edi + 1]
shl ebx, 8
movzx eax, byte [eax + edi + 1]
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
xor ebp, dword [eax + ebx + 0xc]
lea ebx, [edi + 2]
mov eax, dword [esp + 0x18]
shl ebx, 8
movzx eax, byte [eax + edi + 2]
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
xor ebp, dword [eax + ebx + 0xc]
lea ebx, [edi + 3]
mov eax, dword [esp + 0x18]
shl ebx, 8
movzx eax, byte [eax + edi + 3]
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
xor ebp, dword [eax + ebx + 0xc]
xor ecx, dword [eax + ebx]
lea ebx, [edi + 4]
mov eax, dword [esp + 0x18]
shl ebx, 8
movzx eax, byte [eax + edi + 4]
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
xor ebp, dword [eax + ebx + 0xc]
lea ebx, [edi + 5]
mov eax, dword [esp + 0x18]
shl ebx, 8
movzx eax, byte [eax + edi + 5]
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
xor ebp, dword [eax + ebx + 0xc]
lea ebx, [edi + 6]
mov eax, dword [esp + 0x18]
shl ebx, 8
movzx eax, byte [eax + edi + 6]
add edi, 7
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor ebp, dword [eax + ebx + 0xc]
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
cmp edi, 0x10
mov eax, ebp
jne 0x6fa161dc
mov ebp, dword [esp + 0x18]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6fa17250
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6fa17291
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp + 8], 0xe9
mov dword [esp + 4], str.src_hashes_md5.c
mov dword [esp], 0x6fab1131
call fcn.6fa1c540
lea esi, [esi]
Function at 0x6fa847a0
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x3c
test ecx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x18], eax
je 0x6fa847f0
mov esi, dword [edx + 0x10]
cmp dword [esi + 4], 0xcd
je 0x6fa847d8
test byte [esi + 9], 0x10
jne 0x6fa847d8
mov ecx, dword [edx + 0x28]
test ecx, ecx
je 0x6fa84912
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
ret
mov esi, edx
mov ebp, dword [edx + 0x18]
mov ebx, dword [esi]
mov eax, dword [edx + 0x20]
and ebp, 0x7fff
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x6fa847d8
mov eax, dword [ebx + 4]
cmp eax, 0x5c
je 0x6fa8487a
ja 0x6fa84902
lea edx, [eax - 7]
cmp edx, 1
jbe 0x6fa847d8
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.6fa84400
test al, 4
jne 0x6fa847d8
mov edx, eax
and edx, 3
cmp edx, 3
je 0x6fa84925
mov edx, eax
and edx, 0x300
cmp edx, 0x300
je 0x6fa84950
and eax, 0x30000
mov edx, ebx
cmp eax, 0x30000
je 0x6fa84973
mov ebx, dword [edx]
mov esi, edx
test ebx, ebx
je 0x6fa847d8
mov eax, dword [ebx + 4]
cmp eax, 0x5c
jne 0x6fa84810
mov eax, dword [ebx + 0x10]
mov edx, ebx
and eax, 0x7fff
cmp eax, ebp
jne 0x6fa84866
cmp word [ebx + 8], 0
jne 0x6fa847d8
mov edx, dword [esp + 0x1c]
cmp dword [ebx + 0x18], edx
jne 0x6fa847d8
cmp ebx, esi
je 0x6fa84995
mov eax, dword [ebx]
mov dword [esi], eax
test bl, 1
mov edi, ebx
mov edx, 0x30
jne 0x6fa849b5
test edi, 2
jne 0x6fa849a5
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x6fa848de
mov word [edi], 0
add edi, 2
and edx, 1
je 0x6fa848e6
mov byte [edi], 0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
mov edx, dword [eax + 0x84]
mov dword [ebx], edx
mov edx, esi
mov dword [eax + 0x84], ebx
jmp 0x6fa84866
cmp eax, 0xcd
jne 0x6fa8481e
jmp 0x6fa847d8
cmp dword [esi + 0x28], edx
jne 0x6fa847d8
nop
lea esi, [esi]
jmp 0x6fa847f2
mov edx, dword [ebx + 0x10]
and edx, 0x7fff
test al, 8
je 0x6fa84988
cmp edx, ebp
je 0x6fa847d8
mov edx, dword [ebx + 0x14]
and edx, 0x7fff
cmp edx, ebp
jne 0x6fa84840
jmp 0x6fa847d8
mov edx, dword [ebx + 0x18]
and edx, 0x7fff
cmp edx, ebp
je 0x6fa847d8
and eax, 0x30000
mov edx, ebx
cmp eax, 0x30000
jne 0x6fa84866
mov eax, dword [ebx + 0x20]
and eax, 0x7fff
cmp eax, ebp
jne 0x6fa84866
jmp 0x6fa847d8
cmp edx, ebp
jne 0x6fa84840
jmp 0x6fa847d8
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x6fa848ac
mov word [edi], 0
sub edx, 2
add edi, 2
jmp 0x6fa848c8
mov byte [ebx], 0
lea edi, [ebx + 1]
mov dl, 0x2f
jmp 0x6fa848bc
Function at 0x6fa9ea90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov ebp, 0x10
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov eax, dword [ebx + 0x23c]
test eax, eax
jne 0x6fa9ec00
cmp dword [ebx + 0x240], 0xf
ja 0x6fa9ec00
mov eax, dword [ebx + 0x234]
mov dword [esp], eax
call fcn.6fa1c580
test eax, eax
mov ebp, eax
jne 0x6fa9ec00
mov eax, dword [ebx + 0x240]
mov edx, dword [esp + 0x48]
add edx, eax
cmp edx, 0xc
jbe 0x6fa9eaef
or dword [ebx + 0x238], 1
xor edx, edx
test eax, eax
jne 0x6fa9eb69
mov ecx, dword [esp + 0x48]
and ecx, 0xfffffff0
mov dword [esp + 0x18], ecx
je 0x6fa9ec0a
lea eax, [ebx + 0x1f4]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x44], esi
mov ebp, edx
mov edi, eax
nop
lea esi, [esi]
xor eax, eax
mov edx, dword [esi + eax]
xor dword [ebx + eax + 0x1f4], edx
add eax, 4
cmp eax, 0x10
jne 0x6fa9eb22
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.6fa16190
add dword [ebx + 0x248], 0x80
adc dword [ebx + 0x24c], 0
add ebp, 0x10
add esi, 0x10
cmp ebp, dword [esp + 0x18]
jb 0x6fa9eb20
mov esi, dword [esp + 0x44]
mov edx, ebp
mov ebp, dword [esp + 0x1c]
add esi, edx
mov eax, dword [esp + 0x48]
lea ecx, [ebx + 0x1f4]
lea edi, [ebx + 0x204]
mov dword [esp + 0x18], ecx
sub eax, edx
add eax, esi
cmp dword [esp + 0x48], edx
jbe 0x6fa9ec00
mov dword [esp + 0x1c], ebp
mov ebp, eax
jmp 0x6fa9eb94
cmp ebp, esi
je 0x6fa9ebfc
mov ecx, dword [ebx + 0x240]
add esi, 1
lea edx, [ecx + 1]
mov dword [ebx + 0x240], edx
movzx eax, byte [esi - 1]
cmp edx, 0x10
mov byte [ebx + ecx + 0x224], al
jne 0x6fa9eb90
mov edx, dword [esp + 0x18]
lea esi, [esi]
movzx eax, byte [edx + 0x30]
xor byte [edx], al
add edx, 1
cmp edi, edx
jne 0x6fa9ebc0
mov eax, dword [esp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.6fa16190
add dword [ebx + 0x248], 0x80
mov dword [ebx + 0x240], 0
adc dword [ebx + 0x24c], 0
cmp ebp, esi
jne 0x6fa9eb94
mov ebp, dword [esp + 0x1c]
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, eax
jmp 0x6fa9eb69
Function at 0x6ffe2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x6ffe21a8
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 0x6ffe207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6ffe206a
add dl, dl
jne 0x6ffe2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6ffe20dc
xor eax, eax
add dl, dl
jne 0x6ffe2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6ffe217d
add dl, dl
jne 0x6ffe20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ffe20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ffe20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ffe20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x6ffe20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x6ffe2075
mov eax, 1
add dl, dl
jne 0x6ffe20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ffe20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6ffe20e1
sub eax, ebx
mov ebx, 1
jne 0x6ffe2128
mov ecx, 1
add dl, dl
jne 0x6ffe210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6ffe2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6ffe2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6ffe2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x6ffe213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6ffe214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6ffe2136
cmp eax, 0x7d00
jae 0x6ffe216d
cmp eax, 0x500
jb 0x6ffe2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6ffe2075
cmp eax, 0x7f
ja 0x6ffe2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6ffe2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x6ffe219e
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 0x6ffe2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40108c
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push esi
push edi
lea eax, [ebp - 0x220]
push eax
mov edi, 0x104
push edi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push dword [ebp + 8]
call fcn.004013fe
call fcn.0040e2b5
test eax, eax
je 0x4010dd
push 0x10
push 0x46bd8e
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4012b3
cmp dword [0x48b7e8], 0
mov ebx, 0x48b7fc
jne 0x40110b
push 0xffffffffffffffff
push dword [0x48b7f0]
mov esi, 0x48d8b0
push 1
call fcn.004065b2
mov al, byte [0x4795bd]
mov byte [0x48d8b2], al
fmul dword [eax]
jmp 0x401159
lea eax, [ebp - 2]
push eax
push 0x48b7e8
mov esi, ebx
mov eax, 0x48d8b0
call fcn.00406bfc
test al, al
jne 0x401133
mov dword [0x4795d4], 1
jmp 0x4012a6
mov al, byte [0x48d8b0]
mov byte [0x48b7ec], al
mov al, byte [0x48d8b1]
push 0x48b7e4
mov byte [ebp - 1], al
lea eax, [ebp - 0x430]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
push dword [0x48b7e8]
push ebx
call fcn.00418bd1
test eax, eax
je 0x40118f
mov edi, 0x48d8b0
call fcn.0040677e
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov dword [0x4795d4], 1
jmp 0x4012b3
cmp byte [ebp - 1], 1
jne 0x401241
cmp byte [0x48b7bd], 1
jne 0x401241
call fcn.0040d99a
test al, al
jne 0x401241
push edi
lea eax, [ebp - 0x430]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
cmp byte [ebp - 2], 0
je 0x40121a
mov edi, 0x46bdf8
push edi
lea esi, [ebp - 0x10]
call fcn.0040e30a
push ebx
mov eax, esi
call fcn.0040e505
push edi
mov eax, esi
call fcn.0040e505
push 1
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x430]
push eax
push 0x46bdfc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x10]
call fcn.0044e722
pop ecx
jmp 0x40129c
push 1
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x430]
push eax
push 0x46bdfc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40129c
call fcn.004012ba
call fcn.0040138d
cmp byte [0x48b7ec], 0
jne 0x40125e
mov edi, 0x48c258
call fcn.00409f5a
push 1
mov ecx, 0x48ba08
call fcn.00418d3c
cmp byte [0x48b7ec], 0
jne 0x40129c
mov edi, 0x48d07c
mov esi, dword [edi]
test esi, esi
je 0x401291
push dword [esi + 8]
call fcn.0044e722
pop ecx
push esi
call fcn.0044e722
and dword [edi], 0
pop ecx
add edi, 4
cmp edi, 0x48d898
jl 0x401278
mov edi, 0x48d8b0
call fcn.0040677e
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409786
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x4097a3
push ebp
push 0x46cb38
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4097bb
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
mov dword [esp + 0x1c], ebp
call edi
test eax, eax
jne 0x40989f
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push ebx
mov dword [esp + 0x18], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [esp + 0x18]
mov dword [esp + 0x28], eax
call esi
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
call esi
push 1
push dword [esp + 0x20]
push dword [esp + 0x1c]
call esi
push ebx
call edi
test eax, eax
jne 0x409874
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
mov dword [esp + 0x18], 3
mov dword [esp + 0x18], 2

Function at 0x409980
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40999d
inc edi
add eax, 8
cmp edi, 0x10
jl 0x409990
cmp edi, 0x10
jne 0x4099a9
xor eax, eax
jmp 0x409a49
cmp byte [esi + 0x18], 1
jne 0x409a20
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x4099fc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x4099fc
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x409a08
mov eax, 0x409b13
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x409a47
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b4a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40b528
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40b4d1
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.00451df8
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40b527
mov eax, dword [esi]
test al, 0x20
je 0x40b4ec
push dword [esi + 4]
push 2
push ebx
push 0x46cc1c
call fcn.00451fc2
mov dword [esi + 0xc], ebx
jmp 0x40b524
test al, 0x40
je 0x40b509
push dword [esi + 4]
push 2
push ebx
push 0x46cc20
call fcn.00451fc2
mov dword [esi + 0xc], 2
jmp 0x40b524
test al, al
jns 0x40b527
push dword [esi + 4]
push 3
push ebx
push str.rb
call fcn.00451fc2
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40b55c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46cc28
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.00451cd9
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40b5e7
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.004523ce
push edi
mov ebx, eax
call fcn.004520b6
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40b5c4
cmp byte [ebp + 8], 0xff
jne 0x40b5b3
cmp byte [ebp + 9], 0xfe
jne 0x40b5c4
mov dword [esi + 0xc], 1
jmp 0x40b5e2
cmp byte [ebp + 8], 0xfe
jne 0x40b5c4
cmp byte [ebp + 9], 0xff
jne 0x40b5c4
mov dword [esi + 0xc], eax
jmp 0x40b5e2
cmp ebx, 3
jb 0x40b5e6
cmp byte [ebp + 8], 0xef
jne 0x40b5e6
cmp byte [ebp + 9], 0xbb
jne 0x40b5e6
cmp byte [ebp + 0xa], 0xbf
jne 0x40b5e6
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4

Function at 0x40b6a7
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b6d7
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40b6fd
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor al, al
jmp 0x40b6ff
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.004523ce
mov dword [edi], eax
push dword [esi + 4]
call fcn.00451be4
add esp, 0x14
test eax, eax
je 0x40b6fd
and dword [edi], 0
jmp 0x40b6d3
mov al, 1
pop ebx
ret 4
Function at 0x40ba18
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40ba97
cmp edi, 4
jle 0x40ba29
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00451850
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.00450dd0
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.004523ce
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40ba97
push dword [esi + 4]
call fcn.00451bb5
test eax, eax
pop ecx
jne 0x40ba92
push dword [esi + 4]
call fcn.00451be4
test eax, eax
pop ecx
jne 0x40ba92
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40bbb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bbfd
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x40bbf4
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40bc00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x40bc60
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret