joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467540
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b1698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4b4668]
push 0
lea ecx, [esp + 0x20]
call fcn.004a823f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00466ee0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a816d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a4957
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a4957
push 1
push 0
push 0
mov ecx, esi
call fcn.004a48ff
push 1
push 0
push 1
mov ecx, esi
call fcn.004a48ff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a82b1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4676c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b16b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a823f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00466ee0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a816d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4b4668]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x467784
cmp dword [esp + 0x40], 1
jne 0x467782
cmp ecx, eax
jge 0x467784
mov eax, ecx
cmp eax, 0xc8
jge 0x467790
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00467540
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4b4664]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a82b1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x467f00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b1723
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a2d74
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x5b8330
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x5b4e20
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4b4040]
push eax
mov ecx, edi
call fcn.004a84e7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a9a3f
test eax, eax
je 0x46801c
mov ecx, dword [esp + 0x3c]
call fcn.004a8514
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4b4688]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x467fe0
push edi
mov ecx, esi
call fcn.004a5adb
mov ecx, esi
call fcn.00468180
cmp dword [esp + 0x38], 1
jne 0x468015
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a5c45
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x46aa40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46aa73
push esi
call fcn.0046db50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46aa6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x46aaf9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46aae2
mov eax, dword [esi + 8]
test eax, eax
je 0x46aa97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46aade
cmp eax, 2
je 0x46aae2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46aa8a
cmp eax, 3
je 0x46aabd
cmp eax, 1
jne 0x46aa8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46aa8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46aa8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046ab20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46ab08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046ab20
add esp, 4
pop esi
ret
Function at 0x401515
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401c08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 0x54
push ebx
xor ebx, ebx
push edi
cmp dword [eax - 0xc], ebx
je 0x401d84
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0x449bb0
lea eax, [ebp - 8]
call fcn.00404558
lea edi, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040a224
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
push 0x449bb8
mov eax, edi
push eax
call fcn.00402105
mov edi, dword [ebp - 4]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x401c90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
jmp 0x401d7f
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push edi
lea eax, [ebp - 8]
call fcn.00401fac
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_nrd___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
cmp byte [esi + 9], bl
jne 0x401cbb
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 8]
push dword [ebp - 8]
push dword [esi]
push dword [esi]
push dword [esi]
push eax
lea eax, [ebp - 0xc]
call fcn.004022a0
mov edi, dword [ebp - 0xc]
add esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi - 0xc]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
lea eax, [edi - 0x10]
call fcn.0040464c
cmp dword [ebp - 0x18], ebx
je 0x401d09
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 4]
lea edi, [ebp - 0xc]
call fcn.00409ef5
cmp byte [esi + 8], bl
jne 0x401d30
mov edi, dword [ebp - 0xc]
push ebx
push edi
push ebx
push dword [ebp - 4]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401d71
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00431420
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
add esp, 0xc
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], 0x500
mov dword [ebp - 0x48], str.runas
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [edi - 0x10]
call fcn.0040464c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.0040464c
mov eax, dword [esi]
sub eax, 0x10
call fcn.0040464c
pop edi
pop ebx
leave
ret
Function at 0x407186
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [edx + 0x28]
call fcn.0040b569
test al, al
jne 0x40721e
test dword [edx + 0x6c], 0x2000
jne 0x40721e
push edx
call fcn.00408128
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x40721e
test ecx, ecx
jge 0x4071cc
push 0x80070057
call fcn.0040460d
cmp word [eax], 0x5c
jne 0x4071ea
cmp ecx, 1
jl 0x4071c2
cmp word [eax + 2], 0x5c
jne 0x4071ea
cmp ecx, 2
jl 0x4071c2
cmp word [eax + 4], 0x5c
jne 0x40721e
push esi
xor esi, esi
test esi, esi
jl 0x4071c2
mov ecx, esi
mov eax, edi
call fcn.00408e0a
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x4071ed
xor eax, eax
mov word [ebp - 6], ax
pop esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x407220
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004313fb
leave
ret
Function at 0x40f2ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], 0xc8
call fcn.00431415
pop ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], esi
call fcn.0040dc9e
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp + 8]
call esi
mov edi, 0xea
jmp 0x40f36e
add dword [ebp - 4], 2
push ebx
call fcn.00431415
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040dc9e
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x40f33a
test eax, eax
je 0x40f389
mov byte [ebp + 0xf], 0
push ebx
call fcn.00431415
mov al, byte [ebp + 0xf]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x40f3b8
cmp eax, 2
je 0x40f3b8
cmp eax, 7
je 0x40f3b8
cmp eax, 4
jne 0x40f376
push dword [ebx]
push 0x44adb8
push dword [ebp + 0x10]
call fcn.0040971d
add esp, 0xc
mov byte [ebp + 0xf], 1
jmp 0x40f37a
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ebx + ecx*2], ax
mov edi, dword [ebp - 4]
jmp 0x40f3cd
dec edi
mov dword [ebp - 4], edi
cmp word [ebx + edi*2], ax
je 0x40f3c9
inc edi
push ebx
mov ecx, 0x459100
lea esi, [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.004091d9
mov edi, dword [ebp + 0x10]
mov eax, esi
call fcn.004088e1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040464c
jmp 0x40f3b2

Function at 0x40f6f0
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f71f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40f737
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x40f735
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x40f8a6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
call fcn.00431420
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
cmp byte [ebp + 0x18], bl
je 0x40f8e5
lea esi, [ebp - 0xc]
call fcn.00424545
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f92c
lea esi, [ebp - 0xc]
call fcn.00424529
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x40f948
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x40f91d
Function at 0x410150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
mov dword [ebp - 0x414], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x410]
push ecx
mov edi, 0x3ff
push edi
lea ecx, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x410], ebx
push eax
jmp 0x4101e9
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x40c], bl
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x414]
call 0x40aab5
push ebx
lea eax, [ebp - 0x410]
push eax
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x410], ebx
jne 0x4101b4
mov edi, dword [ebp - 0x414]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x410226
lea ecx, [eax - 2]
lea edx, [ebp - 0x414]
mov eax, edi
call fcn.00408d62
call fcn.004088e1
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
call fcn.0040464c
cmp dword [ebp - 0x41c], ebx
je 0x41023a
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313fb
leave
ret
Function at 0x41580d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x4267e6
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x10], eax
mov ebx, 0x1ff
jmp 0x415871
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x415871
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call edi
cmp eax, 1
je 0x41584a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4160e5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push edi
lea ebx, [eax + 0x28]
xor edi, edi
mov dword [ebp - 0x80], eax
cmp dword [ebx], edi
jne 0x416239
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x416167
push 0x208
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x74], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.00404535
push 0x2e
call fcn.00408c55
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push ecx
mov ecx, esi
call fcn.00408922
push str..log
push esi
call fcn.00402105
mov esi, dword [esi]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, ebx
call fcn.00408e41
cmp dword [ebx], 0xffffffff
je 0x416228
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4161b4
mov eax, dword [ebx]
test eax, eax
je 0x4161e5
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4161e5
test eax, eax
jne 0x416228
mov eax, dword [ebx]
test eax, eax
je 0x4161e5
push 2
pop ecx
push 0
lea edx, [ebp - 0x78]
push edx
push ecx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx], 0
je 0x416238
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.00416252
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x78]
mov dword [ebp - 0x78], eax
call fcn.00416277
mov eax, esi
mov esi, edi
call fcn.00416252
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.0040464c
jmp 0x416238
mov eax, dword [ebx]
test eax, eax
je 0x416238
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
pop esi
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.004313fb
add ebp, 0x198
leave
ret 4
Function at 0x416252
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x417b56
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, eax
mov eax, dword [0x459100]
mov esi, 0x459100
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x459100]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x459100]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebx + 0x18]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0040bc90
lea eax, [ebp - 4]
lea edi, [ebp - 8]
call fcn.004088e1
push 0x451d0c
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.00408c24
test eax, eax
jne 0x417bd1
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, edi
push eax
call fcn.00404535
push str.instname_target.msi
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
lea esi, [ebx + 0x1c]
call fcn.00408dca
pop ecx
mov edi, esi
call fcn.004088e1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
push str.instname_custom.mst
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
lea edi, [ebx + 0x20]
call fcn.00408dca
pop ecx
call fcn.004088e1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [esi]
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x417c3c
mov esi, dword [ebp + 8]
mov ecx, 0x459100
call fcn.00404631
jmp 0x417c94
push 0x44ad34
lea eax, [ebp - 0x10]
call fcn.00404558
add ebx, 0x14
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.0041804a
mov bl, al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
test bl, bl
je 0x417c82
push edi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
call fcn.00417eec
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [edi]
sub eax, 0x10
call int.00409c66
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x41aad8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x20]
call fcn.004088e1
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x1c]
call fcn.004088e1
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x41ab0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x41af4c
push ebx
push ebx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x41ab31
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ab41
cmp byte [ebp + 0x10], bl
je 0x41ab3f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
jmp 0x41ab41
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41acc8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x459100]
push ebx
push esi
push edi
mov ecx, 0x459100
mov dword [ebp - 0x14], str.http:__www.google.com
mov dword [ebp - 0x10], str.http:__www.yahoo.com
mov dword [ebp - 0xc], str.http:__www.example.com
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
push str.tin9999.tmp
lea eax, [ebp - 4]
call fcn.00404558
lea edi, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040a224
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x90]
call fcn.0041a993
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
push dword [ebp + esi*4 - 0x14]
lea eax, [ebp - 4]
call fcn.00404558
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041aad8
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
test edi, edi
je 0x41ad71
inc esi
cmp esi, 3
jl 0x41ad37
jmp 0x41ad73
mov bl, 1
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x90]
call fcn.0041aa31
lea eax, [edi - 0x10]
call fcn.0040464c
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x41b7bd
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
call fcn.0041c9d1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [esi + 0x3c], 0
mov edi, eax
je 0x41b7f1
mov dword [ebp - 4], edi
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, esi
mov byte [esi + 8], 1
call fcn.0041b735
mov byte [esi + 8], 0
test edi, edi
jbe 0x41b818
cmp dword [ebp - 4], edi
je 0x41b818
mov eax, 0x2ee2
test eax, eax
jne 0x41b82f
mov esi, dword [esi + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, dword [edi]
je 0x41b82d
call fcn.0041c9d1
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
leave
ret 0x10