joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007da0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100691d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
ja 0x10007e39
lea eax, [ebp - 0x1c]
push eax
call fcn.100073f0
mov esi, eax
lea ebx, [edi + 4]
add esp, 4
cmp ebx, esi
je 0x10007e2e
mov ecx, ebx
call fcn.10003730
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebx], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x1c]
call fcn.10003730
mov ebx, dword [ebp - 0x30]
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x10007e44
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push 0
push eax
push VariantInit
call esi
test eax, eax
jne 0x10007e83
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push 0
push str.SoftWare
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10007e98
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018ad7
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x28]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x10007ee0
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018ad7
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x10007f29
push dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018ad7
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x38]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007f31
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018ad7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000ce80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b77b
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x100691d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x108], ecx
mov esi, dword [ebp + 8]
movzx eax, word [ebp + 0x24]
xor ebx, ebx
push 0xa
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1000d01d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000d01d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x104], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp dword [ebp - 0x104], ebx
jne 0x1000cf0f
test edi, edi
je 0x1000d01d
cmp dword [ebp + 0x1c], ebx
jbe 0x1000cf99
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.10006520
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.10003d10
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10005de0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10005630
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.100343ad
push esi
mov ebx, eax
push 0
push ebx
call fcn.1002fe40
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push edi
push ebx
push dword [ebp - 0x104]
call fcn.100035e0
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.10001e90
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10001e90
sub esp, 0x18
mov ecx, ebx
mov edx, esp
lea esi, [ecx + 1]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000cfb4
sub ecx, esi
push ecx
push ebx
mov ecx, edx
call fcn.10002080
lea eax, [ebp - 0x58]
push eax
call fcn.10006950
add esp, 0x1c
push 1
push 1
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x100]
call fcn.1000b1e0
mov esi, dword [ebp - 0x108]
lea eax, [ebp - 0x100]
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.1000e290
lea ecx, [ebp - 0x100]
call fcn.1000bf10
cmp dword [esi + 4], 0
lea ecx, [ebp - 0x58]
seta bl
call fcn.10001e90
jmp 0x1000d01f
xor bl, bl
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x1000d04f
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d045
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d06f
push edx
push ecx
call fcn.10018a63
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018ad7
mov esp, ebp
pop ebp
ret 0x20
call fcn.10034149
int3
Function at 0x10011660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004bc1b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100691d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x414], 0
jne 0x1001186a
call fcn.10011a60
test eax, eax
je 0x100117eb
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1002fe40
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x100116ca
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10011620
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1002fe40
mov edi, dword [ebp + 0xc]
add esp, 0x14
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100116fa
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10011620
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x10011723
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10011890
jmp 0x1001186a
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 0x10052260
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], eax
call fcn.10007740
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011760
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.10003840
push 2
push 0x10052264
lea ecx, [ebp - 0x438]
call fcn.10003840
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100117a0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.10003840
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov ecx, esi
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.10011890
lea ecx, [ebp - 0x438]
call fcn.10003730
jmp 0x1001186a
push 0x104
push 0
push esi
mov byte [esi + 0x414], 1
call fcn.1002fe40
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1001180d
mov eax, dword [eax]
push eax
push esi
call fcn.10011620
push 0x104
lea edi, [esi + 0x208]
push 0
push edi
call fcn.1002fe40
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x10011835
mov eax, dword [eax]
push eax
push edi
call fcn.10011620
mov eax, dword [ebp + 0x10]
add esp, 8
mov eax, dword [eax]
mov dword [esi + 0x410], eax
lea eax, [ebp - 0x43c]
push eax
push 0
push esi
push 0x10011910
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018ad7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10011890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp + 8]
movlpd qword [ebp - 0x50], xmm0
push 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10011901
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4

Function at 0x10011a60
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x100691d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.1002fe40
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x10011ad2
cmp dword [ebp - 0x118], 2
jg 0x10011ad2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018ad7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10018ad7
mov esp, ebp
pop ebp
ret
Function at 0x100150a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c006
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100691d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x1001514c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x1001514c
call fcn.100131d0
mov edi, eax
jmp 0x1001526b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1001516f
call fcn.100131d0
jmp 0x1001525e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1001518d
call fcn.100131d0
jmp 0x1001525e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x100151ae
mov edi, 0x8007000e
jmp 0x10015260
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x100152a4
jb 0x100151cc
cmp eax, 0xffffffff
ja 0x100152a4
cmp eax, 0x400
jbe 0x100151e1
push eax
lea ecx, [ebp - 0x418]
call fcn.100130f0
jmp 0x10015207
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10015207
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1001521e
mov edi, 0x8007000e
jmp 0x10015260
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1001523e
call fcn.100131d0
jmp 0x1001525e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.10014f00
mov edi, eax
test esi, esi
je 0x1001526b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10015284
lea ecx, [ebp - 0x418]
call fcn.10013670
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10018ad7
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10003bc0
int3
Function at 0x1001a924
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x100454ad
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004516d
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x40915c
nop
mov ecx, 0x394d7b7a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x6db46f12
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x425765
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041e7af
and dword [ebp - 4], 0
cmp dword [0x4501f0], 0
mov ebx, eax
jne 0x425816
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4258c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4258c7
push eax
call fcn.0041e73d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4501f0], eax
call esi
push eax
call fcn.0041e73d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4501f4], eax
call esi
push eax
call fcn.0041e73d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4501f8], eax
call esi
push eax
call fcn.0041e73d
pop ecx
mov dword [0x450200], eax
test eax, eax
je 0x425816
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e73d
pop ecx
mov dword [0x4501fc], eax
mov eax, dword [0x4501fc]
cmp eax, ebx
je 0x42586e
cmp dword [0x450200], ebx
je 0x42586e
push eax
call fcn.0041e7b8
push dword [0x450200]
mov esi, eax
call fcn.0041e7b8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42586e
test edi, edi
je 0x42586e
call esi
test eax, eax
je 0x425865
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425865
test byte [ebp - 0xc], 1
jne 0x42586e
or dword [ebp + 0x10], 0x200000
jmp 0x4258a7
mov eax, dword [0x4501f4]
cmp eax, ebx
je 0x4258a7
push eax
call fcn.0041e7b8
pop ecx
test eax, eax
je 0x4258a7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4258a7
mov eax, dword [0x4501f8]
cmp eax, ebx
je 0x4258a7
push eax
call fcn.0041e7b8
pop ecx
test eax, eax
je 0x4258a7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4501f0]
call fcn.0041e7b8
pop ecx
test eax, eax
je 0x4258c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4258c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 0x40d731
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40d738
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
and eax, eax
je 0x40d7e0
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and eax, eax
je 0x40d7d7
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 1
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
pop eax
mov dword [ebp + 4], eax
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
pop eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 2
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
mov byte [esp], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp]
movsx eax, al
jmp 0x40d7eb
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x40dee1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40df03
mov dword [esp], 1
jmp 0x40df13
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40e04c
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x40df4b
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40df3b
mov dword [esp], 1
jmp 0x40df4b
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40e04c
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x40df83
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40df73
mov dword [esp], 1
jmp 0x40df83
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40e04c
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x40dfbb
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40dfab
mov dword [esp], 1
jmp 0x40dfbb
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40e04c
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x40dfe7
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40dfe7
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40e04c
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x40e013
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40e013
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40e04c
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x40e03f
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40e03f
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40e04c
xor edx, edx
mov eax, 1
jmp 0x40e04c
add esp, 4
pop ebx
ret 0x10
Function at 0x410c5c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x410d40
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x410cf6
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.004117f0
mov ebx, eax
cmp ebx, edi
je 0x410d35
push dword [ebp + 8]
push dword [0x4a7b90]
call fcn.00418797
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.00411793
push eax
push ebx
call fcn.00411779
push eax
call fcn.00411385
mov dword [esi], eax
cmp eax, edi
je 0x410cee
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x410d35
push ebx
call fcn.004117a0
jmp 0x410d35
push ebx
push edi
push dword [0x4a7394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x410d35
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.0041136f
push esi
push edi
push dword [0x4a7394]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x410e85
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push dword [0x4a7b90]
xor ebx, ebx
call fcn.00418834
mov esi, eax
test esi, esi
je 0x41100b
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x410f37
push dword [ebp + 8]
call fcn.004114b7
jmp 0x410ec8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x410ec0
push dword [esi + 0x14]
call fcn.004117c9
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
xor ebx, ebx
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.00410d5a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x410dcd
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x410f0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x410f1d
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00411587
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x41100b
test byte [ebp + 0xc], 1
je 0x410f40
xor ebx, ebx
inc ebx
test byte [ebp + 0xc], 2
je 0x410fcd
push esi
call fcn.00411024
lea eax, [esi + 4]
push 0x10
push eax
call fcn.00419060
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x4a7ba4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x41100b
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov byte [edi + 5], bl
mov byte [edi + 4], 1
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x410fb1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004114e7
jmp 0x410fbd
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
jmp 0x41100b
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x410fef
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00411587
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x41100b
xor edi, edi
inc edi
mov byte [esi + 0x1c], 1
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc