joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10098af0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi + 0x20]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebx + 0x1c], 0
je 0x10098b20
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x10098b4a
movzx ecx, word [ebx]
mov eax, 0x1c
cmp ecx, 2
jne 0x10098b32
mov eax, 0x10
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ebx
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
push 0xf
push edi
mov esi, eax
call sym.crypto_ssl.dll_UIO_clear_flags
add esp, 8
test esi, esi
jg 0x10098bac
je 0x10098b62
cmp esi, 0xffffffff
jne 0x10098bac
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebp
cmp eax, 0x70
jg 0x10098b88
je 0x10098b9b
cmp eax, 4
je 0x10098b9b
cmp eax, 0xb
je 0x10098b9b
cmp eax, 0x67
je 0x10098b9b
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret
sub eax, 0x86
je 0x10098b9b
sub eax, 6
je 0x10098b9b
sub eax, 0x26a7
jne 0x10098bab
push 0xa
push edi
call sym.crypto_ssl.dll_UIO_set_flags
add esp, 8
call ebp
mov dword [ebx + 0x20], eax
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x10099500
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x10099544
mov al, byte [edx]
test al, al
je 0x10099544
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x10099517
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1009a510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.101025a0
mov eax, dword [0x1017ec40]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x1009a557
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.10102ab4
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.101070e8
add esp, 8
test eax, eax
js 0x1009a540
mov eax, 8
call fcn.101025a0
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call sym.crypto_ssl.dll_WAND_add
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x1009a540
push 0x10130dd4
push esi
call fcn.10105bcd
mov edi, eax
add esp, 8
mov dword [esp + 0x40], edi
test edi, edi
je 0x1009a651
test dword [esp + 0x4e], 0x2000
je 0x1009a5d4
cmp ebx, 0xffffffff
jne 0x1009a5be
mov ebx, 0x800
push 0
push 4
push 0
push edi
call fcn.10106f18
add esp, 0x10
jmp 0x1009a5d4
mov edi, dword [esp + 0x40]
test ebx, ebx
jle 0x1009a5e2
mov esi, ebx
cmp ebx, 0x400
jl 0x1009a5e7
mov esi, 0x400
push edi
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.10105f5f
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x1009a635
fild dword [esp + 0x44]
mov eax, 8
call fcn.101025a0
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call sym.crypto_ssl.dll_WAND_add
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x1009a5d0
sub ebx, esi
test ebx, ebx
jg 0x1009a5d0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.10105c51
lea edx, [esp + 0x7c]
push 0x400
push edx
call sym.crypto_ssl.dll_UPENSSL_cleanse
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10102ab4
mov esp, ebp
pop ebp
ret
Function at 0x1009a670
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x438
call fcn.101025a0
mov eax, dword [0x1017ec40]
xor eax, esp
mov dword [esp + 0x434], eax
push ebp
push esi
mov esi, dword [esp + 0x444]
lea eax, [esp + 0xc]
push eax
xor ebp, ebp
push esi
mov dword [esp + 0x10], ebp
call fcn.101070e8
add esp, 8
cmp eax, 0xffffffff
je 0x1009a6ce
test dword [esp + 0x12], 0x2000
je 0x1009a6ce
pop esi
lea eax, [ebp + 1]
pop ebp
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.10102ab4
add esp, 0x438
ret
push ebx
push 0x180
push 0x8101
push esi
call fcn.10107e4e
add esp, 0xc
cmp eax, 0xffffffff
je 0x1009a6fb
push 0x10130dd8
push eax
call fcn.101075a4
mov ebx, eax
add esp, 8
cmp ebx, ebp
jne 0x1009a713
push 0x10130dd8
push esi
call fcn.10105bcd
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x1009a7b9
push edi
push 0x180
push esi
call fcn.1010753f
add esp, 8
mov edi, 0x400
jmp 0x1009a730
mov esi, 0x400
cmp edi, 0x400
jg 0x1009a73f
mov esi, edi
lea ecx, [esp + 0x44]
push esi
push ecx
sub edi, 0x400
call sym.crypto_ssl.dll_WAND_bytes
add esp, 8
test eax, eax
jg 0x1009a75f
mov dword [esp + 0x10], 1
push ebx
push esi
lea edx, [esp + 0x4c]
push 1
push edx
call fcn.101060d3
add esp, 0x10
test eax, eax
jle 0x1009a77c
add ebp, eax
test edi, edi
jg 0x1009a730
jmp 0x1009a77e
xor ebp, ebp
push ebx
call fcn.10105c51
lea eax, [esp + 0x48]
push 0x400
push eax
call sym.crypto_ssl.dll_UPENSSL_cleanse
add esp, 0xc
cmp dword [esp + 0x10], 0
pop edi
je 0x1009a7b9
pop ebx
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.10102ab4
add esp, 0x438
ret
mov ecx, dword [esp + 0x440]
pop ebx
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.10102ab4
add esp, 0x438
ret
Function at 0x1009ec30
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x1009ed13
push esi
mov esi, dword [esp + 0x14]
inc esi
lea ebx, [ebx]
movzx edx, byte [esi - 1]
cmp edi, 3
jl 0x1009ecad
movzx eax, byte [esi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], dl
jmp 0x1009ecfe
shl edx, 0x10
cmp edi, 2
jne 0x1009ecbd
movzx eax, byte [esi]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
cmp edi, 1
jne 0x1009ecea
lea edx, [edi + 0x3c]
jmp 0x1009ecf7
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
sub edi, 3
add ecx, 4
add ebp, 4
add esi, 3
test edi, edi
jg 0x1009ec50
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x10102ab4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1017ec40]
jne 0x10102abe
repz ret
jmp fcn.10109d89

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x10107567
call fcn.1010343d
and dword [eax], 0
call fcn.1010342a
mov dword [eax], 0x16
call fcn.10109c66
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10107584
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10103450
pop ecx
jmp 0x10107562
test byte [ebp + 0xc], 0x80
je 0x1010758f
and eax, 0xfffffffe
jmp 0x10107592
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x10107575
xor eax, eax
pop ebp
ret
Function at 0x10111c50
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1017ec40]
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.1010b339
and dword [ebp - 0x14], 0
cmp dword [0x10182fb4], 0
mov dword [ebp - 0x18], eax
jne 0x10111d03
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10111dab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10111dab
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10182fb4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10182fb8], eax
call edi
push eax
call esi
push 0x10157258
push ebx
mov dword [0x10182fbc], eax
call edi
push eax
call esi
mov dword [0x10182fc4], eax
test eax, eax
je 0x10111d03
push 0x10157240
push ebx
call edi
push eax
call esi
mov dword [0x10182fc0], eax
mov eax, dword [0x10182fc0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10111d5c
cmp dword [0x10182fc4], ecx
je 0x10111d5c
push eax
call esi
push dword [0x10182fc4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10111d5c
test ebx, ebx
je 0x10111d5c
call edi
test eax, eax
je 0x10111d53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10111d53
test byte [ebp - 8], 1
jne 0x10111d5c
or dword [ebp + 0x10], 0x200000
jmp 0x10111d8f
mov eax, dword [0x10182fb8]
cmp eax, dword [ebp - 0x18]
je 0x10111d8f
push eax
call esi
test eax, eax
je 0x10111d8f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10111d8f
mov eax, dword [0x10182fbc]
cmp eax, dword [ebp - 0x18]
je 0x10111d8f
push eax
call esi
test eax, eax
je 0x10111d8f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10182fb4]
call esi
test eax, eax
je 0x10111dab
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10111dad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10102ab4
leave
ret
Function at 0x404d9c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xffffff9c
mov esi, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0xc
call fcn.00402ea8
lea eax, [esp + 0x10]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ea8
mov dword [esp + 4], 0xc
xor eax, eax
mov dword [esp + 0xc], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x3c], 1
mov word [esp + 0x40], 0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x20
cmp bl, 1
cmc
sbb eax, eax
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, esi
call fcn.00403b88
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x404e39
push 0x30
push 0x404e70
push 0x404e78
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x404e64
push 0xffffffffffffffff
mov eax, dword [esp + 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
push esp
mov eax, dword [esp + 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [esp + 0x58]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
add esp, 0x64
pop esi
pop ebx
ret

Function at 0x404e94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x40a8f0
mov esi, 0x40a8f4
mov edi, 0x40a8f8
mov ebp, 0x40a908
mov eax, 0x404fb4
call fcn.00404c64
call fcn.00404bb8
mov eax, dword [0x40a8e4]
push eax
call sub.kernel32.dll_LockResource
mov dword [0x40a8e8], eax
mov eax, dword [0x40a8e0]
push eax
mov eax, dword [0x40a7e0]
push eax
call sub.kernel32.dll_SizeofResource
call fcn.00402c14
mov dword [0x40a8ec], eax
mov eax, dword [0x40a8e8]
mov dword [ebx], eax
mov eax, dword [0x40a8ec]
mov dword [esi], eax
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov eax, dword [0x40a8e0]
push eax
mov eax, dword [0x40a7e0]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [0x40a910], eax
mov dword [0x40a914], edx
jmp 0x404f5c
mov edx, edi
mov eax, dword [ebx]
mov ecx, 0x10
call fcn.00402d0c
mov eax, edi
call fcn.00404ca8
mov edx, dword [esi]
mov eax, edi
mov ecx, 0x10
call fcn.00402d0c
add dword [ebp], 0x10
adc dword [ebp + 4], 0
mov eax, dword [ebx]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esi]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x40a910]
mov edx, dword [0x40a914]
sub eax, dword [ebp]
sbb edx, dword [ebp + 4]
cmp edx, 0
jne 0x404f7a
cmp eax, 0x10
jae 0x404f23
jmp 0x404f7c
jge 0x404f23
call fcn.00404c9c
mov eax, dword [0x40a8ec]
xor edx, edx
add eax, dword [0x40a910]
adc edx, dword [0x40a914]
sub eax, 1
sbb edx, 0
mov dword [ebx], eax
mov eax, dword [ebx]
movzx eax, byte [eax]
mov byte [0x40a91c], al
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40406b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x4040a3
push edi
push 0
push 0x4aeefc
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x474f16
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4040a2
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4040a2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4040a2
mov ecx, dword [ebx]
push 0
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
mov ecx, dword [eax]
push edx
push edx
push edx
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x4040a2

Function at 0x4044ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x474fc0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042381e
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x404513

Function at 0x4049fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
call int.0040bcce
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4741cc
xor al, al
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push str.Include
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474246
mov eax, dword [ebp - 4]
push esi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f4ea
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004047b7
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push str.Include
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47423d
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00406a63
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.004047e2
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x404a2d

Function at 0x406a63
Capabilities:
Encode data using xor

Disassembly:
or al, 0x93
add eax, 0x1dbabdc4
cmp byte [eax], dh
invalid
Function at 0x41e593
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c10c1]
push ebx
push esi
push edi
mov esi, ecx
push 0x8000
push esi
mov edi, edx
mov byte [ebp - 1], al
call fcn.00422933
pop ecx
push eax
call fcn.00422765
pop ecx
pop ecx
push 0xb
mov ecx, edi
mov ebx, eax
call fcn.0040d5e4
test al, al
jne 0x474256
lea ecx, [ebp - 0x18]
call fcn.0041e63a
mov ecx, edi
call int.0040936c
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.0041e65e
push dword [ebp - 0x18]
push 0x4aec6c
push esi
call fcn.00422b2c
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [ebp - 8], eax
jne 0x474276
lea ecx, [ebp - 0x18]
call fcn.0040cb37
mov edi, dword [ebp - 8]
push esi
call fcn.00422cf1
pop ecx
cmp ebx, 0xffffffff
je 0x47428d
push ebx
push esi
call fcn.00422933
pop ecx
push eax
call fcn.00422765
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push esi
mov ecx, edi
call fcn.0044b59e
push eax
push 1
call fcn.0044b55b
push eax
call fcn.00422aae
add esp, 0x10
mov edi, eax
jmp 0x41e613
mov ecx, edi
call int.0040936c
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41e608
push 0x4000
jmp 0x41e624
Function at 0x43aac3
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
xor ebx, ebx
push ebx
push dword [eax]
mov edi, ecx
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x43ab1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43ab1d
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x43ab1d
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x43ab1d
xor ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x43af64
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
call fcn.0043ac8c
test al, al
je 0x43af76
pop ebp
jmp fcn.0043acc5
pop ebp
jmp fcn.0043af7d

Function at 0x43b106
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0x14]
push dword [ebp + 0x1c]
and eax, 2
push 0
or eax, 4
shr eax, 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x18

Function at 0x43b263
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
mov ebx, eax
push 0
push ebx
call edi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea eax, [ebx + 8]
push eax
call edi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 4], eax
xor eax, eax
push eax
push eax
push ebx
push 0x43b2d4
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x43b5b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 0xb0
push dword [esi]
mov dword [ebp - 0x10], esi
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x43b5e0
xor al, al
jmp 0x43b65a
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x43b657
cmp edi, dword [ebp - 8]
jb 0x43b657
cmp edi, dword [ebp - 4]
jb 0x43b657
xor ecx, ecx
push 2
lea esi, [edi + 1]
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f4ea
pop ecx
push eax
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x43b64c
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x43b63b
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea eax, [esi + eax*2]
push eax
call fcn.00406a63
mov bl, 1
push esi
call fcn.0041f55e
pop ecx
mov al, bl
jmp 0x43b659
xor al, al
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x43bff0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 1
push dword [esi]
mov dword [ebp - 4], esi
call fcn.0043d342
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 1
push eax
cmp dword [ebp + 8], ebx
jge 0x43c048
push 0x25
push 0x100
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x43c070
push 0x27
push 0x100
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
mov edi, dword [ebp - 4]
push 0x101
push dword [edi]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [edi]
call fcn.0043d342
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4

Function at 0x43c82d
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp byte [ebp + 0xc], 1
jne 0x43c858
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x43c871
push 1
jmp 0x43c859
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
pop ebp
ret 8
Function at 0x43d4f2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 8], ebx
call int.0040bcce
push dword [ebx]
call fcn.0040103b
test al, al
je 0x43d517
xor al, al
jmp 0x43d593
mov ecx, ebx
call fcn.0043d59a
mov ebx, eax
test ebx, ebx
jne 0x43d529
mov ebx, 0x7fff
xor ecx, ecx
push 2
lea esi, [ebx + 1]
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f4ea
pop ecx
mov edi, eax
mov eax, dword [ebp - 8]
push edi
push esi
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x43d58a
push edi
call fcn.004217d0
pop ecx
push edi
cmp eax, ebx
jne 0x43d582
lea ecx, [ebp - 0x18]
call fcn.0043d2ff
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0040c1de
lea ecx, [ebp - 0x18]
call fcn.0040cb37
jmp 0x43d58a
mov ecx, dword [ebp + 8]
call fcn.00406a63
push edi
call fcn.0041f55e
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4