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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4619d8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4619b9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4619c8
or bl, 4
test esi, 0x20000000
je 0x4619d3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x468080
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x468092
add esp, 0xfffffff0
call fcn.00403968
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420ef4
mov eax, dword [0x4a9b7c]
mov dword [eax + 4], ebx
mov dword [eax], 0x468424
mov eax, dword [0x4a9b88]
mov dword [eax + 4], ebx
mov dword [eax], 0x468430
mov eax, ebx
call fcn.0046843c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4162cc]
call fcn.004035d4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4162cc]
call fcn.004035d4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4162cc]
call fcn.004035d4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4162cc]
call fcn.004035d4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4162cc]
call fcn.004035d4
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, 0x464858
push eax
push 0
push 0
mov eax, dword [0x4a9cd8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x422960]
call fcn.004240d4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x422960]
call fcn.004240d4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x422960]
call fcn.004240d4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046885c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468738
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468738
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468738
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4681cf
call fcn.004039c0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46851c
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 0x4686c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4686a8
mov dl, 1
mov eax, dword [0x416930]
call fcn.004035d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404394
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x468697
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.00456408
test al, al
je 0x46868a
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, 0x4686d8
lea eax, [ebp - 0x254]
call fcn.004094e4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46868a
xor eax, eax
push ebp
push 0x468683
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 0x468710
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46866c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404604
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 0x46866c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404604
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46868a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46858d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041aef4
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 0x4686ce
lea eax, [ebp - 0x260]
call fcn.00404394
ret

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

Disassembly:
push ecx
mov eax, dword [0x4aabc0]
cmp byte [eax + 0xa5], 0
jne 0x46906d
cmp dword [0x4aabd8], 0
jne 0x46902e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x468fb8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4aabd8], eax
cmp dword [0x4aabd4], 0
jne 0x469049
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4aabd4], eax
cmp dword [0x4aabdc], 0
jne 0x46906d
push esp
push 0
push 0
push 0x468f5c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4aabdc], eax
pop edx
ret
Function at 0x469164
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46917b
add esp, 0xfffffff0
call fcn.00403968
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420ef4
mov eax, dword [0x4a9cc4]
cmp word [eax + 2], 0
jne 0x4691a3
mov eax, dword [0x4a9cc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046a8e4
mov eax, dword [0x4a9d84]
cmp word [eax + 2], 0
jne 0x4691bd
mov eax, dword [0x4a9d84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046aadc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4162cc]
call fcn.004035d4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4162cc]
call fcn.004035d4
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], 0xff000018
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 [0x423440]
call fcn.0042abd0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x469344
mov eax, dword [0x4a9be4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042afa0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46b07c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a9be4]
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.0040cbe0
test eax, eax
je 0x4692b2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ec4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cc08
test eax, eax
je 0x4692c6
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.00404604
mov eax, dword [0x4a9ac8]
cmp byte [eax], 0
jne 0x4692fa
mov eax, ebx
call fcn.0046946c
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.0046b258
mov eax, ebx
call fcn.0046bc1c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46933a
call fcn.004039c0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4696ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4aabc0]
cmp dword [eax + 0x30], 0
je 0x469796
cmp dword [ebx + 0x94], 0
jne 0x469790
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46967c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x469790
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 0x469756
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x469790
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.00418b1c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x469765
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46a2f8
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 0x46a32d
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.00404484
jmp 0x46a33a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043e8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46b434
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46b475
mov eax, esi
call fcn.0045198c
test al, al
je 0x46b475
mov eax, dword [ebx + 0x84]
call fcn.00451688
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46b475
push 0
mov eax, dword [ebx + 0x84]
call fcn.00451688
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46bdcc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, edx
dec eax
test eax, eax
jb 0x46bdfa
inc eax
xor edx, edx
mov dl, byte [ebx]
mov esi, dword [ecx]
and esi, 0xff
xor edx, esi
mov edx, dword [edx*4 + 0x4a2fa4]
mov esi, dword [ecx]
shr esi, 8
xor edx, esi
mov dword [ecx], edx
inc ebx
dec eax
jne 0x46bdd8
pop esi
pop ebx
ret

Function at 0x46c534
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp + 8]
call fcn.00404844
xor eax, eax
push ebp
push 0x46c5a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404654
dec eax
jne 0x46c569
lea eax, [ebp + 8]
mov edx, 0x46c5c0
call fcn.0040465c
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov eax, dword [ebp + 8]
call fcn.00404854
push eax
call sub.kernel32.dll_GetVolumeInformationA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c5ac
lea eax, [ebp + 8]
call fcn.00404394
ret
Function at 0x46f44c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46f47a
mov eax, ebx
call fcn.0046ff00
cmp dword [ebx + 0x40], 0
je 0x46f473
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46f4eb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46f4dd
cmp dword [ebx + 8], 0
je 0x46f49c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46f4ae
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46f4dd
cmp dword [ebx + 8], 0
je 0x46f48f
cmp eax, 3
je 0x46f4c1
dec eax
jne 0x46f48f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46f48f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46f48f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46f509
cmp dword [ebx + 0x14], 0xcc
je 0x46f509
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046f514
pop ebx
ret
Function at 0x4a08ac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a08b4
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov edi, eax
xor eax, eax
push ebp
push 0x4a0a3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0x4a0418
cmp byte [ebp - 1], 0
jne 0x4a0948
lea edx, [ebp - 0x18]
mov eax, dword [edi + 0x304]
call fcn.0044aea0
cmp dword [ebp - 0x18], 0
jne 0x4a0914
push 0x10
push 0x4a0a54
push 0x4a0a80
mov eax, edi
call fcn.00451688
push eax
call fcn.0046c4c8
jmp 0x4a0a08
lea eax, [ebp - 0x10]
push eax
push 0x4a0a90
mov eax, dword [edi + 0x308]
mov edx, dword [eax]
call dword [edx + 0xc8]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [edi + 0x304]
call fcn.0044aea0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0046c2b8
jmp 0x4a0a08
mov ebx, 0x41
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.0040457c
lea eax, [ebp - 0x20]
mov edx, 0x4a0a9c
call fcn.0040465c
mov eax, dword [ebp - 0x20]
call fcn.00404854
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 1
jb 0x4a09b9
je 0x4a09b9
mov eax, dword [ebp - 0x14]
call fcn.004053bc
mov esi, eax
inc esi
push esi
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4a088c]
call fcn.00405578
add esp, 4
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.0040457c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*4 - 4]
mov ecx, 0x4a0a9c
call fcn.004046a0
inc ebx
cmp ebx, 0x5b
jne 0x4a094d
mov eax, dword [ebp - 0x14]
call fcn.004053c4
mov esi, eax
test esi, esi
jl 0x4a0a08
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
push eax
call fcn.0046c534
test al, al
je 0x4a0a04
lea eax, [ebp - 0x10]
push eax
push 0x4a0a90
mov eax, dword [edi + 0x308]
mov edx, dword [eax]
call dword [edx + 0xc8]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
push eax
call fcn.0046c2b8
inc ebx
dec esi
jne 0x4a09d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0a45
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004043b8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004043b8
lea eax, [ebp - 0x14]
mov edx, dword [0x4a088c]
call fcn.00405584
ret
Function at 0x872704
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x88d008], 0x8088405
inc edx
mov dword [ebx + 0x88d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x87282c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x88d01c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x8728c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x8728a4
xor eax, eax
push ebp
push 0x87289d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8728e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8728a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x88d01c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x88d01c], ax
mov esp, ebp
pop ebp
ret

Function at 0x87321c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x88f038], 0
je 0x87327d
cmp word [0x88f20c], 0xd7b2
jne 0x873245
cmp dword [0x88f214], 0
jbe 0x873245
mov eax, 0x88f208
call dword [0x88f224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x88d064
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x8732a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x88d028], 0
jne 0x873299
push 0
push 0x88d05c
push 0x88d064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x874794
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x8747fa
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00873678
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00872720
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x8747e4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x874801
lea eax, [ebp - 0x10]
call fcn.00873414
ret

Function at 0x876140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.008738b8
xor eax, eax
push ebp
push 0x8761a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00873468
mov eax, ebx
call fcn.00873918
mov eax, dword [ebx]
call fcn.008736c8
test eax, eax
jle 0x87618c
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x876181
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8761a9
lea eax, [ebp - 4]
call fcn.00873414
ret
Function at 0x876d08
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x876d50
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x876d46
cmp word [edi], 0x5a4d
jne 0x876d46
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x876d46
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x876d5c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x876eec
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x876f32
push 0x20a
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x876f63
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_2
cmp esi, 0xffffffff
je 0x876fc0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x876f8e
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x876fa0
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x876fba
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x8774e4
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x877637
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
test dl, dl
je 0x8775e0
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00873bc8
mov eax, dword [ebp - 0x14]
call fcn.00873c44
xor ecx, ecx
mov dl, 1
call fcn.00877374
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x8775e0
xor eax, eax
push ebp
push 0x8775d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 0x3e8
call fcn.0087b2ac
mov dword [ebp - 8], eax
mov edx, 0x3e8
mov eax, dword [ebp - 8]
call fcn.00874ff0
push 2
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
mov edi, eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
mov ebx, edi
sub ebx, esi
cmp ebx, 0x3e8
jb 0x877599
mov ebx, 0x3e8
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
cmp ebx, dword [ebp - 0x10]
jne 0x8775b8
add esi, ebx
cmp edi, esi
ja 0x877588
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8775e0
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0087b2d4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x87760d
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00873bc8
mov eax, dword [ebp - 0x18]
call fcn.00873c44
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x87761c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x87763e
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00873ad0
ret
Function at 0x87789c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x8779a7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00873bc8
mov eax, dword [ebp - 0x10]
call fcn.00873c44
xor ecx, ecx
xor edx, edx
call fcn.00877374
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x877991
xor eax, eax
push ebp
push 0x87798a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 8], 0
jne 0x877913
push 2
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
mov dword [ebp - 4], eax
jmp 0x877919
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x877973
cmp dword [esi], 0
jne 0x877930
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0087b2ac
mov dword [esi], eax
cmp dword [esi], 0
je 0x877973
push 0
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x877973
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x877973
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edx, edx
call fcn.0087b2d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x877991
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8779ae
lea eax, [ebp - 0x10]
call fcn.00873ab8
ret