joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fdd4
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push ecx
push ecx
push 3
push ecx
push ecx
mov edx, SHChangeNotifyRegister
mov esi, ecx
xor ebx, ebx
call fcn.0041d1c3
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x41fe13
call fcn.0042fc51
push eax
push esi
push str.FindArch:_Could_not_open_file__s:__s
call fcn.0042ed57
add esp, 0xc
xor al, al
jmp 0x41ff1b
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x41fe3d
call fcn.0042fc51
push eax
push str.FindArch:_Could_not_create_file_mapping:__s
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x41ff0d
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
jne 0x41fe67
call fcn.0042fc51
push eax
push str.FindArch:_Could_not_get_mapped_view_address:__s
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x41ff01
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x41fe7e
push str.FindArch:_DOS_header_not_found
call fcn.0042ed57
pop ecx
jmp 0x41fef8
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x41fe93
push str.FindArch:_NT_header_not_found
jmp 0x41fe76
movzx eax, word [eax + 4]
mov ecx, 0x5032
cmp eax, ecx
ja 0x41fece
je 0x41feca
sub eax, 0x14c
je 0x41fec6
sub eax, 0x74
je 0x41fec2
sub eax, 0x40
je 0x41febe
sub eax, 0xcbc
jne 0x41fef8
mov bl, 6
jmp 0x41fef8
mov bl, 2
jmp 0x41fef8
mov bl, 4
jmp 0x41fef8
mov bl, 1
jmp 0x41fef8
mov bl, 7
jmp 0x41fef8
cmp eax, 0x5064
je 0x41fef6
cmp eax, 0x5128
je 0x41fef2
cmp eax, 0x8664
je 0x41feee
cmp eax, 0xaa64
jne 0x41fef8
mov bl, 5
jmp 0x41fef8
mov bl, 3
jmp 0x41fef8
mov bl, 9
jmp 0x41fef8
mov bl, 8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp esi, 0xffffffff
je 0x41ff0d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x41ff19
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422760
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.disc_image.iso
mov dword [ebp - 0x2c], str..iso
lea edi, [ebp - 0x28]
xor eax, eax
push 0xbdc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x19]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00414768
mov dword [ebp - 0x30], eax
xor edi, edi
lea eax, [ebp - 0x28]
inc edi
cmp dword [0x4da370], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
pop ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], eax
jne 0x42293f
cmp dword [0x51d9c0], 0
jne 0x42293f
mov ecx, 0x51da78
mov dword [0x51da78], 2
call fcn.004367eb
test eax, eax
jne 0x4227fb
push str.No_dumpable_optical_media_found.
call fcn.0042ed57
pop ecx
jmp 0x42293f
mov esi, dword [0x51da8c]
mov eax, 0x2000000
mov edx, dword [0x51da88]
xor ebx, ebx
mov dword [0x51da80], eax
mov ecx, eax
shl ecx, 6
cmp esi, ebx
jg 0x42282b
jl 0x422822
cmp edx, ecx
ja 0x42282b
shr eax, 1
cmp eax, 0x800000
ja 0x422813
mov dword [0x51da80], eax
mov eax, dword [0x51da98]
test eax, eax
je 0x422860
cmp byte [eax], bl
je 0x422860
push eax
push str._s.iso
lea eax, [ebp - 0x28]
push 0x21
push eax
call fcn.00403163
mov esi, dword [0x51da8c]
add esp, 0x10
mov edx, dword [0x51da88]
mov byte [ebp - 8], bl
push esi
push edx
xor edx, edx
xor ecx, ecx
call fcn.0042fdeb
push eax
push str.ISO_media_size__s
call fcn.0042ed57
lea eax, [ebp - 0x40]
xor edx, edx
push ebx
push eax
mov ecx, edi
call fcn.00430f9a
add esp, 0x18
mov dword [0x51da94], eax
test eax, eax
je 0x42293f
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x8002
push dword [0x522464]
call esi
xor edx, edx
mov dword [0x4dc5d0], ebx
xor ecx, ecx
call fcn.0041f1ae
mov ecx, edi
call fcn.0043bd07
push ebx
push ebx
push 0x51da78
push 0x40ceb0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x51d9c0], eax
test eax, eax
je 0x422905
push str._r_nSave_to_ISO_operation_started
call fcn.0042ed57
pop ecx
push 0xffffffffffffffff
push ebx
push ebx
push edi
call fcn.00414c2d
add esp, 0x10
push ebx
push ebx
push 0x8009
push dword [0x522464]
call esi
jmp 0x42293f
push str.Unable_to_start_ISO_save_thread
call fcn.0042ed57
pop ecx
push dword [0x51da94]
mov dword [0x4dc5d0], 0xe0031205
call fcn.004812c6
pop ecx
push ebx
push ebx
push 0x8000
push dword [0x522464]
mov dword [0x51da94], ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret
Function at 0x42519d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [0x5223d4]
lea eax, [ebp - 4]
push ebx
push esi
push edi
xor esi, esi
mov edi, str.rufus.com
push esi
push eax
push edi
push 0xa
mov edx, 0x1f5
mov ebx, esi
call fcn.0042df9d
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x4252ba
push 0x4c1514
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x425220
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x425220
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1c
push str.rufus.com
call fcn.004816f0
pop ecx
inc eax
push eax
call fcn.0047b53f
mov edi, eax
mov dword [ebp - 4], edi
pop ecx
pop ecx
test edi, edi
je 0x4252ab
push str.rufus.com
call fcn.004816f0
pop ecx
test eax, eax
jle 0x425285
lea eax, [edi + 6]
mov dword [ebp - 8], eax
mov edi, eax
mov dword [edi - 6], 1
mov dword [edi + 2], 4
movsx ax, byte [esi + str.rufus.com]
inc esi
push str.rufus.com
mov word [edi], ax
lea edi, [edi + 0x1c]
call fcn.004816f0
pop ecx
cmp esi, eax
jl 0x425256
mov edi, dword [ebp - 4]
imul eax, esi, 0x1c
push 0xd
pop ecx
push 0x1c
push edi
mov dword [eax + edi], 1
mov word [eax + edi + 4], cx
lea eax, [esi + 1]
push eax
call dword [sym.imp.USER32.dll_SendInput]
push edi
call fcn.004812c6
pop ecx
test ebx, ebx
je 0x4252ba
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4275bf
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
xor edi, edi
push edi
push esi
call fcn.00478bc0
add esp, 0xc
mov dword [esi + 0x84], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xbc], edi
pop edi
mov dword [esi + 0x80], 0x6a09e667
mov dword [esi + 0x88], 0xbb67ae85
mov dword [esi + 0x90], 0x3c6ef372
mov dword [esi + 0x98], 0xa54ff53a
mov dword [esi + 0xa0], 0x510e527f
mov dword [esi + 0xa8], 0x9b05688c
mov dword [esi + 0xb0], 0x1f83d9ab
mov dword [esi + 0xb8], 0x5be0cd19
pop esi
pop ebp
ret
Function at 0x42c387
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xffffffc0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x1178
call fcn.00476660
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
push edi
mov dword [ebp - 0x1148], eax
mov edi, edx
xor eax, eax
push 0x7f
push eax
mov byte [ebp - 0x1140], al
lea eax, [ebp - 0x113f]
push eax
call fcn.00478bc0
push 0x80
xor esi, esi
lea eax, [ebp - 0x10c0]
push esi
push eax
call fcn.00478bc0
add esp, 0x18
mov dword [ebp - 0x1144], esi
test edi, edi
je 0x42c4f4
cmp dword [ebp - 0x1148], esi
je 0x42c4f4
push ecx
push 0x8000000
sub esp, 0xc
mov ecx, edi
call fcn.00427361
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
jne 0x42c440
call fcn.0042fc51
push eax
push str.Could_not_open_file:__s
call fcn.0042ed57
pop ecx
pop ecx
mov dword [0x4dc5d0], 0xc003006e
jmp 0x42c4f4
lea eax, [ebp - 0x1140]
push eax
call fcn.004275bf
pop ecx
mov eax, dword [0x4dc5d0]
test eax, eax
jns 0x42c460
cmp ax, 0x4c7
je 0x42c4e9
push esi
lea eax, [ebp - 0x1144]
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c4cd
cmp dword [ebp - 0x1144], esi
je 0x42c4a5
push dword [ebp - 0x1144]
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1140]
push eax
call fcn.0042bd77
add esp, 0xc
jmp 0x42c44d
lea eax, [ebp - 0x1140]
push eax
call fcn.0042c016
push 0x20
lea eax, [ebp - 0x1140]
push eax
push dword [ebp - 0x1148]
call fcn.00476fc0
xor esi, esi
add esp, 0x10
inc esi
jmp 0x42c4e9
mov dword [0x4dc5d0], 0xc003001e
call fcn.0042fc51
push eax
push str.__Read_error:__s
call fcn.0042ed57
pop ecx
pop ecx
test edi, edi
je 0x42c4f4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00475c80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x42d18d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
and dword [ebp - 4], 0
mov ecx, edx
push ebx
push esi
push edi
call fcn.00403761
mov ecx, dword [ebp + 0x1c]
mov edi, eax
call fcn.00403761
mov ebx, dword [ebp + 0x20]
mov esi, eax
cmp dword [ebx], 0x44
je 0x42d1ba
push 0x18
pop ebx
jmp 0x42d22c
push 0x44
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00476fc0
mov ecx, dword [ebx + 8]
add esp, 0xc
call fcn.00403761
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x40], eax
call fcn.00403761
push dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push eax
push esi
xor eax, eax
push eax
push 0x8000020
push 1
push eax
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x40], 0
mov ebx, eax
je 0x42d219
push dword [ebp - 0x40]
call fcn.004812c6
and dword [ebp - 0x40], 0
pop ecx
cmp dword [ebp - 0x3c], 0
je 0x42d22c
push dword [ebp - 0x3c]
call fcn.004812c6
and dword [ebp - 0x3c], 0
pop ecx
test edi, edi
je 0x42d237
push edi
call fcn.004812c6
pop ecx
test esi, esi
je 0x42d242
push esi
call fcn.004812c6
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d802
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x24]
pop edi
test ecx, ecx
je 0x42d842
cmp ecx, 5
je 0x42d83d
cmp ecx, 9
je 0x42d842
xor eax, eax
cmp ecx, 0xc
setne al
add eax, 3
leave
ret
push 2
pop eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x42de7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, edx
xor esi, esi
push edi
mov dword [ebp - 8], ebx
call fcn.0042dd6f
mov edi, eax
test edi, edi
je 0x42ded3
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x42ded3
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x42ded3
and dword [ebp - 0xc], esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 4], eax
jmp 0x42dee5
call fcn.0042fc51
push eax
push str.Could_not_set_security_descriptor:__s_n
call fcn.0042ed57
pop ecx
pop ecx
mov ecx, ebx
call fcn.00403761
push 0
push 0x80
push 2
push dword [ebp - 4]
mov edi, eax
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test edi, edi
je 0x42df21
push edi
call fcn.004812c6
mov eax, dword [ebp - 4]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0xc]
cmp ebx, 0xffffffff
jne 0x42df47
push dword [ebp - 8]
push str.create
push str.Could_not__s_file__s_n
call fcn.0042ed57
add esp, 0xc
jmp 0x42df89
mov eax, dword [ebp + 8]
push 0
push edi
push dword [edi]
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42df70
call fcn.0042fc51
push eax
push str.I_O_Error:__s_n
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x42df89
push dword [ebp - 8]
push 0xc90
push 0
push 1
push 1
call fcn.00414c2d
xor esi, esi
add esp, 0x14
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x42df96
and dword [edi], esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42df9d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
xor edi, edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x42dfd4
call fcn.0042fc51
push eax
push dword [ebp + 0xc]
push str.Could_not_locate_resource__s:__s_n
call fcn.0042ed57
add esp, 0xc
jmp 0x42e073
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x42dff3
call fcn.0042fc51
push eax
push dword [ebp + 0xc]
push str.Could_not_load_resource__s:__s_n
jmp 0x42dfc7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x14], edi
je 0x42e066
mov eax, dword [ebx]
test eax, eax
jne 0x42e00f
mov dword [ebx], esi
mov eax, esi
push 1
push eax
call fcn.0047b53f
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x42e030
push dword [ebp + 0xc]
push str.Could_not_allocate_resource__s_n
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x42e073
mov eax, dword [ebx]
cmp esi, eax
cmovb eax, esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.00476fc0
add esp, 0xc
cmp esi, dword [ebx]
jbe 0x42e071
mov eax, esi
sub eax, dword [ebx]
push eax
push dword [ebp + 0xc]
push str.WARNING:_Resource__s_was_truncated_by__d_bytes__n
call fcn.0042ed57
add esp, 0xc
jmp 0x42e071
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebx], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e07a
Capabilities:
Create pipe
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x14], edx
push 0
push eax
mov ebx, ecx
call fcn.00478bc0
and dword [ebp - 0x20], 0
lea edi, [ebp - 0x34]
or dword [ebp - 0xc], 0xffffffff
xor eax, eax
or dword [ebp - 8], 0xffffffff
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0x7c], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x42e121
push 0x1000
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x42e10b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
call fcn.0042fc51
push eax
push str.Could_not_set_commandline_pipe:__s
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x42e21e
xor eax, eax
mov dword [ebp - 0x50], 0x3101
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
mov edx, ebx
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x14]
sub esp, 0x14
call fcn.0042d18d
add esp, 0x20
test eax, eax
jne 0x42e15f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
call fcn.0042fc51
push eax
push ebx
push str.Unable_to_launch_command__s:__s
call fcn.0042ed57
add esp, 0xc
jmp 0x42e21e
test edi, edi
je 0x42e1ef
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1000
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x42e1d4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42e1d4
inc eax
push eax
call fcn.004812e1
mov dword [0x51dd8c], eax
pop ecx
test eax, eax
je 0x42e1cd
push ebx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e1c8
cmp dword [ebp - 0x18], ebx
je 0x42e1c8
mov ecx, dword [0x51dd8c]
mov eax, dword [ebp - 0x10]
push ecx
mov byte [ecx + eax], bl
call fcn.0042ed57
pop ecx
mov eax, dword [0x51dd8c]
push eax
call fcn.004812c6
pop ecx
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42e1fa
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42e169
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42e214
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x30]
call esi
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x42e231
test eax, eax
je 0x42e231
push eax
call esi
or dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x42e240
test eax, eax
je 0x42e240
push eax
call esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e7af
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov edx, dword [0x4dca08]
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0x51d9b8
mov dword [ebp - 0x10], str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
mov dword [ebp - 0xc], str.NoDriveTypeAutorun
mov dword [ebp - 8], eax
mov dword [ebp + 0x10], ebx
push esi
test edx, edx
je 0x42e814
push edi
push 1
mov ecx, str.DisableLGP
mov edi, ebx
call fcn.0041933c
mov esi, eax
pop ecx
test esi, esi
je 0x42e80d
push ebx
push ebx
push esi
call fcn.00488ec4
push esi
mov edi, eax
call fcn.004812c6
add esp, 0x10
xor ecx, ecx
test edi, edi
pop edi
jmp 0x42e831
push ecx
lea eax, [ebp - 4]
mov edx, str.DisableLGP
push eax
push ecx
mov ecx, SHChangeNotifyRegister
call fcn.0042d251
xor ecx, ecx
add esp, 0xc
cmp dword [ebp - 4], ecx
setne cl
test ecx, ecx
je 0x42e893
push str.LPG_handling_disabled__per_settings
mov ecx, dword [0x4dcab4]
mov eax, 0xffe
sub eax, ecx
push eax
lea eax, [ecx + 0x5205a0]
push eax
call fcn.00403163
push 0x5205a0
mov byte [0x52159d], bl
call fcn.004816f0
add esp, 0x10
mov word [eax + 0x5205a0], 0xa0d
add eax, 2
mov dword [0x4dcab4], eax
cmp eax, 0x1000
jae 0x42e93d
mov byte [eax + 0x5205a0], bl
xor eax, eax
jmp 0x42e939
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x42e324
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x42e8b3
push str.SetLGP:_Unable_to_start_thread
jmp 0x42e83d
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42e927
mov ecx, dword [0x4dcab4]
mov eax, 0xffe
sub eax, ecx
push str.SetLGP:_Killing_stuck_thread_
push eax
lea eax, [ecx + 0x5205a0]
push eax
call fcn.00403163
push 0x5205a0
mov byte [0x52159d], bl
call fcn.004816f0
add esp, 0x10
mov word [eax + 0x5205a0], 0xa0d
add eax, 2
mov dword [0x4dcab4], eax
cmp eax, 0x1000
jae 0x42e93d
push ebx
push esi
mov byte [eax + 0x5205a0], bl
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e88c
lea eax, [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
pop esi
pop ebx
leave
ret
call fcn.00475db1
int3
Function at 0x42ea70
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x1c]
push ebx
push ecx
push eax
xor ebx, ebx
mov word [ebp - 8], 0x500
push ecx
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystemEnableLUA
mov dword [ebp - 0x10], ebx
mov ecx, reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [ebp - 0xc], ebx
call fcn.0042d251
add esp, 0xc
cmp dword [ebp - 0x1c], 1
jne 0x42eb1a
push str.Note:_UAC_is_active
call fcn.0042ed57
pop ecx
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42eae7
call fcn.0042fc51
push eax
push str.Could_not_get_current_process_token:__s
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x42eb64
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push 0x14
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x42eb0d
call fcn.0042fc51
push eax
push str.Could_not_get_token_information:__s
jmp 0x42eade
xor eax, eax
cmp dword [ebp - 0x20], eax
setne al
mov dword [ebp - 0x10], eax
jmp 0x42eb64
push str.Note:_UAC_is_either_disabled_or_not_available
call fcn.0042ed57
pop ecx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42eb64
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x42eb5b
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x14]
pop ebx
cmp eax, 0xffffffff
je 0x42eb78
test eax, eax
je 0x42eb78
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475c80
leave
ret

Function at 0x42eb87
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0xb0]
push ebx
push 0x55
pop esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
jle 0x42ebdf
push ebx
push ebx
push esi
mov edi, 0x51dd30
lea eax, [ebp - 0xb0]
push edi
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x42ec2f
mov edi, str.en_US
push edi
call fcn.004816f0
inc eax
pop ecx
cmp eax, esi
jae 0x42ebfa
push edi
call fcn.004816f0
pop ecx
inc eax
jmp 0x42ebfc
mov eax, esi
push eax
push edi
mov edi, 0x51dd30
push edi
call fcn.00476fc0
push str.en_US
call fcn.004816f0
add esp, 0x10
inc eax
cmp eax, esi
jae 0x42ec29
push str.en_US
call fcn.004816f0
pop ecx
lea esi, [eax + 1]
mov byte [esi + 0x51dd2f], bl
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret