joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ec7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415f82
and dword [ebp - 0x14], 0
cmp dword [0x46b150], 0
mov dword [ebp - 0x18], eax
jne 0x41ed2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41edd7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41edd7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46b150], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46b154], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46b158], eax
call edi
push eax
call esi
mov dword [0x46b160], eax
test eax, eax
je 0x41ed2f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46b15c], eax
mov eax, dword [0x46b15c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ed88
cmp dword [0x46b160], ecx
je 0x41ed88
push eax
call esi
push dword [0x46b160]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ed88
test ebx, ebx
je 0x41ed88
call edi
test eax, eax
je 0x41ed7f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ed7f
test byte [ebp - 8], 1
jne 0x41ed88
or dword [ebp + 0x10], 0x200000
jmp 0x41edbb
mov eax, dword [0x46b154]
cmp eax, dword [ebp - 0x18]
je 0x41edbb
push eax
call esi
test eax, eax
je 0x41edbb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41edbb
mov eax, dword [0x46b158]
cmp eax, dword [ebp - 0x18]
je 0x41edbb
push eax
call esi
test eax, eax
je 0x41edbb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b150]
call esi
test eax, eax
je 0x41edd7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41edd9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106c7
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
jne 0x401012
mov eax, 1
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi]
test edi, edi
je 0x401026
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4092a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, 0x10000
je 0x40104b
push 0
push 0
push 0xc0000025
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_RaiseException]
test edi, 0x20000
je 0x401059
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
ret 8

Function at 0x401070
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 2
jne 0x401082
mov eax, 2
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi]
test edi, edi
je 0x401096
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4092a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, 0x10000
je 0x4010bb
push 0
push 0
push 0xc0000025
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_RaiseException]
test edi, 0x20000
je 0x4010c9
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
ret 8

Function at 0x4010e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 3
jne 0x4010f2
mov eax, 3
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi]
test edi, edi
je 0x401106
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4092a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, 0x10000
je 0x40112b
push 0
push 0
push 0xc0000025
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_RaiseException]
test edi, 0x20000
je 0x401139
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
ret 8

Function at 0x401150
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40115f
xor eax, eax
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi]
test edi, edi
je 0x401173
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4092a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, 0x10000
je 0x401198
push 0
push 0
push 0xc0000025
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_RaiseException]
test edi, 0x20000
je 0x4011a6
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
ret 8

Function at 0x401560
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.00401646
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40157b
call fcn.004069d7
call fcn.004017ed
mov eax, dword [esi + 0x10]
push dword [eax + 0x44]
call fcn.004013e0
mov ecx, dword [esi + 0x10]
mov edi, eax
cmp dword [ecx + 0x44], 0
jne 0x40159b
push 1
call fcn.004017ff
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4019f3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x409928
push 0x409920
push 0x409928
push 0x1f
call fcn.0040192e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401a27
push dword [ebp + 8]
mov ecx, esi
call dword [0x409134]
call esi
jmp 0x401a2d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x401a71
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40994c
push 0x409944
push 0x40994c
push 0x21
call fcn.0040192e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401aa8
push dword [ebp + 8]
mov ecx, esi
call dword [0x409134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x401ab0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x409960
push 0x409958
push 0x409960
push 0x22
call fcn.0040192e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401aea
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x409134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4039a3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4039e2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4039e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4039e2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4039e2
cmp dword [ecx + 0x74], 0xe
jbe 0x4039e2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408e50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408e7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408e7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404a60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbc3b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push 0x20a
mov dword [ebp - 0x234], eax
push 0
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [ebp - 0x220]
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x404ac6
mov eax, dword [ecx]
mov ax, word [eax]
mov word [ebp - 0x220], ax
mov eax, ecx
jb 0x404ad6
mov eax, dword [ecx]
mov ax, word [eax + 2]
mov word [ebp - 0x21e], ax
jb 0x404ae5
mov ecx, dword [ecx]
movzx eax, word [ecx + 4]
xor ecx, ecx
mov word [ebp - 0x21c], ax
mov word [ebp - 0x21a], cx
cmp eax, 0x2f
jne 0x404b0a
mov eax, 0x5c
mov word [ebp - 0x21c], ax
mov dword [ebp - 0x23c], ecx
xor eax, eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404b30
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.00402250
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0
call fcn.00418470
lea ecx, [ebp - 0x24c]
mov bl, al
call fcn.004021f0
test bl, bl
je 0x404bfb
lea eax, [ebp - 0x230]
mov dword [ebp - 0x224], 0
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], 0
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x228], 0
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x230], 0
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x404bff
mov eax, dword [ebp - 0x228]
mul dword [ebp - 0x22c]
mov ecx, eax
mov eax, edx
mul dword [ebp - 0x224]
mov edi, eax
mov eax, ecx
mul dword [ebp - 0x224]
mov ecx, dword [ebp - 0x234]
add edi, edx
mov dword [ecx], eax
mov dword [ecx + 4], edi
mov al, 1
jmp 0x404c01
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret 8
Function at 0x411420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd4e8
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
call fcn.00402ed0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push 0x20c
push 0
push eax
mov dword [ebp - 0x220], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4114c9
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x12], ax
call fcn.00402460
push eax
lea eax, [ebp - 0x21c]
push eax
jmp 0x4114d9
mov ecx, 0x4e2b98
call fcn.00402460
push eax
push 0x4e2b98
mov ecx, esi
call fcn.00402250
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.004021e0
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x411507
mov eax, dword [ecx]
mov ax, word [eax]
mov word [ebp - 0x21c], ax
mov eax, ecx
jb 0x411517
mov eax, dword [ecx]
mov ax, word [eax + 2]
mov word [ebp - 0x21a], ax
jb 0x411526
mov ecx, dword [ecx]
movzx eax, word [ecx + 4]
xor ecx, ecx
mov word [ebp - 0x218], ax
mov word [ebp - 0x216], cx
cmp eax, 0x2f
jne 0x41154b
mov eax, 0x5c
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x21c]
call fcn.00402460
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00402250
push str.UsersPublicDownloadsQNWallpaper
lea ecx, [ebp - 0x23c]
call fcn.00402100
mov dword [ebp - 4], 1
lea eax, [ebp - 0x23c]
push eax
mov edx, esi
lea ecx, [ebp - 0x254]
call fcn.0041ad70
add esp, 4
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.00402e90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
call fcn.004020f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.004020f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret 4
Function at 0x414420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddc60
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x414566
cmp byte [eax + 0x54], 0
je 0x414566
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.004131e0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41453a
push 0
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.0041c8d0
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x414528
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41451e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41451e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004d9a23
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x41455f
cmp byte [ebp - 0x18], 0
je 0x41455f
mov eax, dword [esi]
test eax, eax
je 0x41455b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret 4
Function at 0x418870
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de720
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00402e40
test al, al
je 0x4188ad
xor al, al
jmp 0x418a4f
call fcn.00418670
test al, al
je 0x4188bd
mov al, 1
jmp 0x418a4f
push 0
mov ecx, edi
call fcn.00402e50
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x41890b
lea ecx, [ebp - 0x28]
call fcn.00402ed0
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.00429a10
test al, al
je 0x4188fc
push 0
lea ecx, [ebp - 0x28]
call fcn.00402e50
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004020f0
mov ecx, edi
call fcn.00418670
test al, al
jne 0x4188b6
mov ecx, edi
call fcn.00402ef0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4189f5
call fcn.004021e0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x41893d
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x418960
mov eax, ebx
cmp ecx, 8
jb 0x418956
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4189e5
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00412de0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402e40
test al, al
jne 0x4189d6
call fcn.00418470
test al, al
jne 0x4189d6
push 0
lea ecx, [ebp - 0x28]
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4189d6
lea ecx, [ebp - 0x40]
call fcn.00402ed0
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.00429a10
test al, al
je 0x4189ca
push 0
lea ecx, [ebp - 0x40]
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004020f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004020f0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x418931
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.00418470
test al, al
jne 0x418a48
push 0
mov ecx, edi
call fcn.00402e50
push eax
call ebx
test eax, eax
jne 0x418a48
lea ecx, [ebp - 0x40]
call fcn.00402ed0
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, edi
call fcn.00429a10
test al, al
je 0x418a39
push 0
lea ecx, [ebp - 0x40]
call fcn.00402e50
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004020f0
mov ecx, edi
call fcn.00418670
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret
Function at 0x4197d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x501008]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41984e
cmp dword [esp + 0x14], 6
jb 0x41984e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.00419640
add esp, 0xc
test al, al
je 0x41984e
cmp word [esi], 0
jne 0x4198a6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.00419640
add esp, 0xc
test al, al
je 0x41987a
cmp word [esi], 0
jne 0x4198a6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.00419640
add esp, 0xc
test al, al
je 0x4198bb
cmp word [esi], 0
je 0x4198bb
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret
Function at 0x419dd0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.004dafc0
push 0xffffffffffffffff
push 0x4de8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp + 0x630]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x419fd1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x419fd1
push esi
call edi
cmp eax, 0xffa
jge 0x419fd1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x4eba64
lea eax, [ebp + 0x630]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2c]
call fcn.00402100
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.004280d0
mov ecx, eax
call fcn.00428190
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004020f0
test esi, esi
je 0x419fd1
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x419fd1
lea ecx, [ebp]
call fcn.004198d0
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x419ef6
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x419f04
inc edi
add esi, 0x210
cmp edi, 3
jl 0x419ed5
jmp 0x419f26
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x419f1e
add ebx, 0x10
test ebx, ebx
jne 0x419fcd
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x630]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x419fc8
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419fbe
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x419fc8
inc esi
cmp esi, 2
jb 0x419f60
mov eax, ebx
jmp 0x419fd3
mov ebx, 0x10
mov eax, ebx
jmp 0x419fd3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2838]
xor ecx, ebp
call fcn.004d99e2
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x41a1a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x41a1d8
mov edx, dword [esp + 4]
test edx, edx
je 0x41a1d8
cmp dword [eax], 0xffffffff
je 0x41a1d8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a1d8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x41a230
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x501008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x41a293
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41a293
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a26e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a293
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004d99e2
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004d99e2
add esp, 8
ret 4

Function at 0x41a360
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x41a40e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.0041a2b0
test al, al
je 0x41a40e
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.0041a2b0
test al, al
je 0x41a40e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x41a3e4
cmp dword [esp + 0x14], edi
jne 0x41a3e4
mov eax, dword [esi]
test eax, eax
jne 0x41a3d1
xor bl, bl
jmp 0x41a3e4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41a3cd
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.0041a2b0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8