joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ced8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49d0c2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x49d0dc
call fcn.00409de0
lea eax, [ebp - 4]
mov edx, 0x49d0f8
call fcn.00409de0
mov eax, dword [ebp - 4]
call fcn.0040a3a8
push eax
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
jne 0x49d0ac
xor eax, eax
push ebp
push 0x49d0a2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor esi, esi
jmp 0x49d083
cmp dword [ebp - 0x1c], 0x1000
jne 0x49d07d
cmp dword [ebp - 0x18], 1
je 0x49d07d
cmp esi, dword [ebp - 0x28]
je 0x49d07d
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jne 0x49d07d
push 0x104
lea eax, [ebp - 0x236]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
test eax, eax
jbe 0x49d07d
mov eax, dword [ebp - 0x28]
call fcn.00463ca4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49d07d
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49d07d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x49d07d
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x768a70]
mov esi, dword [esi]
mov eax, 0x49d108
mov ecx, 0xe
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x49d03e
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x768a70]
mov esi, dword [esi]
mov eax, 0x49d118
mov ecx, 0x10
mov edx, dword [ebp - 0x10]
call esi
inc eax
sete dl
mov eax, dword [ebp - 0x28]
call fcn.0049c5e0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x768a70]
mov esi, dword [esi]
mov eax, 0x49d12c
mov ecx, 0xc
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x49d07d
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.0049c400
mov esi, dword [ebp - 0x28]
add ebx, dword [ebp - 0x20]
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x49cf3e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49d0ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d0c9
lea eax, [ebp - 4]
call fcn.00409938
ret
Function at 0x514cbc
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x514d5a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x514d1e
cmp byte [ebx + 0x11], 0
jne 0x514d1e
cmp byte [ebx + 0x3c], 0
jne 0x514d1e
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x514d3f
lea edx, [ebp - 4]
mov eax, dword [0x768d2c]
call fcn.0040db48
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4ec7d8]
call fcn.0044f73c
call fcn.00408fa0
jmp 0x514d3f
lea edx, [ebp - 8]
mov eax, dword [0x768d2c]
call fcn.0040db48
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4ec7d8]
call fcn.0044f73c
call fcn.00408fa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514d61
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409974
ret

Function at 0x515228
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x515276
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00514c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51528f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x515298
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00514c08
dec esi
jne 0x5152ba
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x5178b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x76f2d8
cmp dword [edi], 0
jne 0x51792c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x76f2d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x764eb4
mov ecx, 2
call fcn.0040690c
mov edx, 0x517888
lea eax, [esi + 5]
call fcn.005178a8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.005178a8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x517901
mov dword [0x76f2d4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x5351d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x535325
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
je 0x5352fa
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.00449c4c
test al, al
je 0x5352fa
push 0x20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x4e84c4]
call fcn.005088ac
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5352f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.005080b8
sub esi, eax
push esi
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404414]
call fcn.0040bea4
add esp, 4
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.00451e8c
mov esi, eax
mov dl, 1
mov eax, dword [0x4e5634]
call fcn.00508058
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5352d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040bc88
sub eax, esi
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.00452738
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0053559c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5352dd
mov eax, dword [ebp - 8]
call fcn.00407bf8
ret
mov eax, ebx
call fcn.00534fcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53532c
lea eax, [ebp - 0x10]
call fcn.00409914
lea eax, [ebp - 4]
mov edx, dword [0x404414]
call fcn.0040bfc8
ret
Function at 0x538d64
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x538f1f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409d3c
mov eax, dword [ebp - 4]
call fcn.005386b4
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x538db6
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040ad68
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.005398d8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x538e95
xor eax, eax
push ebp
push 0x538e8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00538954
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00538f54
test al, al
je 0x538e6c
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00409a9c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x538e6c
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040a944
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.005388b4
test al, al
je 0x538e66
mov eax, dword [ebp - 8]
call fcn.0040a944
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040a9ac
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00538d64
dec ebx
cmp ebx, 0xffffffff
jne 0x538e15
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538e95
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00538954
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x76f30c], 0
je 0x538ed5
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040a944
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00538940
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.005388b4
mov ebx, eax
jmp 0x538efc
mov eax, dword [ebp - 4]
call fcn.0040a944
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00538940
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.005388b4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538f26
lea eax, [ebp - 0x3c]
call fcn.00409914
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409974
ret
Function at 0x538fc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x539078
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00538f54
test al, al
je 0x53905a
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409a9c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x53905a
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a944
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040a944
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040a9ac
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x539013
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53907f
lea eax, [ebp - 0x2c]
call fcn.00409914
lea eax, [ebp - 4]
call fcn.00409914
ret

Function at 0x539230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5392e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00538f54
test al, al
je 0x5392ca
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409a9c
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x5392ca
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a944
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.0040a944
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040a9ac
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x539283
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5392ef
lea eax, [ebp - 0x2c]
call fcn.00409914
lea eax, [ebp - 4]
call fcn.00409914
ret
Function at 0x5397b4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.005386cc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040a944
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.005388b4
test al, al
jne 0x53981c
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x768c08]
mov dl, 1
mov eax, dword [0x53651c]
call fcn.0044f834
call fcn.00408fa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x539828
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040a944
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.005388b4
test al, al
jne 0x539889
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x768ff4]
mov dl, 1
mov eax, dword [0x53651c]
call fcn.0044f834
call fcn.00408fa0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.005386fc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x54337c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x543382
ret
Function at 0x54e154
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x54e309
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x54e2e5
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x54e2e5
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x54e11c]
call fcn.0040bea4
add esp, 4
lea eax, [ebp - 4]
call fcn.0040d514
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x768a14]
push eax
call sub.windowscodecs.dll_WICConvertBitmapSource
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.0040bc88
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x2c
call fcn.00407160
mov dword [ebp - 0x3c], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], 1
mov word [ebp - 0x2e], 0x20
mov dl, 1
mov eax, dword [0x541c40]
call fcn.0054ab84
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor edx, edx
push ebp
push 0x54e2bc
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
mov dl, 7
call fcn.0054c7fc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
push 0
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.0054b80c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54e2e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54e310
lea eax, [ebp - 8]
mov edx, dword [0x54e11c]
call fcn.0040bfc8
lea eax, [ebp - 4]
call fcn.0040d514
ret
Function at 0x5585de
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x5585ed
xor eax, eax
pop edi
pop ecx
ret
mov eax, dword [edi + 0x3c]
push ebx
push ebp
push esi
mov ecx, dword [eax + edi + 0x78]
xor esi, esi
mov eax, dword [ecx + edi + 0x20]
add ecx, edi
add eax, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov ebp, dword [ecx + 0x18]
test ebp, ebp
je 0x558640
mov ebx, dword [esp + 0x1c]
mov ch, byte [ebx]
mov edx, dword [eax + esi*4]
add edx, edi
mov cl, byte [edx]
cmp cl, ch
jne 0x55863b
mov eax, ebx
sub edx, ebx
test cl, cl
je 0x558648
cmp byte [eax], 0
je 0x558648
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, byte [eax]
je 0x558625
mov eax, dword [esp + 0x18]
inc esi
cmp esi, ebp
jb 0x558616
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
pop ecx
ret
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
pop esi
pop ebp
pop ebx
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
pop edi
pop ecx
ret

Function at 0x55866e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov ecx, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [eax + 0xc]
push esi
push edi
add ebp, 0xc
mov ebp, dword [ebp]
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x558682
mov edx, dword [esp + 0x18]
test edx, edx
je 0x558696
mov dword [edx], eax
test ecx, ecx
je 0x5586d9
mov ebx, dword [ebp + 0x30]
xor esi, esi
xor edi, edi
cmp word [ebx], si
je 0x5586d5
movzx eax, word [ebx]
nop dword [eax + eax]
movzx eax, ax
mov edx, eax
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x5586c2
add eax, 0x20
movzx edx, ax
inc esi
movzx eax, dx
add edi, eax
movzx eax, word [ebx + esi*2]
test ax, ax
jne 0x5586ae
mov ecx, dword [esp + 0x14]
cmp ecx, edi
jne 0x558682
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5586ee
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
push ecx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
nop dword [eax]
mov eax, dword [eax]
cmp dword [eax + 0x30], 0
je 0x5586fe
push ebx
push ebp
mov ebp, dword [eax + 0x18]
push esi
mov esi, dword [eax + 0x30]
mov eax, dword [0x7660c8]
push edi
push 0
push eax
call fcn.0055866e
mov edi, dword [0x7660d8]
add esp, 8
mov ebx, eax
cmp dword [edi], 0
je 0x558783
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
je 0x558746
nop dword [eax]
inc ecx
cmp word [esi + ecx*2], 0
jne 0x55873e
cmp cl, byte [edi]
je 0x558757
cmp cl, byte [edi + 1]
je 0x558757
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
xor edx, edx
xor ecx, ecx
test ax, ax
je 0x558771
movzx eax, ax
lea ecx, [ecx + 1]
add edx, eax
movzx eax, word [esi + ecx*2]
test ax, ax
jne 0x558760
cmp edx, dword [edi + 4]
je 0x558783
cmp edx, dword [edi + 8]
je 0x558783
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, dword [0x76609c]
push 4
push 0x1000
push eax
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
xor edx, edx
mov esi, eax
cmp dword [0x7660a8], edx
jbe 0x5587c9
nop
mov ecx, dword [0x7660ac]
mov ecx, dword [ecx + edx]
mov dword [edx + esi], ecx
mov eax, dword [0x7660d0]
add edx, eax
cmp edx, dword [0x7660a8]
jb 0x5587ae
push esi
push ebx
call fcn.005585de
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x558858
mov esi, dword [0x7660bc]
lea eax, [esp + 0x10]
mov ecx, dword [0x7660a8]
push eax
push ecx
mov ecx, dword [0x7660b0]
push ecx
push esi
call ebx
mov edx, dword [0x7660c0]
mov ecx, 8
mov edi, dword [edx + ebp + 4]
add edx, ebp
cmp dword [0x7660b0], ecx
jbe 0x558825
mov eax, dword [edx + ecx]
add eax, edi
mov dword [esi + ecx], eax
mov eax, dword [0x7660d0]
add ecx, eax
cmp ecx, dword [0x7660b0]
jb 0x55880e
mov eax, dword [0x7660c4]
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
mov eax, dword [0x7660b0]
push eax
push esi
call ebx
mov eax, dword [0x7660b8]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x7660b8]
add ecx, esi
add esi, eax
push esi
call ecx
add esp, 4
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x55ec54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x76f4a8], 0
je 0x55ed95
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x768cec]
mov edx, dword [edx]
xor al, byte [edx + 0xd0]
je 0x55ed95
mov eax, dword [0x76f4ac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x76f4a8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x55ed64
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x76f4a8]
call fcn.00503e38
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x55ed5c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x205], 0
je 0x55ed5c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x55ed5c
mov eax, dword [ebp - 0x14]
call fcn.0056a620
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x55ed5c
push ebp
call fcn.0055ec10
pop ecx
test al, al
jne 0x55ed5c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.00407eb8
test al, al
je 0x55ed5c
mov byte [ebp - 9], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 9]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00407eb8
cmp byte [ebp - 9], 0
je 0x55ed5c
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040f1c0
test al, al
je 0x55ed5c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x76f4ac]
call fcn.0055e370
inc edi
dec ebx
jne 0x55ecb9
mov eax, dword [0x76f4ac]
cmp dword [eax + 8], 0
jle 0x55ed7c
mov eax, dword [0x76f4ac]
call fcn.0055e424
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x55ed95
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0055ea78
pop ecx
test al, al
jne 0x55ed95
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret