joyce8/EMBER2024-capa huggingface dataset:
Function at 0x94a1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0094a140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0094a140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0094a140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0094a140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x94abfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x94ac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x95c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x94ac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x94ac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x404ea0
Capabilities:
Create directory
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 8]
push ecx
push 0x411608
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0xffffffff
je 0x404fcf
push 0x411614
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x404f21
push 0x411618
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x404f23
jmp 0x404f9c
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x411620
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x41162c
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 0x458]
and ecx, 0x10
je 0x404f86
lea edx, [ebp - 0x870]
push edx
lea eax, [ebp - 0x668]
push eax
call fcn.00404ea0
add esp, 8
jmp 0x404f9c
push 9
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0x668]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x458]
push eax
mov ecx, dword [ebp - 0x45c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404ef5
mov edx, dword [ebp - 0x45c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esp, ebp
pop ebp
ret
Function at 0x58ceb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x58cf10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x58cf07
mov edx, dword [0x5f29c0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x58cefb
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x58cee0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x58cf09
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x591320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x59138c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x5913d3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x5913d1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x5913d5
jmp 0x591383
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5993b0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x5e4310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.005948c0
add esp, 4
movzx edx, al
test edx, edx
je 0x599441
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.005aaf30
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10001
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x59943f
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp + 0xc]
jne 0x59943f
jmp 0x599441
jmp 0x5993c3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ab685
mov esp, ebp
pop ebp
ret
Function at 0x59c2f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c02b7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5e4310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0059aa10
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0059aa10
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0059aa10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0059bcf0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0059bcf0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0059bcf0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x59c530
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0367
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5e4310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0059a8d0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0059a8d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0059a8d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0059bd10
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0059bd10
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0059bd10
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5a64ce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x5a6553
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.005aafb0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x5a6516
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x5a6538
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x5a65ae
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.005a629c
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x5a659a
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x5a65ae
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x5a64d7
pop esi
pop ebx
leave
ret
Function at 0x5ab685
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e4310]
jne 0x5ab68f
repz ret
jmp fcn.005b1e57

Function at 0x5b3bcd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5e4eb0]
je 0x5b3be8
inc edi
cmp edi, 0x17
jb 0x5b3bd9
cmp edi, 0x17
jae 0x5b3d68
push ebp
push 3
call fcn.005b8fef
cmp eax, 1
pop ecx
je 0x5b3d34
push 3
call fcn.005b8fef
test eax, eax
pop ecx
jne 0x5b3c1c
cmp dword [0x5e4450], 1
je 0x5b3d34
cmp ebx, 0xfc
je 0x5b3d67
push 0x5eb2e4
mov ebx, 0x314
push ebx
mov ebp, 0x5f40f0
push ebp
call fcn.005b3b68
add esp, 0xc
test eax, eax
je 0x5b3c52
push esi
push esi
push esi
push esi
push esi
call fcn.005ad8f3
add esp, 0x14
push 0x104
mov esi, 0x5f4109
push esi
push 0
mov byte [0x5f420d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5b3c96
push 0x5eb2cc
push 0x2fb
push esi
call fcn.005b3b68
add esp, 0xc
test eax, eax
je 0x5b3c96
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.005ad8f3
add esp, 0x14
push esi
call fcn.005ad530
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5b3cdb
push esi
call fcn.005ad530
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5f4404
push 0x5eb2c8
sub ecx, eax
push ecx
push eax
call fcn.005b7711
add esp, 0x14
test eax, eax
je 0x5b3cdb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.005ad8f3
add esp, 0x14
jmp 0x5b3cdd
xor esi, esi
push 0x5e5e14
push ebx
push ebp
call fcn.005b76a0
add esp, 0xc
test eax, eax
je 0x5b3cfd
push esi
push esi
push esi
push esi
push esi
call fcn.005ad8f3
add esp, 0x14
push dword [edi*8 + 0x5e4eb4]
push ebx
push ebp
call fcn.005b76a0
add esp, 0xc
test eax, eax
je 0x5b3d1f
push esi
push esi
push esi
push esi
push esi
call fcn.005ad8f3
add esp, 0x14
push 0x12010
push 0x5eb2a0
push ebp
call fcn.005b8e32
add esp, 0xc
jmp 0x5b3d67
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5b3d67
cmp ebp, 0xffffffff
je 0x5b3d67
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5e4eb4]
push dword [esi]
call fcn.005ad530
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5b8e32
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005b2035
xor ebx, ebx
cmp dword [0x5f4790], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5b8f08
push 0x5ec3d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5b8fe8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5ec3c8
push edi
call esi
cmp eax, ebx
je 0x5b8fe8
push eax
call fcn.005b1fc7
mov dword [esp], 0x5ec3b8
push edi
mov dword [0x5f4790], eax
call esi
push eax
call fcn.005b1fc7
mov dword [esp], 0x5ec3a4
push edi
mov dword [0x5f4794], eax
call esi
push eax
call fcn.005b1fc7
mov dword [0x5f4798], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005ae3a5
test eax, eax
pop ecx
pop ecx
je 0x5b8ed6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005ad8f3
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5b8f08
push 0x5ec388
push edi
call esi
push eax
call fcn.005b1fc7
cmp eax, ebx
pop ecx
mov dword [0x5f47a0], eax
je 0x5b8f08
push 0x5ec370
push edi
call esi
push eax
call fcn.005b1fc7
pop ecx
mov dword [0x5f479c], eax
mov eax, dword [0x5f479c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5b8f8d
cmp dword [0x5f47a0], ecx
je 0x5b8f8d
push eax
call fcn.005b203e
push dword [0x5f47a0]
mov esi, eax
call fcn.005b203e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5b8f8d
cmp edi, ebx
je 0x5b8f8d
call esi
cmp eax, ebx
je 0x5b8f5a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5b8f5a
test byte [ebp - 0x18], 1
jne 0x5b8f8d
lea eax, [ebp - 0x10]
push eax
call fcn.005ae3dc
test eax, eax
pop ecx
je 0x5b8f75
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005ad8f3
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5b8f84
or dword [ebp + 0x10], 0x200000
jmp 0x5b8fc8
or dword [ebp + 0x10], 0x40000
jmp 0x5b8fc8
mov eax, dword [0x5f4794]
cmp eax, dword [ebp - 8]
je 0x5b8fc8
push eax
call fcn.005b203e
cmp eax, ebx
pop ecx
je 0x5b8fc8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5b8fc8
mov eax, dword [0x5f4798]
cmp eax, dword [ebp - 8]
je 0x5b8fc8
push eax
call fcn.005b203e
cmp eax, ebx
pop ecx
je 0x5b8fc8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5f4790]
call fcn.005b203e
cmp eax, ebx
pop ecx
je 0x5b8fe8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5b8fea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xe38058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e381a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe3807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe3806a
add dl, dl
jne 0xe38089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe380dc
xor eax, eax
add dl, dl
jne 0xe38096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe3817d
add dl, dl
jne 0xe380a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe380b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe380bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe380c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe380d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe38075
mov eax, 1
add dl, dl
jne 0xe380ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe380f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe380e1
sub eax, ebx
mov ebx, 1
jne 0xe38128
mov ecx, 1
add dl, dl
jne 0xe3810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe38119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe38105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe38075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe3813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe3814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe38136
cmp eax, 0x7d00
jae 0xe3816d
cmp eax, 0x500
jb 0xe38168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe38075
cmp eax, 0x7f
ja 0xe38170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe38075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe3819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xe38075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401020
Capabilities:
Move file

Disassembly:
mov eax, dword [0x408eb8]
sub esp, 0x104
test eax, eax
je 0x401076
push str..disable
push 0x408db0
lea eax, [esp + 8]
push str._s_s
push eax
call fcn.00401e70
add esp, 0x10
lea ecx, [esp]
push 0x408db0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40106c
push str.Unable_to_put_back_SafeDiscShim__r_n
call fcn.00401000
add esp, 4
mov dword [0x408eb8], 0
add esp, 0x104
ret

Function at 0x401080
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x3e8
lea eax, [esp + 0x3f0]
lea edx, [esp]
push eax
push ecx
push edx
call fcn.00401fc4
add esp, 0xc
lea eax, [esp]
push 0x10
push str.SafeDiscLoader
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00401020
push 0xffffffffffffffff
call fcn.00401eef

Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
and eax, 0xffff
push 0x408130
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4010ec
push str.Could_not_LoadResource
call fcn.00401080
add esp, 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [edx], eax
ret