joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4176ed
Capabilities:
Check os version
Get token membership

Disassembly:
mov eax, 0x48345d
call fcn.00482d18
sub esp, 0x188
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x194], 0x114
push 0x110
push edi
lea eax, [ebp - 0x190]
push eax
call fcn.0045b550
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.0043100f
mov dword [ebp - 4], edi
lea eax, [ebp - 0x18]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41780c
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41780c
cmp dword [ebp - 0x190], 6
jb 0x4177ac
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push 0x12
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call esi
test eax, eax
je 0x41780c
cmp dword [ebp - 0x28], 3
jne 0x4177c2
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x13
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4177c2
jmp 0x41780c
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov dword [ebp - 0x24], eax
push eax
push str.Os_below_vista_IsAdmin_d
call fcn.0041c596
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
jne 0x4177db
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x41780c
mov dword [ebp - 0x20], 0x44
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x41780c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x417812
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x417826
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x1c], 0
je 0x417834
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], edi
or dword [ebp - 4], 0xffffffff
call fcn.00409ad5
mov eax, dword [ebp - 0x24]
jmp 0x41786a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417879
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
xor esi, esi
mov dword [ebp - 0x3c], 0x3c
mov edi, ecx
mov dword [ebp - 0x38], esi
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], str.runas
call fcn.004022af
push esi
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x2c], eax
call fcn.004022af
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x28], eax
call fcn.004022af
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
cmp esi, 1
jne 0x4178dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
lea ecx, [ebp + 8]
call fcn.0040223f
lea ecx, [ebp + 0xc]
call fcn.0040223f
lea ecx, [ebp + 0x10]
call fcn.0040223f
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x417f67
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0x1c
pop edx
lea ecx, [ebp - 0x10]
call fcn.00416df6
pop ecx
pop ecx
lea ecx, [ebp - 4]
call fcn.00402286
lea eax, [ebp - 0x14]
push eax
call fcn.0040b41d
push dword [eax]
lea eax, [ebp - 4]
push dword [ebp - 0x10]
push 0x49a36c
push eax
call fcn.0040289a
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.0040223f
lea eax, [ebp + 8]
mov esi, 0x49a000
push eax
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405731
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405774
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0040223f
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405731
add esp, 0xc
push eax
lea eax, [ebp - 8]
push eax
call fcn.00405774
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0040223f
lea ecx, [ebp - 8]
call fcn.0040590f
push eax
lea ecx, [ebp - 0xc]
call fcn.0040590f
push eax
call fcn.00466761
pop ecx
pop ecx
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0040590f
push eax
lea ecx, [ebp - 0xc]
call fcn.0040590f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.On_RenameConnect____File_rename__d__d____s_into_____s
call fcn.0041c596
add esp, 0x14
lea ecx, [ebp - 8]
call fcn.0040223f
lea ecx, [ebp - 0xc]
call fcn.0040223f
lea ecx, [ebp - 4]
call fcn.0040223f
lea ecx, [ebp - 0x10]
call fcn.0040223f
lea ecx, [ebp + 8]
call fcn.0040223f
lea ecx, [ebp + 0xc]
call fcn.0040223f
mov eax, esi
pop esi
leave
ret
Function at 0x41b9d4
Capabilities:
Create directory
Set current directory

Disassembly:
push ecx
push ebx
lea ecx, [esp + 0xc]
xor bl, bl
call fcn.0040229a
test al, al
jne 0x41ba2b
lea ecx, [esp + 0xc]
call fcn.00402642
push eax
call fcn.004667ba
pop ecx
test eax, eax
je 0x41ba16
call fcn.00462f9e
cmp dword [eax], 0x11
je 0x41ba16
call fcn.00462f9e
push dword [eax]
push str._s:_Unable_to_create_logging_directory._Error:__d
call fcn.0041c68c
pop ecx
pop ecx
lea ecx, [esp + 0xc]
call fcn.00402642
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
lea ecx, [esp + 0xc]
call fcn.0040223f
mov al, bl
pop ebx
pop ecx
ret
Function at 0x41dd1f
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0xd
pop edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x41dd50
call ebx
push eax
push str.OpenSCManager_failed___d_
call fcn.0041c596
pop ecx
pop ecx
push str.Service_mgr_opened
call fcn.0041c596
pop ecx
push 4
lea ecx, [esp + 0x38]
call fcn.00402642
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
jne 0x41dd8e
call ebx
mov edi, eax
push edi
push str.OpenService_failed___d_
call fcn.0041c596
pop ecx
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41ddce
push str.Service_opened
call fcn.0041c596
pop ecx
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41ddaf
mov edi, dword [esp + 0x18]
jmp 0x41ddbe
call ebx
push eax
push str.QueryService_failed___d_
call fcn.0041c596
pop ecx
pop ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call ebx
test esi, esi
je 0x41ddce
push esi
call ebx
lea ecx, [esp + 0x34]
call fcn.0040223f
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x41dde1
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
push edi
push 0xd
xor ebx, ebx
lea ecx, [ebp + 8]
and dword [esp + 0x18], ebx
xor edi, edi
pop esi
call fcn.0040229a
test al, al
jne 0x41de1b
lea ecx, [ebp + 8]
call fcn.0040590f
mov ebx, eax
push ebx
push str.ExecuteWithToken:_Application_to_be_launched____s
call fcn.0041c6f8
pop ecx
pop ecx
lea ecx, [ebp + 0xc]
call fcn.0040229a
test al, al
jne 0x41de3e
lea ecx, [ebp + 0xc]
call fcn.0040590f
mov edi, eax
push edi
push str.ExecuteWithToken:_Command_line_params_for_the_application_to_be_launched____s
call fcn.0041c6f8
pop ecx
pop ecx
lea ecx, [ebp + 0x10]
call fcn.0040229a
test al, al
jne 0x41de56
lea ecx, [ebp + 0x10]
call fcn.0040590f
mov dword [esp + 0x14], eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x18]
push 0x10
push 0
push eax
call fcn.0045b550
add esp, 0xc
lea eax, [esp + 0x28]
push 0x44
push 0
push eax
call fcn.0045b550
xor ecx, ecx
mov dword [esp + 0x34], 0x44
add esp, 0xc
mov dword [esp + 0x30], ecx
test ebx, ebx
jne 0x41dea2
test edi, edi
jne 0x41dea2
push str.ExecuteWithToken:_Process_file_location_is_empty
call fcn.0041c68c
jmp 0x41df50
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0xc000400
push ecx
push ecx
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41df3c
push str.ExecuteWithToken:_Process_created_successfully..._Waiting_for_termination
call fcn.0041c6f8
mov dword [esp], 0x2bf20
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test esi, esi
je 0x41df33
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push esi
push str.ExecuteWithToken:_Wait_for_process_execution_failed_due_to_error____d__LastError:__d
call fcn.0041c68c
add esp, 0xc
push str.ExecuteWithToken:_Trying_to_terminate_process
call fcn.0041c68c
pop ecx
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41df27
push str.ExecuteWithToken:_Process_terminated_successfully
call fcn.0041c6f8
jmp 0x41df50
call edi
mov esi, eax
push esi
push str.ExecuteWithToken:_Unable_to_terminate_process._Errorcode:__d
jmp 0x41df4a
xor esi, esi
push str.ExecuteWithToken:_Process_execution_completed_successfully
jmp 0x41df20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ExecuteWithToken:_CreateProcess_API_failed._ErrorCode____d
call fcn.0041c68c
pop ecx
cmp dword [esp + 0x14], 0
pop ecx
je 0x41df62
push dword [esp + 0x10]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea ecx, [ebp + 8]
call fcn.0040223f
lea ecx, [ebp + 0xc]
call fcn.0040223f
lea ecx, [ebp + 0x10]
call fcn.0040223f
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41df84
Capabilities:
Start service

Disassembly:
push ebx
push edi
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x41dfb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.DoStartService
push str._s:_Unable_to_obtain_handle_to_Service_manager._Error:__d
call fcn.0041c68c
add esp, 0xc
jmp 0x41e048
push ebp
push 0x10
lea ecx, [esp + 0x14]
call fcn.0040590f
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
jne 0x41dffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push dword [esp + 0x14]
push str.DoStartService
push str._s:_Unable_to_obtain_handle_to_Service__s._Error:__d
call fcn.0041c68c
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41e047
push esi
push edi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41e029
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
call esi
push eax
push str.DoStartService
push str._s:_Start_Service_failed._Error:__d
call fcn.0041c68c
add esp, 0xc
jmp 0x41e03a
push str.DoStartService
push str._s:_Service_start_signalled_successfully
call fcn.0041c6f8
pop ecx
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push ebx
call esi
pop esi
pop ebp
lea ecx, [esp + 0xc]
call fcn.0040223f
mov eax, edi
pop edi
pop ebx
ret
Function at 0x41e056
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebp
push 0xd
pop edi
push 1
push 0
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x41e098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.OpenSCManager_failed___d_
call fcn.0041c596
pop ecx
pop ecx
jmp 0x41e206
push 0x24
lea ecx, [esp + 0x48]
call fcn.00402642
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x41e0d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.OpenService_failed___d_
call fcn.0041c596
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41e206
lea eax, [esp + 0x14]
push eax
push 0x24
lea eax, [esp + 0x24]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x41e104
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.QueryServiceStatusEx_failed___d_
call fcn.0041c596
pop ecx
jmp 0x41e1f9
cmp dword [esp + 0x20], 1
jne 0x41e173
push str.Service_is_already_stopped.
jmp 0x41e1f4
push str.Service_stop_pending...
call fcn.0041c596
mov eax, dword [esp + 0x38]
xor edx, edx
pop ecx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x41e13d
mov ecx, 0x2710
cmp eax, ecx
jbe 0x41e13f
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push eax
push 0x24
lea eax, [esp + 0x24]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41e0eb
cmp dword [esp + 0x20], 1
je 0x41e1a6
call ebp
sub eax, dword [esp + 0x18]
cmp eax, 0x7530
ja 0x41e19f
cmp dword [esp + 0x20], 3
je 0x41e115
lea eax, [esp + 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41e1e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.ControlService_failed___d_
jmp 0x41e0f9
push str.Service_stop_timed_out.
jmp 0x41e1f4
push str.Service_stopped_successfully.
jmp 0x41e1f4
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push eax
push 0x24
lea eax, [esp + 0x24]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41e0eb
cmp dword [esp + 0x20], 1
je 0x41e1ef
call ebp
sub eax, dword [esp + 0x18]
cmp eax, 0x7530
ja 0x41e219
cmp dword [esp + 0x20], 1
jne 0x41e1ad
push str.Service_stopped_successfully
call fcn.0041c596
pop ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
lea ecx, [esp + 0x44]
call fcn.0040223f
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push str.Wait_timed_out
jmp 0x41e1f4
Function at 0x41e220
Capabilities:
Check os version
Get token membership

Disassembly:
mov eax, 0x4834ad
call fcn.00482d18
sub esp, 0x17c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x188], 0x114
push 0x110
push edi
lea eax, [ebp - 0x184]
push eax
call fcn.0045b550
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.0043100f
mov dword [ebp - 4], edi
lea eax, [ebp - 0x14]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41e327
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41e327
cmp dword [ebp - 0x184], 6
jb 0x41e2dd
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push 0x12
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call esi
test eax, eax
je 0x41e327
cmp dword [ebp - 0x24], 3
jne 0x41e2dd
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x13
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x41e327
cmp dword [ebp - 0x18], 0
jne 0x41e2f6
lea eax, [ebp - 0x18]
push eax
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x41e327
mov dword [ebp - 0x1c], 0x44
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x41e327
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x41e32d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x41e341
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x18], 0
je 0x41e34f
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], edi
or dword [ebp - 4], 0xffffffff
call fcn.00409ad5
mov eax, dword [ebp - 0x20]
jmp 0x41e385
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420312
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x420319
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x4203d6
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bb30]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bb30]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bb30]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bb30]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bb30]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bb30]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bb30]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bb30]
sub edi, 1
jne 0x42032f
pop edi
test esi, esi
je 0x4203f2
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bb30]
inc edx
sub esi, 1
jne 0x4203da
not ecx
mov eax, ecx
pop esi
ret

Function at 0x4203f8
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x49bb30]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bb30]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x420b4c
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, edx
mov esi, ebx
mov ebp, ecx
imul esi, dword [esp + 0x14]
cmp byte [edi], 0
je 0x420b84
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ebp
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420b7e
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
jmp 0x420ba9
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x420b94
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push ebp
call fcn.0045afd0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop edi
pop esi
xor edx, edx
pop ebp
div ebx
pop ebx
ret
Function at 0x421370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4214bd
xor ebp, ebp
cmp dword [edi + 0x18], ebp
je 0x4214bd
cmp dword [edi + 0x7c], ebp
je 0x421398
call fcn.004216c7
lea eax, [esp + 0x14]
mov ecx, edi
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
call fcn.004211dd
pop ecx
pop ecx
test eax, eax
je 0x4213ba
push 0xffffffffffffff99
jmp 0x4214bf
push 0x84
call fcn.00465f6e
mov esi, eax
pop ecx
test esi, esi
jne 0x4213d2
push 0xffffffffffffff98
jmp 0x4214bf
push 0x4000
call fcn.00465f6e
mov dword [esi], eax
mov dword [esi + 0x4c], ebp
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x48], ecx
test eax, eax
jne 0x4213fd
push esi
call fcn.00462fb1
pop ecx
jmp 0x4213cb
mov dword [esi + 0x40], ebp
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], ebp
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], ebp
test ecx, ecx
je 0x421440
lea ecx, [esi + 4]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call fcn.00420611
test eax, eax
jne 0x421440
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x421463
mov al, byte [edi + 0x39]
jmp 0x421466
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x4214a6
mov dl, byte [ebx]
test dl, dl
je 0x4214a6
lea ecx, [esi + 0x70]
call fcn.004203f8
add ebx, 1
jne 0x421493
mov eax, dword [esp + 0x18]
add eax, 0x1e
add eax, dword [edi + 0x78]
and dword [esi + 8], ebp
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x7c], esi
jmp 0x4214c0
push 0xffffffffffffff9a
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4217d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x421853
cmp dword [esi + 4], 0xffffffff
jne 0x421853
lea edi, [esi + 0x240]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0045ea48
pop ecx
movzx eax, word [esi + eax*2 + 0x23e]
cmp eax, 0x5c
je 0x421822
cmp eax, 0x2f
je 0x421822
mov edx, 0x49a000
mov ecx, edi
call fcn.004220db
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.004209f1
pop ecx
pop ecx
test eax, eax
jne 0x42183a
mov eax, dword [ebp - 4]
jmp 0x421858
mov ecx, eax
call fcn.00420dac
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x421858
mov eax, 0x1000000
pop edi
pop esi
leave
ret 0xc
Function at 0x421c85
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [edx]
sub esp, 0x410
push ebx
mov ebx, ecx
test ax, ax
je 0x421d21
push esi
push edi
mov edi, edx
mov esi, edx
mov ecx, eax
cmp cx, 0x2f
je 0x421cb1
cmp cx, 0x5c
jne 0x421cb3
mov edi, esi
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x421ca5
cmp edi, edx
je 0x421cf6
mov esi, edi
lea eax, [ebp - 0x208]
sub esi, edx
and esi, 0xfffffffe
push esi
push edx
push eax
call fcn.0045afd0
add esp, 0xc
lea edx, [ebp - 0x208]
xor eax, eax
mov ecx, ebx
mov word [ebp + esi - 0x208], ax
call fcn.00421c85
add edi, 2
mov edx, ebx
lea ecx, [ebp - 0x410]
call fcn.00407269
mov edx, edi
lea ecx, [ebp - 0x410]
call fcn.004220db
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebx
leave
ret