joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403040
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0xa
lea ecx, [esp + 0x18]
call fcn.004143e3
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call fcn.00409b60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.0040a890
add esp, 4
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040a4c0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add esp, 4
push esi
push edx
mov edx, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call fcn.00403340
mov esi, eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40310f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.004144fa
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x403140
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0xa
lea ecx, [esp + 0x18]
call fcn.004143e3
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call fcn.00409b60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.0040a890
add esp, 4
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040a4c0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add esp, 4
push esi
push edx
mov edx, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call fcn.00403670
mov esi, eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40320f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.004144fa
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x403240
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0xa
lea ecx, [esp + 0x18]
call fcn.004143e3
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call fcn.00409b60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.0040a890
add esp, 4
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040a4c0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
add esp, 4
push esi
push edx
mov edx, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x20]
call fcn.00403a10
mov esi, eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40330f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.004144fa
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x405610
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43f888
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0040f060
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0
mov dword [0x453d08], ecx
test esi, esi
jne 0x405660
xor eax, eax
jmp 0x40566e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405665
sub eax, edx
push eax
push esi
mov ecx, 0x453cfc
call fcn.00409f10
test edi, edi
jne 0x405682
xor eax, eax
jmp 0x405690
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405687
sub eax, edx
push eax
push edi
mov ecx, 0x453d00
call fcn.00409f10
test ebx, ebx
jne 0x4056a4
xor eax, eax
jmp 0x4056b9
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4056b0
sub eax, edx
push eax
push ebx
mov ecx, 0x453d04
call fcn.00409f10
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x401050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
call fcn.00414e53
lea ecx, [esp + 0x80]
mov dword [esp + 0xdc], 1
call fcn.0041516a
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00414702
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xdc
ret

Function at 0x405790
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43f888
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0040f060
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0
mov dword [0x453d08], ecx
test esi, esi
jne 0x4057e0
xor eax, eax
jmp 0x4057ee
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4057e5
sub eax, edx
push eax
push esi
mov ecx, 0x453cfc
call fcn.00409f10
test edi, edi
jne 0x405802
xor eax, eax
jmp 0x405810
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405807
sub eax, edx
push eax
push edi
mov ecx, 0x453d00
call fcn.00409f10
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x401110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
call fcn.00414e53
lea ecx, [esp + 0x80]
mov dword [esp + 0xdc], 1
call fcn.0041516a
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00414702
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xdc
ret
Function at 0x409930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409949
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409984
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x409980
lea ebx, [ebx]
cmp esi, eax
jae 0x409984
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409970
cmp esi, eax
jb 0x40998a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40a170
Capabilities:
Delete file

Disassembly:
sub esp, 0x544
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x540], eax
push ebp
mov ebp, dword [esp + 0x54c]
push esi
lea edx, [esp + 0x33c]
push edi
mov eax, ebp
sub edx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a1a0
lea eax, [esp + 0x340]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40a1b2
mov ecx, dword [str..]
mov dl, byte [0x448418]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x344]
push ecx
call fcn.00423b80
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
je 0x40a323
lea edx, [esp + 0x10]
push edx
push esi
call fcn.00423cb0
add esp, 8
test eax, eax
jne 0x40a31a
lea ecx, [esp + 0x34]
mov eax, 0x447910
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a230
test dl, dl
je 0x40a22c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a230
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a210
xor eax, eax
jmp 0x40a235
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a304
lea ecx, [esp + 0x34]
mov eax, 0x44841c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a266
test dl, dl
je 0x40a262
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a266
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a246
xor eax, eax
jmp 0x40a26b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a304
lea edx, [esp + 0x138]
mov eax, ebp
sub edx, ebp
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a280
lea edi, [esp + 0x138]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a292
mov ax, word [0x4478c8]
mov word [edi], ax
lea eax, [esp + 0x34]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a2b0
lea edi, [esp + 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a2c1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [esp + 0x10], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x40a2f2
lea ecx, [esp + 0x138]
push ecx
call fcn.0040a170
add esp, 4
jmp 0x40a300
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00423cb0
add esp, 8
test eax, eax
je 0x40a205
push esi
call fcn.00423ddf
add esp, 4
push ebp
call fcn.00423e05
mov ecx, dword [esp + 0x550]
add esp, 4
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00421f65
add esp, 0x544
ret
Function at 0x40a410
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x448410
lea ecx, [esp + 4]
call fcn.00409b60
mov eax, dword [esp]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40a491
cmp dword [esp + 0x4c], 0
je 0x40a491
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a4b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0x40
ret

Function at 0x40ab60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x447a48
push eax
xor esi, esi
call fcn.0042292f
mov ecx, dword [esp + 0x1c]
push 0x447e34
push ecx
mov ebp, eax
call fcn.0042292f
add esp, 0x10
mov edi, eax
mov dword [esp + 0xc], edi
test ebp, ebp
je 0x40ac0b
test edi, edi
je 0x40ac02
push 0x7d000
call fcn.00413c36
push ebp
mov edi, eax
call fcn.0042309e
add esp, 8
test eax, eax
jne 0x40abf0
lea esp, [esp]
push ebp
push 0x7d000
push 1
push edi
call fcn.004233a6
lea edx, [eax + esi]
add esp, 0x10
cmp edx, ebx
jbe 0x40abcc
mov eax, ebx
sub eax, esi
mov ecx, dword [esp + 0xc]
push ecx
push eax
push 1
push edi
call fcn.0042301c
add esi, eax
add esp, 0x10
cmp esi, ebx
jae 0x40abf0
push ebp
call fcn.0042309e
add esp, 4
test eax, eax
je 0x40abb0
push edi
call fcn.00413c2b
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, 1
push ebp
call fcn.004229bd
add esp, 4
test edi, edi
je 0x40ac18
push edi
call fcn.004229bd
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x40ad10
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x43edf8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call fcn.00413c41
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ad4f
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x34], 0
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x40adb1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.GetDiskFreeSpaceEx_failed_with_error_code__d
push eax
call fcn.00409910
mov esi, dword [esp + 0x18]
add esp, 0xc
push edi
push esi
push 0x453d11
call fcn.0040d890
jmp 0x40adc9
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x14]
jb 0x40adc9
ja 0x40adc7
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x10]
jbe 0x40adc9
xor edi, edi
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aded
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x40d5d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0041508b

Function at 0x40d620
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43ed35
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 0x10], edi
mov dword [edi], vtable.CLog.0
call fcn.00413c41
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d67d
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 4], eax
mov dword [esp + 0x228], 0
call fcn.00413c41
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d6b1
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 8], eax
mov byte [esp + 0x228], 1
lea ebp, [edi + 0xc]
call fcn.00413c41
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d6e5
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x230], 2
push 0
mov dword [0x453d21], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d720
sub eax, edx
add eax, 0xffffffff
js 0x40d73b
mov cl, 0x5c
cmp byte [esp + eax + 0x14], cl
je 0x40d73b
sub eax, 1
jns 0x40d730
mov byte [esp + eax + 0x14], 0
lea eax, [esp + 0x14]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d745
mov edx, dword [str._trace.ini]
mov ecx, dword [0x4488b8]
mov dword [eax], edx
mov dx, word [0x4488bc]
mov dword [eax + 4], ecx
mov cl, byte [0x4488be]
mov word [eax + 8], dx
lea esi, [esp + 0xc]
mov byte [eax + 0xa], cl
call fcn.0040db80
push eax
mov ecx, ebp
mov byte [esp + 0x22c], 3
call fcn.00409c90
mov byte [esp + 0x228], 2
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d7b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.trace
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
neg eax
sbb eax, eax
neg eax
mov dword [edi + 0x14], eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00421f65
add esp, 0x220
ret
Function at 0x40d980
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x30c], eax
push 0x100
lea eax, [esp + 0x210]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.00425400
push 0x208
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00425400
add esp, 0x18
push 0x100
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x20c]
mov byte [esp + 4], al
lea eax, [esp + 4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d9e7
mov ecx, dword [str.:InetPub]
mov edx, dword [0x4488e0]
mov dword [eax], ecx
mov cx, word [0x4488e4]
mov dword [eax + 4], edx
lea edx, [esp + 4]
push edx
mov word [eax + 8], cx
call fcn.00424487
lea eax, [esp + 8]
add esp, 4
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40da20
mov ecx, dword [str._ftproot]
mov edx, dword [0x4488ec]
mov dword [eax], ecx
mov cl, byte [0x4488f0]
mov dword [eax + 4], edx
lea edx, [esp + 4]
push edx
mov byte [eax + 8], cl
call fcn.00424487
lea eax, [esp + 8]
add esp, 4
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40da54
mov ecx, dword [str.Tipray]
mov edx, dword [0x4488f8]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 4]
push eax
call fcn.00424487
lea eax, [esp + 8]
add esp, 4
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40da80
mov ecx, dword [str.LdRead]
mov edx, dword [0x448900]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 4]
push eax
call fcn.00424487
lea eax, [esp + 8]
add esp, 4
dec eax
jmp 0x40dab0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40dab0
mov ecx, dword [str.log]
mov dl, byte [0x448908]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 4]
push eax
call fcn.00424487
lea eax, [esp + 8]
add esp, 4
dec eax
jmp 0x40dae0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40dae0
mov ecx, dword [str.LdCab.log]
mov edx, dword [0x448910]
mov dword [eax], ecx
mov cx, word [0x448914]
mov dword [eax + 4], edx
mov dl, byte [0x448916]
mov word [eax + 8], cx
push esi
mov byte [eax + 0xa], dl
lea eax, [esp + 8]
push 0x447a48
push eax
call fcn.0042292f
mov esi, eax
add esp, 8
test esi, esi
je 0x40db56
push edi
push 2
push 0
push esi
call fcn.00423ebf
push esi
call fcn.004240e1
push esi
mov edi, eax
call fcn.004229bd
add esp, 0x14
cmp edi, 0xfa000
pop edi
jbe 0x40db56
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 8]
push edx
mov ecx, ebx
call fcn.00409b60
mov ecx, dword [esp + 0x310]
pop esi
xor ecx, esp
mov eax, ebx
call fcn.00421f65
add esp, 0x310
ret
Function at 0x40db80
Capabilities:
Delete file

Disassembly:
sub esp, 0x624
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x620], eax
push 0x208
lea eax, [esp + 0x210]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.00425400
push 0x208
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00425400
add esp, 0x18
push 0x208
lea edx, [esp + 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dbe3
sub eax, edx
add eax, 0xffffffff
js 0x40dc01
mov cl, 0x5c
cmp byte [esp + eax + 0x20c], cl
je 0x40dc01
sub eax, 1
jns 0x40dbf3
mov byte [esp + eax + 0x20c], 0
lea eax, [esp + 0x20c]
push eax
lea ecx, [esp + 8]
push str._slog
push ecx
call fcn.00421fc5
push 0x208
lea edx, [esp + 0x425]
push 0
push edx
mov byte [esp + 0x42c], 0
call fcn.00425400
lea eax, [esp + 0x1c]
push eax
call fcn.0043de3b
push eax
lea ecx, [esp + 0x434]
push 0x447a60
push ecx
call fcn.00421fc5
lea edx, [esp + 0x43c]
push str.TiprayLdTerm_
push edx
call fcn.004233d0
add esp, 0x30
test eax, eax
jne 0x40dc8b
lea eax, [esp + 0x414]
push str.DLPApplication_
push eax
call fcn.004233d0
add esp, 8
test eax, eax
je 0x40dc98
lea ecx, [esp + 4]
push ecx
call fcn.00424487
add esp, 4
push edi
lea edi, [esp + 8]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40dca0
mov dx, word [0x4478c8]
lea eax, [esp + 8]
mov word [edi], dx
dec eax
pop edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40dcb8
mov ecx, dword [str.LdCabErrInfo.ini]
mov edx, dword [0x448948]
mov dword [eax], ecx
mov ecx, dword [0x44894c]
mov dword [eax + 4], edx
mov edx, dword [0x448950]
mov dword [eax + 8], ecx
mov cl, byte [0x448954]
mov dword [eax + 0xc], edx
lea edx, [esp + 4]
push edx
mov byte [eax + 0x10], cl
call fcn.0040a100
add esp, 4
test eax, eax
je 0x40dd08
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00409b60
mov ecx, dword [esp + 0x620]
xor ecx, esp
mov eax, esi
call fcn.00421f65
add esp, 0x624
ret
Function at 0x40e590
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x43ecd8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x60], eax
push ebp
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
push ebx
push edi
mov dword [esp + 0x14], ebp
call fcn.0041e175
push 0x40
lea eax, [esp + 0x14]
push ebp
push eax
mov dword [esp + 0x18], vtable.CMD5Checksum.0
call fcn.00425400
add esp, 0xc
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], 0x67452301
mov dword [esp + 0x5c], 0xefcdab89
mov dword [esp + 0x60], 0x98badcfe
mov dword [esp + 0x64], 0x10325476
push edi
mov eax, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], ebp
call fcn.0040efc0
push esi
lea ecx, [esp + 0x10]
call fcn.0040ed40
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop ebp
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00421f65
add esp, 0x70
ret

Function at 0x40f1f0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00414b54
mov eax, dword [esi + 0x98]
push 0x640000
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x40f170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov dword [esi + 0x74], eax
pop esi
pop ecx
ret

Function at 0x40f3b0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43f888
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0040f060
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0
mov dword [0x453d08], ecx
test esi, esi
jne 0x40f400
xor eax, eax
jmp 0x40f40e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f405
sub eax, edx
push eax
push esi
mov ecx, 0x453cfc
call fcn.00409f10
test edi, edi
jne 0x40f422
xor eax, eax
jmp 0x40f430
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f427
sub eax, edx
push eax
push edi
mov ecx, 0x453d00
call fcn.00409f10
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x40f300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
call fcn.00414e53
lea ecx, [esp + 0x80]
mov dword [esp + 0xdc], 1
call fcn.0041516a
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00414702
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xdc
ret