joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57a8e6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x57a928
cmp eax, 2
je 0x57a928
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x57aa40
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status

Disassembly:
push 0x70
push 0x6bb120
call fcn.005e3a40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 0x7530
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
xor edi, edi
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push dword [0x6ccd9c]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call esi
test eax, eax
jne 0x57ab95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x57aa96
xor eax, eax
jmp 0x57ab97
push dword [ebp - 0x44]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x50], eax
cmp eax, edi
je 0x57aa8f
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push eax
push ebx
push dword [0x6ccd9c]
call esi
test eax, eax
jne 0x57aae0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6c6e10
call fcn.005e3df0
add esp, 0xc
jmp 0x57aa8f
mov dword [ebp - 0x48], edi
mov esi, dword [ebp - 0x48]
cmp esi, dword [ebp - 0x4c]
jae 0x57ab89
imul esi, esi, 0x24
add esi, dword [ebp - 0x50]
push 9
pop ecx
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push 0x24
push dword [ebp - 0x80]
push dword [0x6ccda0]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x57aacb
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x57aacb
cmp dword [ebp - 0x3c], ebx
je 0x57ab6b
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x44]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x57aacb
cmp dword [ebp - 0x3c], ebx
je 0x57ab6b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x58]
jbe 0x57ab2a
jmp 0x57aacb
and dword [ebp - 4], 0
call fcn.0057ab7f
inc dword [ebp - 0x48]
jmp 0x57aae3
mov dword [ebp - 4], 0xfffffffe
call fcn.0057aba0
mov eax, ebx
call fcn.005e3a88
ret
Function at 0x57abb3
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push 0xf003f
push 0
push dword [0x6ccda4]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x6ccda0], eax
test eax, eax
jne 0x57ac03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.005dcd3f
pop ecx
pop ecx
jmp 0x57ad8a
push 0x2c
push 0x64584c
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [0x6ccd9c], eax
test eax, eax
jne 0x57ac3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___d__n
call fcn.005dcd3f
pop ecx
pop ecx
push dword [0x6ccda0]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x57ad8a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [ebp - 0x30]
push ecx
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call esi
test eax, eax
jne 0x57ac6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.005dcd3f
pop ecx
jmp 0x57ac7c
cmp dword [ebp - 0x24], 1
jne 0x57ac82
push str.Service_is_already_stopped._n
call fcn.005dcd3f
pop ecx
jmp 0x57ad73
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x57ace1
push str.Service_stop_pending..._n
call fcn.005dcd3f
mov eax, dword [ebp - 0x10]
pop ecx
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x57acb2
mov ecx, 0x2710
cmp eax, ecx
jbe 0x57acb4
mov eax, ecx
push eax
call edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [0x6ccd9c]
call esi
test eax, eax
je 0x57ad10
cmp dword [ebp - 0x24], 1
je 0x57ad24
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x57ad2b
cmp dword [ebp - 0x24], 3
je 0x57ac8b
call fcn.0057aa40
lea eax, [ebp - 0x28]
push eax
push 1
push dword [0x6ccd9c]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x57ad61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___d__n
jmp 0x57ad1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.005dcd3f
pop ecx
jmp 0x57ad71
push str.Service_stopped_successfully._n
jmp 0x57ad6c
push str.Service_stop_timed_out._n
jmp 0x57ad6c
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [0x6ccd9c]
call esi
test eax, eax
je 0x57ad10
cmp dword [ebp - 0x24], 1
je 0x57ad67
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x57ad97
cmp dword [ebp - 0x24], 1
jne 0x57ad32
push str.Service_stopped_successfully_n
call fcn.005dcd3f
pop ecx
pop edi
push dword [0x6ccd9c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x6ccda0]
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005dcf8a
leave
ret
push str.Wait_timed_out_n
jmp 0x57ad6c
Function at 0x57afe6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, str.RemComSvc.exe
push ebx
push dword [0x6ccda4]
lea eax, [ebp - 0x108]
push str._sADMIN_System32_s
push eax
call fcn.005dd5b8
lea eax, [ebp - 0x108]
push eax
mov edi, str.Going_to_delete_the_service_:__s_n
push edi
call fcn.0057af2f
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
jne 0x57b084
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_cleanup_:_:__d_n
mov dword [ebp - 0x210], eax
call fcn.0057af2f
cmp dword [ebp - 0x210], 5
pop ecx
pop ecx
jne 0x57b08f
call fcn.0057abb3
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x57b08f
push str.Service_stoped_and_delted_n
jmp 0x57b089
push str.Successfully_deleted........._n
call fcn.0057af2f
pop ecx
push ebx
push dword [0x6ccda4]
lea eax, [ebp - 0x20c]
push str._sADMIN_SysWOW64_s
push eax
call fcn.005dd5b8
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0057af2f
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x57b0f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.Failed_to_cleanup_:_:__d_n
call fcn.0057af2f
pop ecx
pop ecx
cmp edi, 5
jne 0x57b102
call fcn.0057abb3
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x57b102
push str.Service_stoped_and_delted_n
jmp 0x57b0fc
push str.Successfully_deleted........._n
call fcn.0057af2f
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005dcf8a
leave
ret
Function at 0x57bae0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push ecx
push eax
lea eax, [ebp - 0x108]
push 0x6457a8
push eax
call fcn.005dd5b8
xor ebx, ebx
add esp, 0x10
lea eax, [ebp - 0x108]
cmp dword [ebp + 0x10], ebx
je 0x57bc41
mov dword [ebp - 0x114], eax
mov eax, dword [0x6d0eac]
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x10c], ebx
cmp eax, ebx
jne 0x57bb56
push str.Password_is_NULL_hence_the_conection_establishment_skipped_n
call fcn.0057af2f
pop ecx
push 0x56
pop eax
jmp 0x57bc58
push ebx
push dword [0x6d0eb0]
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, ebx
je 0x57bb83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EstablishConnection__:_WNetAddConnection2_is_Failed:__d_n
call fcn.0057af2f
pop ecx
pop ecx
mov eax, esi
sub eax, 5
je 0x57bb9f
sub eax, 0x51
je 0x57bb9f
sub eax, 0x46d
je 0x57bb9f
sub eax, 0x6b
jne 0x57bc4b
cmp dword [0x6d0eb0], ebx
je 0x57bc4b
cmp dword [0x6d0eac], ebx
jne 0x57bc4b
push str.Invalid_password_n_n
mov esi, 0x6aa570
push esi
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e3085
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e22df
push 1
call fcn.0057b277
add esp, 0x14
push str.Connecting_to_remote_service_...
push esi
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e3085
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e22df
add esp, 0x10
push ebx
push dword [0x6d0eb0]
lea eax, [ebp - 0x128]
push dword [0x6d0eac]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, ebx
je 0x57bc56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EstablishConnection__:_WNetAddConnection2_is_Failed:__d_n
call fcn.0057af2f
pop ecx
pop ecx
jmp 0x57bc4b
push ebx
push ebx
push eax
call sub.MPR.dll_WNetCancelConnection2A
mov esi, eax
cmp esi, ebx
je 0x57bc56
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005dcf8a
leave
ret
Function at 0x582f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x63f8a8
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, ecx
cmp dword [esi + 0x58], 0
jne 0x582f85
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
mov eax, dword [esi + 0x64]
push ebx
push ebp
shr eax, 1
xor ebp, ebp
push edi
mov dword [esp + 0x10], eax
cmp dword [esp + 0x7c], ebp
jl 0x58300b
jg 0x582fa1
cmp dword [esp + 0x78], ebp
jbe 0x58300b
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
sub edi, ebp
cmp edi, eax
jbe 0x582fb1
mov edi, eax
mov eax, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x50]
push 0
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push edx
mov edx, dword [esp + 0x80]
xor ebx, ebx
push ebx
push edi
add edx, ebp
push edx
call eax
add ebp, edi
cmp edx, ebx
jl 0x582ffb
jg 0x582fdf
cmp eax, ebx
jbe 0x582ffb
mov ecx, dword [esi + 0x68]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x58]
call fcn.00582c60
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp dword [edx + eax + 0xc], ebx
jne 0x583022
xor eax, eax
cmp eax, dword [esp + 0x7c]
jl 0x582fa1
jg 0x58300b
cmp ebp, dword [esp + 0x78]
jb 0x582fa1
mov ecx, dword [esp + 0x64]
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
push 0x15
push str.Output_stream_failure
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00573a6d
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x74], ebx
call fcn.00608140
push 0x6bb9a0
lea ecx, [esp + 0x38]
push ecx
call fcn.005dcab3
int3
Function at 0x583480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x63f9ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
cmp dword [esp + 0x30], 0
mov dword [esp + 0xc], edi
mov esi, 1
je 0x5834d7
mov dword [edi], 0x647308
mov dword [edi + 0x78], 0x647300
mov dword [edi + 0x80], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x18], 0
mov dword [esp + 8], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, edi
call fcn.005831d0
mov ecx, dword [edi + 0x78]
mov edx, dword [ecx + 4]
lea eax, [edi + 0x78]
mov dword [eax + edx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov ecx, dword [eax]
mov dword [esp + 0x18], esi
mov esi, dword [ecx + 4]
add esi, eax
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.00572517
lea edx, [edi + 8]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], 0
call fcn.00573746
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x583549
mov eax, dword [esi + 0xc]
or eax, 4
push 0
push eax
mov ecx, esi
call fcn.0057243b
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.Poco::Crypto::CryptoOutputStream.0
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14

Function at 0x587a90
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
cmp ecx, 0
je 0x587ac3
mov dl, byte [esi]
lea esi, [esi + 1]
xor dl, byte [edi]
lea edi, [edi + 1]
or al, dl
dec ecx
jne 0x587aab
neg eax
shr eax, 0x1f
pop edi
pop esi
ret
Function at 0x613310
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 4]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ecx
ret 0xc

Function at 0x6143b0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6418a8
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x614424
push 0x22
push str.cannot_allocate_thread_context_key
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
call fcn.00573a6d
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 0
call fcn.00607180
push 0x6be598
lea ecx, [esp + 0x24]
push ecx
call fcn.005dcab3
mov ecx, dword [esp + 0x50]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret

Function at 0x6144e0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x6418f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push esi
lea eax, [esp + 8]
push eax
mov esi, ecx
mov ecx, dword [esp + 0xb8]
mov edx, dword [esi + 0x14]
xor ebx, ebx
push ebx
push esi
push ecx
push edx
push ebx
call fcn.00636c70
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
cmp eax, ebx
jne 0x614570
push 0x14
push str.cannot_create_thread
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00573a6d
push ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xb4], ebx
call fcn.00607180
push 0x6be598
lea eax, [esp + 0x48]
push eax
call fcn.005dcab3
mov esi, dword [esi + 0x10]
cmp esi, ebx
je 0x6145cc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x6145cc
push 0x1a
push str.cannot_set_thread_priority
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.00573a6d
push ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0xb4], 1
call fcn.00607180
push 0x6be598
lea edx, [esp + 0x78]
push edx
call fcn.005dcab3
mov ecx, dword [esp + 0xa4]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 8
Function at 0x616000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x641ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.005730e7
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov dword [esi + 0x3c], 0xffffffff
mov byte [esi + 0x40], bl
mov dword [eax], ebx
mov ecx, dword [esi + 0x20]
mov dword [ecx], ebx
mov edx, dword [esi + 0x30]
mov dword [edx], ebx
mov eax, dword [esi + 0x14]
mov dword [eax], ebx
mov ecx, dword [esi + 0x24]
mov dword [ecx], ebx
mov edx, dword [esi + 0x34]
mov dword [edx], ebx
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x44], edi
and edi, 1
mov dword [esi], vtable.Poco::Base64DecoderBuf.0
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax + 0x38]
mov dword [esi + 0x54], eax
mov dword [esp + 0x18], ebx
mov eax, 0x6d1f80
jne 0x616084
mov eax, 0x6d1e80
mov ecx, 0x6d2084
mov dword [esi + 0x58], eax
mov dword [esp + 0x24], ecx
call fcn.0057ec60
cmp edi, ebx
je 0x6160e2
cmp byte [0x6d2081], bl
jne 0x616130
push 0x100
push 0xff
push 0x6d1f80
call fcn.005dd9b0
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, byte [eax + 0x64f8d0]
mov byte [ecx + 0x6d1f80], al
inc eax
cmp eax, 0x40
jb 0x6160c0
mov byte [0x6d1fbd], bl
mov byte [0x6d2081], 1
jmp 0x616130
cmp byte [0x6d2080], bl
jne 0x616130
push 0x100
push 0xff
push 0x6d1e80
call fcn.005dd9b0
add esp, 0xc
xor eax, eax
jmp 0x616110
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edx + 0x6d1e80], al
inc eax
cmp eax, 0x40
jb 0x616110
mov byte [0x6d1ebd], bl
mov byte [0x6d2080], 1
lea ecx, [esp + 0x24]
call fcn.0057ee90
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x61cd00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x642361
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov esi, 0x7fff
xor ecx, ecx
xor ebx, ebx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov dword [esp + 8], ebx
push edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x1c], 1
neg ecx
or ecx, eax
push ecx
call fcn.005dc092
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
push esi
push edi
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jbe 0x61ce23
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, ebx
ja 0x61cdc0
push 0x2a
push str.Cannot_get_system_directory_long_path_name
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00573a6d
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 2
call fcn.00607180
push 0x6be598
lea ecx, [esp + 0x40]
push ecx
call fcn.005dcab3
mov esi, dword [esp + 0x7c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
push esi
push edi
mov dword [esp + 0x14], 1
call fcn.00624e40
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x61cdef
mov eax, dword [esi]
jmp 0x61cdf1
mov eax, esi
cmp byte [eax + ecx - 1], 0x5c
je 0x61ce06
push 1
push 0x69d580
mov ecx, esi
call fcn.00573dc8
push edi
call fcn.005e1a47
mov ecx, dword [esp + 0x70]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret
push 0x23
push str.Cannot_get_temporary_directory_path
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00573a6d
push ebx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 3
call fcn.00607180
push 0x6be598
lea eax, [esp + 0x40]
push eax
call fcn.005dcab3
int3
Function at 0x62e4e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
cmp dword [ebp + 0x14], 0x10
push esi
mov dword [esp + 0xc], 0
jb 0x62e4fd
mov eax, dword [ebp]
jmp 0x62e4ff
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x62e52c
push eax
push ebp
lea ecx, [esp + 0x18]
call fcn.00606e20
push 0x6bb508
lea eax, [esp + 0x14]
push eax
call fcn.005dcab3
push edi
push esi
call fcn.005dc092
add esp, 4
cmp dword [ebp + 0x14], 0x10
mov edi, eax
jb 0x62e541
mov ebp, dword [ebp]
push esi
push edi
push ebp
call ebx
mov esi, dword [esp + 0x48]
mov eax, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62e560
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00573a6d
push edi
call fcn.005e1a47
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret

Function at 0x631aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x34
mov edi, ecx
call fcn.005e19c7
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x631b2e
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov word [esi + 0x30], ax
mov dword [ebp - 4], eax
push edx
lea eax, [esi + 0xc]
push eax
add edi, 0xd
push edi
mov dword [esi + 8], ecx
call fcn.00631670
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], eax
call fcn.005de5d2
push 0x6b994c
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.005dcab3
int3
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x284c008], 0x8088405
inc edx
mov dword [ebx + 0x284c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret