joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032b59
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
and dword [eax + 0x24], 0
mov eax, dword [ebp - 8]
and dword [eax + 0x28], 0
mov eax, dword [ebp - 8]
add eax, 0x28
push eax
push 0
push dword [ebp - 8]
push 0x10032be0
push 0
push 0
call fcn.10041a25
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x24], 0
je 0x10032bdb
mov eax, dword [ebp - 8]
cmp dword [eax + 0x28], 0
je 0x10032bdb
and dword [ebp - 0xc], 0
jmp 0x10032bb6
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xa
jae 0x10032bdb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
call fcn.100329bf
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10032bd9
jmp 0x10032bdb
jmp 0x10032baf
mov al, byte [ebp - 1]
leave
ret

Function at 0x10049e02
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10049ab3

Function at 0x10049e0d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10049c3d

Function at 0x100502d3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004ff50

Function at 0x1005e2ba
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1009a03c], 0
je 0x1005e31b
cmp word [0x1009a210], 0xd7b2
jne 0x1005e2e3
cmp dword [0x1009a218], 0
jbe 0x1005e2e3
mov eax, 0x1009a20c
call dword [0x1009a228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x1009805c
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 0x1005e342
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x10098020], 0
jne 0x1005e337
push 0
push 0x10098054
push 0x1009805c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x1005f71a
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 0x1005f780
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.1005e65e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.1005d71e
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x1005f76a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005f787
lea eax, [ebp - 0x10]
call fcn.1005e436
ret

Function at 0x10061b16
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.1005e48a
mov eax, ebx
call fcn.1005e8da
mov eax, dword [ebx]
call fcn.1005e68a
test eax, eax
jle 0x10061b47
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x10061b3c
pop esi
pop ebx
ret
Function at 0x10061e66
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 0x10061eb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.10062efa
test al, al
jne 0x10061ea8
cmp word [edi], 0x5a4d
jne 0x10061ea8
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x10061ea8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x10061ebe
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1006205e
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x10098230], 0
jne 0x1006213f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x100620b1
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x100620e2
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
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 SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x1006213f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1006210d
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x1006211f
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x10062139
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 0x10067b46
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, dword [0x10098ba8]
mov esi, dword [0x10098bb0]
xor eax, eax
mov dword [0x10098ba8], eax
xor eax, eax
mov dword [0x10098bb0], eax
test ebx, ebx
je 0x10067b8b
push esp
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10067b8b
mov eax, dword [0x10098bac]
mov dword [ebx], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test esi, esi
je 0x10067bb3
push esp
push 0x40
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10067bb3
mov eax, dword [0x10098bb4]
mov dword [esi], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov byte [0x10098bb8], 0
pop edx
pop esi
pop ebx
ret
Function at 0x1006919e
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x1006d4ce
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x1006d575
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [0x10098d68]
call fcn.10061b16
push dword [ebp - 8]
push 0x1006d58e
lea ecx, [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [0x10098d6c]
call fcn.1006d3d6
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.1005e74a
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.1005e88a
push eax
call fcn.1006d106
mov edi, eax
test edi, edi
je 0x1006d55a
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x1006d554
mov edx, dword [eax]
mov dword [esi], edx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push edi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006d57c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.1005e45a
ret

Function at 0x1006d83a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, eax
test esi, esi
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x1006d892
xor ebx, ebx
jmp 0x1006d88b
cmp edx, edi
jne 0x1006d88a
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push edi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1006d892
mov eax, dword [ebp - 4]
mov dword [esi + ebx*4], eax
mov byte [ebp - 5], 1
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
jmp 0x1006d892
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x1006d858
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006f746
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x1006f949
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
xor edx, edx
mov eax, dword [0x10098ce0]
call fcn.10065a8a
mov dword [0x1009a724], eax
xor edx, edx
mov eax, dword [0x10098ce4]
call fcn.10065a8a
mov dword [0x1009a728], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.1005e976
lea eax, [ebp - 8]
call fcn.1005e8e2
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.1005e8e2
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.1005e8e2
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.1005e8e2
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.1005e8e2
mov byte [eax + 4], 0x20
lea edx, [ebp - 0x10]
mov eax, dword [0x10098d54]
call fcn.10061b16
push dword [ebp - 0x10]
push 0x1006f962
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.100616c2
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.1005e74a
mov eax, dword [ebp - 8]
call fcn.1005e88a
push eax
push 0
push 0
call fcn.1005fbb6
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x1006f926
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x1009a718], edi
mov eax, dword [ebp - 4]
mov dword [0x1009a71c], eax
cmp dword [0x1009a724], 0
je 0x1006f86f
cmp dword [0x1009a728], 0
jne 0x1006f8f5
mov dl, 1
mov eax, dword [0x10098c7c]
call fcn.10065b96
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x1006f90a
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x1006f90a
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x1006f90a
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x1006f90a
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x1006f90a
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1006f90a
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x1009a720], edx
mov edx, 0x1006f6f6
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x1006f90a
push 0x1006f6a2
push 0xffffffffffffffff
call dword [0x1009a724]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
test bl, bl
jne 0x1006f926
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
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006f950
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.1005e45a
lea eax, [ebp - 8]
call fcn.1005e436
ret
Function at 0x1006f966
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 [0x1009a724], 0
je 0x1006f97e
cmp dword [0x1009a728], 0
jne 0x1006f9bf
mov dl, 1
mov eax, dword [0x10098c7c]
call fcn.10065b96
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 0x1006f9c6
mov eax, dword [0x1009a720]
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
jmp 0x1006f9c6
push eax
call dword [0x1009a728]
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
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x10075ec2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor edx, edx
xor eax, eax
call fcn.10075d4e
pop ecx
test al, al
jne 0x10075f7d
push 0x104
lea eax, [ebp - 0x212]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea eax, [ebp - 0x212]
mov dl, 1
call fcn.10075d4e
pop ecx
test al, al
jne 0x10075f7d
push 0x104
lea eax, [ebp - 0x212]
push eax
mov eax, dword [0x1009a658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea eax, [ebp - 0x212]
mov dl, 1
call fcn.10075d4e
pop ecx
test al, al
jne 0x10075f7d
lea eax, [ebp - 0x212]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea eax, [ebp - 0x212]
xor edx, edx
call fcn.10075d4e
pop ecx
test al, al
jne 0x10075f7d
push 0x104
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea eax, [ebp - 0x212]
xor edx, edx
call fcn.10075d4e
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10076a56
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x10076aed
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.100769a2
test al, al
je 0x10076aed
cmp word [ebp - 2], 0x5a4d
jne 0x10076aed
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.100769a2
test al, al
je 0x10076aed
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.100769a2
test al, al
je 0x10076aed
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x10076aed
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x10076af1
xor eax, eax
jmp 0x10076af3
mov al, 1
test al, al
je 0x10076b10
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x1007b962
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 0x1007bb4c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x10099d0c], 0
jne 0x1007bb31
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x1007bb2a
xor eax, eax
push ebp
push 0x1007bb23
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 0x1007bb0c
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
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 0x1007bb06
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x10098d40]
call fcn.10061b16
mov eax, dword [ebp - 0x24]
call fcn.1005e88a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1007ba3a
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x10098d44]
call fcn.10061b16
mov eax, dword [ebp - 0x28]
call fcn.1005e88a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1007ba6d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x10098d48]
call fcn.10061b16
mov eax, dword [ebp - 0x2c]
call fcn.1005e88a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1007baa0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x1007baf2
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 0x1007babd
cmp eax, dword [ebp - 0x10]
je 0x1007baee
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 0x1007bad2
cmp eax, dword [ebp - 0x18]
je 0x1007baee
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 0x1007bae7
cmp eax, dword [ebp - 0x20]
je 0x1007baee
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x1007baaa
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
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007bb2a
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
mov byte [0x10099d0c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007bb53
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.1005e45a
ret
Function at 0x4013b2
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41a318]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a31c]
mov dword [ebp - 0x2c], eax
call fcn.004013ab
mov esi, dword [ebp - 0x10]
mov ecx, dword [0x41a320]
add esi, 0x23f
mov eax, dword [0x41a324]
push 0x20
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x4c1628], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x4c1624]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x4c1628], 0x3eb
mov dword [0x4c1624], eax
mov eax, dword [0x4c10b0]
cmove eax, dword [ebp - 0x1c]
mov dword [0x4c10b0], eax
lea eax, [esi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [0x4c1620], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x1c]
cmp dword [0x4c1628], 0xb03
mov dword [ebp - 4], eax
jne 0x4014df
push str.Poh_pabatosipixalilasexamupopajohija_xopitotazucepewifodufalejilemi_karemabuzaniyuzavegusaribufate
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
add esi, 0x61c88647
mov dword [ebp - 0x10], esi
dec edi
jne 0x401404
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d337
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407aeb
mov dword [ebp - 0x14], eax
cmp dword [0x47bdbc], esi
jne 0x40d42a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d50a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d50a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d50a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47bdbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47bdc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47bdc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bdcc], eax
test eax, eax
je 0x40d427
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bdc8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d44f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d442
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d464
push 4
pop eax
jmp 0x40d50c
cmp dword [ebp - 0x14], esi
je 0x40d464
push dword [0x47bdbc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d449
mov eax, dword [0x47bdc8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4c2
cmp dword [0x47bdcc], edi
je 0x40d4c2
push eax
call ebx
push dword [0x47bdcc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4c2
test eax, eax
je 0x40d4c2
call ecx
test eax, eax
je 0x40d4b7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d4b7
test byte [ebp - 8], 1
jne 0x40d4c2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4f2
mov eax, dword [0x47bdc0]
cmp eax, edi
je 0x40d4ef
push eax
call ebx
test eax, eax
je 0x40d4ef
call eax
mov esi, eax
test esi, esi
je 0x40d4ef
mov eax, dword [0x47bdc4]
cmp eax, edi
je 0x40d4ef
push eax
call ebx
test eax, eax
je 0x40d4ef
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47bdbc]
call ebx
test eax, eax
je 0x40d50a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d50c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404010
mov esp, ebp
pop ebp
ret