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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453fc2
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
push 0x105
lea esi, [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call fcn.0041bba0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
mov esi, edi
sub esi, ebx
sar esi, 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
jbe 0x41a9a9
nop
lea ecx, [eax + 0xa]
mov dword [ebp - 0x50], ecx
cmp esi, ecx
jbe 0x41a916
lea esi, [ebx + ecx*2]
cmp esi, edi
je 0x41a993
push 0
push edi
push esi
call fcn.004328d0
add esp, 0xc
mov dword [ebp - 0x40], esi
jmp 0x41a990
jae 0x41a993
mov eax, ecx
sub eax, esi
mov edx, 0x7fffffff
sub edx, eax
cmp edx, esi
jb 0x41a9e9
add esi, eax
mov eax, dword [ebp - 0x3c]
sub eax, ebx
sar eax, 1
cmp esi, eax
jbe 0x41a964
mov ecx, eax
shr ecx, 1
mov edx, 0x7fffffff
sub edx, ecx
cmp edx, eax
jae 0x41a94b
xor eax, eax
jmp 0x41a94d
add eax, ecx
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x44]
call fcn.0041bf50
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
mov eax, edi
sub eax, ebx
sar eax, 1
mov edx, ecx
sub edx, eax
je 0x41a98a
xor eax, eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x40]
lea ecx, [edi + edx*2]
mov dword [ebp - 0x40], ecx
mov edi, dword [ebp - 0x40]
mov esi, edi
sub esi, ebx
sar esi, 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
ja 0x41a8f0
xor edi, edi
cmp eax, edi
jne 0x41a9f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
xor edx, edx
push 0x25
mov eax, str.WinAPI::getWindowsDirectory___failed.
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
call fcn.0040e990
mov byte [ebp - 4], 1
push 0x4630f4
lea eax, [ebp - 0x34]
push eax
call fcn.00436bf2
push str.vector_T__too_long
call fcn.00430350
mov eax, ebx
cmp ebx, edi
jne 0x41a9fe
mov eax, 0x45d498
mov esi, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], cx
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41aa15
sub ecx, edi
sar ecx, 1
push ecx
call fcn.0040e990
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00416b30
mov byte [ebp - 4], 1
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 0
xor edi, edi
cmp ebx, edi
je 0x41aa53
push ebx
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x41aa80
Capabilities:
Get common file path
Get program files directory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4539fa
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
pxor xmm0, xmm0
xor ebx, ebx
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x6c], ebx
movq qword [ebp - 0x68], xmm0
movq qword [ebp - 0x60], xmm0
movq qword [ebp - 0x58], xmm0
movq qword [ebp - 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x105
lea esi, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.0041bba0
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x40]
push 1
push 0x26
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
je 0x41ab4c
cmp word [esi], bx
je 0x41ab4c
push esi
push edi
call fcn.00415630
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], bl
push esi
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x28
mov eax, str.WinAPI::shGetSpecialFolderPath___failed.
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.0040e990
mov byte [ebp - 4], 1
push 0x4630f4
lea edx, [ebp - 0x30]
push edx
call fcn.00436bf2
int3
Function at 0x41b650
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4538c0
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], eax
push 0x80
lea esi, [ebp - 0x98]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
call fcn.0041bba0
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x98]
sub esi, ebx
sar esi, 1
cmp dword [edi + 0x14], 8
jb 0x41b6d1
mov eax, dword [edi]
jmp 0x41b6d3
mov eax, edi
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x88]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], dx
mov dword [ebp - 0xa0], 1
cmp eax, esi
jbe 0x41b734
push eax
lea esi, [ebp - 0x98]
call fcn.0041bba0
mov eax, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x98]
sub eax, ebx
sar eax, 1
cmp dword [edi + 0x14], 8
jb 0x41b729
mov ecx, dword [edi]
jmp 0x41b72b
mov ecx, edi
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor esi, esi
cmp eax, esi
jne 0x41b7da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x9c], eax
cmp eax, 0xcb
je 0x41b800
xor eax, eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
mov ebx, 7
push 0x1f
mov eax, str.WinAPI::getEnvironmentVariable_
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x38], ebx
call fcn.0040e990
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
push edi
push ecx
mov ecx, esi
call fcn.00418520
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x84]
push edx
mov edx, 0x45e364
call fcn.004185a0
add esp, 0x10
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x9c]
xor edx, edx
push edx
mov dword [ebp - 0x30], ecx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00401a90
mov byte [ebp - 4], 4
push 0x4630f4
lea eax, [ebp - 0x30]
push eax
call fcn.00436bf2
jbe 0x41b800
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41b7e1
mov esi, dword [ebp - 0x88]
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.0040e990
xor esi, esi
mov byte [ebp - 4], 0
cmp ebx, esi
je 0x41b811
push ebx
call fcn.0043266a
add esp, 4
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x41c650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x46c664]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x46c664]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
call fcn.0041b850
add esp, 4
mov dword [esp + 0x38], 0
push eax
push ecx
push str._Error_message:
push ecx
add esi, 4
push esi
push edi
call fcn.0040e660
add esp, 0xc
push eax
call fcn.0040dc20
add esp, 0xc
push eax
call fcn.0040e660
add esp, 8
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x41c6e1
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0043266a
add esp, 4
xor edx, edx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], dx
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x41c720
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452bc1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x46c664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x80
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.0041bba0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x18]
mov esi, edi
sub esi, ebx
sar esi, 1
call fcn.00401a80
push eax
mov eax, dword [ebp + 0x14]
push esi
push ebx
call fcn.00401a80
push eax
mov eax, dword [ebp + 0x10]
call fcn.00401a80
push eax
mov eax, dword [ebp + 0xc]
call fcn.00401a80
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esi - 1]
cmp eax, ecx
jb 0x41c890
lea ecx, [ecx]
lea ecx, [esi + esi]
mov dword [ebp - 0x14], ecx
cmp esi, ecx
jbe 0x41c7d6
lea esi, [ebx + ecx*2]
cmp esi, edi
je 0x41c853
push 0
push edi
push esi
call fcn.004328d0
add esp, 0xc
mov dword [ebp - 0x24], esi
jmp 0x41c850
jae 0x41c853
mov eax, ecx
sub eax, esi
mov edx, 0x7fffffff
sub edx, eax
cmp edx, esi
jb 0x41c8fc
add esi, eax
mov eax, dword [ebp - 0x20]
sub eax, ebx
sar eax, 1
cmp esi, eax
jbe 0x41c824
mov ecx, eax
shr ecx, 1
mov edx, 0x7fffffff
sub edx, ecx
cmp edx, eax
jae 0x41c80b
xor eax, eax
jmp 0x41c80d
add eax, ecx
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x28]
call fcn.0041bf50
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub eax, ebx
sar eax, 1
mov edx, ecx
sub edx, eax
je 0x41c84a
xor eax, eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x24]
lea ecx, [edi + edx*2]
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 0x18]
mov esi, edi
sub esi, ebx
sar esi, 1
call fcn.00401a80
push eax
mov eax, dword [ebp + 0x14]
push esi
push ebx
call fcn.00401a80
push eax
mov eax, dword [ebp + 0x10]
call fcn.00401a80
push eax
mov eax, dword [ebp + 0xc]
call fcn.00401a80
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esi - 1]
cmp eax, edx
jae 0x41c7b0
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41c8b0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.0040e990
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
cmp ebx, edi
je 0x41c8df
push ebx
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.00430350
int3
Function at 0x41cf40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452a60
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x46c664]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x46c664]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x20]
mov ebx, dword [ebp + 8]
mov ecx, dword [ecx + 0x2c]
sub edx, esi
mov eax, edx
neg eax
sbb eax, eax
and eax, esi
cmp dword [edi + 0x14], 8
jb 0x41cf96
mov esi, dword [edi]
jmp 0x41cf98
mov esi, edi
push edx
push eax
push ecx
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
je 0x41d021
xor eax, eax
mov word [esp + 0x2c], ax
push 0x23
mov eax, str.WinAPI::regSetValueEx___failed_for
lea esi, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
call fcn.0040e990
mov dword [esp + 0x58], 0
push 0xffffffffffffffff
push 0
push edi
call fcn.004102e0
xor ecx, ecx
push ecx
mov word [esp + 0x14], cx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00401a90
mov byte [esp + 0x58], 0
push 0x4630f4
lea edx, [esp + 0x10]
push edx
call fcn.00436bf2
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x428950
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45465a
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
push 0x1c
lea edx, [ebp - 0x58]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x428a22
mov edi, dword [ebp - 0x54]
test edi, edi
je 0x428a22
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.0041b0c0
add esp, 4
mov byte [ebp - 4], 1
push 0
push eax
or eax, 0xffffffff
mov ecx, ebx
call fcn.00401a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.004156c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x3c]
add eax, edi
movzx edx, word [eax + 0x14]
lea edx, [edx + eax + 0x18]
sub esi, edi
xor ecx, ecx
movzx eax, word [eax + 6]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x428a22
lea eax, [edx + 0x10]
mov edx, dword [eax - 4]
mov edi, dword [eax]
mov ebx, dword [eax - 8]
cmp edi, ebx
ja 0x428a0f
mov edi, ebx
cmp esi, edx
jb 0x428a19
add edi, edx
cmp esi, edi
jbe 0x428a40
inc ecx
add eax, 0x28
cmp ecx, dword [ebp - 0x3c]
jb 0x428a01
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
inc ecx
mov eax, dword [ebp - 0x38]
mov dword [eax], ecx
sub esi, edx
mov ecx, dword [ebp - 0x34]
mov dword [ecx], esi
mov eax, 1
jmp 0x428a24
Function at 0x42acc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45655f
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x46c664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 8]
add eax, 0x68
push eax
call fcn.00415bc0
mov dword [ebp - 4], ebx
mov eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
call fcn.00419fb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x42ad59
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x42ad59
lea eax, [ebp - 0x20]
push eax
push ebx
mov ecx, eax
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
movzx eax, word [ebp + 0x18]
push eax
mov eax, edi
call fcn.00401a80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
call fcn.004074c0
mov dword [ebp - 4], ebx
jmp 0x42ae09
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa8], ebx
je 0x42ae22
mov ecx, dword [eax + 0xa8]
mov edx, dword [ecx]
push edi
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42fb90
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452633
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 0x44], ebx
cmp eax, 0xffffffff
je 0x42fbec
cmp eax, edi
je 0x42fbec
cmp dword [esi + 4], edi
jne 0x42fbec
push 4
call fcn.0043284b
mov dword [esi + 4], eax
add esp, 4
mov dword [eax], 1
mov esi, dword [esi + 4]
mov dword [ebx + 4], esi
cmp esi, edi
je 0x42fbf8
inc dword [esi]
mov dword [ebp - 4], edi
lea esi, [ebx + 8]
mov dword [esi], 0xffffffff
mov dword [esi + 4], edi
mov byte [ebp - 4], 1
mov eax, dword [ebx]
lea ecx, [ebp - 0x40]
push ecx
push eax
mov dword [ebx + 0x10], edi
mov dword [ebp - 0x40], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebx]
push edi
push eax
push edi
push 2
push edi
push ecx
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 2
lea edi, [ebp - 0x38]
call fcn.004264b0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x34]
test edi, edi
jne 0x42fc62
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
je 0x42fc82
test eax, eax
je 0x42fc82
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42fc82
dec dword [edi]
jne 0x42fc82
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
je 0x42fc79
test eax, eax
je 0x42fc79
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0043266a
add esp, 4
mov eax, dword [esi]
or edi, 0xffffffff
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], edi
cmp eax, edi
je 0x42fc99
test eax, eax
jne 0x42fcd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
xor edx, edx
push 0x1b
mov eax, str.CreateFileMapping___failed.
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.0040e990
mov byte [ebp - 4], 1
push 0x4630f4
lea eax, [ebp - 0x30]
push eax
call fcn.00436bf2
mov ecx, dword [ebp - 0x3c]
push ecx
push 0
push 0
mov esi, eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret 4
Function at 0x431b59
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x44f928
call fcn.0043747e
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x431c50
cmp byte [esi + 0x4a], bl
je 0x431c50
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x431b95
xor al, al
jmp 0x431c52
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004069e0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x431bf3
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x431bf8
dec eax
je 0x431bfc
dec eax
dec eax
je 0x431c4c
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040ac70
mov al, bl
jmp 0x431c52
mov edx, dword [ebp - 0x2c]
jmp 0x431bbe
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x431c08
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x431c2e
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x431c1b
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0043334e
add esp, 0x10
cmp edi, eax
jne 0x431be1
cmp byte [esi + 0x4a], 0
je 0x431c4c
test edi, edi
jne 0x431bb0
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00409650
jmp 0x431bb0
mov bl, 1
jmp 0x431be3
mov al, 1
call fcn.004374c8
ret

Function at 0x4321fc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x46e5c4], 0
push esi
push edi
jne 0x432172
call fcn.004320de
test eax, eax
je 0x4321b7
mov eax, dword [0x46e5c4]
cmp eax, 1
jne 0x432193
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4321b7
jmp 0x4321f9
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4321f9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4321bb
xor eax, eax
jmp 0x4321f9
mov eax, dword [esi]
push dword [0x46e5c4]
call edi
mov edi, eax
test edi, edi
je 0x4321dd
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4321f9
lea edi, [esi + 0xff0]
push esi
push dword [0x46e5c4]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4321e3
mov eax, esi
pop edi
pop esi
ret
jmp 0x43215e

Function at 0x432675
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46c664]
jne 0x43267f
repz ret
jmp fcn.0043a784