joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012f8
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push esi
push edi
push 0x40fad0
push eax
push dword [0x412c48]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
cmp edi, esi
jne 0x401331
xor al, al
jmp 0x401382
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40132d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
cmp edi, esi
je 0x401380
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebp
ret

Function at 0x401386
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x40d9b1
call fcn.00409743
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.zlib1.dll
lea ecx, [ebp - 0x14]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401857
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402037
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
push eax
push 0x82
call fcn.004012f8
pop ecx
mov bl, al
pop ecx
lea eax, [esi - 0x10]
call fcn.00402037
mov al, bl
call fcn.004097e2
ret

Function at 0x4013f9
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x40d986
call fcn.00409743
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.RootGenius.zip
lea ecx, [ebp - 0x14]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401857
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402037
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
lea eax, [ebp - 0x10]
push eax
push 0x84
call fcn.004012f8
mov bl, al
pop ecx
pop ecx
test bl, bl
je 0x4014a0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x40fc9c
call fcn.004010f5
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.00401bc6
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0
call fcn.00402067
add esp, 0xc
push edi
mov bl, al
call esi
lea eax, [edi - 0x10]
call fcn.00402037
mov al, bl
call fcn.004097e2
ret
Function at 0x4014b0
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x40d986
call fcn.00409743
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.KingUser.zip
lea ecx, [ebp - 0x14]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401857
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402037
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
push eax
push 0x83
call fcn.004012f8
mov bl, al
pop ecx
pop ecx
test bl, bl
je 0x401551
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x40fc9c
call fcn.004010f5
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.00401bc6
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0
call fcn.00402067
add esp, 0xc
mov bl, al
lea eax, [esi - 0x10]
call fcn.00402037
mov al, bl
call fcn.004097e2
ret

Function at 0x401561
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x40d953
call fcn.00409743
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
push str.RootGeniusEx.zip
lea ecx, [ebp - 0x18]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401857
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402037
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
lea eax, [ebp - 0x14]
push eax
push 0x85
call fcn.004012f8
pop ecx
pop ecx
mov byte [ebp - 0xd], al
test al, al
je 0x40160d
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x40fc9c
call fcn.004010f5
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
lea eax, [edi - 0x10]
mov dword [ebp - 0x18], esp
call fcn.00401bc6
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
mov byte [ebp - 4], 0
call fcn.00402067
add esp, 0xc
push edi
mov byte [ebp - 0xd], al
call esi
lea eax, [edi - 0x10]
call fcn.00402037
mov al, byte [ebp - 0xd]
call fcn.004097e2
ret
Function at 0x40161e
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edi, ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x40fb54
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x10], 0x80000000
and eax, 0x7fffffff
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], esi
fild qword [ebp - 0x24]
fild qword [ebp - 0x14]
fchs
faddp st(1)
fld qword [0x40fcd8]
fmul st(1), st(0)
fmulp st(1)
fcomp qword [0x40fcd0]
fnstsw ax
test ah, 5
jp 0x4016b8
push 4
mov eax, edi
pop ecx
and eax, 0x3ff
push 0x30
cmp cx, ax
jne 0x4016ab
push 0x40fb5c
push 0x40fb64
jmp 0x4016b5
push str.Warning
push str.C_disk_space_will_cause_the_software_can_not_be_used_
push esi
call ebx
mov byte [ebp - 5], 1
call fcn.00401386
test al, al
jne 0x4016ca
mov byte [ebp - 5], al
jmp 0x401742
push str.zlib1.dll
lea ecx, [ebp - 0x10]
call fcn.004010f5
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402037
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004013f9
test al, al
je 0x401731
call fcn.004014b0
test al, al
je 0x401731
push str.RootGenius.dll
lea ecx, [ebp - 0x10]
call fcn.004010f5
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402037
jmp 0x401735
mov byte [ebp - 5], 0
call fcn.00401561
cmp byte [ebp - 5], 0
jne 0x40176b
xor esi, esi
push 4
pop eax
and edi, 0x3ff
push 0x30
cmp ax, di
jne 0x40175e
push 0x40fc24
push str.Root
jmp 0x401768
push str.Error
push str.Root_Genius_failed_to_initialize_
push esi
call ebx
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401e37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e4e
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401e83
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401e7f
cmp edi, eax
jae 0x401e83
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401e71
cmp edi, eax
jb 0x401e87
xor eax, eax
jmp 0x401e90
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x402aaa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411020]
jne 0x402ab4
repz ret
jmp fcn.0040349c

Function at 0x40799c
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.00403614
and dword [ebp - 4], 0
cmp dword [0x412b60], 0
mov ebx, eax
jne 0x407a4d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407afe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407afe
push eax
call fcn.004035a2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x412b60], eax
call esi
push eax
call fcn.004035a2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x412b64], eax
call esi
push eax
call fcn.004035a2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x412b68], eax
call esi
push eax
call fcn.004035a2
pop ecx
mov dword [0x412b70], eax
test eax, eax
je 0x407a4d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004035a2
pop ecx
mov dword [0x412b6c], eax
mov eax, dword [0x412b6c]
cmp eax, ebx
je 0x407aa5
cmp dword [0x412b70], ebx
je 0x407aa5
push eax
call fcn.0040361d
push dword [0x412b70]
mov esi, eax
call fcn.0040361d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407aa5
test edi, edi
je 0x407aa5
call esi
test eax, eax
je 0x407a9c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407a9c
test byte [ebp - 0xc], 1
jne 0x407aa5
or dword [ebp + 0x10], 0x200000
jmp 0x407ade
mov eax, dword [0x412b64]
cmp eax, ebx
je 0x407ade
push eax
call fcn.0040361d
pop ecx
test eax, eax
je 0x407ade
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407ade
mov eax, dword [0x412b68]
cmp eax, ebx
je 0x407ade
push eax
call fcn.0040361d
pop ecx
test eax, eax
je 0x407ade
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412b60]
call fcn.0040361d
pop ecx
test eax, eax
je 0x407afe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407b00
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000877d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10039534]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.100086bc
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.100090e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x100087cc
cmp dword [ebp - 0x1c], 5
jb 0x100087e4
jmp 0x100087e0
cmp dword [ebp - 0x10], 1
jne 0x100087e4
cmp dword [ebp - 0x1c], 4
ja 0x100087e0
jne 0x100087e4
cmp dword [ebp - 0x18], 0
jbe 0x100087e4
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1003232c
call fcn.10008552
test eax, eax
jge 0x10008805
mov byte [0x1003dc04], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10008b75
add ebp, 0x78
leave
ret

Function at 0x10008b75
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10039534]
jne 0x10008b7f
repz ret
jmp fcn.1000fe4e
Function at 0x100105ab
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10039558]
je 0x100105c6
inc edi
cmp edi, 0x17
jb 0x100105b7
cmp edi, 0x17
jae 0x10010746
push ebp
push 3
call fcn.100167ae
cmp eax, 1
pop ecx
je 0x10010712
push 3
call fcn.100167ae
test eax, eax
pop ecx
jne 0x100105fa
cmp dword [0x1003aa60], 1
je 0x10010712
cmp ebx, 0xfc
je 0x10010745
push 0x10033310
mov ebx, 0x314
push ebx
mov ebp, 0x1003adb8
push ebp
call fcn.10010af5
add esp, 0xc
test eax, eax
je 0x10010630
push esi
push esi
push esi
push esi
push esi
call fcn.10008d23
add esp, 0x14
push 0x104
mov esi, 0x1003add1
push esi
push 0
mov byte [0x1003aed5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10010674
push 0x100332f8
push 0x2fb
push esi
call fcn.10010af5
add esp, 0xc
test eax, eax
je 0x10010674
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10008d23
add esp, 0x14
push esi
call fcn.10008b90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100106b9
push esi
call fcn.10008b90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1003b0cc
push 0x100332f4
sub ecx, eax
push ecx
push eax
call fcn.10015c75
add esp, 0x14
test eax, eax
je 0x100106b9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10008d23
add esp, 0x14
jmp 0x100106bb
xor esi, esi
push 0x100332f0
push ebx
push ebp
call fcn.10015c04
add esp, 0xc
test eax, eax
je 0x100106db
push esi
push esi
push esi
push esi
push esi
call fcn.10008d23
add esp, 0x14
push dword [edi*8 + 0x1003955c]
push ebx
push ebp
call fcn.10015c04
add esp, 0xc
test eax, eax
je 0x100106fd
push esi
push esi
push esi
push esi
push esi
call fcn.10008d23
add esp, 0x14
push 0x12010
push 0x100332c8
push ebp
call fcn.100165f1
add esp, 0xc
jmp 0x10010745
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10010745
cmp ebp, 0xffffffff
je 0x10010745
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1003955c]
push dword [esi]
call fcn.10008b90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100165f1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10010060
xor ebx, ebx
cmp dword [0x1003b3f4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100166c7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100167a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10033cc8
push edi
call esi
cmp eax, ebx
je 0x100167a7
push eax
call fcn.1000fff2
mov dword [esp], 0x10033cb8
push edi
mov dword [0x1003b3f4], eax
call esi
push eax
call fcn.1000fff2
mov dword [esp], 0x10033ca4
push edi
mov dword [0x1003b3f8], eax
call esi
push eax
call fcn.1000fff2
mov dword [0x1003b3fc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000bba6
test eax, eax
pop ecx
pop ecx
je 0x10016695
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10008d23
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100166c7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000fff2
cmp eax, ebx
pop ecx
mov dword [0x1003b404], eax
je 0x100166c7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000fff2
pop ecx
mov dword [0x1003b400], eax
mov eax, dword [0x1003b400]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001674c
cmp dword [0x1003b404], ecx
je 0x1001674c
push eax
call fcn.10010069
push dword [0x1003b404]
mov esi, eax
call fcn.10010069
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001674c
cmp edi, ebx
je 0x1001674c
call esi
cmp eax, ebx
je 0x10016719
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10016719
test byte [ebp - 0x18], 1
jne 0x1001674c
lea eax, [ebp - 0x10]
push eax
call fcn.1000bbdd
test eax, eax
pop ecx
je 0x10016734
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10008d23
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10016743
or dword [ebp + 0x10], 0x200000
jmp 0x10016787
or dword [ebp + 0x10], 0x40000
jmp 0x10016787
mov eax, dword [0x1003b3f8]
cmp eax, dword [ebp - 8]
je 0x10016787
push eax
call fcn.10010069
cmp eax, ebx
pop ecx
je 0x10016787
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10016787
mov eax, dword [0x1003b3fc]
cmp eax, dword [ebp - 8]
je 0x10016787
push eax
call fcn.10010069
cmp eax, ebx
pop ecx
je 0x10016787
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003b3f4]
call fcn.10010069
cmp eax, ebx
pop ecx
je 0x100167a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100167a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001a140
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
lea ecx, [ebp - 8]
push ecx
push 0x10036a2c
push 1
push 0
push 0x10036a1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x1001a189
jmp 0x1001a1c1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0x1c]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x1001a1a8
jmp 0x1001a1c1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x20]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x1001a1d5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
cmp dword [ebp - 8], 0
je 0x1001a1e9
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x1001a5d0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x10039534]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x1001a60f
xor eax, eax
jmp 0x1001a6f7
mov word [ebp - 0x48], 0
push 0x3e
push 0
lea ecx, [ebp - 0x46]
push ecx
call fcn.100090e0
add esp, 0xc
mov dword [ebp - 0x150], 0
push 0xf4
push 0
lea edx, [ebp - 0x14c]
push edx
call fcn.100090e0
add esp, 0xc
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001a67e
cmp dword [ebp - 0x54], 0x40
jne 0x1001a67e
movzx eax, word [ebp - 0x48]
cmp eax, 0x5a4d
je 0x1001a682
jmp 0x1001a6dd
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0xc], eax
je 0x1001a69d
jmp 0x1001a6dd
push 0
lea eax, [ebp - 0x54]
push eax
push 0xf8
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001a6d2
cmp dword [ebp - 0x54], 0xf8
jne 0x1001a6d2
cmp dword [ebp - 0x150], 0x4550
je 0x1001a6d6
jmp 0x1001a6dd
mov dword [ebp - 0x50], 1
cmp dword [ebp - 0x4c], 0xffffffff
je 0x1001a6f4
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008b75
mov esp, ebp
pop ebp
ret
Function at 0x1001a710
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call fcn.1001a580
add esp, 4
test eax, eax
jne 0x1001a747
jmp 0x1001a7d7
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001a5d0
add esp, 4
test eax, eax
jne 0x1001a759
jmp 0x1001a7d7
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1001a780
jmp 0x1001a7d7
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001a79f
jmp 0x1001a7d7
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1001a7bc
jmp 0x1001a7d7
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.1001a520
add esp, 8
mov dword [ebp - 0xc], eax
xor ecx, ecx
jne 0x1001a732
cmp dword [ebp - 0x10], 0
je 0x1001a7ee
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x1001a805
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0xffffffff
je 0x1001a81c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1001e7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x1001e7db
xor eax, eax
jmp 0x1001e863
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 4], 0x400000
jbe 0x1001e7f6
mov dword [ebp - 0x14], 0x400000
jmp 0x1001e7fc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 8], 0
jne 0x1001e853
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001e863
cmp dword [ebp - 0x10], 0
jne 0x1001e85b
jmp 0x1001e861
cmp dword [ebp - 4], 0
ja 0x1001e7e4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001e870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x1001e88b
xor eax, eax
jmp 0x1001e913
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 4], 0x400000
jbe 0x1001e8a6
mov dword [ebp - 0x14], 0x400000
jmp 0x1001e8ac
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 8], 0
jne 0x1001e903
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001e913
cmp dword [ebp - 0x10], 0
jne 0x1001e90b
jmp 0x1001e911
cmp dword [ebp - 4], 0
ja 0x1001e894
xor eax, eax
mov esp, ebp
pop ebp
ret