joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461d40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x461d73
push esi
call fcn.00466b80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x461d6c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x461df9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x461de2
mov eax, dword [esi + 8]
test eax, eax
je 0x461d97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x461dde
cmp eax, 2
je 0x461de2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x461d8a
cmp eax, 3
je 0x461dbd
cmp eax, 1
jne 0x461d8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x461d8a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x461d8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00461e30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x461e19
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00461e30
add esp, 4
pop esi
ret

Function at 0x492890
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x49289b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x49299e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x504b20]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x504b20]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x504b20]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x504b20]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x504b20]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x504b20]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x504b20]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x504b20]
xor eax, edx
inc ecx
dec edi
jne 0x4928b6
pop edi
test esi, esi
je 0x4929c0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x504b20]
xor eax, edx
inc ecx
dec esi
jne 0x4929a2
pop esi
pop ebx
not eax
ret
Function at 0x4d0214
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d024c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ce2cb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ce2a3
jmp 0x4d0258
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d1905
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d1947
call fcn.004d7401
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d1947
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d193e
xor eax, eax
jmp 0x4d194f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d1955
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d7931
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d795f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d797d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d7897
jmp 0x4d797d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d797d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d7897
test edi, edi
mov eax, edi
jne 0x4d7967
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4015a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x164], ecx
push 0x50
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.0043d340
add esp, 0xc
mov ecx, 0x2c
mov word [ebp - 0x58], cx
mov byte [ebp - 0x55], 0
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
mov byte [ebp - 0x52], 0xc
mov byte [ebp - 0x51], 0x12
mov dword [ebp - 0x40], 0x30
push 0x12
push 0
mov edx, dword [ebp - 0x164]
add edx, 0x148
push edx
call fcn.0043d340
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x401614
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
jmp 0x40161b
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], ecx
movzx edx, byte [ebp + 0x1c]
mov dword [ebp - 0x48], edx
cmp dword [ebp + 0x18], 1
jne 0x401634
mov byte [ebp - 0x50], 1
jmp 0x401644
cmp dword [ebp + 0x18], 0
jne 0x401640
mov byte [ebp - 0x50], 0
jmp 0x401644
mov byte [ebp - 0x50], 2
push 0xc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0043d4e0
add esp, 0xc
mov byte [ebp - 0x59], 0
push 1
lea edx, [ebp - 0x58]
push edx
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x164]
call fcn.004012c0
test eax, eax
jne 0x40168c
movzx ecx, byte [ebp - 0x59]
mov dl, byte [ebp - 0x59]
add dl, 1
mov byte [ebp - 0x59], dl
cmp ecx, 5
jge 0x401688
jmp 0x40165a
xor eax, eax
jmp 0x4016de
movzx eax, byte [ebp - 0x56]
test eax, eax
je 0x4016d9
movzx ecx, byte [ebp - 0x56]
push ecx
push str.ScsiStatus_is__02X_n
lea edx, [ebp - 0x160]
push edx
call fcn.0043d40b
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x12
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x164]
add edx, 0x148
push edx
call fcn.0043d4e0
add esp, 0xc
xor eax, eax
jmp 0x4016de
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4017d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x80], ecx
mov byte [ebp - 0x78], 0
push 0x63
push 0
lea eax, [ebp - 0x77]
push eax
call fcn.0043d340
add esp, 0xc
push str.WNASPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x114], eax
mov edx, dword [ebp - 0x80]
cmp dword [edx + 0x114], 0
jne 0x40182c
push str.LoadLibrary:_nWNASPI32.DLL_not_found.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4019a2
push str.GetASPI32SupportInfo
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x128], eax
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x128], 0
jne 0x401868
push str.GetProcAddress:_nGetASPI32SupportInfo_not_fount.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4019a2
push str.SendASPI32Command
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x12c], eax
mov edx, dword [ebp - 0x80]
cmp dword [edx + 0x12c], 0
jne 0x4018a4
push str.GetProcAddress:_ngpfnSendASPI32Command_not_found.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4019a2
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x128]
call ecx
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
and edx, 0xffff
movzx eax, dx
and eax, 0xff
mov byte [ebp - 9], al
mov ecx, dword [ebp - 0x7c]
and ecx, 0xffff
movzx edx, cx
shr edx, 8
and edx, 0xff
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
sub ecx, 1
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x84], 0xe2
ja case.0x401910.1
mov edx, dword [ebp - 0x84]
movzx eax, byte [edx + 0x4019c4]
jmp dword [eax*4 + 0x4019b0]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40193d
push str.Could_not_create_the_event_object.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4019a2
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4019a2
push str.Could_not_find_the_ASPI_manager.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4019a2
push str.ASPI_for_Windows_does_not_support_real_mode.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4019a2
push str.Old_ASPI_manager.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4019a2
movzx edx, byte [ebp - 1]
push edx
movzx eax, byte [ebp - 9]
push eax
push str.Error_initializing_ASPI__x__x
lea ecx, [ebp - 0x78]
push ecx
call fcn.0043d40b
add esp, 0x10
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret
Function at 0x401f70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x74], ecx
mov byte [ebp - 0x70], 0
push 0x63
push 0
lea eax, [ebp - 0x6f]
push eax
call fcn.0043d340
add esp, 0xc
cmp dword [0x46de40], 0
je 0x401faf
movsx ecx, byte [0x46a01c]
movsx edx, byte [ebp + 8]
cmp ecx, edx
je 0x402003
cmp dword [0x46de40], 0
je 0x401fc4
mov eax, dword [0x46de40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx ecx, byte [ebp + 8]
mov edx, dword [ebp - 0x74]
movsx eax, byte [edx + ecx + 0x10c]
push eax
push 0x4579b4
lea ecx, [ebp - 0x70]
push ecx
call fcn.0043d40b
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x46de40], eax
cmp dword [0x46de40], 0xffffffff
jne 0x402049
mov dword [0x46de40], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0x4579bc
lea ecx, [ebp - 0x70]
push ecx
call fcn.0043d40b
add esp, 0xc
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [0x46a01c], 0xff
xor eax, eax
jmp 0x4020a7
mov al, byte [ebp + 8]
mov byte [0x46a01c], al
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 1
lea edx, [ebp + 0xc]
push edx
push 0x2d0944
mov eax, dword [0x46de40]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4020a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push str.DeviceIoControl_Error:_Error_Code__d_nI_cant_stop_or_do__issuing_GESN_from_Window
lea edx, [ebp - 0x70]
push edx
call fcn.0043d40b
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4020a7
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret 8
Function at 0x403a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x24], ecx
xor eax, eax
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0x24]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 0
jmp 0x403a9a
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0x3e
jge 0x403ab5
movzx eax, word [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
add eax, edx
mov word [ebp - 0x18], ax
jmp 0x403a91
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x42]
movzx edx, word [ebp - 0x18]
cmp ecx, edx
je 0x403aff
push 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Invalid_F_W___Header_Checksum_Error
call fcn.00404bd0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x54
call fcn.00406580
mov ecx, dword [ebp - 0x24]
add ecx, 0x54
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x54]
mov eax, dword [edx + 0x14c]
call eax
xor eax, eax
jmp 0x403bda
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0x24]
add edx, dword [eax + 0x3a]
mov dword [ebp - 8], edx
push 1
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.0043d9d6
add esp, 8
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x44], eax
push 0
push 0
push 0x40
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov word [ebp - 0x10], ax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 4], edx
jmp 0x403b6a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
sub ecx, 2
cmp dword [ebp - 4], ecx
jae 0x403b8e
movzx edx, word [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
movzx ecx, byte [ecx + eax]
add edx, ecx
mov word [ebp - 0x10], dx
jmp 0x403b61
movzx edx, word [ebp - 0x10]
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x40]
cmp edx, ecx
je 0x403bd5
push 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Invalid_F_W___Data_Checksum_Error
call fcn.00404bd0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x54
call fcn.00406580
mov ecx, dword [ebp - 0x24]
add ecx, 0x54
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x54]
mov edx, dword [eax + 0x14c]
call edx
xor eax, eax
jmp 0x403bda
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x404140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 1
push 0x10000
call fcn.0043d9d6
add esp, 8
mov dword [ebp - 4], eax
push 0
push 0
push 0x79000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 8]
push ecx
push 0x10000
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], 0
jmp 0x404199
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x10000
jae 0x4041ef
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
movzx eax, byte [edx]
test eax, eax
jne 0x4041ed
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 7]
cmp edx, 7
jne 0x4041ed
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 8]
cmp ecx, 8
jne 0x4041ed
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
movzx eax, byte [edx + 9]
cmp eax, 9
jne 0x4041ed
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0xa]
cmp edx, 0x10
jne 0x4041ed
jmp 0x4041ef
jmp 0x404190
mov eax, dword [ebp - 4]
push eax
call fcn.0043d948
add esp, 4
cmp dword [ebp - 0xc], 0x10000
jbe 0x404208
xor eax, eax
jmp 0x404210
mov eax, dword [ebp - 0xc]
add eax, 0x78f90
mov esp, ebp
pop ebp
ret 4
Function at 0x409850
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
push 0x458dbc
lea ecx, [ebp - 0x110]
push ecx
call fcn.0043d40b
add esp, 0xc
lea edx, [ebp - 0x110]
mov dword [ebp - 4], edx
lea eax, [ebp - 0x210]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x4098ec
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x4098ad
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x4098c8
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx - 1]
cmp edx, 0x3a
je 0x4098c8
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x40988d
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp + 8]
call fcn.004066f0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret

Function at 0x409c00
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.lgfwup.txt
lea ecx, [ebp - 0x210]
push ecx
call fcn.0043d860
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x409c88
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x31c], 0
lea ecx, [ebp + 8]
call fcn.004066f0
mov eax, dword [ebp - 0x31c]
jmp 0x409d32
mov ecx, dword [ebp + 8]
push ecx
push str.MODEL_s_r_n
lea edx, [ebp - 0x318]
push edx
call fcn.0043d40b
add esp, 0xc
cmp dword [ebp + 0xc], 1
jne 0x409cbc
push str.STATUSOK_r_n
lea eax, [ebp - 0x108]
push eax
call fcn.0043d40b
add esp, 8
jmp 0x409cd0
push str.STATUSNG_r_n
lea ecx, [ebp - 0x108]
push ecx
call fcn.0043d40b
add esp, 8
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x318]
push eax
call fcn.0043d860
add esp, 8
push 0
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x318]
push edx
call fcn.0043da20
add esp, 4
push eax
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x320], 1
lea ecx, [ebp + 8]
call fcn.004066f0
mov eax, dword [ebp - 0x320]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret
Function at 0x409d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.0040c370
movzx eax, al
cmp eax, 1
jne 0x409d80
mov dword [ebp - 0x21c], 0
lea ecx, [ebp + 8]
call fcn.004066f0
mov eax, dword [ebp - 0x21c]
jmp 0x409e44
push 0x458e64
lea ecx, [ebp - 0x110]
push ecx
call fcn.0043d40b
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x409de0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x220], 0
lea ecx, [ebp + 8]
call fcn.004066f0
mov eax, dword [ebp - 0x220]
jmp 0x409e44
mov ecx, dword [ebp + 8]
push ecx
push str._s_r_n
lea edx, [ebp - 0x218]
push edx
call fcn.0043d40b
add esp, 0xc
push 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.0043da20
add esp, 4
push eax
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x224], 1
lea ecx, [ebp + 8]
call fcn.004066f0
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret

Function at 0x409e60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x1179]
cmp ecx, 1
jne 0x409e9a
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
add eax, 0x10c8
push ecx
mov ecx, esp
mov dword [ebp - 4], esp
push eax
call fcn.004066d0
mov dword [ebp - 0xc], eax
call fcn.00409c00
add esp, 8
jmp 0x409ed3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x1179]
cmp edx, 2
jne 0x409ed3
push str.error.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
add eax, 0x10e8
push ecx
mov ecx, esp
mov dword [ebp - 8], esp
push eax
call fcn.004066d0
mov dword [ebp - 0x10], eax
call fcn.00409d40
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40eee0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xa4], 1
cmp dword [ebp - 0x90], 2
jne 0x40f0af
mov byte [ebp - 0xb5], 0
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xc4], 0
mov byte [ebp - 0xc3], 0
mov byte [ebp - 0xc2], 0
mov byte [ebp - 0xc1], 0
mov byte [ebp - 0xc0], 0
mov byte [ebp - 0xbf], 5
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0xb0]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc4]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0xb4], 0
lea eax, [ebp - 0xb4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0xbc]
push ecx
push 0
push 0
push 2
mov edx, dword [ebp - 0xb4]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0xbc]
push eax
call fcn.0044059a
add esp, 4
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
mov eax, dword [ebp - 0xac]
push eax
push 2
mov ecx, dword [ebp - 0xb4]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0xa8], 0
jmp 0x40f02d
mov edx, dword [ebp - 0xa8]
add edx, 1
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [eax]
jae 0x40f06d
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + edx*8 + 4]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40f06b
mov dword [ebp - 0xa4], 1
jmp 0x40f06d
jmp 0x40f01e
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa8]
xor edx, edx
cmp ecx, dword [eax]
setne dl
mov byte [ebp - 0xb5], dl
mov eax, dword [ebp - 0xac]
push eax
call fcn.0043d948
add esp, 4
mov ecx, dword [ebp - 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret