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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4550e8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4550c9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4550d8
or bl, 4
test esi, 0x20000000
je 0x4550e3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45b6ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b6fe
add esp, 0xfffffff0
call fcn.004039c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c1f0
mov eax, dword [0x481ff0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ba90
mov eax, dword [0x481ffc]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ba9c
mov eax, ebx
call fcn.0045baa8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411cb8]
call fcn.00403630
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411cb8]
call fcn.00403630
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411cb8]
call fcn.00403630
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411cb8]
call fcn.00403630
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411cb8]
call fcn.00403630
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x457f70
push eax
push 0
push 0
mov eax, dword [0x482140]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dc38]
call fcn.0041f294
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dc38]
call fcn.0041f294
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dc38]
call fcn.0041f294
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045bec8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bda4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bda4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bda4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b83b
call fcn.00403a1c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45bb88
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bd33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45bd14
mov dl, 1
mov eax, dword [0x41231c]
call fcn.00403630
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45bd03
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00448b7c
test al, al
je 0x45bcf6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45bd44
lea eax, [ebp - 0x254]
call fcn.004095cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45bcf6
xor eax, eax
push ebp
push 0x45bcef
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45bd7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45bcd8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404634
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45bcd8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404634
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bcf6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45bbf9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041687c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd3a
lea eax, [ebp - 0x260]
call fcn.004043cc
ret

Function at 0x45c668
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x483c04]
cmp byte [eax + 0xa5], 0
jne 0x45c6d9
cmp dword [0x483c1c], 0
jne 0x45c69a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c624
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x483c1c], eax
cmp dword [0x483c18], 0
jne 0x45c6b5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x483c18], eax
cmp dword [0x483c20], 0
jne 0x45c6d9
push esp
push 0
push 0
push 0x45c5c8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x483c20], eax
pop edx
ret
Function at 0x45c7d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c7e7
add esp, 0xfffffff0
call fcn.004039c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c1f0
mov eax, dword [0x482128]
cmp word [eax + 2], 0
jne 0x45c80f
mov eax, dword [0x482128]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045de94
mov eax, dword [0x4821d0]
cmp word [eax + 2], 0
jne 0x45c829
mov eax, dword [0x4821d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e08c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411cb8]
call fcn.00403630
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411cb8]
call fcn.00403630
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41e640]
call fcn.00425cb0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45c9b0
mov eax, dword [0x482054]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426080
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45e5fc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x482054]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040afd0
test eax, eax
je 0x45c91e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f14
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040aff8
test eax, eax
je 0x45c932
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404634
mov eax, dword [0x481f44]
cmp byte [eax], 0
jne 0x45c966
mov eax, ebx
call fcn.0045cad8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045e7d8
mov eax, ebx
call fcn.0045f118
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c9a6
call fcn.00403a1c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cd4c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x483c04]
cmp dword [eax + 0x30], 0
je 0x45cdf6
cmp dword [ebx + 0x94], 0
jne 0x45cdf0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45ccdc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45cdf0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45cdb6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45cdf0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004144e8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45cdc5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d8d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45d909
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044bc
jmp 0x45d916
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404420
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45e9b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45e9f5
mov eax, esi
call fcn.00444270
test al, al
je 0x45e9f5
mov eax, dword [ebx + 0x84]
call fcn.00443f6c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e9f5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443f6c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x462b74
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
mov al, byte [ebp + 8]
call fcn.0046277c
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.0040487c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x462bd2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x482144]
mov dl, 1
mov eax, dword [0x462674]
call fcn.0040a554
call fcn.00403e2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x462bdc
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.0040487c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x462c34
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x482344]
mov dl, 1
mov eax, dword [0x462674]
call fcn.0040a554
call fcn.00403e2c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004627ac
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 0x474e30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475090
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x474e93
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00474948
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040acd8
cmp al, 1
jne 0x474e93
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00474c10
test al, al
je 0x47501f
cmp dword [ebp - 8], 0
jge 0x474eb1
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00474948
mov eax, dword [ebp - 0x210]
call fcn.00404684
cmp ebx, eax
jge 0x474efb
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00474948
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x482324]
and eax, 0xff
bt dword [edx], eax
jae 0x474efb
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x474f0f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00474e0c
cmp ebx, dword [ebp - 8]
je 0x475011
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x474f3b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040385c
and eax, 0x7f
movzx eax, word [eax*2 + 0x481f10]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x474ffe
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040385c
and eax, 0x7f
movzx eax, word [eax*2 + 0x481f10]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00443f6c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040385c
and eax, 0x7f
movzx eax, word [eax*2 + 0x481f10]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00443f6c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475005
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x475072
cmp dword [ebp - 8], 0
jge 0x47502a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00474948
mov eax, dword [ebp - 0x218]
call fcn.00404684
cmp eax, dword [ebp - 8]
jg 0x475064
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00474948
mov eax, dword [ebp - 0x21c]
call fcn.00404684
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00474e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475097
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004043f0
ret
Function at 0x478048
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4781b9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x478194
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004045ac
lea eax, [ebp - 0x118]
mov edx, 0x4781d0
call fcn.0040468c
mov eax, dword [ebp - 0x118]
call fcn.0040487c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x478106
lea eax, [ebp - 0x111]
call fcn.00408ed8
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004044bc
jmp 0x47810d
mov eax, esi
call fcn.004043cc
cmp bl, 0x61
jae 0x47812e
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040aea4
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404420
jmp 0x478148
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040ae18
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404420
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4781dc
call fcn.0040964c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47819b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40633c
pop dword [ebp - 0x40]
mov eax, 0xab2e9fc
sub eax, 0xa7286c0
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x8aefe874
add dword [ebp - 0x50], 0xc3625cd7
mov dword [ebp - 0x4c], 0x1b1ce258
sub dword [ebp - 0x4c], 0xe8e99613
mov dword [ebp - 0x48], 0xa5f437e8
sub dword [ebp - 0x48], 0x59a7f3ba
mov dword [ebp - 0x44], 0xb7ba178f
add dword [ebp - 0x44], 0x4845e871
lea eax, [ebp - 0x50]
push eax
mov eax, 0xf56ad5fa
sub eax, 0xf52a659a
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x182a4c64
add dword [ebp - 0x50], 0x5c481cf2
mov dword [ebp - 0x4c], 0xbe85630d
sub dword [ebp - 0x4c], 0x7d190198
mov dword [ebp - 0x48], 0x450effc3
sub dword [ebp - 0x48], 0xe19f9357
mov dword [ebp - 0x44], 0x5c3f2b34
sub dword [ebp - 0x44], 0x5c3f2b34
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xdf85877b
sub eax, 0xdf45167b
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3541d
push 0
call eax
mov ecx, 0x428e
xor ebx, ebx
add ebx, eax
mov esi, 0xe9405bdb
sub esi, 0xe8ff5bdb
add esi, dword [ebp - 0x40]
mov edx, 0x9db1bed4
mov edi, dword [esi]
xor dword [ebp - 0x34], edi
add edi, edx
add dword [ebp - 0x24], edx
mov dword [ebx], edi
sub dword [ebp - 0x20], edi
add ebx, 0x5a83b26c
add ebx, 0xa57c4d98
add esi, 0xc0ca3752
sub esi, 0xc0ca374e
loop 0x406454
add eax, 0xfd0b
xor ebx, ebx
add ebx, eax
add eax, 0x10672967
add eax, 0xef98d69e
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4f4924
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004e2130
mov eax, dword [0x532ae0]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004ed358
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4f4a4e
push 2
push esi
push dword [ebp + 8]
call fcn.004ed358
add esp, 0xc
cmp eax, ebx
je 0x4f4a4e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4f49f1
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004e6930
push 0x8000
push dword [ebp + 8]
call fcn.004f4e35
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4f49aa
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004eb75d
add esp, 0xc
cmp eax, 0xffffffff
je 0x4f49ca
sub edi, eax
test edi, edi
jg 0x4f49a2
jmp 0x4f49e2
call fcn.004e3b36
cmp dword [eax], 5
jne 0x4f49df
call fcn.004e3b2d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004f4e35
pop ecx
pop ecx
jmp 0x4f4a39
jge 0x4f4a39
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ed358
push dword [ebp + 8]
call fcn.004f1c07
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4f4a39
call fcn.004e3b2d
mov dword [eax], 0xd
call fcn.004e3b36
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004ed358
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4f4a50
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004e19df
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40288e
pop dword [ebp - 0xc]
mov eax, 0x40288e
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xb105330f
sub dword [ebp - 0x1c], 0x62b2edc4
mov dword [ebp - 0x18], 0x3f87b291
sub dword [ebp - 0x18], 0xd54664c
mov dword [ebp - 0x14], 0x7ab8933
add dword [ebp - 0x14], 0x44a0bafb
mov dword [ebp - 0x10], 0xbad23cd0
sub dword [ebp - 0x10], 0xbad23cd0
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xb146bf32
add dword [ebp - 0x1c], 0xc32baa24
mov dword [ebp - 0x18], 0x39b9d404
add dword [ebp - 0x18], 0x7b28d71
mov dword [ebp - 0x14], 0x5cc4470a
add dword [ebp - 0x14], 0x6ab2562
mov dword [ebp - 0x10], 0x9ecab428
sub dword [ebp - 0x10], 0x9ecab428
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x57f091dc
sub eax, 0x57b01108
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3457e
push 0
call eax
mov ecx, 0x3efd
mov esi, eax
mov edx, 0x758bc443
sub edx, 0x754ab443
add edx, dword [ebp - 0xc]
mov ebx, 0x5613663
mov dword [ebp - 4], 0x74b34597
mov edi, dword [edx]
sub dword [ebp - 4], eax
add edi, ebx
xor dword [ebp - 8], 0x5f5029dd
mov dword [esi], edi
mov dword [ebp - 8], 0x4a02b58d
add esi, 0x7457a527
sub esi, 0x7457a523
add edx, 0x71f7296
sub edx, 0x71f7292
loop 0x40299a
add eax, 0x42737859
sub eax, 0x42728992
mov ebx, eax
add eax, 0x8fd3de24
sub eax, 0x8fd3de1f
mov ecx, 0x330002d6
sub ecx, 0x32c002d6
add ecx, dword [ebp - 0xc]
call ebx
leave
ret