joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441d24
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x32
mov eax, dword [ebp - 4]
imul eax, eax, 0x49
cdq
push 0xa
pop ecx
idiv ecx
mov ecx, dword [ebp - 4]
push 0
push dword [ebp + 8]
imul eax, ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
imul ecx, edx
shl eax, 6
add eax, ecx
mov ecx, dword [ebp - 4]
sub eax, ecx
mov ecx, dword [ebp - 4]
sub eax, ecx
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx - 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
leave
ret 4

Function at 0x441dcd
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], 0x2f
mov dword [ebp - 0xc], 0x29
mov dword [ebp - 8], 0x37
mov dword [ebp - 4], 0x40
mov dword [ebp - 0x1c], 0x50
mov dword [ebp - 0x10], 0x5d
mov dword [ebp - 0x14], 9
mov eax, dword [ebp - 0xc]
sub eax, 0x11
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
imul eax, eax, 0x7ec
imul ecx, ecx, 0xffffffee
sub ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
imul eax, edx
add ecx, eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
mov eax, dword [ebp - 0x14]
lea eax, [ecx + eax + 0x3f]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
sub eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp ecx, eax
jne 0x441e90
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x441e90
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
imul eax, ecx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
add eax, 0x30
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
imul eax, ecx
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xf
sub ecx, eax
sub ecx, 0x60
mov dword [ebp - 8], ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
leave
ret 4
Function at 0x4456d4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
fld qword [0x47a918]
mov eax, 0x5a4d
fst qword [ebp - 0x10]
fld qword [0x47a910]
fst qword [ebp - 0x20]
fld qword [0x47a908]
fst qword [ebp - 0x28]
fld qword [0x47a900]
fst qword [ebp - 0x18]
fld qword [0x47a8f8]
fst qword [ebp - 8]
fld qword [ebp - 0x18]
fmul qword [ebp - 0x10]
fmul qword [ebp - 0x20]
fld qword [ebp - 8]
fadd qword [ebp - 0x28]
fsub qword [0x47a8f0]
faddp st(1)
fadd qword [0x47a8e8]
fsub qword [ebp - 0x28]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fadd qword [ebp - 0x20]
fld qword [ebp - 0x10]
fmul qword [0x47a8e0]
faddp st(1)
fadd qword [0x47a8d8]
fsub qword [ebp - 0x20]
fsub qword [0x47a8d0]
fsub qword [ebp - 0x10]
fadd qword [0x47a8c8]
fadd qword [ebp - 8]
fld qword [ebp - 8]
fdiv qword [0x47a8c0]
fdiv qword [0x47a8b8]
faddp st(1)
fstp qword [ebp - 0x10]
fld qword [ebp - 0x18]
fmul qword [ebp - 0x10]
fmul qword [0x47a8b0]
fld qword [ebp - 0x18]
fadd qword [0x47a8a8]
faddp st(1)
fld qword [ebp - 8]
fmul qword [ebp - 0x18]
faddp st(1)
fadd qword [ebp - 0x18]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x10]
cmp word [ecx], ax
je 0x4457aa
fstp st(4)
fstp st(2)
fstp st(0)
fstp st(0)
fstp st(0)
xor eax, eax
leave
ret
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x44579c
fxch st(4)
fstp qword [ebp - 8]
fxch st(2)
fstp qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fstp qword [ebp - 0x18]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x18]
fmul qword [ebp - 8]
fmul qword [ebp - 0x28]
fld qword [ebp - 0x10]
fadd qword [ebp - 0x20]
fsub qword [0x47a8f0]
faddp st(1)
fadd qword [0x47a8e8]
fsub qword [ebp - 0x20]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [ebp - 0x28]
fld qword [ebp - 8]
fmul qword [0x47a8e0]
faddp st(1)
fadd qword [0x47a8d8]
fsub qword [ebp - 0x28]
fsub qword [0x47a8d0]
fsub qword [ebp - 8]
fadd qword [0x47a8c8]
fadd qword [ebp - 0x10]
fld qword [ebp - 0x10]
fdiv qword [0x47a8c0]
fdiv qword [0x47a8b8]
faddp st(1)
fstp qword [ebp - 8]
fld qword [ebp - 0x18]
fmul qword [ebp - 8]
fmul qword [0x47a8b0]
fld qword [ebp - 0x18]
fadd qword [0x47a8a8]
faddp st(1)
fld qword [ebp - 0x10]
fmul qword [ebp - 0x18]
faddp st(1)
fadd qword [ebp - 0x18]
fadd qword [ebp - 0x20]
mov eax, dword [eax + ecx + 0x98]
fstp qword [ebp - 8]
test eax, eax
je 0x4457a6
add eax, ecx
leave
ret
Function at 0x450d85
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45c692
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x480084]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
and dword [esp + 4], 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [esp + 0x38], 0
fld qword [0x47aa00]
fstp qword [esp + 4]
lea eax, [esp + 0x1c]
fld qword [0x47a9a8]
push eax
fstp qword [esp + 0x10]
push dword [ebp + 8]
fld qword [0x47a9f8]
fstp qword [esp + 0x1c]
fld qword [esp + 0x14]
fsub qword [0x47a9f0]
fld qword [esp + 0xc]
fmul qword [0x47a960]
faddp st(1)
fadd qword [esp + 0xc]
fstp qword [esp + 0x14]
fld qword [esp + 0xc]
fadd qword [0x47a9e8]
fstp qword [esp + 0xc]
fld qword [esp + 0xc]
fmul qword [esp + 0xc]
fstp qword [esp + 0x14]
call fcn.00450bef
pop ecx
pop ecx
test al, al
jne 0x450e34
push dword [ebp + 0xc]
jmp 0x450f32
push 8
push 0
lea eax, [esp + 0x24]
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
fld qword [0x47a968]
fstp qword [esp + 4]
fld qword [esp + 4]
fadd qword [0x47a960]
fadd qword [esp + 4]
fsub qword [esp + 4]
fsub qword [0x47a958]
fadd qword [esp + 4]
fadd qword [0x47a950]
fld qword [esp + 4]
fmul qword [esp + 4]
fsubp st(1)
fstp qword [esp + 4]
fld qword [esp + 4]
fld qword [esp + 4]
fmul qword [0x47a8f8]
fsubp st(1)
fld qword [esp + 4]
fmul qword [0x47a948]
fsubp st(1)
fadd qword [esp + 4]
fstp qword [esp + 4]
fld qword [esp + 4]
fsub qword [esp + 4]
fstp qword [esp + 4]
fld qword [esp + 4]
fmul qword [0x47a940]
fstp qword [esp + 4]
fld qword [esp + 4]
fmul qword [esp + 4]
fsub qword [esp + 4]
fadd qword [0x47a938]
fadd qword [esp + 4]
fsub qword [0x47a930]
fstp qword [esp + 4]
fld qword [esp + 4]
fsub qword [esp + 4]
fld qword [esp + 4]
fmul qword [esp + 4]
fsubp st(1)
fstp qword [esp + 4]
fld qword [esp + 4]
fld qword [esp + 4]
fmul qword [esp + 4]
fsubp st(1)
fld qword [esp + 4]
fdiv qword [0x47a928]
faddp st(1)
fsub qword [esp + 4]
fadd qword [esp + 4]
fsub qword [0x47a920]
fsub qword [esp + 4]
fstp qword [esp + 4]
test eax, eax
js 0x450f2e
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x450f31
mov eax, dword [ebp + 0xc]
push eax
mov eax, ebx
call fcn.004061eb
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x45102f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45be48
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x480084]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x480084]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
push dword [0x4811ec]
lea eax, [esp + 0x40]
mov esi, ecx
call fcn.004057e3
and dword [esp + 0x68], 0
mov dword [esp + 0x14], 0x1b
mov dword [esp + 0x24], 0x2d
mov dword [esp + 0x1c], 0x43
mov eax, dword [esp + 0x14]
add eax, 0x11
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jge 0x451107
mov eax, dword [esp + 0x1c]
add eax, 0x48
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
imul eax, eax, 0x55
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0x24]
lea eax, [eax + ecx + 0x51]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
imul eax, eax, 0x78
sub eax, ecx
add eax, dword [esp + 0x24]
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx + 0x55]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jl 0x451107
add dword [esp + 0x14], 0xffffffd0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, eax
push ebx
call fcn.00414900
pop ecx
mov edi, eax
push ebx
lea eax, [esp + 0x40]
call fcn.0040513c
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x451132
lea eax, [esp + 0x3c]
push eax
push dword [esi + 0xc]
call fcn.00450f56
fld qword [0x47a918]
fstp qword [esp + 0x24]
pop ecx
fld qword [0x47a910]
pop ecx
fstp qword [esp + 0x34]
push 1
fld qword [0x47a908]
xor edi, edi
fstp qword [esp + 0x30]
lea esi, [esp + 0x40]
fld qword [0x47a900]
fstp qword [esp + 0x18]
fld qword [0x47a8f8]
fstp qword [esp + 0x28]
fld qword [esp + 0x18]
fmul qword [esp + 0x20]
fmul qword [esp + 0x38]
fld qword [esp + 0x28]
fadd qword [esp + 0x30]
fsub qword [0x47a8f0]
faddp st(1)
fadd qword [0x47a8e8]
fsub qword [esp + 0x30]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fadd qword [esp + 0x38]
fld qword [esp + 0x20]
fmul qword [0x47a8e0]
faddp st(1)
fadd qword [0x47a8d8]
fsub qword [esp + 0x38]
fsub qword [0x47a8d0]
fsub qword [esp + 0x20]
fadd qword [0x47a8c8]
fadd qword [esp + 0x28]
fld qword [esp + 0x28]
fdiv qword [0x47a8c0]
fdiv qword [0x47a8b8]
faddp st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x18]
fmul qword [esp + 0x20]
fmul qword [0x47a8b0]
fld qword [esp + 0x18]
fadd qword [0x47a8a8]
faddp st(1)
fld qword [esp + 0x28]
fmul qword [esp + 0x18]
faddp st(1)
fadd qword [esp + 0x18]
fadd qword [esp + 0x30]
fstp qword [esp + 0x20]
call fcn.00405d80
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00412716
mov esp, ebp
pop ebp
ret
Function at 0x4569ec
Capabilities:
Delete file

Disassembly:
push 0x254
mov eax, 0x45c662
call fcn.00457139
xor edx, edx
mov dword [ebp - 0x25c], ecx
cmp ecx, edx
jne 0x456a31
mov dword [0x483300], edx
cmp word [0x4830f8], dx
je 0x456a21
push 0x4830f8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [0x4830f8], ax
xor eax, eax
call fcn.004571bc
ret
mov eax, dword [0x483300]
cmp eax, edx
je 0x456a44
mov dword [ecx], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
jmp 0x456a29
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], edx
mov byte [ebp - 0x238], dl
mov dword [ebp - 4], edx
push dword [0x48189c]
lea ecx, [ebp - 0x238]
call fcn.0043eafc
pop ecx
test al, al
jne 0x456a89
push 1
xor edi, edi
lea esi, [ebp - 0x238]
call fcn.00405d80
mov eax, 0x8000ffff
jmp 0x456a2b
push dword [0x4818a0]
lea eax, [ebp - 0x21c]
push eax
call fcn.00414ef2
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
mov esi, 0x4830f8
push esi
push dword [0x4818a4]
lea eax, [ebp - 0x21c]
push eax
call fcn.00441be0
push esi
lea eax, [ebp - 0x254]
call fcn.004061eb
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0044016a
mov bl, al
neg bl
sbb bl, bl
push 1
xor edi, edi
lea esi, [ebp - 0x254]
mov byte [ebp - 4], 0
call fcn.004060c4
inc bl
je 0x456b20
mov ebx, 0x8000ffff
push 1
xor edi, edi
lea esi, [ebp - 0x238]
call fcn.00405d80
mov eax, ebx
jmp 0x456a2b
call fcn.00441f13
mov esi, dword [ebp - 0x25c]
push esi
push 0x4830f8
call dword [eax + 0x1ac]
mov ecx, dword [esi]
mov dword [0x483300], ecx
mov dword [ebp - 0x258], 0x1b
mov dword [ebp - 0x25c], 0x2d
mov dword [ebp - 0x260], 0x43
mov ecx, dword [ebp - 0x258]
add ecx, 0x11
mov dword [ebp - 0x260], ecx
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x258]
cmp edx, ecx
jge 0x456bf8
mov ecx, dword [ebp - 0x260]
add ecx, 0x48
mov dword [ebp - 0x258], ecx
mov ecx, dword [ebp - 0x260]
mov edx, dword [ebp - 0x260]
imul ecx, ecx, 0x55
sub ecx, edx
mov edx, dword [ebp - 0x258]
sub ecx, edx
mov edx, dword [ebp - 0x25c]
lea ecx, [ecx + edx + 0x51]
mov dword [ebp - 0x260], ecx
mov ecx, dword [ebp - 0x260]
mov edx, dword [ebp - 0x258]
imul ecx, ecx, 0x78
sub ecx, edx
add ecx, dword [ebp - 0x25c]
add ecx, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x258]
lea ecx, [ecx + edx + 0x55]
mov dword [ebp - 0x25c], ecx
mov ecx, dword [ebp - 0x258]
mov edx, dword [ebp - 0x258]
cmp ecx, edx
jl 0x456bf8
add dword [ebp - 0x258], 0xffffffd0
mov ebx, eax
jmp 0x456b0a
Function at 0x402592
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x437050]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00407830
add esp, 0xc
lea ecx, [ebp - 0x80]
push str.advfirewall_firewall_delete_rule_name_TASKHOST.EXE_BLOCK_
call fcn.00402278
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 0x80]
push ebx
push ebx
push eax
mov edi, str.netsh.exe
push edi
push ebx
push ebx
call esi
push str.advfirewall_firewall_delete_rule_name_SVCHOST.EXE_BLOCK_
lea ecx, [ebp - 0x80]
call fcn.00402278
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push edi
push ebx
push ebx
call esi
push str.advfirewall_firewall_add_rule_name_TASKHOST.EXE_BLOCK__dirout_actionblock_program_C:Windows_taskhost.exe__enableyes
lea ecx, [ebp - 0x80]
call fcn.00402278
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push edi
push ebx
push ebx
call esi
push str.advfirewall_firewall_add_rule_name_SVCHOST.EXE_BLOCK__dirout_actionblock_program_C:Windows_svchost.exe__enableyes
lea ecx, [ebp - 0x80]
call fcn.00402278
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push edi
push ebx
push ebx
call esi
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405dfb
add ebp, 0x88
leave
ret
Function at 0x402d60
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x437050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402d99
xor eax, eax
jmp 0x402e8d
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
call fcn.00402cbe
pop ecx
test eax, eax
jne 0x402e22
mov eax, 0x7d9
mov word [ebp - 0x14], ax
call fcn.0040d0b6
cdq
push 0xa
pop edi
idiv edi
xor eax, eax
mov word [ebp - 0x12], dx
mov word [ebp - 0x10], ax
call fcn.0040d0b6
cdq
idiv edi
mov word [ebp - 0xe], dx
call fcn.0040d0b6
cdq
idiv edi
mov word [ebp - 0xc], dx
call fcn.0040d0b6
cdq
idiv edi
mov word [ebp - 0xa], dx
call fcn.0040d0b6
cdq
idiv edi
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
mov word [ebp - 8], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x24]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x24]
push eax
push 0
jmp 0x402e7a
lea eax, [ebp - 0x1c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
call fcn.0040d0b6
push 0xa
cdq
pop edi
idiv edi
add word [ebp - 0xa], dx
call fcn.0040d0b6
cdq
idiv edi
lea eax, [ebp - 0x1c]
add word [ebp - 8], dx
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x1c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405dfb
leave
ret
Function at 0x402e9b
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x324
mov eax, dword [0x437050]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push ebp
push esi
push edi
mov ebp, 0x104
lea eax, [esp + 0x224]
push ebp
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00407830
add esp, 0xc
lea eax, [esp + 0x224]
mov ebx, str._s_s
push esi
push 0x438f28
push ebx
push ebp
push eax
call fcn.004022bb
add esp, 0x14
lea eax, [esp + 0x14]
push ebp
push 0
push eax
call fcn.00407830
add esp, 0xc
lea eax, [esp + 0x14]
push esi
push edi
push ebx
push ebp
push eax
call fcn.004022bb
add esp, 0x14
lea eax, [esp + 0x11c]
push ebp
push 0
push eax
call fcn.00407830
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
push str._s_d.tmp
lea eax, [esp + 0x128]
push ebp
push eax
call fcn.004022bb
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x130]
add esp, 0x14
push eax
call esi
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040da92
pop ecx
pop ecx
lea eax, [esp + 0x11c]
push eax
call esi
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, 1
je 0x402fa1
push 3
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x402fab
jmp 0x402fb7
lea eax, [esp + 0x224]
push eax
call esi
lea ecx, [esp + 0x14]
call fcn.00402d60
xor eax, eax
inc eax
mov ecx, dword [esp + 0x330]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405dfb
add esp, 0x324
ret
Function at 0x402fd0
Capabilities:
Delete file
Extract resource via kernel32 functions
Move file

Disassembly:
sub esp, 0x210
mov eax, dword [0x437050]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
push 0xa
push edx
xor edi, edi
mov ebp, ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x403123
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403123
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x403123
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x403123
push 0x104
lea eax, [esp + 0x11c]
push 0
push eax
call fcn.00407830
push ebp
mov esi, 0x438f28
lea eax, [esp + 0x128]
push esi
push str._s_s
mov ebp, 0x104
push ebp
push eax
call fcn.004022bb
push ebp
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00407830
add esp, 0x2c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._s_u
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.004022bb
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x28]
add esp, 0x14
push eax
call esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.0040da92
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
call esi
xor esi, esi
lea eax, [esp + 0x118]
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
push esi
push 4
push esi
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
je 0x403123
push esi
push esi
push esi
push 2
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
push ebx
push esi
call fcn.004072a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push dword [esp + 0x10]
call esi
xor eax, eax
inc eax
jmp 0x403125
xor eax, eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405dfb
add esp, 0x210
ret
Function at 0x40333d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x403364
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403990
jmp 0x40342d
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x40338c
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x403392
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4033fa
jg 0x4033a9
test esi, esi
je 0x4033fa
test ecx, ecx
jl 0x4033f5
jg 0x4033b3
test eax, eax
je 0x4033f5
cmp edi, ecx
jg 0x4033c7
jl 0x4033bd
cmp esi, eax
jae 0x4033c7
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call fcn.004072a0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4033fd
mov ecx, dword [ebp + 8]
jmp 0x403407
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x403421
jg 0x403407
test esi, esi
je 0x403421
cmp dword [ebx + 0x4c], 0
je 0x403421
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040df77
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403436
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
push edi
test esi, esi
jg 0x40345f
jl 0x403456
test ebx, ebx
jne 0x40345f
xor eax, eax
xor edx, edx
jmp 0x403529
cmp dword [ecx + 0x38], 0
je 0x403474
push esi
push ebx
push dword [ebp + 8]
call fcn.00403a82
jmp 0x403529
mov eax, dword [ecx + 0x1c]
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x4034b9
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x4034b9
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push edx
push edi
call fcn.004072a0
mov ecx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x1c], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x4034c0
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x4c], 0
je 0x403520
call fcn.00404042
mov edx, dword [esp + 0x10]
mov eax, edi
cmp edi, 0xfff
jbe 0x40350b
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call fcn.0040e5e9
mov edx, dword [esp + 0x20]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [esp + 0x10], edx
cmp eax, ecx
jne 0x403520
cmp edi, ecx
mov ecx, dword [esp + 0x14]
ja 0x4034d9
mov eax, edi
test eax, eax
je 0x403520
push dword [ecx + 0x4c]
push edi
push 1
push edx
call fcn.0040e5e9
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404065
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x437050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x4040bc
cmp byte [esi + 0x3d], bl
je 0x4040bc
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4040f5
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x4040cd
sub eax, 1
je 0x4040d0
dec eax
sub eax, 1
jne 0x4040f5
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405dfb
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4040ed
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040df77
add esp, 0x10
cmp edi, eax
jne 0x4040f5
cmp byte [esi + 0x3d], bl
sete al
jmp 0x4040be
xor al, al
jmp 0x4040be