joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102f8ce
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x102f9c1
push esi
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push ebx
push edi
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x102f9c0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call edi
mov ebx, 0x103
jmp 0x102f99e
cmp eax, esi
jne 0x102f9a2
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.0102f8ce
test eax, eax
jne 0x102f9a2
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call edi
cmp eax, ebx
jne 0x102f95f
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 8

Function at 0x102f9d6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jne 0x102f9ec
jmp 0x1048a90
cmp dword [ebp + 8], esi
jne 0x102fa1a
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102fa1a
cmp dword [ebp + 0x10], esi
jne 0x102fa13
cmp dword [ebp - 4], 2
jbe 0x102fa1a
mov eax, 0xb7
jmp 0x102fa32
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
leave
ret 0x1c
Function at 0x102fa3c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1005790
mov edi, 0x80000002
push edi
mov dword [ebp - 0x214], esi
call ebx
test eax, eax
jne 0x102fbc2
push esi
lea eax, [ebp - 0x218]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x1005728
push edi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102fbb6
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
jmp 0x102fb90
inc dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], esi
call ebx
test eax, eax
jne 0x102fb78
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push 0x1002774
push dword [ebp - 0x21c]
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x230], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102fb6c
cmp dword [ebp - 0x228], 4
jne 0x102fb6c
push 4
lea eax, [ebp - 0x22c]
push eax
push 4
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x224]
push dword [ebp - 0x214]
mov dword [ebp - 0x220], 0x105
call edi
test eax, eax
je 0x102fad3
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
test eax, eax
je 0x102fec8
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01027e68
test eax, eax
jl 0x102fec8
push 0x5c
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e6ef
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102fec6
test al, 0x10
je 0x102fec6
inc esi
jmp 0x102fec8
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret 4
Function at 0x102fede
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102feec
push ebx
sub eax, edx
sar eax, 1
push esi
lea ebx, [eax + 0x14]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x102ffe8
push edi
push dword [ebp + 8]
push ebx
push esi
call fcn.01027e68
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
push 0x1005894
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x102ffe0
add eax, 4
and dword [ebp - 4], 0
jmp 0x102ff4f
mov eax, dword [ebp - 0xc]
push 0x1004e20
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x102ffd7
xor ecx, ecx
mov word [eax], cx
add eax, 2
push esi
mov dword [ebp - 0xc], eax
call fcn.0102fe6a
test eax, eax
jne 0x102ffaf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102ff89
push 0x57
pop eax
test eax, eax
jle 0x102ff95
and eax, 0xffff
or eax, 0x80070000
push esi
mov dword [ebp - 8], eax
call fcn.0102fe6a
test eax, eax
je 0x102ffc4
push 0
push esi
push 5
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp + 8]
push ebx
push esi
call fcn.01027e68
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x102ff4c
jmp 0x102ffd7
push dword [ebp - 8]
push esi
push 0x1005858
push 2
call fcn.01039f55
add esp, 0x10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
push dword [ebp + 8]
call fcn.0102fe6a
pop esi
pop ebx
leave
ret 4
Function at 0x1030e41
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1030f15
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1030f04
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01027e68
push 0x1005cd0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
lea eax, [ebp - 0x414]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x1030f04
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e8b9
test eax, eax
je 0x1030f04
xor esi, esi
inc esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0102f1be
test eax, eax
jne 0x1030f04
push eax
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01030a20
push edi
push 0x1005cac
push 4
call fcn.01039f55
add esp, 0xc
pop esi
jmp 0x10497d8
Function at 0x1032be7
Capabilities:
Delete registry value
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
push ecx
inc eax
push 0x1004250
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3e8], eax
lea eax, [ebp - 0x3d8]
xor esi, esi
push 0xc7
push eax
mov dword [ebp - 0x3ec], ecx
mov dword [ebp - 0x3dc], esi
mov dword [ebp - 0x3e4], esi
call fcn.01027f64
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x10
lea eax, [ebp - 0x3dc]
push eax
mov ebx, 0x2001f
push ebx
push esi
lea eax, [ebp - 0x3d8]
push eax
push 0x80000000
call edi
test eax, eax
jne 0x1032db2
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x3e0]
push eax
push esi
push esi
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3e4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032d8e
cmp dword [ebp - 0x3e0], 1
je 0x1032cb4
cmp dword [ebp - 0x3e0], 2
jne 0x1032d8e
lea eax, [ebp - 0x248]
push eax
call fcn.010313bf
test eax, eax
je 0x1032d8e
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x248]
push eax
call fcn.01031552
test eax, eax
jne 0x1032cf7
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1032eb0
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
jmp 0x1049af8
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3e8], esi
jne 0x1032db2
push dword [ebp - 0x3ec]
push 0x80000000
jmp 0x1032eab
push dword [ebp - 0x3ec]
lea eax, [ebp - 0x3d8]
push 0x100688c
push 0xc7
push eax
mov dword [ebp - 0x3e8], 1
call fcn.01027f64
add esp, 0x10
lea eax, [ebp - 0x3dc]
push eax
push ebx
push esi
lea eax, [ebp - 0x3d8]
push eax
mov ebx, 0x80000000
push ebx
call edi
test eax, eax
jne 0x1032eb0
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x3e0]
push eax
push esi
mov edi, 0x10064bc
push edi
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3e4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032e89
cmp dword [ebp - 0x3e0], 1
je 0x1032e43
cmp dword [ebp - 0x3e0], 2
jne 0x1032e89
push edi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1032e59
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x3e0]
push esi
push esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1032e8f
mov dword [ebp - 0x3e8], esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3e8], esi
jne 0x1032eb0
lea eax, [ebp - 0x3d8]
push eax
push ebx
call fcn.0102f8ce
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 4
Function at 0x4013fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0xa
push eax
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401439
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
ja 0x401440
xor eax, eax
jmp 0x401530
push edi
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x40
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 8], edi
call fcn.00401de0
sub esi, 0x20
push 0x20
mov dword [ebp - 0xc], esi
lea eax, [edi + esi]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401de0
add esp, 0x18
xor eax, eax
xor ebx, ebx
movzx ecx, byte [ebp + eax - 0x2c]
add ebx, ecx
inc eax
cmp eax, 0x20
jb 0x401488
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, eax
jne 0x4014cc
test ebx, ebx
je 0x4014ed
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x4014ed
mov al, dl
and al, 0x23
xor al, byte [edx + edi]
or al, byte [ebp + ecx - 0x2c]
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x4014c1
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x4014ab
test ecx, ecx
jne 0x4014a3
jmp 0x4014ed
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x4014ed
mov al, byte [ebp + ecx - 0x2c]
xor al, byte [edx + edi]
xor al, dl
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x4014e8
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x4014d4
mov edi, dword [edi]
mov dword [ebp + 8], edi
add edi, 0x100
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub eax, 4
push eax
mov eax, dword [ebp - 8]
add eax, 4
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call section..text
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401949
Capabilities:
Copy file
Create directory
Create service
Persist via run registry key
Persist via windows service
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00402120
push edi
mov esi, 0x40d01c
push ebx
push esi
call fcn.00402120
add esp, 0x18
lea eax, [ebp - 0x114]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
call fcn.004023a0
mov dword [0x40d260], eax
mov dword [esp], 0x208
call fcn.004023a0
push edi
push ebx
push dword [0x40d260]
mov dword [0x40acdc], eax
call fcn.00402120
push 0x208
push ebx
push dword [0x40acdc]
call fcn.00402120
lea eax, [ebp - 0x114]
push eax
push dword [0x40d260]
call fcn.004022b0
add esp, 0x24
push 0x208
push dword [0x40acdc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ad7
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 1
push eax
lea eax, [ebp - 0x10]
push esi
push eax
push ebx
push str.Common_AppData
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401ad7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x408054
push esi
call fcn.004022c0
mov edi, str.MovieControl
push edi
push esi
call fcn.004022c0
add esp, 0x10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x408054
push esi
call fcn.004022c0
push edi
push esi
call fcn.004022c0
push str..exe
push esi
call fcn.004022c0
add esp, 0x18
lea eax, [ebp - 0x114]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401ad7
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x401ad7
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push 1
push 2
push 0x10
push 0xf01ff
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
jne 0x401ade
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push dword [ebp - 8]
call esi
push 1
pop eax
jmp 0x401ad9
Function at 0x507420
Capabilities:
Encode data using xor

Disassembly:
dec eax
out dx, eax
xlatb
sub ebx, dword [edx]
fdiv qword [esi + 0x28]
sbb dword [ecx - 0x57f7d4fa], 0x3448313b
sub al, 0x68
cmp dh, dh
enter 0xffffffffffffcea8, 0xd
adc ah, 0x7c
push cs
pop es
invalid
ror byte [eax - 0x7f65e0ee], 0xfc
std
pop bx
fstp qword [ebp + 0x30]
stosb byte es:[edi], al
add eax, edi
insb byte es:[edi], dx
stosb byte es:[edi], al
pop ds
lodsb al, byte [esi]
fst dword [edx]
insd dword es:[edi], dx
fcmovne st(0), st(2)
dec esp
in eax, dx
mov ah, 0x92
cmp ecx, dword [eax - 0x18a73762]
cmp dl, bh
cli
cli
dec esi
neg byte [esi - 6]
pop esi
cli
mov ecx, 0xa3b90795
scasd eax, dword es:[edi]
je 0x5073c1
mov byte [0xa150d951], al
cwde
jo 0x507423
sub al, 0x37
in eax, dx
pop edx
jne 0x5073fb
xchg ebp, eax
pop ebp
mov ecx, 0xda8bf9b7
mov ebx, edx
Function at 0x5bc4cc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea ebx, [edi - 1]
nop word cs:[eax + eax]
cmp byte [ebx + 1], 0
lea ebx, [ebx + 1]
jne 0x5bc4ec
sub ebx, edi
test edi, edi
je 0x5bc534
mov eax, dword [esi + 0x18]
lea ebp, [esi + 4]
cmp eax, 0x10
jb 0x5bc517
mov ecx, dword [ebp]
cmp ecx, edi
ja 0x5bc534
cmp eax, 0x10
jb 0x5bc51f
mov edx, dword [ebp]
jmp 0x5bc521
mov ecx, ebp
cmp ecx, edi
jbe 0x5bc50d
jmp 0x5bc534
mov edx, ebp
mov ecx, dword [esi + 0x14]
add edx, ecx
cmp edx, edi
jbe 0x5bc534
cmp eax, 0x10
jb 0x5bc58c
mov edx, dword [ebp]
jmp 0x5bc58e
sub esp, 4
push 0
push ebx
push esi
call fcn.005badc4
add esp, 0x10
test al, al
je 0x5bc582
mov eax, dword [esi + 0x18]
lea ebp, [esi + 4]
cmp eax, 0x10
jb 0x5bc55b
mov ecx, dword [ebp]
test ebx, ebx
jne 0x5bc561
jmp 0x5bc572
mov ecx, ebp
test ebx, ebx
je 0x5bc572
sub esp, 4
push ebx
push edi
push ecx
call 0x915274
add esp, 0x10
mov eax, dword [esi + 0x18]
cmp eax, 0x10
jb 0x5bc57a
mov ebp, dword [ebp]
mov dword [esi + 0x14], ebx
mov byte [ebp + ebx], 0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebp
sub edi, edx
mov edx, ecx
sub edx, edi
jb 0x5bc61b
cmp edx, ebx
ja 0x5bc5a0
mov ebx, edx
add ebx, edi
cmp ecx, ebx
jb 0x5bc62b
cmp eax, 0xf
ja 0x5bc5b3
mov eax, ebp
jmp 0x5bc5b6
mov eax, dword [esi + 4]
mov dword [esi + 0x14], ebx
mov byte [eax + ebx], 0
mov ebx, dword [esi + 0x14]
cmp ebx, edi
jbe 0x5bc602
test edi, edi
je 0x5bc582
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
cmp ecx, 0xf
mov edx, eax
ja 0x5bc5d7
mov edx, ebp
sub ebx, edi
je 0x5bc5f1
add edi, edx
sub esp, 4
push ebx
push edi
push edx
call 0x91538d
add esp, 0x10
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
cmp ecx, 0xf
ja 0x5bc5f8
mov eax, ebp
mov dword [esi + 0x14], ebx
add eax, ebx
mov byte [eax], 0
jmp 0x5bc582
cmp dword [esi + 0x18], 0xf
jbe 0x5bc60b
mov ebp, dword [esi + 4]
mov dword [esi + 0x14], 0
mov byte [ebp], 0
jmp 0x5bc582
sub esp, 0xc
push 0x78d450
call 0x911858
add esp, 0xc
sub esp, 0xc
push 0x78d450
call 0x911858
add esp, 0xc
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401266
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444004]
jne 0x401270
repz ret
jmp fcn.004017cd

Function at 0x408849
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x444004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403ea2
and dword [ebp - 0x14], 0
cmp dword [0x446d9c], 0
mov dword [ebp - 0x18], eax
jne 0x4088fc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4089a4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4089a4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x446d9c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x446da0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x446da4], eax
call edi
push eax
call esi
mov dword [0x446dac], eax
test eax, eax
je 0x4088fc
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x446da8], eax
mov eax, dword [0x446da8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408955
cmp dword [0x446dac], ecx
je 0x408955
push eax
call esi
push dword [0x446dac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408955
test ebx, ebx
je 0x408955
call edi
test eax, eax
je 0x40894c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40894c
test byte [ebp - 8], 1
jne 0x408955
or dword [ebp + 0x10], 0x200000
jmp 0x408988
mov eax, dword [0x446da0]
cmp eax, dword [ebp - 0x18]
je 0x408988
push eax
call esi
test eax, eax
je 0x408988
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408988
mov eax, dword [0x446da4]
cmp eax, dword [ebp - 0x18]
je 0x408988
push eax
call esi
test eax, eax
je 0x408988
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x446d9c]
call esi
test eax, eax
je 0x4089a4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4089a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401266
leave
ret
Function at 0x437d10
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x444004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x448b34]
push edi
mov edi, dword [0x44afb4]
call fcn.00437c80
cmp dword [0x44afb4], 0x2f
jne 0x437da4
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
call fcn.00437cb0
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.00401266
add esp, 0x41c
ret
Function at 0x438240
Capabilities:
Get disk information
Write file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x444004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x44afb4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519a5
mov edi, 0x8e46a7b8
lea esp, [esp]
mov dword [0x44ac1c], edi
cmp eax, 0x3dc
jne 0x43828a
push 0
push 0
push 0
call esi
mov eax, dword [0x44afb4]
dec ebx
jne 0x438270
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x4382a0
cmp eax, 0xa5f
jne 0x4382e7
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x44afb4]
cmp esi, 0x846143
jne 0x4382fe
mov eax, dword [0x445bf0]
add eax, 0xa231
mov dword [0x44afb4], eax
cmp eax, 0x141
jne 0x438319
mov dword [0x4472c0], 0xec58acac
mov dword [0x4472c4], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x4382a0
call fcn.00437dc0
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00401266
add esp, 0x41c
ret 0x10