joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5115b0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x56c010
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5bafe0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
cmp eax, 1
jne 0x51160b
test edi, edi
je 0x511604
mov dword [edi], 0
call fcn.00513f00
mov dword [edi + 4], eax
xor al, al
jmp 0x51170a
cmp eax, 3
je 0x511694
cmp eax, 0xb
je 0x511694
push 0x19
push str.boost::filesystem::remove
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.00402e40
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], 1
jb 0x511650
mov eax, dword [esi]
jmp 0x511652
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
lea ecx, [esp + 0x10]
push ecx
sete dl
push edi
movzx eax, dl
push esi
push eax
call fcn.00511470
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x51168c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0052b74a
add esp, 4
test bl, bl
je 0x511708
xor al, al
jmp 0x51170a
push 0x19
xor ebx, ebx
push str.boost::filesystem::remove
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00402e40
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], ebx
jb 0x5116c4
mov eax, dword [esi]
jmp 0x5116c6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
lea edx, [esp + 0x2c]
push edx
test al, al
sete al
push edi
movzx ecx, al
push esi
push ecx
call fcn.00511470
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x511700
mov edx, dword [esp + 0x2c]
push edx
call fcn.0052b74a
add esp, 4
test bl, bl
jne 0x511604
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0052b755
add esp, 0x48
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x14], 8
push edi
jb 0x511860
mov eax, dword [ebx]
jmp 0x511862
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x511888
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.00511730
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x51189f
mov dword [esi], 0
call fcn.00513f00
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x5118d2
push ebx
call fcn.00510520
add esp, 4
test al, al
je 0x5118ca
mov edx, edi
and dl, 0x10
movzx eax, dl
neg eax
sbb eax, eax
and eax, 7
pop edi
add eax, 4
pop ebx
ret
pop edi
mov eax, 9
pop ebx
ret
mov eax, edi
and eax, 0x10
or eax, 0x20
pop edi
shr eax, 4
pop ebx
ret
Function at 0x5119e0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x56c048
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bafe0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
push 0x19
xor ebx, ebx
push str.boost::filesystem::rename
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00402e40
mov eax, 8
mov dword [esp + 0x74], ebx
cmp dword [esi + 0x14], eax
jb 0x511a58
mov ecx, dword [esi]
jmp 0x511a5a
mov ecx, esi
cmp dword [edi + 0x14], eax
jb 0x511a63
mov eax, dword [edi]
jmp 0x511a65
mov eax, edi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x511a84
cmp ebp, ebx
je 0x511ac4
mov dword [ebp], ebx
call fcn.00513f00
mov dword [ebp + 4], eax
jmp 0x511ac4
call fcn.00513f00
cmp ebp, ebx
jne 0x511ab6
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push esi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
call fcn.005110a0
push 0x5a53e0
lea ecx, [esp + 0x34]
push ecx
call fcn.00532abb
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
mov dword [ebp + 4], esi
cmp dword [esp + 0x28], 0x10
jb 0x511ad8
mov edx, dword [esp + 0x14]
push edx
call fcn.0052b74a
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0052b755
add esp, 0x64
ret
Function at 0x511b00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x56c088
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x5bafe0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jb 0x511b4f
mov eax, dword [edi]
jmp 0x511b51
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x511b71
push esi
push edi
push ebx
call fcn.00511730
add esp, 0xc
jmp 0x511cb0
test eax, 0x400
je 0x511c7e
cmp dword [edi + 0x14], 8
jb 0x511b86
mov esi, dword [edi]
jmp 0x511b88
mov esi, edi
mov ebx, 7
xor eax, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x48], eax
call fcn.00513000
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x511bb0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00406420
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 1
jae 0x511be1
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 3
jb 0x511c15
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0052b74a
add esp, 4
mov dword [esp + 0x34], ebx
xor edx, edx
or ebx, 0xffffffff
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, ebx
jne 0x511c46
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.00511730
add esp, 0xc
mov eax, esi
jmp 0x511cb2
push edi
call fcn.00510520
add esp, 4
mov dword [esp + 0x48], ebx
push esi
test al, al
jne 0x511c6c
mov edi, dword [esp + 0x18]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x511cb2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x511c94
mov dword [esi], 0
call fcn.00513f00
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test al, 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 3
jne 0x511cac
mov dword [esp + 0x10], 2
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0052b755
add esp, 0x3c
ret
Function at 0x511f60
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x56c118
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bafe0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x8c]
jb 0x511faa
mov eax, dword [edi]
jmp 0x511fac
mov eax, edi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x511fcf
cmp esi, ebx
je 0x511fc8
mov dword [esi], ebx
call fcn.00513f00
mov dword [esi + 4], eax
mov al, 1
jmp 0x51206d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp + 0x14], ebx
call fcn.00513f00
mov dword [esp + 0x18], eax
cmp ebp, 0xb7
jne 0x512011
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.00511b00
add esp, 0xc
cmp dword [eax], 3
jne 0x512011
cmp esi, ebx
je 0x51206b
mov dword [esi], ebx
call fcn.00513f00
jmp 0x512068
cmp esi, ebx
jne 0x512061
push 0x23
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00402e40
mov dword [esp + 0x80], ebx
call fcn.00513f00
push eax
push ebp
push edi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00510fa0
push 0x5a53e0
lea eax, [esp + 0x40]
push eax
call fcn.00532abb
call fcn.00513f00
mov dword [esi], ebp
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0052b755
add esp, 0x70
ret

Function at 0x5129b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56c270
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x5bafe0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x585b04
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.00405e10
mov byte [esp + 0x38], 1
call fcn.0050f59d
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.00405ee0
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x513380
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x56c410
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x5bafe0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x40]
mov eax, 7
xor edx, edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], esi
mov word [esi], dx
mov dword [esp + 0x24], eax
xor eax, eax
mov word [esp + 0x10], ax
mov eax, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], edx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x5133e6
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402850
mov byte [esp + 0x38], 1
call fcn.00513000
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00409810
add esp, 0xc
cmp dword [esp + 0x24], 8
jb 0x51342f
mov edx, dword [esp + 0x10]
push edx
call fcn.0052b74a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0052b755
add esp, 0x30
ret 8
Function at 0x515dc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x56c820
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bafe0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x5c2aa8]
test eax, eax
jne 0x515df4
xor esi, esi
jmp 0x515dfd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x515e47
cmp dword [esi + 0x14], 0
jne 0x515e89
cmp dword [esi + 0x10], 0
jne 0x515e90
push 0x514d50
push 0x5c2aa0
call fcn.00515100
mov eax, dword [0x5c2aa8]
add esp, 8
test eax, eax
je 0x515f3d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x515e75
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x515e75
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x515ed0
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x515ebe
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x515e90
cmp dword [esi + 0x14], 0
je 0x515e19
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x515ef5
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x515f26
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x515f26
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x515f26
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x515eda
jmp 0x515e13
lea ecx, [esp + 0x18]
call fcn.0052b7e4
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.0041cc20
int3
Function at 0x516040
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x56c878
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5bafe0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x515f80
push 0
push 0
call fcn.00531ae6
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x5160ab
lea ecx, [esp + 0x10]
call fcn.0052b7e4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0041cc20
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x5160ce
cmp eax, 0xffffffff
je 0x5160ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x518960
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
xor ecx, ecx
cmp eax, edx
je 0x51898f
push esi
push edi
mov esi, ecx
mov edi, ecx
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [eax]
lea esi, [esi + edi - 0x61c88647]
inc eax
xor ecx, esi
cmp eax, edx
jne 0x518970
pop edi
pop esi
mov eax, 0x4e25
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add edx, eax
shr edx, 0x1e
imul edx, edx, 0x7fffd8ee
mov eax, ecx
sub eax, edx
add eax, 0x2710
ret
Function at 0x52b2a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov eax, 0x591901
mov dword [esp], eax
mov dword [esp + 4], 0x5879c4
mov dword [esp + 8], 0x5941f4
mov dword [esp + 0xc], 0x5879c0
mov dword [esp + 0x10], 0x5879bc
mov dword [esp + 0x14], 0x5979c4
mov dword [esp + 0x18], 0x57ce48
mov dword [esp + 0x1c], 0x5879b8
mov dword [esp + 0x20], 0x5977e4
mov dword [esp + 0x24], 0x59c5cc
mov dword [esp + 0x28], 0x594228
mov dword [esp + 0x2c], 0x5879b4
mov dword [esp + 0x30], 0x5843dc
mov dword [esp + 0x34], 0x5879b0
mov dword [esp + 0x38], 0x57d7a8
mov dword [esp + 0x3c], 0x5879ac
mov dword [esp + 0x40], 0x5879a8
mov dword [esp + 0x44], str.0123456789
mov dword [esp + 0x48], 0x5876b0
mov dword [esp + 0x4c], 0x58776c
mov dword [esp + 0x50], 0x587998
mov dword [esp + 0x54], 0x59423c
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x587994
mov dword [esp + 0x64], 0x587990
mov dword [esp + 0x68], 0x597a5c
mov dword [esp + 0x6c], 0x5990b0
mov dword [esp + 0x70], 0x583abc
mov dword [esp + 0x74], 0x5876a4
mov dword [esp + 0x78], 0x587684
mov dword [esp + 0x7c], 0x57d7a4
mov dword [esp + 0x80], 0x587670
mov dword [esp + 0x84], 0x587668
mov dword [esp + 0x88], 0x587664
mov dword [esp + 0x8c], 0x5876ac
mov dword [esp + 0x90], 0x57d760
mov dword [esp + 0x94], 0x5851cc
mov dword [esp + 0x98], 0x591d5c
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x591d58
mov dword [esp + 0xc0], 0x587738
mov dword [esp + 0xc4], 0x58771c
mov dword [esp + 0xc8], 0x585b04
mov dword [esp + 0xcc], str.ZYXWVUTSRQPONMLKJIHGFDBA
mov dword [esp + 0xd0], 0x587760
mov dword [esp + 0xd4], 0x581914
mov dword [esp + 0xd8], 0x58767c
mov dword [esp + 0xdc], 0x58773c
mov dword [esp + 0xe0], 0x587744
mov dword [esp + 0xe4], 0x58798c
mov dword [esp + 0xe8], 0x587750
mov dword [esp + 0xec], 0x587734
cmp cl, 0x3c
jae 0x52b4bd
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret

Function at 0x52b755
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5bafe0]
jne 0x52b75f
repz ret
jmp fcn.0053543f
Function at 0x5448bf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bafe0]
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.00536426
and dword [ebp - 0x14], 0
cmp dword [0x5c39b4], 0
mov dword [ebp - 0x18], eax
jne 0x544972
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x544a1a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x58a85c
push ebx
call edi
test eax, eax
je 0x544a1a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5c39b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5c39b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5c39bc], eax
call edi
push eax
call esi
mov dword [0x5c39c4], eax
test eax, eax
je 0x544972
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5c39c0], eax
mov eax, dword [0x5c39c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5449cb
cmp dword [0x5c39c4], ecx
je 0x5449cb
push eax
call esi
push dword [0x5c39c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5449cb
test ebx, ebx
je 0x5449cb
call edi
test eax, eax
je 0x5449c2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5449c2
test byte [ebp - 8], 1
jne 0x5449cb
or dword [ebp + 0x10], 0x200000
jmp 0x5449fe
mov eax, dword [0x5c39b8]
cmp eax, dword [ebp - 0x18]
je 0x5449fe
push eax
call esi
test eax, eax
je 0x5449fe
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5449fe
mov eax, dword [0x5c39bc]
cmp eax, dword [ebp - 0x18]
je 0x5449fe
push eax
call esi
test eax, eax
je 0x5449fe
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c39b4]
call esi
test eax, eax
je 0x544a1a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x544a1c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b755
leave
ret

Function at 0x54a8a0
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
mov eax, dword [eax + 0x1f0]
test cx, cx
je 0x54a8c6
mov edi, edi
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x54a8b0
ret
Function at 0x100020a0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x10048100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x3f4], eax
call fcn.10013c00
add esp, 4
test eax, eax
je 0x1000217c
push esi
add eax, 0x158
push 0x3e8
push eax
call fcn.10022030
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100020f0
sub eax, edx
mov esi, 0x1505
push edi
sar eax, 1
xor edi, edi
add eax, eax
je 0x1000213c
nop dword [eax + eax]
dec eax
lea ebx, [ebx + 1]
mov dword [ebp - 0x3f0], eax
mov ecx, edi
mov eax, esi
shld edi, esi, 5
shl esi, 5
add esi, eax
movzx eax, byte [ebx - 1]
cdq
adc edi, ecx
add esi, eax
mov eax, dword [ebp - 0x3f0]
adc edi, edx
test eax, eax
jne 0x10002110
push edi
push esi
push dword [ebp - 0x3f4]
lea eax, [ebp - 0x3ec]
push str.LUNA_NOTIFY._d._llu
push eax
call fcn.100027a0
add esp, 0x14
lea eax, [ebp - 0x3ec]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d2d8
mov esp, ebp
pop ebp
ret
Function at 0x10004c40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038073
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10048100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x10004d3a
test dl, 0x10
jne 0x10004d3a
mov al, 1
jmp 0x10004d3c
xor al, al
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
mov ebx, dword [ecx + 4]
mov edx, ebx
mov esi, dword [esi + 0x18]
sar edx, 3
cmp esi, edx
jae 0x10004d60
lea eax, [esi*8]
mov dword [ecx + 4], eax
jmp 0x10004d93
jbe 0x10004d93
mov eax, dword [ecx + 8]
sar eax, 3
cmp esi, eax
jbe 0x10004d78
lea eax, [ebp + 0x17]
push eax
push esi
call fcn.10003fa0
jmp 0x10004d93
sub esi, edx
je 0x10004d90
shl esi, 3
push esi
push 0
push ebx
call fcn.1001ef20
add esp, 0xc
lea ecx, [edi + 0x40]
add ebx, esi
mov dword [ecx + 4], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c