joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409340
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x4093eb
cmp dword [esi + 4], 0xffffffff
jne 0x4093eb
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
jmp 0x409370
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409370
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x4093a1
cmp al, 0x2f
je 0x4093a1
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409390
mov ax, word [0x441ddc]
mov word [edi], ax
push 0x20
call fcn.0040a1b6
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.004084a0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x4099b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x44f690]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x4099ed
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4099ed
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x409aa6
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x409a08
cmp al, 0x5c
jne 0x409a0a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409a00
cmp esi, ebp
je 0x409a40
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.0042c520
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.004099b0
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x409a5b
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409a51
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409a60
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409a70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x409aa6
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.0042648c
add esp, 0x20c
ret
Function at 0x40b53f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40b587
call fcn.00415216
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40b587
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b5ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40b5b3
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40b5b3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40b5c7
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x413cac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x413cf3
call fcn.00415216
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413cf3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413d0f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00413826
mov esi, eax
test edi, edi
je 0x413d0d
test ebx, ebx
je 0x413d0d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4144b6
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43a4ff
call fcn.004288bb
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4144db
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x414521
lea ecx, [ebp - 0x10]
call fcn.004020c0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e4a8
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004020a0
mov eax, esi
call fcn.00428993
ret 8
Function at 0x42648c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f690]
jne 0x426496
repz ret
jmp fcn.0042bc45

Function at 0x435721
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042bdbd
and dword [ebp - 4], 0
cmp dword [0x45394c], 0
mov ebx, eax
jne 0x4357d2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x435883
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4411c4
push edi
call esi
test eax, eax
je 0x435883
push eax
call fcn.0042bd4b
mov dword [esp], 0x4411b4
push edi
mov dword [0x45394c], eax
call esi
push eax
call fcn.0042bd4b
mov dword [esp], 0x4411a0
push edi
mov dword [0x453950], eax
call esi
push eax
call fcn.0042bd4b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x453954], eax
call esi
push eax
call fcn.0042bd4b
pop ecx
mov dword [0x45395c], eax
test eax, eax
je 0x4357d2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042bd4b
pop ecx
mov dword [0x453958], eax
mov eax, dword [0x453958]
cmp eax, ebx
je 0x43582a
cmp dword [0x45395c], ebx
je 0x43582a
push eax
call fcn.0042bdc6
push dword [0x45395c]
mov esi, eax
call fcn.0042bdc6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43582a
test edi, edi
je 0x43582a
call esi
test eax, eax
je 0x435821
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x435821
test byte [ebp - 0xc], 1
jne 0x43582a
or dword [ebp + 0x10], 0x200000
jmp 0x435863
mov eax, dword [0x453950]
cmp eax, ebx
je 0x435863
push eax
call fcn.0042bdc6
pop ecx
test eax, eax
je 0x435863
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x435863
mov eax, dword [0x453954]
cmp eax, ebx
je 0x435863
push eax
call fcn.0042bdc6
pop ecx
test eax, eax
je 0x435863
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45394c]
call fcn.0042bdc6
pop ecx
test eax, eax
je 0x435883
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x435885
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x11aaa
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 8], 5
jne 0x11afb
cmp dword [ebp - 4], 2
jne 0x11adc
mov dword [0x134ac], 0x77
jmp 0x11b4d
cmp dword [ebp - 4], 1
jne 0x11aee
mov dword [0x134ac], 0x71
jmp 0x11b4d
cmp dword [ebp - 4], esi
jne 0x11b45
mov dword [0x134ac], esi
jmp 0x11b63
cmp dword [ebp - 8], 6
jne 0x11b45
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x11b14
mov dword [0x134ac], 0xb7
jmp 0x11b4d
cmp eax, 1
jne 0x11b25
mov dword [0x134ac], 0xaf
jmp 0x11b4d
cmp eax, 2
jne 0x11b36
mov dword [0x134ac], 0xed
jmp 0x11b4d
cmp eax, 3
jne 0x11b45
mov dword [0x134ac], 0xef
cmp dword [0x134ac], esi
je 0x11b63
push dword [0x133c8]
push 0x134a8
push dword [0x134ac]
call fcn.00014dba
pop esi
leave
ret 4
Function at 0x14006
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 8], 5
jne 0x14142
cmp dword [ebp - 4], 2
jne 0x14099
mov dword [0x133d0], 0x8f
mov dword [0x133d8], 0x1c0
mov dword [0x133e4], 0x179
mov dword [0x133f0], 0x1d0
mov dword [0x133fc], 0x227
mov dword [0x13408], 0x21e
mov dword [0x13414], 0x24c
mov dword [0x13420], 0x1cb
mov dword [0x13430], 0x1e1
mov dword [0x1343c], 0x1db
jmp 0x142de
cmp dword [ebp - 4], 1
jne 0x140fe
mov dword [0x133d0], 0x89
mov dword [0x133d8], 0x1c1
mov dword [0x133e4], 0x17a
mov dword [0x133f0], 0x1d1
mov dword [0x133fc], 0x22b
mov dword [0x13408], 0x222
mov dword [0x13414], 0x250
mov dword [0x13420], 0x1cc
mov dword [0x1343c], 0x1dc
jmp 0x142d4
cmp dword [ebp - 4], esi
jne 0x142de
mov dword [0x133d0], esi
mov dword [0x133d8], esi
mov dword [0x133e4], esi
mov dword [0x133f0], esi
mov dword [0x133fc], esi
mov dword [0x13408], esi
mov dword [0x13414], esi
mov dword [0x13420], esi
mov dword [0x13430], esi
jmp 0x142de
cmp dword [ebp - 8], 6
jne 0x142de
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x141bc
mov dword [0x133d0], 0xd2
mov dword [0x133d8], 0x1d2
mov dword [0x133e4], 0x187
mov dword [0x133f0], 0x1e4
mov dword [0x133fc], 0x243
mov dword [0x13408], 0x238
mov dword [0x13414], 0x269
mov dword [0x13420], 0x1df
mov dword [0x13430], 0x1f8
mov dword [0x1343c], 0x1f2
jmp 0x142de
cmp eax, 1
jne 0x1422a
mov dword [0x133d0], 0xd7
mov dword [0x133d8], 0x1dc
mov dword [0x133e4], 0x18c
mov dword [0x133f0], 0x1ef
mov dword [0x133fc], 0x24f
mov dword [0x13408], 0x244
mov dword [0x13414], 0x275
mov dword [0x13420], 0x1ea
mov dword [0x13430], 0x203
mov dword [0x1343c], 0x1fd
jmp 0x142de
cmp eax, 2
jne 0x14285
mov dword [0x133d0], 0xc4
mov dword [0x133d8], 0x208
mov dword [0x133e4], 0x1c9
mov dword [0x133f0], esi
mov dword [0x133fc], esi
mov dword [0x13408], esi
mov dword [0x13414], esi
mov dword [0x13420], 0x1fa
mov dword [0x13430], 0x1e0
mov dword [0x1343c], 0x1e7
jmp 0x142de
cmp eax, 3
jne 0x142de
mov dword [0x133d0], 0xc6
mov dword [0x133d8], 0x20e
mov dword [0x133e4], 0x1cc
mov dword [0x133f0], esi
mov dword [0x133fc], esi
mov dword [0x13408], esi
mov dword [0x13414], esi
mov dword [0x13420], 0x1fe
mov dword [0x1343c], 0x1eb
mov dword [0x13430], 0x1e3
pop esi
leave
ret
Function at 0x14898
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push esi
push edi
push 0x18
pop edi
push 0x820
mov dword [ebp - 0x1c], eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push 0x120089
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jge 0x148e9
xor eax, eax
jmp 0x1495a
push 5
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jge 0x1490c
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x148e5
push esi
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, esi
je 0x14901
push esi
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push edi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
push dword [ebp - 4]
test eax, eax
jge 0x1494a
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x148e5
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x149ba
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor ebx, ebx
push ebx
push 0xa
push ebx
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push ebx
push edi
cmp eax, 0xc0000004
jne 0x14a7b
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push ebx
push dword [ebp - 4]
push ebx
call esi
mov esi, eax
cmp esi, ebx
je 0x14a81
push ebx
push dword [ebp - 4]
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x14a1a
push ebx
push esi
call edi
jmp 0x14a81
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0x20]
push 0x5c
push eax
call dword [sym.imp.ntoskrnl.exe_strrchr]
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, ecx
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
cmp dx, bx
jne 0x14a5a
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push ebx
push esi
call edi
mov eax, dword [ebp - 8]
jmp 0x14a83
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x14a90
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor ebx, ebx
push ebx
push 0xa
push ebx
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push ebx
push edi
cmp eax, 0xc0000004
jne 0x14b30
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push ebx
push dword [ebp - 4]
push ebx
call esi
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x14b36
push ebx
push dword [ebp - 4]
push esi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x14aef
push ebx
push esi
call edi
jmp 0x14b36
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, esi
add eax, 0x38
jmp 0x14b0e
mov eax, dword [esi]
cmp eax, ebx
je 0x14b24
add esi, eax
lea eax, [esi + 0x38]
push 1
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x14b03
mov esi, dword [esi + 0x44]
jmp 0x14b26
mov esi, ebx
push ebx
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x14b38
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x14b44
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp + 0xc]
add eax, ecx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
cmp edx, dword [ecx + 0xc]
jae 0x14b65
mov eax, edx
jmp 0x14b90
push ebx
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
test esi, esi
jbe 0x14b8a
mov eax, dword [ecx + 0xc]
cmp edx, eax
jb 0x14b82
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edx, ebx
jb 0x14b94
add ecx, 0x28
inc edi
cmp edi, esi
jb 0x14b72
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, edx
jmp 0x14b8d

Function at 0x15107
Capabilities:
Create device object
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.000150ce
pop ebp
jmp fcn.0001436c
Function at 0x401130
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x461850]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push ebx
push esi
mov esi, dword [esp + 0x118]
push 0x42a674
push eax
call fcn.00413f7d
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40117b
push 0x42a660
call fcn.00413df4
add esp, 4
push ebx
call fcn.00413d68
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00413f90
push str.APATH:
lea ecx, [esp + 0x18]
push 0x42a654
push ecx
call fcn.00413a36
mov eax, esi
add esp, 0x18
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011a7
push edi
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4011c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011e0
push ebx
sub eax, edx
push 1
push eax
lea edx, [esp + 0x14]
push edx
call fcn.004139a9
push ebx
call fcn.00413813
mov ecx, dword [esp + 0x120]
add esp, 0x14
pop esi
pop ebx
xor ecx, esp
call fcn.00413667
add esp, 0x108
ret

Function at 0x401220
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401299
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x401299
mov edx, dword [esp + 8]
fild dword [esp + 8]
test edx, edx
jge 0x40127b
fadd qword [0x42a678]
test edi, edi
fmul qword [0x42a678]
mov dword [esp + 8], edi
fild dword [esp + 8]
jge 0x401293
fadd qword [0x42a678]
pop edi
faddp st(1)
pop esi
pop ecx
ret
fldz
pop edi
pop esi
pop ecx
ret
Function at 0x4012a0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, 0x1470
call fcn.00414090
mov eax, dword [0x461850]
xor eax, esp
mov dword [esp + 0x146c], eax
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x401300
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.00413667
add esp, 0x1470
ret
mov eax, dword [str.Cmd.exe__C]
mov ecx, dword [0x42a704]
mov edx, dword [0x42a708]
push edi
lea edi, [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x401325
push esi
mov ecx, 0x1f
mov esi, 0x42a680
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
push eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x24], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 1
push 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
push 0
lea eax, [esp + 0x94]
push eax
push 0
mov word [esp + 0x78], 0
mov dword [esp + 0x74], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4013ae
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
jmp 0x401433
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0xfff
lea ecx, [esp + 0x479]
push 0
push ecx
mov byte [esp + 0x480], 0
call fcn.00413f90
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 0x20]
push edx
push 0xfff
lea eax, [esp + 0x480]
push eax
push ecx
call esi
test eax, eax
jne 0x4013e0
cmp byte [esp + 0x4a4], 0x64
jne 0x40142c
mov edx, dword [esp + 8]
push edx
call edi
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.00413667
add esp, 0x1470
ret
mov eax, dword [esp + 8]
push eax
call edi
mov ecx, dword [esp + 0x1474]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.00413667
add esp, 0x1470
ret
Function at 0x401450
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, 0x1470
call fcn.00414090
mov eax, dword [0x461850]
xor eax, esp
mov dword [esp + 0x146c], eax
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4014b0
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.00413667
add esp, 0x1470
ret
mov eax, dword [str.Cmd.exe__C]
mov ecx, dword [0x42a704]
mov edx, dword [0x42a708]
push edi
lea edi, [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4014d5
push esi
lea eax, [esp + 0x20]
mov ecx, 0x20
mov esi, str.C:Progra1AssustXUpdate_signtool.exe_sign__f_C:Progra1AssustXUpdateqm.pfx__p_630009109_C:Progra1AssustXUpdate_smse.exe
push eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 1
push 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
push 0
lea eax, [esp + 0x94]
push eax
push 0
mov word [esp + 0x78], 0
mov dword [esp + 0x74], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40155d
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
jmp 0x4015e3
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0xfff
lea ecx, [esp + 0x479]
push 0
push ecx
mov byte [esp + 0x480], 0
call fcn.00413f90
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
nop
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 0x20]
push edx
push 0xfff
lea eax, [esp + 0x480]
push eax
push ecx
call esi
test eax, eax
jne 0x401590
cmp byte [esp + 0x4a4], 0x64
jne 0x4015dc
mov edx, dword [esp + 8]
push edx
call edi
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.00413667
add esp, 0x1470
ret
mov eax, dword [esp + 8]
push eax
call edi
mov ecx, dword [esp + 0x1474]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.00413667
add esp, 0x1470
ret

Function at 0x401600
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x42a790
push eax
call fcn.00413f7d
mov esi, eax
add esp, 8
test esi, esi
je 0x401638
push esi
push 0x9c00
push 1
push 0x457090
call fcn.004139a9
push esi
call fcn.00413813
add esp, 0x14
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x401640
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x42a790
push eax
call fcn.00413f7d
mov esi, eax
add esp, 8
test esi, esi
je 0x401678
push esi
push 0x23000
push 1
push 0x434090
call fcn.004139a9
push esi
call fcn.00413813
add esp, 0x14
mov al, 1
pop esi
ret
xor al, al
pop esi
ret