joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi], 4
mov ebx, ecx
je 0x408618
push edi
push 0xd
pop ecx
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x68]
push eax
xor esi, esi
push esi
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.00407a83
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov byte [eax + 4], 1
and dword [ebp - 0x34], 0xfffb
lea eax, [ebp - 0x34]
push eax
push esi
push 0x104c
push dword [ebx + 0x20]
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
jmp 0x40861e
push esi
call fcn.0040759d
pop esi
pop ebx
leave
ret 4
Function at 0x413985
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xd0
mov eax, dword [0x4cb598]
xor eax, ebp
mov dword [ebp + 0x70], eax
and dword [ebp - 0x5c], 0
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x64
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00413506
push 0x4a8cb0
push esi
call fcn.00478a96
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4139d7
push str._n_Error:_Cannot_open_the_String_pack_File
call fcn.00479727
pop ecx
push 0xa
pop eax
jmp 0x413a7c
push 6
call fcn.00476994
mov esi, eax
test esi, esi
pop ecx
jne 0x4139f4
push str._n_Memory_Allocation_Error..Failed_to_allocate_Memory
call fcn.00479727
pop ecx
push 0xc
jmp 0x4139d1
push ebx
push 6
push 0
push esi
call fcn.004762a0
push edi
call fcn.00479ab3
push edi
push 6
mov ebx, eax
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.00479dbd
push 6
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.004765e0
push dword [esi]
push str._nString_Pack_Length:_04X
call fcn.0044dc0a
movzx eax, word [esi + 4]
push eax
push str._n_Type:_02X
call fcn.0044dc0a
mov eax, dword [esi]
add esp, 0x3c
test eax, eax
jne 0x413a4e
cmp word [esi + 4], 2
je 0x413a6a
test eax, eax
jbe 0x413a5a
cmp word [esi + 4], 2
jne 0x413a6a
inc dword [ebp - 0x5c]
push 0
add eax, ebx
push eax
push edi
call fcn.0047985d
add esp, 0xc
jmp 0x4139f5
push edi
call fcn.00478828
push esi
call fcn.00478435
mov eax, dword [ebp - 0x5c]
pop ecx
pop ecx
pop ebx
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.00475cba
add ebp, 0x74
leave
ret

Function at 0x413ad4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x4a8cb0
push dword [ebp + 8]
call fcn.00478a96
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x413afe
push str._n_Error:Cannot_Open_the_.Uni_File
call fcn.00479727
pop ecx
push 0xb
pop eax
jmp 0x413b61
push edi
push esi
call fcn.0041390c
push esi
mov edi, eax
call fcn.00479ab3
pop ecx
jmp 0x413b59
push esi
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.00479dbd
add esp, 0x10
test eax, eax
je 0x413b64
cmp word [ebp - 4], 0x22
jne 0x413b10
push esi
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.00479dbd
add esp, 0x10
test eax, eax
je 0x413b71
cmp word [ebp - 4], 0x22
movzx eax, word [ebp - 4]
mov byte [eax + 0x4cd260], 1
jne 0x413b2c
push esi
call fcn.00479ab3
cmp eax, edi
pop ecx
jle 0x413b10
xor eax, eax
pop edi
pop esi
leave
ret
xor edi, edi
push esi
call fcn.00478828
pop ecx
mov eax, edi
jmp 0x413b60
push 0xb
pop edi
jmp 0x413b66
Function at 0x414a68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x4aa480
mov esi, 0x4dda88
push esi
call fcn.00478a96
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
pop ecx
jne 0x414aa0
push esi
push str._n_Error:_Cannot_Open_the_Output_File:_s
call fcn.00479727
pop ecx
pop ecx
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret
call fcn.0041458d
mov esi, eax
cmp esi, ebx
je 0x414ac1
push str._n_Error_in_Filling_the_Unicode_values_and_Glyph_patterns
call fcn.0044dc0a
pop ecx
push edi
call fcn.00478828
pop ecx
mov eax, esi
jmp 0x414a9b
cmp dword [0x4dde98], ebx
je 0x414b1b
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.004762a0
mov ax, word [0x4dd270]
mov cx, word [0x4dda80]
movzx edx, ax
movzx esi, cx
lea edx, [esi + edx*2]
imul edx, edx, 0x16
push edi
add edx, 8
push 1
and edx, 0xffffff
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
or edx, 0x7000000
push 8
push eax
mov dword [ebp - 0xc], edx
mov word [ebp - 8], cx
call fcn.00479f37
add esp, 0x1c
jmp 0x414b80
push 0xa
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.004762a0
mov cx, word [0x4dd270]
mov dx, word [0x4dda80]
movzx eax, cx
movzx esi, dx
lea eax, [esi + eax*2]
imul eax, eax, 0x16
add eax, 0xa
push eax
push str._n_Header_Length:_04X
mov dword [ebp - 0xc], eax
mov word [ebp - 8], 1
mov word [ebp - 6], dx
mov word [ebp - 4], cx
call fcn.0044dc0a
movzx eax, word [ebp - 8]
push eax
push str._n_Header_Type:_04X
call fcn.0044dc0a
push edi
push 1
lea eax, [ebp - 0xc]
push 0xa
push eax
call fcn.00479f37
add esp, 0x2c
xor esi, esi
cmp word [0x4dda80], si
jbe 0x414baf
mov eax, dword [0x4dde8c]
push edi
push 0x16
add eax, esi
push 1
push eax
call fcn.00479f37
movzx eax, word [0x4dda80]
add esp, 0x10
inc ebx
add esi, 0x16
cmp ebx, eax
jl 0x414b8b
xor esi, esi
xor ebx, ebx
cmp word [0x4dd270], si
jbe 0x414be0
mov eax, dword [0x4dde90]
push edi
push 0x2c
add eax, esi
push 1
push eax
call fcn.00479f37
movzx eax, word [0x4dd270]
add esp, 0x10
inc ebx
add esi, 0x2c
cmp ebx, eax
jl 0x414bbc
xor esi, esi
jmp 0x414ab6
Function at 0x41611a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc6c
mov eax, dword [0x4cb598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x13
pop ecx
mov esi, str.The_Section__language__cannot_be_found
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0xc6c], eax
xor eax, eax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x400
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x868]
push 0
push eax
call fcn.00413506
lea eax, [ebp - 0xc68]
push eax
call fcn.00413853
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x10
lea eax, [ebp - 0xc68]
push eax
push esi
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x68]
push eax
mov ebx, str.UnicodeRange
push ebx
push 0
call edi
push dword [ebp - 0xc6c]
lea eax, [ebp - 0x868]
push eax
call fcn.004138a2
test al, al
pop ecx
pop ecx
jne 0x4161cb
push dword [ebp - 0xc6c]
push str._n_Error:The_language__s_is_not_found_in_the_INI_File
call fcn.00479727
pop ecx
pop ecx
push 0x1b
jmp 0x41630a
push esi
lea eax, [ebp - 0x868]
push 0
push eax
call fcn.00413506
lea eax, [ebp - 0x68]
push str.Unicode_Range_Not_found
push eax
call fcn.00476279
add esp, 0x14
lea eax, [ebp - 0xc68]
push eax
push 0x800
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0xc6c]
call edi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.004755e6
test eax, eax
pop ecx
pop ecx
jne 0x416233
push str._n_Unicode_Range_Not_Given_in_the_INI_File
call fcn.00479727
pop ecx
push 0x1d
jmp 0x41630a
lea eax, [ebp - 0x868]
push eax
call fcn.00475882
cmp eax, 9
pop ecx
lea eax, [ebp - 0x868]
jbe 0x4162ab
mov esi, 0x4a6eb4
push esi
push eax
jmp 0x41628d
push edi
call fcn.00475882
lea eax, [eax + eax + 2]
push eax
call fcn.00476994
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0xc6c], eax
je 0x41629c
push edi
push eax
call fcn.00476279
pop ecx
pop ecx
lea eax, [ebp - 0xc6c]
push eax
mov ecx, 0x4ddedc
call fcn.004154e9
push esi
push 0
call fcn.004761a8
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x416254
jmp 0x4162f9
push str._n_Memory_Allocation_Error..Failed_to_allocate_Memory
call fcn.00479727
pop ecx
push 0xc
jmp 0x41630a
push eax
call fcn.00475882
cmp eax, 9
pop ecx
jne 0x4162fd
lea eax, [ebp - 0x868]
push eax
call fcn.00475882
lea eax, [eax + eax + 2]
push eax
call fcn.00476994
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0xc6c], eax
je 0x41629c
lea ecx, [ebp - 0x868]
push ecx
push eax
call fcn.00476279
pop ecx
pop ecx
lea eax, [ebp - 0xc6c]
push eax
mov ecx, 0x4ddedc
call fcn.004154e9
xor eax, eax
jmp 0x41630b
push str._n_Invalid_Range_Specified_in_the_INI_File
call fcn.00479727
pop ecx
push 0x1a
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475cba
leave
ret
Function at 0x41685c
Capabilities:
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4cb598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x414]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
jg 0x416a14
test eax, eax
je 0x416a14
lea eax, [ebp - 0x20c]
push eax
push 0
push str.BCPAPTIO
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x416a14
lea eax, [ebp - 0x20c]
push 0x4aa480
push eax
call fcn.00478a96
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x416903
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x416a1c
push edi
push dword [ebp + 0x14]
push 1
push ebx
call fcn.00479f37
add esp, 0x10
cmp eax, dword [ebp + 0x14]
je 0x416928
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esi], eax
call fcn.00478828
pop ecx
jmp 0x4168f1
push edi
call fcn.00478828
pop ecx
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ebx, eax
test ebx, ebx
je 0x416a14
push dword [ebp + 0x10]
push dword [ebp - 0x418]
push 0x409
push 1
push dword [ebp - 0x41c]
push ebx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x4168e9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x4168e9
lea eax, [ebp - 0x20c]
push 0x4a8cb0
push eax
call fcn.00478a96
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x4168e9
push 2
push 0
push ebx
call fcn.0047985d
push ebx
call fcn.00479ab3
push ebx
mov edi, eax
call fcn.0047a458
push edi
mov dword [esi], edi
call fcn.0044b347
push ebx
push edi
push 1
push eax
mov dword [ebp - 0x418], eax
call fcn.00479dbd
add esp, 0x28
cmp eax, edi
je 0x4169f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi], eax
call fcn.00478828
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x418]
call fcn.0044b34c
pop ecx
jmp 0x416a1c
push ebx
call fcn.00478828
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x418]
jmp 0x416a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475cba
leave
ret
Function at 0x4186d4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4cb598]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x44541fe], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jle 0x418740
push ebx
lea ebx, [eax + 1]
push ebx
lea eax, [ebp - 0x68]
push 0x4a7b38
push eax
call fcn.004134f0
lea eax, [ebp - 0x68]
push 0x4ab950
push eax
call fcn.0047624f
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00476279
add esp, 0x1c
lea eax, [ebp - 0x130]
push eax
call edi
mov eax, ebx
cmp eax, dword [esi + 0x44541fe]
jl 0x4186fc
pop ebx
push 0x4ab934
call edi
push 0x4ab8fc
call edi
push 0x4a9ea4
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00475cba
leave
ret
Function at 0x427065
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x4cb598]
xor eax, ebp
mov dword [ebp + 0x120], eax
mov eax, dword [ebp + 0x138]
push ebx
mov ebx, dword [ebp + 0x12c]
push esi
mov esi, ecx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x144]
xor ecx, ecx
cmp dword [ebp + 0x134], ecx
push edi
mov dword [ebp - 0x80], eax
jne 0x4270b2
cmp dword [ebp + 0x140], ecx
mov dword [ebp - 0x7c], ecx
je 0x4270b9
mov dword [ebp - 0x7c], 1
movzx ecx, byte [esi + 0x206a]
push ecx
push dword [ebp + 0x148]
push eax
call fcn.00430880
push 0x4adb70
call fcn.004263ea
push 0x64
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.004765e0
push 0x4adb64
call fcn.004263ea
push 0x64
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004765e0
add esp, 0x2c
cmp dword [ebp + 0x134], 0
mov edi, 0x4c9700
je 0x427146
test ebx, ebx
je 0x427146
push ebx
push dword [ebp + 0x130]
lea eax, [ebp - 0x70]
push dword [esi + 0x206b]
push edi
push eax
call fcn.00430910
add esp, 0x14
test eax, eax
mov dword [ebp - 0x78], eax
je 0x427146
push ebx
call fcn.00478435
push dword [ebp - 0x74]
call fcn.00478435
pop ecx
pop ecx
xor eax, eax
jmp 0x42723f
cmp dword [ebp + 0x140], 0
je 0x427178
cmp dword [ebp - 0x74], 0
je 0x427178
push dword [ebp - 0x74]
lea eax, [ebp + 0x58]
push dword [ebp + 0x13c]
push dword [esi + 0x206f]
push edi
push eax
call fcn.00430910
add esp, 0x14
test eax, eax
mov dword [ebp - 0x78], eax
jne 0x42712f
test ebx, ebx
je 0x427183
push ebx
call fcn.00478435
pop ecx
cmp dword [ebp - 0x74], 0
je 0x427192
push dword [ebp - 0x74]
call fcn.00478435
pop ecx
cmp dword [ebp - 0x7c], 0
je 0x42723c
call fcn.00430920
cmp dword [esi + 0x207b], 0
je 0x4271cc
push dword [ebp + 0x148]
movzx eax, byte [esi + 0x2060]
push dword [ebp - 0x80]
push eax
push dword [0x4cca10]
call fcn.0044af80
add esp, 0x10
mov dword [ebp - 0x78], eax
cmp dword [esi + 0x207f], 0
je 0x427232
push 0x4adb60
mov edi, str.NvRam.bin
push edi
call fcn.0047a909
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x427232
push ebx
push 1
push dword [esi + 0xd1f7]
push dword [esi + 0xd1fb]
call fcn.00479f37
push ebx
call fcn.00478828
movzx eax, byte [esi + 0x2060]
push edi
push dword [esi + 0x2061]
push eax
push dword [0x4cca10]
call fcn.0044b160
add esp, 0x24
push 0x4adb7c
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x78], 0
jne 0x42713f
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x120]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475cba
add ebp, 0x124
leave
ret 0x20
Function at 0x435f10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00435470
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x435fbd
mov eax, dword [esp + 0x1c]
push 0x4aa480
push eax
call fcn.00478a96
mov edi, eax
add esp, 8
test edi, edi
jne 0x435f78
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00478435
add esp, 4
pop edi
pop esi
mov eax, 0xb006
pop ebp
add esp, 8
ret
mov esi, dword [esp + 0xc]
test esi, esi
mov eax, dword [esp + 0x10]
jne 0x435f88
test eax, eax
je 0x435fae
push edi
push 1
push eax
push esi
call fcn.00479f37
add esp, 0x10
test eax, eax
jne 0x435fae
push esi
call fcn.00478435
add esp, 4
pop edi
pop esi
mov eax, 0xb006
pop ebp
add esp, 8
ret
push esi
call fcn.00478435
push edi
call fcn.00478828
add esp, 8
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x439e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call fcn.00442690
cmp eax, 0x10000
jae 0x439e71
jmp fcn.004444c0
jmp fcn.004444c0

Function at 0x43a380
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x4cb598]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.004762a0
add esp, 0xc
xor ebx, ebx
call fcn.0043a360
mov eax, dword [esp + 0x110]
test eax, eax
je 0x43a497
mov eax, dword [eax + 0x78]
lea edx, [esp + 4]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x43a3d0
push edi
lea edi, [esp + 8]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x43a3e4
mov cx, word [0x4a8c48]
lea eax, [esp + 8]
mov word [edi], cx
add eax, 0xffffffff
pop edi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x43a400
mov edx, dword [str.BuildLog.txt]
mov ecx, dword [0x4af1ec]
mov dword [eax], edx
mov edx, dword [0x4af1f0]
mov dword [eax + 4], ecx
mov cl, byte [0x4af1f4]
push esi
mov dword [eax + 8], edx
lea edx, [esp + 8]
push 0x4af1e4
push edx
mov byte [eax + 0xc], cl
call fcn.0047a909
mov esi, eax
add esp, 8
test esi, esi
je 0x43a484
push 2
push 0
push esi
call fcn.0047985d
push esi
call fcn.00479ab3
push 0
push 0
push esi
mov ebx, eax
call fcn.0047985d
lea eax, [ebx + 1]
push eax
call fcn.00476994
add esp, 0x20
test eax, eax
mov dword [0x4e22d8], eax
je 0x43a489
push esi
push 1
push ebx
push eax
call fcn.00479dbd
add esp, 0x10
mov eax, dword [0x4e22d8]
push esi
mov byte [eax + ebx], 0
call fcn.00478828
add esp, 4
pop esi
mov ecx, dword [esp + 0x108]
pop ebx
xor ecx, esp
call fcn.00475cba
add esp, 0x108
ret

Function at 0x43add0
Capabilities:
Timestomp file

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov edi, eax
call fcn.0043a4f0
mov ecx, dword [eax]
test ecx, ecx
je 0x43adf2
cmp dword [eax + 4], 0
je 0x43adf2
mov dword [esp + 0xc], ecx
mov esi, dword [eax + 4]
jmp 0x43ae06
push 0
push 0
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov esi, dword [esp + 0x10]
mov eax, edi
shl eax, 4
sub eax, edi
add eax, eax
push 0
add eax, eax
cdq
push 0x989680
push edx
push eax
call fcn.0047b510
push 1
push 0
push 0
push esi
mov edi, eax
mov ebp, edx
call fcn.0047b510
sub eax, edi
sbb edx, ebp
xor ecx, ecx
add eax, dword [esp + 0xc]
adc edx, ecx
mov dword [esp + 0x10], edx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
mov eax, edx
push eax
mov ecx, edx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x43ae60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
mov eax, dword [0x4cb598]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x3c]
push edi
mov dword [esp + 0xc], eax
xor eax, eax
push str.GenFfs__t
push esi
mov byte [esp + 0x18], 0
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x10], eax
call fcn.0043a730
mov edi, dword [ebp]
movzx eax, byte [edi + 0x12]
add eax, 0xffffffff
add esp, 8
cmp eax, 0xc
ja case.default.0x43aec8
jmp dword [eax*4 + 0x43b060]
push str.EFI_FV_FILETYPE_RAW__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_FREEFORM__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_SECURITY_CORE__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_PEI_CORE__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_DXE_CORE__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_PEIM__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_DRIVER__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_APPLICATION__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_SMM__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_COMBINED_SMM_DXE__g
jmp 0x43af2f
push str.EFI_FV_FILETYPE_SMM_CORE__g
jmp 0x43af2f
push 0x4af5c0
push esi
call fcn.0043a730
add esp, 8
push 0
push 0x25
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.00436120
lea edx, [esp + 0x20]
push edx
push esi
call fcn.0043a730
add esp, 0x18
test byte [edi + 0x13], 4
je 0x43af8a
push edi
call fcn.00434390
add esp, 4
cmp eax, 1
je 0x43af7c
test byte [edi + 0x13], 4
je 0x43af8a
push edi
call fcn.00439e60
add esp, 4
test al, al
jne 0x43af8a
push 0x4af5bc
push esi
call fcn.0043a730
add esp, 8
lea eax, [esp + 8]
push eax
push edi
call fcn.00439ee0
add esp, 8
test eax, eax
jne 0x43afc6
mov eax, dword [esp + 8]
cmp eax, 1
je 0x43afc6
cmp eax, 0x200
ja 0x43afb4
push eax
push str.__a__d
jmp 0x43afbd
shr eax, 0xa
push eax
push str.__a__dK
push esi
call fcn.0043a730
add esp, 0xc
test byte [edi + 0x13], 0x40
je 0x43afda
push 0x4af5a8
push esi
call fcn.0043a730
add esp, 8
push str.__o
push esi
call fcn.0043a730
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
push str._s_s.ffs
push esi
call fcn.0043a730
push ebp
call fcn.00436340
add esp, 0x1c
cmp byte [edi + 0x12], 2
jne 0x43b03a
cmp dword [ebp + 0x1c], 0
jne 0x43b03a
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 0x78]
push ecx
push edx
push eax
push str.__i__s_d.bin
push esi
call fcn.0043a730
add esp, 0x14
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00475cba
add esp, 0x34
ret
mov ecx, dword [eax + 0x78]
push ecx
push str.__i__sDummyFfsData.bin
push esi
call fcn.0043a730
mov ecx, dword [esp + 0x44]
add esp, 0xc
pop edi
pop ebp
xor ecx, esp
call fcn.00475cba
add esp, 0x34
ret
Function at 0x43cea0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x164
mov eax, dword [0x4cb598]
xor eax, esp
mov dword [esp + 0x160], eax
push esi
push 0x103
lea eax, [esp + 0x65]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x14], 0
mov byte [esp + 0x6c], 0
call fcn.004762a0
push 0x44
lea ecx, [esp + 0x2c]
push 0
push ecx
mov dword [esp + 0x1c], 0
call fcn.004762a0
mov edx, dword [esp + 0x184]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x78]
push eax
push edx
push eax
lea eax, [esp + 0x2c]
push str.GenFds.exe__w__s__p_platform.dsc__b_RELEASE__t_FWLIB__i_FV__d__f_platform.fdf____sBuildLog.txt_2_1
push eax
mov dword [esp + 0x48], 0x44
call fcn.0043a730
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x8c]
add esp, 0x2c
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x43cf30
lea eax, [esp + 0x60]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x43cf43
mov ecx, dword [str._GenFds.bat]
mov edx, dword [0x4b01bc]
mov dword [eax], ecx
mov ecx, dword [0x4b01c0]
mov dword [eax + 4], edx
mov dl, byte [0x4b01c4]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x60]
push 0x4b01b4
push eax
call fcn.0047a909
mov esi, eax
add esp, 8
test esi, esi
je 0x43cfab
mov edx, dword [esp + 8]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x43cf92
push esi
sub eax, edi
push eax
push 1
push edx
call fcn.00479f37
add esp, 0x10
pop edi
push esi
call fcn.00478828
add esp, 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push 0
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x43d002
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xd00f
pop esi
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00475cba
add esp, 0x164
ret
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0xc], 0x103
call esi
cmp eax, 1
jne 0x43d048
mov eax, dword [esp + 4]
test eax, eax
je 0x43d048
cmp eax, 0xc0
je 0x43d037
cmp eax, 0x103
jne 0x43d074
mov ecx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push ecx
call esi
cmp eax, 1
je 0x43d021
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00475cba
add esp, 0x164
ret
mov ecx, dword [esp + 0x164]
pop esi
xor ecx, esp
mov eax, 0xd00d
call fcn.00475cba
add esp, 0x164
ret