joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423fd5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x467172
call fcn.0043540c
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.004370a4
mov eax, 0x46cc38
lea edi, [ebx + 0x10]
mov esi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov edi, 0x46b57c
mov esi, 0x46b574
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401af4
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401af4
mov eax, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [ebx], 0x46b7a8
mov dword [ebx + 0xc], eax
call fcn.00424163
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x424067
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x46719a
call fcn.0043540c
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.004370a4
and dword [ebp - 4], 0
lea edi, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov esi, 0x46b574
push 0
push eax
mov ecx, edi
mov dword [edi], 0x46b57c
mov dword [edi + 0x20], esi
call fcn.00401af4
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], 0x46b57c
mov dword [ecx + 0x20], esi
call fcn.00401af4
mov esi, dword [ebp + 8]
mov dword [ebx], 0x46b7a8
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + 0x30]
push eax
call fcn.0040972a
lea eax, [esi + 0x58]
lea ecx, [ebx + 0x58]
push eax
call fcn.0040972a
add esi, 0x20
lea edi, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x424b66
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x88], eax
call fcn.0042480e
pop ds
mov al, 0x4d
aam 0x8d
inc ebp
call 0x512aa904
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0042481e
push eax
push esi
push dword [ebp + 8]
call fcn.004247d3
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
invalid
Function at 0x424c0e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
call fcn.0042481e
push eax
push esi
push dword [ebp + 8]
call fcn.004247d3
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0042481e
push eax
push esi
push dword [ebp + 8]
call fcn.004247d3
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0042480e
cli
lahf
or byte ds:[eax - 0x8363], cl
dec dword [eax - 0x8263]
popfd
jge 0x424c99
invalid
inc esi
test dword [esi - 1], edi
invalid

Function at 0x425036
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0042481e
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004247d3

Function at 0x4250bf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
Function at 0x4250f5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0042481e
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004247d3
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
invalid
invalid
cmc
invalid

Function at 0x42a0ba
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42a170
lea eax, [ebp - 0x22c]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0043055e
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x42a160
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x42a11c
lea eax, [ebp - 0x22c]
push 0x47d65c
push eax
call fcn.00437236
pop ecx
test eax, eax
pop ecx
jne 0x42a138
mov eax, 0x486
push eax
mov dword [0x48b730], eax
call fcn.00430471
pop ecx
push dword [0x48b730]
call fcn.00436b7f
lea eax, [ebp - 0x2c]
push eax
push 0
call fcn.00431bc2
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
leave
ret 8
Function at 0x42a8fc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, str.SetupBitmapCls
push edi
lea eax, [ebp - 0x68]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xb08]
push 0x7f00
push ebx
mov dword [ebp - 0x24], 0x42aa5a
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x90]
push eax
push esi
push dword [edi + 0xb08]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
test eax, eax
jne 0x42a985
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x42aa27
push 0xd0
call fcn.00435520
mov esi, eax
pop ecx
cmp esi, ebx
je 0x42aa27
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x40]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x3c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x38]
push esi
push dword [edi + 0xb08]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x38]
sub eax, edx
sar eax, 1
push dword [ebp - 0x3c]
mov dword [edi + 0x2c4], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push str.SetupBitmapWin
push str.SetupBitmapCls
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
jne 0x42aa2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x42aa53
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push ebx
mov dword [edi + 0x2c4], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x2c4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42ae73
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4679d6
call fcn.0043540c
sub esp, 0x8a4
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x8ae]
mov word [ebp - 0x8b0], bx
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x8b0]
lea ecx, [esi + 0x18]
push eax
push 0x486618
push str.ClickOncePackage
push str.Startup
call fcn.004028bd
cmp word [ebp - 0x8b0], bx
jne 0x42aed5
xor eax, eax
jmp 0x42aff7
mov ecx, esi
call fcn.00427983
mov edi, 0x46b57c
mov esi, 0x46b574
cmp eax, ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x18], esi
jne 0x42aef5
mov eax, 0x486618
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004010c6
lea eax, [ebp - 0x8b0]
mov dword [ebp - 4], ebx
test eax, eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x40], esi
lea eax, [ebp - 0x8b0]
jne 0x42af21
mov eax, 0x486618
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.004010c6
push ebx
lea eax, [ebp - 0x88]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040de74
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.0040dde9
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040972a
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00401306
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00401306
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.00401306
mov eax, dword [ebp - 0x30]
mov esi, 0x46b598
cmp eax, ebx
jne 0x42af9e
mov eax, esi
push eax
call fcn.004310a3
test eax, eax
jne 0x42afc6
lea eax, [ebp - 0x8b0]
test eax, eax
lea eax, [ebp - 0x8b0]
jne 0x42afbd
mov eax, 0x486618
push eax
lea ecx, [ebp - 0x38]
call fcn.00401c3a
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x42afcf
mov eax, esi
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x38]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.00401306
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42e90f
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x46807a
call fcn.0043540c
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x18], esi
or dword [esi + 0x220], 0xffffffff
lea eax, [esi + 0x228]
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov byte [esi + 0x214], 1
mov byte [esi + 0x215], 1
mov byte [esi + 0x216], 1
mov dword [esi + 0x21c], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea ebx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x46c060
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push ebx
call fcn.0042ead1
pop ecx
mov dword [esi + 0x218], eax
pop ecx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x20c], eax
jne 0x42e9bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x21c], eax
jmp 0x42eabe
push 0x2e
mov dword [esi + 0x210], 1
call fcn.00435520
push 0x2e
push edi
push eax
mov dword [esi + 0x224], eax
call fcn.00435d50
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x218]
push dword [esi + 0x20c]
call fcn.0042fcca
test eax, eax
je 0x42eabe
lea eax, [ebp - 0x14]
push edi
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x42eabe
cmp dword [ebp - 0x14], edi
je 0x42eabe
mov ecx, esi
call fcn.0042efe7
test eax, eax
je 0x42ea44
mov eax, dword [esi + 0x224]
mov ax, word [eax + 0xe]
cmp ax, di
jne 0x42eab3
push edi
push ebx
call fcn.0042ead1
cmp eax, dword [esi + 0x218]
pop ecx
pop ecx
jbe 0x42ea5b
mov dword [esi + 0x218], eax
push edi
push edi
push dword [esi + 0x218]
mov ecx, esi
push dword [esi + 0x20c]
call fcn.0042fcca
test eax, eax
je 0x42eabe
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x42eabe
cmp dword [ebp - 0x14], edi
je 0x42eabe
mov ecx, esi
call fcn.0042efe7
test eax, eax
je 0x42eabe
mov eax, dword [esi + 0x224]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x42eabe
movzx eax, ax
push eax
mov ecx, esi
call fcn.0042fbc8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42ed92
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x4680b0
call fcn.0043540c
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x42ee9d
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42eddb
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push str..debug
call fcn.0042eeed
pop ecx
test eax, eax
pop ecx
je 0x42ee07
cmp dword [eax + 0xc], esi
jne 0x42ee07
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x42ee5a
push edi
push str..rdata
call fcn.0042eeed
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x42ee2d
push edi
push str..text
call fcn.0042eeed
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x42ee9d
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x42ee9d
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x42eea8
cmp dword [ebp + 8], 0
je 0x42eea8
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x42eea1
xor eax, eax
jmp 0x42eede
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x42eec7
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x42eec1
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x42eeb2
cmp dword [ebp - 0x10], 0
je 0x42eedb
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x42eedb
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42f402
Capabilities:
Get common file path

Disassembly:
mov eax, 0x46812c
call fcn.0043540c
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0xd]
mov ebx, 0x46b5c0
mov esi, 0x46b5b8
push 0
push eax
mov dword [ebp - 0x14], edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00402b02
and dword [ebp - 4], 0
lea eax, [ebp - 0xe]
push 0
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x28], esi
call fcn.00402b02
mov esi, 0x104
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004024ea
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00402b77
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004025fc
lea eax, [ebp - 0x20]
push esi
push eax
mov ecx, edi
call fcn.004024ea
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00402b77
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax]
test ecx, ecx
jne 0x42f4ac
mov ecx, 0x46b5e8
push eax
push 0
push 0x480e6c
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004025fc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402079
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42fbc8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x42fc45
mov esi, 0x138
push esi
call fcn.00435520
mov ebx, eax
push esi
push 0
push ebx
call fcn.00435d50
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42fc45
cmp dword [ebp - 8], 0
je 0x42fc45
push ebx
lea ecx, [edi + 0x228]
call fcn.0042ff81
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x20c]
call fcn.0042fcca
test eax, eax
je 0x42fc45
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x42fbe1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42fd06
Capabilities:
Clear file content
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
xor esi, esi
push 0x2e
lea eax, [ebp - 0x40]
push esi
mov edi, ecx
push eax
call fcn.00435d50
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0042f5b6
test eax, eax
je 0x42fe56
push esi
push 0x80
push 3
push esi
lea eax, [edi + 4]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 8], ebx
je 0x42fe4a
cmp dword [edi + 0x230], 1
jbe 0x42fdb7
mov eax, dword [edi + 0x218]
push 1
push esi
push eax
push ebx
mov ecx, edi
call fcn.0042fcca
test eax, eax
je 0x42fe56
push dword [0x480e40]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x230]
push esi
dec eax
mov word [ebp - 0x32], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push 0x2e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push esi
add eax, 0xfffffec8
push esi
push eax
push ebx
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.0042fcca
test eax, eax
je 0x42fe56
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
mov ebx, dword [eax + 0x10c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0xc]
add ecx, ebx
cmp ecx, eax
jne 0x42fe1e
cmp dword [edi + 0x230], 1
jne 0x42fe10
push esi
push esi
push dword [edi + 0x218]
mov ecx, edi
push dword [ebp + 8]
call fcn.0042fcca
test eax, eax
je 0x42fe56
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x42fed4
mov eax, dword [ebp - 8]
push esi
push 0x80
push 3
lea ebx, [ebx + eax + 0x138]
push esi
push 3
lea eax, [edi + 4]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x42fe5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x21c], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
push esi
push ebx
push eax
mov ecx, edi
call fcn.0042fcca
test eax, eax
je 0x42fe56
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push 0x400
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x42fec2
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
je 0x42fec2
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push 0x400
push eax
push dword [ebp - 8]
jmp 0x42fe89
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0042feef
push 1
pop eax
jmp 0x42fe58