joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5907ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
mov eax, dword [0x5dcd84]
mov eax, dword [eax]
call fcn.004850f0
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, esi
jb 0x5907b7
pop esi
pop ebx
ret

Function at 0x590d44
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.0040a7c8
test al, al
je 0x590dcb
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.00403444
or esi, 0x100
test esi, esi
jns 0x590d7f
call fcn.00403d8c
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00405228
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x590dcb
mov dl, 1
mov eax, dword [0x42addc]
call fcn.00432e2c
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.00433238
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x590dcb
mov eax, esp
call fcn.00410048
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x59bb50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x5e02cc
test esi, esi
jne 0x59bb6a
xor eax, eax
jmp 0x59bc6c
cmp dword [ebp], 0
jne 0x59bb75
call fcn.0059bae0
xor ebx, 0xffffffff
cmp edi, 8
jb 0x59bc45
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x59bb81
test edi, edi
jbe 0x59bc67
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x59bc49
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5a9748
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x5a97e4
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.004053b4
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00405280
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x5a9770
cmp byte [esp], 0
je 0x5a97b5
mov eax, edi
call fcn.00405280
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x5a97f0
mov eax, edi
call fcn.00405280
push eax
mov eax, edi
call fcn.00405280
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00402a78
mov edx, ebx
mov eax, edi
call fcn.004053b4
jmp 0x5a97f0
mov eax, edi
mov edx, 0x5a9800
call fcn.00404dbc
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5a9e48
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.00405218
xor eax, eax
push ebp
push 0x5a9eaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404dbc
mov eax, ebx
call fcn.00405278
mov eax, dword [ebx]
call fcn.00405028
test eax, eax
jle 0x5a9e94
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x5a9e89
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a9eb1
lea eax, [ebp - 4]
call fcn.00404d68
ret

Function at 0x5aa610
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 0x5aa658
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 0x5aa64e
cmp word [edi], 0x5a4d
jne 0x5aa64e
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x5aa64e
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5aa664
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5aa7f4
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 0x5aa83a
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 0x5aa86b
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_1
cmp esi, 0xffffffff
je 0x5aa8c8
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x5aa896
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x5aa8a8
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x5aa8c2
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_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x5ada30
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
jne 0x5adaac
cmp dword [esp + 0x10], 0x1000
jne 0x5adaac
cmp dword [esp + 4], 0
je 0x5adaac
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
test eax, eax
je 0x5adaac
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x5adaac
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x5adaac
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5b0a04
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x5b0abb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x5b0ad4
call fcn.005a9e48
push dword [ebp - 0xc]
push 0x5b0ae8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, 0x5b0af4
call fcn.005b08c8
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004050e8
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00405228
push eax
call fcn.005b07d8
mov esi, eax
test esi, esi
je 0x5b0aa0
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x5b0a9a
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b0ac2
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404d8c
ret

Function at 0x5b0d4c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x5b0dbd
mov ebx, 0x5f040000
jmp 0x5b0dab
cmp dword [esp + 0x10], 0x10000
jne 0x5b0d89
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x5b0dbd
cmp dword [esp + 0xc], 0x10000
jae 0x5b0d9d
mov dword [esp + 0xc], 0x10000
jmp 0x5b0da5
and dword [esp + 0xc], 0xffff0000
mov eax, dword [esp + 0xc]
add ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x5b0d69
push 0x40
push 0x1000
push edi
push esi
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x5b1088
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x5dc3c0]
cmp eax, 0x1c
jne 0x5b1103
cmp dword [ebp - 0xc], 0x1000
jne 0x5b10fe
cmp dword [ebp - 0x18], 0
je 0x5b10fe
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x5b10fe
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x5b10dd
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x5b1103
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x5dc390]
cmp eax, 0
je 0x5b10fe
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x5dc3e8]
add ebx, dword [ebp - 0x10]
jmp 0x5b109f
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x5b4cd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5b4eb7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 0x5b4ed0
call fcn.005ad898
mov dword [0x5e0558], eax
xor edx, edx
mov eax, 0x5b4ef4
call fcn.005ad898
mov dword [0x5e055c], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.004053b4
lea eax, [ebp - 8]
call fcn.00405280
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.00405280
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.00405280
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.00405280
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.00405280
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, 0x5b4f1c
call fcn.005a9e48
push dword [ebp - 0xc]
push 0x5b4f2c
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.005a9adc
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004050e8
mov eax, dword [ebp - 8]
call fcn.00405228
push eax
push 0
push 0
call fcn.0040785c
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x5b4e9c
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [0x5e054c], esi
mov dword [0x5e0550], edi
cmp dword [0x5e0558], 0
je 0x5b4dec
cmp dword [0x5e055c], 0
jne 0x5b4e6e
mov dl, 1
mov eax, 0x5b4f38
call fcn.005ad994
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x5b4e80
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x5b4e80
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x5b4e80
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x5b4e80
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x5b4e80
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5b4e80
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x5e0554], edx
mov edx, 0x5b4c80
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
jmp 0x5b4e80
push 0x5b4c2c
push 1
call dword [0x5e0558]
test eax, eax
setne bl
test bl, bl
jne 0x5b4e9c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b4ebe
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404d8c
ret
Function at 0x5b4f54
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x5e0558], 0
je 0x5b4f6c
cmp dword [0x5e055c], 0
jne 0x5b4fc5
mov dl, 1
mov eax, 0x5b4fe0
call fcn.005ad994
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5b4fab
mov eax, dword [0x5e0554]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x5b4fd0
push 0x5b4c2c
call dword [0x5e055c]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5b7a90
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x5b7c66
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x5b7c4b
xor eax, eax
push ebp
push 0x5b7c44
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x5b7c2d
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x5b7c27
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, 0x5b7c7c
call fcn.005a9e48
mov eax, dword [ebp - 0x24]
call fcn.00405228
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x5b7b5b
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, 0x5b7c98
call fcn.005a9e48
mov eax, dword [ebp - 0x28]
call fcn.00405228
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x5b7b8e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, 0x5b7cb4
call fcn.005a9e48
mov eax, dword [ebp - 0x2c]
call fcn.00405228
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x5b7bc1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x5b7c13
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x5b7bde
cmp eax, dword [ebp - 0x10]
je 0x5b7c0f
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x5b7bf3
cmp eax, dword [ebp - 0x18]
je 0x5b7c0f
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x5b7c08
cmp eax, dword [ebp - 0x20]
je 0x5b7c0f
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x5b7bcb
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b7c4b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b7c6d
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404d8c
ret
Function at 0x4069e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404110
xor eax, eax
push ebp
push 0x406a79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403d8c
mov eax, dword [ebp - 4]
call fcn.00403f20
mov ebx, eax
test bx, bx
jbe 0x406a5b
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
mov dx, word [ebp - 6]
xor dx, 0x208
call fcn.00403ec8
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00403f28
inc edi
dec bx
jne 0x406a2b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a80
lea eax, [ebp - 0xc]
call fcn.00403d8c
lea eax, [ebp - 4]
call fcn.00403d8c
ret

Function at 0x10ac000
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10ac00a
pushal
call 0x10ac010
pop ebp
sub ebp, 0x10
sub ebp, 0xcac000
jmp 0x10ac026
mov eax, 0xcac000
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a9
mov edx, 0x367fddd
xor byte [eax], dl
inc eax
dec ecx
jne 0x10ac03d
jmp 0x10ac050
push esi
adc byte [esi + 0x54], dl
loope 0x10ac033
fstp st(5)
pop esp
sbb al, 0x25
fstp st(5)
fstp st(6)
adc byte [ebp - 0x26], ah
fstp st(5)
frstor dword [edi - 0xb]
fstp st(5)
invalid
Function at 0x401310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
nop
nop
mov dword [ebp - 4], 0
xor ebx, ebx
nop
push ebp
nop
nop
pop ebp
nop
inc ecx
dec ecx
pushal
nop
nop
add eax, 1
add eax, 0xffffffff
nop
popal
nop
push ebp
nop
nop
pop ebp
nop
inc ecx
dec ecx
xor ecx, eax
nop
mov ebx, dword fs:[0x30]
nop
nop
mov ebx, dword [ebx + 0xc]
nop
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
push ebp
nop
nop
pop ebp
nop
inc ecx
dec ecx
pushal
nop
nop
add eax, 1
add eax, 0xffffffff
nop
popal
nop
push ebp
nop
nop
pop ebp
nop
inc ecx
dec ecx
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4013b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
nop
nop
nop
call fcn.004012a0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
nop
mov eax, dword [eax + esi + 0x78]
add eax, esi
nop
mov ebx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add edi, esi
add ecx, esi
add eax, esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
call fcn.004012a0
nop
test ebx, ebx
jbe 0x40148b
mov eax, dword [ebp - 0xc]
lea eax, [eax + ebx*4]
jmp 0x401404
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax - 4]
sub eax, 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
lea edi, [edx + esi]
or ecx, 0xffffffff
xor eax, eax
dec ebx
mov dword [ebp - 8], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x10], ebx
je 0x401473
mov eax, dword [ebp - 8]
xor ecx, ecx
add edx, eax
mov cl, byte [edx + esi]
mov edx, dword [ebp - 4]
sub edx, ecx
mov dword [ebp - 4], edx
pushal
mov eax, dword [ebp - 4]
ror eax, 3
ror eax, 4
mov dword [ebp - 4], eax
popal
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
or ecx, 0xffffffff
mov edx, dword [edx]
inc esi
mov dword [ebp - 8], esi
lea edi, [edx + eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
mov esi, dword [ebp + 8]
jb 0x40142d
mov ebx, dword [ebp - 0x10]
call fcn.004012a0
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x401488
test ebx, ebx
ja 0x401401
mov edi, dword [ebp - 0x14]
nop
test ebx, ebx
ja 0x401499
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
nop
call fcn.004012a0
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [edx + ebx*2]
mov eax, dword [edi + ecx*4]
add eax, esi
nop
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fe2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401288
push 0x401fd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4021b0], 0xffffffff
or dword [0x4021b4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4021ac]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4021a8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4021b8], eax
call fcn.00402113
cmp dword [0x401270], 0
jne 0x402065
push 0x402110
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004020fe
push 0x401090
push 0x40108c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4021a4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4021a0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x401088
push section..text
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401fb0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret