joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c1e0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4722c4]
mov dword [ebp - 4], eax
push edi
mov byte [ebp - 0x378], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x377]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x218], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x110], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
push 0x44
push 0
lea eax, [ebp - 0x270]
push eax
call fcn.00430630
add esp, 0xc
mov dword [ebp - 0x270], 0x44
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x400], 2
jne 0x40c2a5
push str.system32
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40c2b0
push str.system
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.control.exe
push 0x104
lea edx, [ebp - 0x378]
push edx
call fcn.004041d0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x45c]
sub ecx, 1
mov dword [ebp - 0x45c], ecx
cmp dword [ebp - 0x45c], 4
ja case.default.0x40c2ed
mov edx, dword [ebp - 0x45c]
jmp dword [edx*4 + 0x40c3c8]
mov dword [ebp - 0x42c], str.joy.cpl
jmp 0x40c33a
mov dword [ebp - 0x42c], str.desk.cpl
jmp 0x40c33a
mov dword [ebp - 0x42c], str.inetcpl.cpl
jmp 0x40c33a
mov dword [ebp - 0x42c], str.mmsys.cpl
jmp 0x40c33a
mov dword [ebp - 0x42c], str.sysdm.cpl
jmp 0x40c33a
mov dword [ebp - 0x42c], 0
mov eax, 0x104
cmp eax, 0x7fffffff
jbe 0x40c352
mov dword [ebp - 0x430], 0x80070057
jmp 0x40c370
mov ecx, dword [ebp - 0x42c]
push ecx
push 0x104
lea edx, [ebp - 0x378]
push edx
call fcn.004042c0
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0
push 8
push 0
push 0
push 0
lea eax, [ebp - 0x378]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x414], eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp - 0x414], 1
sete al
mov ecx, dword [ebp - 4]
call fcn.0042fcee
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40ccd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4722c4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004318b0
add esp, 8
lea edx, [ebp - 0x110]
push edx
call fcn.00430780
add esp, 4
mov byte [ebp + eax - 0x10f], 0
mov eax, dword [ebp - 0x114]
mov dword [eax + 4], 3
mov ecx, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x114]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x114]
movzx edx, word [ecx + 0x10]
or edx, 0x40
mov eax, dword [ebp - 0x114]
mov word [eax + 0x10], dx
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [ebp - 4]
call fcn.0042fcee
mov esp, ebp
pop ebp
ret 4

Function at 0x40ef60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
fld qword [esi + 0x3b0]
mov eax, dword [esi + 0x30]
fmul qword [0x458f08]
lea ecx, [esi + 0x30]
push edi
mov dword [ebp - 4], 0
mov ebx, 1
fstp qword [ebp - 0x28]
mov dword [ebp - 0x10], esp
mov byte [ebp - 4], bl
call dword [eax + 0xc]
test al, 0xf0
je 0x40efc3
mov edx, dword [esi + 0x628]
lea ecx, [esi + 0x628]
call dword [edx + 0xc]
fst qword [ebp - 0x20]
jmp 0x40efd5
mov eax, dword [esi + 0x640]
lea ecx, [esi + 0x640]
call dword [eax + 0xc]
fst qword [ebp - 0x20]
mov edx, dword [esi + 0x30]
fstp qword [ebp - 0x20]
lea ecx, [esi + 0x30]
call dword [edx + 0xc]
test al, 0xf0
je 0x40eff6
mov eax, dword [esi + 0x628]
lea ecx, [esi + 0x628]
call dword [eax + 0x18]
jmp 0x40f005
mov edx, dword [esi + 0x640]
lea ecx, [esi + 0x640]
call dword [edx + 0x18]
fld qword [ebp - 0x20]
mov dword [ebp + 8], eax
fmul qword [0x459270]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 0x41
jnp 0x40f038
fld qword [ebp - 0x20]
mov ebx, 3
fmul qword [0x459268]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 0x41
jnp 0x40f038
mov ebx, 2
fld qword [esi + 0x3b0]
mov eax, dword [esi + 0x3c0]
fmul qword [0x458f08]
lea edi, [esi + 0x3c0]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call dword [eax + 4]
mov edx, dword [edi]
fstp st(0)
mov ecx, edi
call dword [edx + 0x18]
push ebx
push eax
mov eax, dword [ebp + 8]
push eax
push 0x456a80
push 0x459254
lea ecx, [esi + 0x690]
call fcn.0040e370
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4107d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452c16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
fld qword [0x456ac0]
push ebx
fld qword [0x456ac8]
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x456a5c
mov dword [esi + 4], 0x4573bc
mov dword [esi + 0xc], edi
call fcn.004310f0
call fcn.0043133c
mov ebx, eax
mov dword [esi + 8], ebx
push 0x4573bc
mov ecx, esi
mov dword [esi + 4], edi
call fcn.00423ce0
lea ecx, [esi + 0x10]
mov dword [ecx], 0x456a5c
mov dword [ecx + 4], 0x4573bc
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], ebx
push 0x4573bc
mov dword [esp + 0x28], edi
mov dword [ecx + 4], edi
call fcn.00423ce0
lea ecx, [esi + 0x20]
mov dword [ecx], 0x456a5c
mov dword [ecx + 4], 0x4573bc
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], ebx
push 0x4573bc
mov byte [esp + 0x28], 1
mov dword [ecx + 4], edi
call fcn.00423ce0
fld qword [0x457390]
lea ebx, [esi + 0x30]
fstp qword [ebx + 8]
mov byte [esp + 0x24], 2
fld qword [0x456ac0]
mov dword [ebx], 0x4572d0
fld qword [0x4573c8]
mov dword [ebx + 0x14], edi
call fcn.004310f0
call fcn.0043133c
fld qword [0x457390]
mov ebp, eax
mov dword [ebx + 0x10], ebp
xor eax, eax
mov dword [ebx + 8], eax
sub esp, 8
mov ecx, ebx
fstp qword [esp]
mov dword [ebx + 0xc], eax
call fcn.00423d80
fstp st(0)
fld qword [0x457390]
lea ecx, [esi + 0x48]
fstp qword [ecx + 8]
mov dword [ecx], 0x4572d0
fld qword [0x457390]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebp
xor edx, edx
mov dword [ecx + 8], edx
sub esp, 8
fstp qword [esp]
mov byte [esp + 0x2c], 3
mov dword [ecx + 0xc], edx
call fcn.00423d80
fstp st(0)
mov byte [esp + 0x24], 4
lea ecx, [esi + 0x60]
fld qword [0x457390]
mov dword [ecx], 0x4572d0
fstp qword [ecx + 8]
mov dword [ecx + 0x14], edi
fld qword [0x457390]
mov dword [ecx + 0x10], ebp
xor eax, eax
mov dword [ecx + 8], eax
sub esp, 8
fstp qword [esp]
mov dword [ecx + 0xc], eax
call fcn.00423d80
fstp st(0)
fld qword [0x457390]
lea ecx, [esi + 0x78]
fstp qword [ecx + 8]
mov dword [ecx], 0x4572d0
fld qword [0x457390]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebp
xor edx, edx
mov dword [ecx + 8], edx
sub esp, 8
fstp qword [esp]
mov byte [esp + 0x2c], 5
mov dword [ecx + 0xc], edx
call fcn.00423d80
fstp st(0)
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4144a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x452d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
fld qword [0x456ac0]
push ebx
fld qword [0x456a48]
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 8]
mov byte [esi + 4], bl
mov dword [esi], 0x459f64
mov dword [edi], 0x457288
mov byte [edi + 4], bl
mov dword [edi + 0xc], ebx
call fcn.004310f0
call fcn.0043133c
mov dword [edi + 8], eax
push ebx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00423d60
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x18], bl
mov byte [esi + 0x19], bl
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x1a], bl
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4173c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45306d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
fld qword [0x456ac0]
push ebx
fld qword [0x456a48]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x457288
mov byte [esi + 4], bl
mov dword [esi + 0xc], ebx
call fcn.004310f0
call fcn.0043133c
mov edi, eax
mov dword [esi + 8], edi
push ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00423d60
lea ecx, [esi + 0x10]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov dword [esp + 0x1c], ebx
mov byte [ecx + 4], bl
call fcn.00423d60
lea ecx, [esi + 0x20]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [esp + 0x1c], 1
mov byte [ecx + 4], bl
call fcn.00423d60
lea ecx, [esi + 0x30]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [esp + 0x1c], 2
mov byte [ecx + 4], bl
call fcn.00423d60
lea ecx, [esi + 0x40]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [esp + 0x1c], 3
mov byte [ecx + 4], bl
call fcn.00423d60
lea ecx, [esi + 0x50]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [esp + 0x1c], 4
mov byte [ecx + 4], bl
call fcn.00423d60
lea ecx, [esi + 0x60]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [esp + 0x1c], 5
mov byte [ecx + 4], bl
call fcn.00423d60
mov byte [esp + 0x18], 6
lea ecx, [esi + 0x70]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [ecx + 4], bl
call fcn.00423d60
lea ecx, [esi + 0x80]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [esp + 0x1c], 7
mov byte [ecx + 4], bl
call fcn.00423d60
lea ecx, [esi + 0x90]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [esp + 0x1c], 8
mov byte [ecx + 4], bl
call fcn.00423d60
lea ecx, [esi + 0xa0]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [esp + 0x1c], 9
mov byte [ecx + 4], bl
call fcn.00423d60
lea ecx, [esi + 0xb0]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [esp + 0x1c], 0xa
mov byte [ecx + 4], bl
call fcn.00423d60
lea ecx, [esi + 0xc0]
mov dword [ecx], 0x457288
mov byte [ecx + 4], bl
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push ebx
mov byte [esp + 0x1c], 0xb
mov byte [ecx + 4], bl
call fcn.00423d60
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4175c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4530bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
fld qword [0x456ac0]
push ebx
fld qword [0x456ac8]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x456a5c
mov dword [esi + 4], 0x4573bc
mov dword [esi + 0xc], ebx
call fcn.004310f0
call fcn.0043133c
mov edi, eax
mov dword [esi + 8], edi
push 0x4573bc
mov ecx, esi
mov dword [esi + 4], ebx
call fcn.00423ce0
lea ecx, [esi + 0x10]
mov dword [ecx], 0x456a5c
mov dword [ecx + 4], 0x4573bc
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push 0x4573bc
mov dword [esp + 0x1c], ebx
mov dword [ecx + 4], ebx
call fcn.00423ce0
lea ecx, [esi + 0x20]
mov dword [ecx], 0x456a5c
mov dword [ecx + 4], 0x4573bc
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push 0x4573bc
mov byte [esp + 0x1c], 1
mov dword [ecx + 4], ebx
call fcn.00423ce0
lea ecx, [esi + 0x30]
mov dword [ecx], 0x456a5c
mov dword [ecx + 4], 0x4573bc
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], edi
push 0x4573bc
mov byte [esp + 0x1c], 2
mov dword [ecx + 4], ebx
call fcn.00423ce0
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 3
call fcn.00417320
lea ecx, [esi + 0x60]
mov byte [esp + 0x18], 4
call fcn.00417320
lea ecx, [esi + 0x80]
mov byte [esp + 0x18], 5
call fcn.004173c0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41b5d0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edx, dword [esi + 0x38]
mov edi, eax
lea ecx, [esi + 0x38]
lea eax, [esp + 0x10]
push eax
call dword [edx + 4]
cmp edi, 1
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41b630
Capabilities:
Get hostname

Disassembly:
sub esp, 0x14
xor eax, eax
push esi
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
push edi
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x15], eax
push ecx
lea edx, [esp + 0x10]
mov word [esp + 0x1d], ax
push edx
mov dword [esp + 0x10], 0xf
mov byte [esp + 0x14], 0
mov byte [esp + 0x23], al
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [esi + 0x28]
lea edx, [esp + 0xc]
mov edi, eax
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp edi, 1
pop edi
sete al
pop esi
add esp, 0x14
ret
Function at 0x41d600
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a848
push 0x430418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
xor esi, esi
sub edx, eax
sbb esi, ecx
push 1
push ecx
push esi
push edx
call fcn.00432010
mov ecx, dword [ebp - 0x24]
xor esi, esi
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x28]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e400
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x41e4b9
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x41e4b9
push esi
lea eax, [esp + 0x10]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x18], eax
jbe 0x41e4ad
push eax
call fcn.00445d54
mov esi, eax
add esp, 4
test esi, esi
jne 0x41e44c
pop esi
pop edi
mov eax, 0x8007000e
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x18]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41e4a4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push 0x45ac3c
push esi
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41e4a4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41e4a4
mov ecx, dword [eax + 8]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
push esi
mov dword [ebx], edx
call fcn.00445d4f
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.00445d4f
add esp, 4
pop esi
pop edi
mov eax, 0x80004005
pop ebx
add esp, 8
ret
pop edi
mov eax, 0x80070057
pop ebx
add esp, 8
ret
Function at 0x422c60
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x800
mov edi, ecx
mov dword [esp + 0x10], 0
xor ebx, ebx
call fcn.00445d54
add esp, 4
push str.__xml_version_
mov esi, eax
push 0x7ff
push esi
call fcn.0040eb10
mov eax, dword [edi + 4]
lea ecx, [eax + 0x54]
mov eax, dword [ecx]
call dword [eax + 0x18]
push eax
push 0x7ff
push esi
call fcn.004042c0
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x64]
lea ecx, [eax + 0x64]
call dword [edx + 0x10]
test eax, eax
je 0x422ce6
push str.__encoding_
push 0x7ff
push esi
call fcn.004042c0
mov eax, dword [edi + 4]
lea ecx, [eax + 0x64]
mov eax, dword [ecx]
call dword [eax + 0x10]
push eax
call fcn.00423240
add esp, 4
push eax
push 0x7ff
push esi
call fcn.004042c0
push str.__standalone_
push 0x7ff
push esi
call fcn.004042c0
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x44]
lea ecx, [eax + 0x44]
call dword [edx + 0x10]
test al, al
mov eax, 0x45b040
jne 0x422d10
mov eax, 0x45b03c
push eax
push 0x7ff
push esi
call fcn.004042c0
push str._____n
push 0x7ff
push esi
call fcn.004042c0
mov eax, dword [edi + 4]
lea ecx, [eax + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp byte [eax], 0
jne 0x422d4e
push str._____No_XSLT_Registered_____n
push 0x7ff
push esi
call fcn.004042c0
jmp 0x422d63
push eax
push esi
push str._s__xml_stylesheet_type_text_xsl__href__s_____n
push 0x7ff
push esi
call fcn.00403f50
add esp, 0x14
test esi, esi
je 0x422d86
mov ecx, 0x3ff
mov eax, esi
mov edi, edi
cmp byte [eax], 0
je 0x422d7b
inc eax
dec ecx
jne 0x422d70
jmp 0x422d86
test ecx, ecx
je 0x422d86
mov ebx, 0x3ff
sub ebx, ecx
mov edx, dword [edi]
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00445d4f
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4230a0
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov esi, ecx
je 0x423130
cmp byte [edi], 0
je 0x423130
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
call dword [eax + 0x10]
test al, al
jne 0x4230cf
pop ebx
pop edi
xor al, al
pop esi
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4230c7
mov ecx, esi
mov dword [esi + 4], ebx
call fcn.00422c60
mov ecx, dword [esi + 4]
push 1
call fcn.00422ab0
push eax
mov ecx, esi
call fcn.00422db0
mov ecx, dword [esi]
push ecx
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov dword [esi], 0xffffffff
mov al, 1
pop esi
ret 8
pop edi
xor al, al
pop esi
ret 8

Function at 0x423770
Capabilities:
Get file size

Disassembly:
sub esp, 0x28
push edi
mov edi, ecx
mov eax, dword [edi + 8]
push eax
call fcn.00406ec0
mov ecx, eax
call fcn.004240b0
test al, al
jne 0x42379d
mov ecx, dword [edi + 0xc]
push ecx
call fcn.00406ec0
mov ecx, eax
call fcn.00424330
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x423841
cmp byte [eax], 0
je 0x423841
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4237d7
pop esi
xor al, al
pop edi
add esp, 0x28
ret
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4237cf
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x42382d
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x26]
movzx eax, word [esp + 0x22]
push ecx
mov ecx, dword [edi + 0x10]
push edx
push eax
push str._d__d__d
push 0x400
push ecx
call fcn.00403f50
add esp, 0x18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 4], eax
pop esi
mov al, 1
pop edi
add esp, 0x28
ret
xor al, al
pop edi
add esp, 0x28
ret
Function at 0x423850
Capabilities:
Get file version info

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
xor ebp, ebp
push 0x41
mov edi, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
call fcn.00445d24
mov esi, eax
mov eax, dword [edi + 8]
add esp, 4
cmp eax, ebp
jne 0x42387a
mov eax, 0x4573bc
push eax
push 0x40
push esi
call fcn.0040eb10
lea eax, [esp + 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebp
mov dword [esp + 0xc], eax
jne 0x4238a4
pop edi
pop esi
mov eax, 0x456a80
pop ebp
add esp, 0x14
ret 4
push ebx
push eax
mov dword [esp + 0x24], ebp
call fcn.00445d24
mov ebx, eax
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x14], ebp
je 0x423968
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push ebp
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x423968
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x423968
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00423690
push eax
push str.StringFileInfo__04x__04x_s
push 0x40
push esi
call fcn.00403f50
push 0x41
call fcn.00445d24
mov edi, eax
mov eax, dword [esp + 0x2c]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push esi
push 0x40
push edi
call fcn.00403f50
add esp, 0x2c
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push ebx
mov dword [esp + 0x2c], ebp
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
mov dword [esp + 0x18], eax
je 0x423959
cmp eax, ebp
je 0x423959
pop ebx
pop edi
pop esi
mov eax, ecx
pop ebp
add esp, 0x14
ret 4
push ebx
call fcn.00445d4f
push edi
call fcn.00445d4f
add esp, 8
pop ebx
pop edi
pop esi
mov eax, 0x456a80
pop ebp
add esp, 0x14
ret 4
Function at 0x423b50
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x453a6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push 0x48
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.00445d24
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov dword [esp + 0x24], ebx
je 0x423b96
mov ecx, eax
call fcn.00423590
mov dword [esp + 0xc], eax
jmp 0x423b9a
mov dword [esp + 0xc], ebx
push 0x400
mov dword [esp + 0x28], 0xffffffff
call fcn.00445d24
mov ecx, dword [esi + 8]
add esp, 4
cmp ecx, ebx
mov edi, eax
je 0x423c78
cmp byte [ecx], bl
je 0x423c78
push ebp
mov esi, 0x400
mov eax, edi
xor ebp, ebp
mov edi, edi
mov dl, byte [ecx]
cmp dl, bl
je 0x423bdf
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x423bd0
jmp 0x423be3
cmp esi, ebx
jne 0x423be9
dec eax
mov ebp, 0x8007007a
cmp ebp, ebx
mov byte [eax], bl
pop ebp
jl 0x423c16
lea ecx, [esp + 0x14]
push ecx
push edi
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x423c78
push eax
call fcn.00445d24
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x423c1d
mov eax, dword [esp + 0xc]
push eax
jmp 0x423c7d
mov ecx, dword [esp + 0x10]
push esi
push ecx
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x423c78
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x45ac3c
push esi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
mov dword [esp + 0x14], eax
je 0x423c68
cmp eax, ebx
je 0x423c68
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0xc]
push edx
push eax
call fcn.00423720
push esi
call fcn.00445d4f
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
jmp 0x423c7d
mov edx, dword [esp + 0xc]
push edx
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00423980
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x4240b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret 4