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

Disassembly:
sub esp, 0x20
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x20028
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10001f66
pop esi
add esp, 0x20
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10001f86
mov eax, 1
pop esi
add esp, 0x20
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
neg esi
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
sbb esi, esi
push 0
and esi, 2
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
add eax, 1
pop esi
add esp, 0x20
ret

Function at 0x10002140
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [sym.imp.MSVCR80.dll_malloc]
push edi
push 0x64
mov edi, eax
call esi
add esp, 4
push 0x64
mov ebx, eax
push 0
push ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x64
call esi
add esp, 4
push 0x64
mov esi, eax
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, 1
call fcn.10001f40
push edi
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [esp + 0xc], eax
je 0x1000224d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push 0x64
push 0
push esi
jne 0x100021fa
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push str.Can_not_stop__d___n
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
mov eax, esi
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x100021d0
mov edi, ebx
sub eax, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100021e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10002249
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push str.Client_process__d_stoped__n
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
mov eax, esi
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10002216
mov edi, ebx
sub eax, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10002226
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x1f4
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.10001f40
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007940
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10007947
push 0
lea ecx, [esp + 8]
push ecx
sub eax, esi
push eax
push edx
mov edx, dword [0x10090818]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
pop esi
pop ecx
ret
Function at 0x10008dc0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1007d8f0
push 0x10009891
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1007f018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, edi
jne 0x10008e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x1c], esi
push esi
push str.OpenSCManager___error__d
call fcn.10008f30
add esp, 8
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, str.Gateway_Service_for_Netware
mov dword [ebp - 0x20], edi
test esi, esi
je 0x10008e5d
cmp byte [esi], 0
je 0x10008e5d
mov edi, esi
mov dword [ebp - 0x20], edi
push 0x10000
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x10008ea8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x1c], esi
push esi
push edi
push str.OpenService__s__error__d
call fcn.10008f30
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x10008e73
push edi
push str.DeleteService__s__SUCCESS.
call fcn.10008f30
add esp, 8
mov dword [ebp - 4], 0xfffffffe
jmp 0x10008efb
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008f30
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x430
mov eax, dword [0x1007f018]
xor eax, esp
mov dword [esp + 0x42c], eax
mov ecx, dword [esp + 0x434]
push esi
push edi
lea eax, [esp + 0x440]
push eax
push ecx
lea edx, [esp + 0x3c]
push 0x400
push edx
call dword [sym.imp.MSVCR80.dll__vsnprintf]
add esp, 0x10
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x10008fb4
lea eax, [esp + 0x34]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10008f80
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0xc]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x40]
push edx
push edi
call esi
push 0
lea eax, [esp + 0xc]
push eax
push 2
push 0x1007d768
push edi
call esi
jmp 0x10009014
push 0x1007d76c
push str.SvcHost.DLL.log
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10009014
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCR80.dll__strtime]
add esp, 4
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.MSVCR80.dll__strdate]
add esp, 4
push eax
push str._s__s____s_n
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
jne 0x10009014
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x434]
pop edi
pop esi
xor ecx, esp
call fcn.10009090
add esp, 0x430
ret

Function at 0x10009090
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007f018]
jne 0x1000909a
repz ret
jmp fcn.10009467
Function at 0x1000b200
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.10033d60
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1000b249
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1000b249
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x10096880
call sub.MSVCR80.dll_vfprintf
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call sub.MSVCR80.dll__vsnprintf
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1000b34b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x1000b306
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x1000b306
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000b306
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x1000b306
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.10033d60
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x1000b306
mov ecx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call sub.MSVCR80.dll_wcsstr
add esp, 8
test eax, eax
je 0x1000b34b
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10015200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x10015261
mov al, byte [edi]
test al, al
je 0x10015261
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x10015219
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x1003d6f4
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.10033d60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x1003d6bb
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x1003d6cd
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x1003d839
push esi
call fcn.1000d930
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x1003d703
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call fcn.1000b370
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x1003d742
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.1000b700
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.1000b830
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.1000b850
add esp, 0x24
jmp 0x1003d781
test ebp, ebp
jl 0x1003d74e
cmp ebp, 0x80
jle 0x1003d762
push str.len_0__len__int_sizeof_ctx__key_
push 0x5c
push str..cryptohmachmac.c
call fcn.1000b370
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x1003d7a6
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x1003d7af
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.1000b700
push esi
call fcn.1000d930
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.1000b830
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x1003d7eb
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.1000b700
push esi
call fcn.1000d930
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.1000b830
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.1000b8d0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x1003d81e
jmp 0x1003d7ad
Function at 0x100517d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.10033d60
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0xc]
push edi
mov edi, dword [eax + 8]
xor esi, esi
cmp edi, 0x20
mov dword [esp + 0x10], esi
jle 0x100517e7
push str.nkey___EVP_MAX_KEY_LENGTH
push 0x79
push str..cryptoevpevp_key.c
call fcn.1000b370
add esp, 0xc
cmp ebp, 0x10
jle 0x10051800
push str.niv___EVP_MAX_IV_LENGTH
push 0x7a
push str..cryptoevpevp_key.c
call fcn.1000b370
add esp, 0xc
cmp dword [esp + 0x74], esi
jne 0x10051810
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
lea eax, [esp + 0x14]
push eax
call fcn.1000b6e0
mov ecx, dword [esp + 0x70]
push esi
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.1000b700
add esp, 0x10
test eax, eax
je 0x10051973
mov ebx, dword [esp + 0x84]
jmp 0x10051845
mov esi, dword [esp + 0x84]
mov eax, esi
inc esi
test eax, eax
mov dword [esp + 0x84], esi
je 0x1005186a
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1000b830
add esp, 0xc
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1000b830
mov eax, dword [esp + 0x7c]
add esp, 0xc
test eax, eax
je 0x10051899
push 8
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1000b830
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1000b850
mov esi, dword [esp + 0x88]
add esp, 0xc
cmp esi, 1
jbe 0x100518fc
dec esi
mov edx, dword [esp + 0x6c]
push 0
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1000b700
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.1000b830
lea ecx, [esp + 0x28]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call fcn.1000b850
add esp, 0x24
dec esi
jne 0x100518bd
mov ecx, dword [esp + 0x10]
xor eax, eax
test edi, edi
je 0x10051932
cmp eax, ecx
je 0x10051932
mov edx, dword [esp + 0x80]
test edx, edx
je 0x1005192c
mov esi, dword [esp + 0x80]
mov dl, byte [esp + eax + 0x24]
mov byte [esi], dl
mov edx, esi
inc edx
mov dword [esp + 0x80], edx
dec edi
inc eax
test edi, edi
jne 0x10051906
test ebp, ebp
je 0x1005194f
cmp eax, ecx
je 0x1005194f
cmp eax, ecx
je 0x1005194f
test ebx, ebx
je 0x10051949
mov dl, byte [esp + eax + 0x24]
mov byte [ebx], dl
inc ebx
dec ebp
inc eax
test ebp, ebp
jne 0x1005193a
test edi, edi
jne 0x10051957
test ebp, ebp
je 0x1005197d
mov eax, dword [esp + 0x6c]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1000b700
add esp, 0xc
test eax, eax
jne 0x1005183e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
lea edx, [esp + 0x14]
push edx
call fcn.1000bbf0
lea eax, [esp + 0x28]
push 0x40
push eax
call fcn.1000cd70
mov ecx, dword [esp + 0x74]
add esp, 0xc
mov eax, dword [ecx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x403e43
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.00404afb
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.00403fa3
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x403f8d
test ebx, ebx
jl 0x403f31
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xcba2a7
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x403f52
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x403f44
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.00405913
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.00405913
add esp, 8
mov ebx, 0x80070057
jmp 0x403f31
Function at 0x417ba7
Capabilities:
Get disk information

Disassembly:
add byte [edx - 0x18], dl
frstor dword [edx]
add byte [eax], al
mov dword [ebp - 0x24], eax
test eax, eax
jl 0x417fa8
mov eax, dword [ebp - 0x28]
test eax, eax
jbe 0x417d50
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push 4
dec ebp
call 0x121c19a
add byte [eax], al
add byte [ebp + 0x46ae045], cl
push eax
push 7
push 0xf442a8
push edx
call fcn.00419e8b
mov dword [ebp - 0x24], eax
test eax, eax
jl 0x417f89
mov edx, dword [ebp - 0x20]
cmp edx, 2
je 0x417c21
cmp edx, 1
je 0x417bcd
int3
jmp loc.00519164
dec ebx
dec edi
pop esi
xor ebx, ebp
cli
or eax, dword [eax - 0x208ed860]
mov esp, 0xed6e238a
lcall 0x1311, 0x293b2e7c
dec ecx
std
xor dh, dh
jo 0x417fd4
test al, 0x73
mov ebp, ebp
mov esi, esi
mov ebp, ebp
mov eax, eax
mov ebx, ebx
mov edx, edx
mov edi, edi
mov ebx, ebx
mov eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.00517051

Function at 0x417c10
Capabilities:
Get disk information

Disassembly:
sub esp, 0xbc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x4c2064
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [esp + 0x10]
mov dword [0x4c5a8c], eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xa]
mov eax, dword [esp + 0xc0]
and edx, 0xffff
and ecx, 0xffff
mov dword [eax], edx
mov edx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 6]
and edx, 0xffff
and ecx, 0xffff
mov dword [eax + 8], edx
mov edx, dword [esp + 2]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp]
and edx, 0xffff
and ecx, 0xffff
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0xb8]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x10]
add ecx, edx
xor edx, edx
test ecx, ecx
mov ecx, dword [eax + 0x20]
setl dl
shl edx, 1
and ecx, 0xfffffffd
or edx, ecx
or edx, 1
mov dword [eax + 0x20], edx
add esp, 0xbc
ret 4
Function at 0x41ae83
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.0041bb3b
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.0041afe3
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x41afcd
test ebx, ebx
jl 0x41af71
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xcd12e7
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41af92
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x41af84
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0041c953
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0041c953
add esp, 8
mov ebx, 0x80070057
jmp 0x41af71
Function at 0x431f13
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.00432bcb
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.00432073
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x43205d
test ebx, ebx
jl 0x432001
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xce8377
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x432022
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x432014
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.004339e3
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.004339e3
add esp, 8
mov ebx, 0x80070057
jmp 0x432001