joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f17e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x457591
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], esi
cmp dword [esi + 0xfc], ebx
jne 0x43f274
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xfc], eax
jne 0x43f274
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, 0x104
lea eax, [ebp - 0x128]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov esi, str.winhlp32.exe
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x43f238
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x43f25e
push 0x6a
push esi
call edi
cmp eax, ebx
je 0x43f25e
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xfc], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x447cbd
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47a748]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
jne 0x447ce3
cmp dword [0x47a740], ebx
jne 0x447ce3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
jmp 0x447ea2
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xfffffff2
jne 0x447e0e
mov edi, dword [ebp + 8]
cmp dword [edi + 0x6a0], ebx
je 0x447d01
xor eax, eax
jmp 0x447eb6
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 4]
mov esi, 0x47a720
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x447d60
push dword [0x47a740]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
or dword [0x468178], 0xffffffff
or dword [0x468180], 0xffffffff
or dword [0x46817c], 0xffffffff
push ebx
push 1
mov dword [0x47a740], ebx
push dword [ebp + 0xc]
push edi
call fcn.0044686a
add esp, 0x10
jmp 0x447e06
cmp dword [0x468178], ebx
jne 0x447d7d
push dword [ebp - 4]
lea ebx, [edi + 8]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00447054
jmp 0x447d93
push dword [ebp - 4]
lea ebx, [edi + 0x354]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00447092
add esp, 0x14
cmp dword [0x468180], eax
mov dword [0x46817c], eax
je 0x447e01
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call fcn.004470d0
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
neg eax
push eax
mov eax, dword [ebp - 0x28]
neg eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
push edi
push esi
push ebx
call fcn.0044533d
add esp, 0x14
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x46817c]
mov dword [0x468180], eax
xor eax, eax
pop esi
jmp 0x447eb6
cmp ecx, 0xfffd
jne 0x447e3b
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push 0x37
push 0xfffe
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x47a748], eax
jmp 0x447cfa
cmp ecx, 0xfffe
jne 0x447e9e
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044729f
mov eax, dword [0x468184]
add esp, 0x10
cmp eax, 0xffffffff
je 0x447cfa
push ebx
push eax
push dword [0x47a744]
push dword [ebp + 0xc]
call fcn.00446e9c
add esp, 0x10
jmp 0x447cfa
push dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 8]
push 0x113
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop ebx
leave
ret
Function at 0x452124
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x457e3c
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
push esi
push edi
lea esi, [ebp + 8]
push dword [ebp + 0x1c]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x18]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042a4c1
mov al, byte [ebp + 0x1f]
xor esi, esi
lea ecx, [ebx + 0x30]
push esi
mov dword [ebp - 4], esi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x44], esi
pop edi
mov dword [ebx], 0x45c880
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18
Function at 0x452aae
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push ebx
call fcn.004514bd
test al, al
jne 0x452adf
cmp word [esi + 0x16], 8
jae 0x452ae6
add esi, 0x44
push str.Bit_depth_must_be_8_or_24
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
xor al, al
jmp 0x452cb6
and byte [ebp - 0x18], 0
push edi
mov ecx, esi
call fcn.0044ce49
test eax, eax
setne al
mov byte [ebp - 0x17], al
mov ax, word [esi + 0x16]
cmp ax, 8
mov dx, ax
setne cl
inc ecx
sub dx, 8
mov byte [ebp - 0x16], cl
xor ecx, ecx
neg dx
sbb edx, edx
mov edi, 0x100
and dl, cl
mov word [ebp - 0x15], cx
add edx, edi
cmp ax, 8
mov word [ebp - 0x13], dx
mov word [ebp - 0x10], cx
setne dl
dec edx
and byte [ebp - 7], cl
and edx, 0x18
cmp dword [esi + 0x1a0], ecx
mov byte [ebp - 0x11], dl
mov dx, word [esi + 0xc]
mov word [ebp - 0xc], dx
mov dx, word [esi + 0x10]
mov word [ebp - 0xa], dx
mov dl, al
mov word [ebp - 0xe], cx
mov byte [ebp - 8], dl
je 0x452b68
cmp ax, 0x18
jne 0x452b68
mov byte [ebp - 8], 0x20
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x18]
push 0x12
push ecx
mov ecx, ebx
call dword [eax + 0xc]
cmp word [esi + 0x16], 8
jne 0x452bbc
mov ecx, esi
call fcn.0044ce49
lea ecx, [ebp - 0x33b]
add eax, 2
mov dl, byte [eax - 2]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 3
dec edi
jne 0x452b8e
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x33c]
push 0x300
push ecx
mov ecx, ebx
call dword [eax + 0xc]
push esi
lea ecx, [ebp - 0x3c]
call fcn.00452ff8
xor edi, edi
cmp dword [esi + 0x1a0], edi
je 0x452c80
cmp word [esi + 0x16], 8
je 0x452c80
movzx eax, word [ebp - 0xc]
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
and dword [ebp - 4], 0
cmp word [ebp - 0xa], 0
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
jbe 0x452c76
xor ebx, ebx
cmp word [ebp - 0xc], bx
jbe 0x452c54
inc edi
push dword [ebp - 4]
lea eax, [ebp - 0x24]
mov ecx, esi
push ebx
push eax
call fcn.0044cf71
mov eax, dword [eax]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [edi - 1], al
mov al, byte [ebp - 0x1a]
mov byte [edi], ah
push ebx
mov ecx, esi
mov byte [edi + 1], al
call fcn.0044d398
movzx ecx, byte [esi + 0x17c]
movzx eax, al
imul eax, ecx
cdq
mov ecx, 0xff
add edi, 4
idiv ecx
inc ebx
mov byte [edi - 2], al
movzx eax, word [ebp - 0xc]
cmp ebx, eax
jl 0x452c06
movzx edx, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
shl edx, 2
mov eax, dword [ecx]
push 1
push edx
push edi
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x452bfd
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x452cb3
cmp word [ebp - 0xa], di
jbe 0x452cb3
push edi
lea ecx, [ebp - 0x3c]
call fcn.00453024
movzx ecx, word [esi + 0x16]
movzx edx, word [ebp - 0xc]
shr ecx, 3
imul ecx, edx
mov eax, dword [ebx]
push 1
push ecx
mov ecx, ebx
push dword [ebp - 0x2c]
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc edi
cmp edi, eax
jl 0x452c86
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401070
Capabilities:
Clear file content
Get system information on windows
Read file via mapping
Write file on windows

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
mov esi, ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x4010ef
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x38]
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
push 0
push edx
push ebx
push edi
call fcn.004102b0
mov ecx, dword [esi + 0x18]
mov ebp, eax
xor eax, eax
sub edi, ebp
sbb ebx, eax
mov eax, dword [esi + 0xc]
add ecx, ebp
push ecx
push edi
push ebx
push 4
mov edx, ebx
push eax
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4010f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov edx, dword [esi + 0x18]
mov ebx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
lea eax, [edi + ebp]
push eax
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40113c
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, dword [esi + 0x18]
jne 0x40113c
cmp ecx, dword [esi + 0x1c]
jne 0x40113c
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, dword [esp + 0x18]
jmp 0x40113e
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x401160
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
sub esp, 0x248
mov eax, dword [0x4152ac]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x46]
push edi
push eax
mov word [esp + 0x4c], di
call fcn.00404780
add esp, 0xc
push 0x104
lea ecx, [esp + 0x44]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4011f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_file__error__d__n
call fcn.00403561
add esp, 8
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00403552
add esp, 0x248
ret
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x14], ebp
jne 0x401234
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00403552
add esp, 0x248
ret
lea ecx, [esp + 0x1c]
push ecx
mov dword [esi + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 4]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x38]
or edi, dword [esp + 0x18]
imul eax, eax, 0x3e8
xor ecx, ecx
cmp edi, ecx
mov dword [esi + 4], 0xffffffff
mov dword [esp + 0x10], eax
jg 0x401288
jl 0x401282
cmp ebx, eax
jae 0x401288
mov eax, ebx
mov dword [esp + 0x10], ebx
push eax
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4011d9
mov edi, dword [eax + 0x40]
mov ebx, dword [eax + 0x44]
mov edx, edi
add edx, 8
mov ecx, ebx
adc ecx, 0
xor ebp, ebp
cmp ebp, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ecx
jl 0x4012c8
jg 0x4012fb
cmp dword [esp + 0x10], edx
jae 0x4012fb
push eax
call ebp
mov edx, dword [esp + 0x38]
push 0
push edx
push ebx
push edi
call fcn.004102b0
xor edx, edx
mov ecx, edi
sub ecx, eax
sbb ebx, edx
add eax, 0x100
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push 4
mov eax, ebx
push ecx
sar eax, 0x1f
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [edi + eax]
mov dword [esi + 0x18], edx
mov ecx, dword [edi + eax + 4]
push eax
mov dword [esi + 0x1c], ecx
call ebp
mov ecx, dword [esp + 0x24c]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00403552
add esp, 0x248
ret
Function at 0x4014a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4014b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4014e4
cmp esi, eax
jae 0x4014e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4014d4
cmp esi, eax
jb 0x4014ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x401eb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x814
mov eax, dword [0x4152ac]
xor eax, esp
mov dword [esp + 0x810], eax
mov eax, dword [esp + 0x818]
push ebp
mov ebp, dword [esp + 0x820]
push esi
push 0
push 0x80
push 3
push 0
mov word [edi], 0
push 0
mov word [ebp], 0
mov word [ebx], 0
push 0x80000000
mov word [ecx], 0
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
mov word [edx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401fa0
push 0x7ff
lea eax, [esp + 0x1d]
push 0
push eax
mov byte [esp + 0x24], 0
call fcn.00404780
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x7ff
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], 0
je 0x401fa0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov word [edi], 0x7db
mov word [ebp], 5
mov word [ebx], 0x19
mov word [eax], 0
pop esi
mov word [ecx], 0
mov al, 1
pop ebp
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.00403552
add esp, 0x814
ret
mov ecx, dword [esp + 0x818]
pop esi
pop ebp
xor ecx, esp
xor al, al
call fcn.00403552
add esp, 0x814
ret
Function at 0x401fc0
Capabilities:
Delete file
Read .ini file

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4152ac]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
push edi
xor esi, esi
push 0x1fe
lea eax, [esp + 0x26]
push esi
push eax
mov word [esp + 0x2c], si
call fcn.00404780
add esp, 0xc
cmp word [0x4170b0], si
jne 0x40201b
push str.firstRun.txt
call fcn.00401de0
push eax
push str._s_s
mov eax, 0x208
mov edi, 0x4170b0
call fcn.00401440
add esp, 0xc
push 0x4170b0
push 0x100
lea ecx, [esp + 0x28]
push ecx
push 0x412fb0
push str.version
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x40208b
call fcn.00401d70
test al, al
jne 0x402189
cmp word [0x4170b0], si
jne 0x40207b
push str.firstRun.txt
call fcn.00401de0
push eax
push str._s_s
mov eax, 0x208
mov edi, 0x4170b0
call fcn.00401440
add esp, 0xc
push 0x4170b0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402189
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
call fcn.004025c0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str._4d__2d__2d__2d__2d
push edx
call fcn.00403970
add esp, 0x1c
test eax, eax
je 0x402169
movzx eax, word [esp + 0x228]
cmp dword [esp + 0x1c], eax
jb 0x402169
movzx ecx, word [esp + 0x22c]
cmp dword [esp + 0x14], ecx
jae 0x402112
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40217d
movzx ecx, word [esp + 0x230]
cmp dword [esp + 0xc], ecx
jae 0x40212b
lea eax, [esp + 8]
call fcn.004026e0
jmp 0x402189
movzx edx, word [esp + 0x234]
cmp dword [esp + 0x10], edx
jb 0x402120
movzx eax, word [esp + 0x238]
cmp dword [esp + 0x18], eax
lea eax, [esp + 8]
jb 0x402124
call fcn.004026e0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00403552
add esp, 0x21c
ret
mov eax, dword [esp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402189
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00403552
add esp, 0x21c
ret
Function at 0x4021b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4103c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4152ac]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x4161f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4161f4
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x34]
movzx ecx, word [esp + 0x30]
movzx edx, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2c]
push ecx
movzx ecx, word [esp + 0x2c]
push edx
push eax
push ecx
push str._04d__02d__02d__02d__02d
lea edi, [esp + 0x28]
mov dword [esp + 0x34], 0
call fcn.00402930
add esp, 0x18
cmp word [0x4170b0], 0
jne 0x40224d
push str.firstRun.txt
call fcn.00401de0
push eax
push str._s_s
mov eax, 0x208
mov edi, 0x4170b0
call fcn.00401440
add esp, 0xc
mov esi, dword [esp + 0x10]
push 0x4170b0
push esi
push str.version
push str.Install
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
lea eax, [esi - 0x10]
setne bl
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402290
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x402370
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
push 0x80000001
call esi
test eax, eax
je 0x40239a
push eax
push str.cannot_delete_HKCU_postplaform_errcode___x
mov ecx, 0x417bd4
call fcn.00402ac0
add esp, 8
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings5.0User_AgentPost_Platform
push 0x80000002
call esi
test eax, eax
je 0x4023bd
push eax
push str.cannot_delete_HKLM_5.0_postplaform_errcode___x
mov ecx, 0x417bd4
call fcn.00402ac0
add esp, 8
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
push 0x80000002
call esi
test eax, eax
je 0x4023e0
push eax
push str.cannot_delete_HKLM__postplaform_errcode___x
mov ecx, 0x417bd4
call fcn.00402ac0
add esp, 8
mov eax, 1
pop esi
ret
Function at 0x402ec0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.00404780
mov ecx, dword [esp + 0x4c]
add esp, 0xc
lea edx, [esp]
push edx
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x440
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x402f32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._s_could_not_be_launched:__d_n
call fcn.004043b0
add eax, 0x40
push eax
call fcn.004041ad
add esp, 0x10
xor eax, eax
add esp, 0x3c
ret
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x402f4f
mov ecx, dword [esp + 0x38]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x3c
ret

Function at 0x402f70
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4152ac]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.00404780
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402fcc
cmp dword [esp + 4], 6
jae 0x402fcc
xor al, al
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00403552
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
mov al, 1
call fcn.00403552
add esp, 0x120
ret

Function at 0x403290
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4152ac]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004031cf
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00404780
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4032df
cmp dword [ebp - 0x1c], 5
jb 0x4032f7
jmp 0x4032f3
cmp dword [ebp - 0x10], 1
jne 0x4032f7
cmp dword [ebp - 0x1c], 4
ja 0x4032f3
jne 0x4032f7
cmp dword [ebp - 0x18], 0
jbe 0x4032f7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x411260
call fcn.00402a40
test eax, eax
jge 0x403318
mov byte [0x416ea6], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403552
add ebp, 0x78
leave
ret

Function at 0x403552
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4152ac]
jne 0x40355c
repz ret
jmp fcn.00404c58