joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a530
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov eax, dword [0x414020]
push esi
push ebx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x40a604
xor eax, eax
lea esi, [esi]
mov ecx, eax
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test al, 1
jne 0x40a562
mov edx, ecx
mov edi, edx
shr edi, 1
mov ecx, edi
xor ecx, 0xedb88320
and edx, 1
jne 0x40a575
mov ecx, edi
mov edi, ecx
shr edi, 1
mov edx, edi
xor edx, 0xedb88320
and ecx, 1
jne 0x40a588
mov edx, edi
mov edi, edx
shr edi, 1
mov ecx, edi
xor ecx, 0xedb88320
and edx, 1
jne 0x40a59b
mov ecx, edi
mov edi, ecx
shr edi, 1
mov edx, edi
xor edx, 0xedb88320
and ecx, 1
jne 0x40a5ae
mov edx, edi
mov edi, edx
shr edi, 1
mov ecx, edi
xor ecx, 0xedb88320
and edx, 1
jne 0x40a5c1
mov ecx, edi
mov edi, ecx
shr edi, 1
mov edx, edi
xor edx, 0xedb88320
and ecx, 1
jne 0x40a5d4
mov edx, edi
mov edi, edx
shr edi, 1
mov ecx, edi
xor ecx, 0xedb88320
and edx, 1
jne 0x40a5e7
mov ecx, edi
mov dword [eax*4 + 0x414040], ecx
inc eax
cmp eax, 0x100
jne 0x40a550
mov dword [0x414020], 1
xor eax, eax
test ebx, ebx
jle 0x40a62f
or eax, 0xffffffff
xor edx, edx
nop
mov cl, byte [esi + edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov edi, dword [ecx*4 + 0x414040]
xor eax, edi
cmp edx, ebx
jne 0x40a610
xor eax, 0xffffffff
pop ebx
pop esi
pop edi
ret
Function at 0x40c050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp + 8], 0xf00
lea eax, [ebx + 0x1790]
lea edi, [ebx + 0x3b90]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._memmove
lea ecx, [ebx + 0x7d90]
mov edx, edi
mov eax, ebp
mov dword [esp], esi
call sym._mpc_synthese_filter_float_internal
cmp esi, 1
jle 0x40c0d5
lea edi, [ebx + 0x6e90]
lea eax, [ebx + 0x4a90]
mov dword [esp], edi
mov dword [esp + 8], 0xf00
mov dword [esp + 4], eax
call sym._memmove
mov dword [esp + 0x30], esi
lea ecx, [ebx + 0x8f90]
add esp, 0x1c
lea eax, [ebp + 4]
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
jmp sym._mpc_synthese_filter_float_internal
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 8], 0x17
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40c280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov ebx, eax
test ecx, ecx
jne 0x40c292
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
call sym._VirtualQuery_12
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov ecx, dword [ebp - 0x30]
test eax, eax
je 0x40c34a
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x40c2fd
cmp eax, 0x40
je 0x40c2fd
lea eax, [ebp - 0xc]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
call sym._VirtualProtect_16
mov ecx, dword [ebp - 0x30]
sub esp, 0x10
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x40c28d
cmp eax, 0x40
je 0x40c28d
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._VirtualProtect_16
mov ebx, dword [ebp - 4]
sub esp, 0x10
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
lea esi, [esi]
lea edi, [edi]
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
xor esi, esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.004082d0
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004082d0
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp - 0x410], ax
push 0x415610
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x415654
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
xor ecx, ecx
inc ecx
cmp eax, 0xffffffff
push 0x415660
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x415654
push eax
cmovne esi, ecx
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4010d2
or esi, 2
push 0x4156a8
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x415654
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401100
or esi, 4
push 0x4156f8
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x415654
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401131
or esi, 0x100
push 0x415750
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x415654
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401162
or esi, 0x200
push 0x4157a8
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x415654
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401193
or esi, 0x400
mov ecx, dword [ebp - 4]
or esi, 0x2000000
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
leave
ret
Function at 0x4013da
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e4
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x48], ax
xor edi, edi
lea eax, [ebp - 0x46]
push edi
push eax
call fcn.004082d0
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push edi
push eax
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0x250]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x250]
push 0x5c
push eax
call fcn.00405239
mov esi, eax
push 2
xor eax, eax
pop ebx
mov word [esi], ax
add esi, ebx
push 0x2e
push esi
call fcn.00405239
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x48]
add esp, 0x10
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
add esi, ebx
test ax, ax
jne 0x401467
mov ecx, edi
movzx eax, word [ebp + ecx - 0x48]
mov word [ecx + 0x418f88], ax
add ecx, ebx
test ax, ax
jne 0x401477
mov esi, 0x418f88
push esi
push edi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x4014ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401592
push esi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4014a7
lea eax, [ebp - 0x3e0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x419b20
call fcn.00401c3d
mov esi, 0x415890
test eax, eax
jne 0x401569
mov ecx, edi
movzx eax, word [ecx + 0x41585c]
mov word [ecx + 0x419cc8], ax
add ecx, ebx
test ax, ax
jne 0x4014e7
push 0x415868
push 0x40
push 0x419b24
call fcn.0040482f
add esp, 0xc
push 0x415884
push 0x10
push 0x419ba6
call fcn.0040482f
add esp, 0xc
push esi
push 0x40
push 0x419bc6
call fcn.0040482f
add esp, 0xc
mov edx, edi
push 0x51
pop eax
mov word [0x419ba4], ax
mov eax, 0x2b8e
mov word [0x419c46], ax
movzx eax, word [edx + 0x4158ac]
mov word [edx + 0x419ca8], ax
add edx, ebx
test ax, ax
jne 0x40154a
mov dword [0x419ce8], 5
call fcn.00403350
mov ecx, esi
call fcn.004033f0
mov dword [0x419e20], eax
call fcn.00401216
push edi
push edi
push edi
push 0x40133b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
leave
ret
Function at 0x4015a1
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
push edi
mov ecx, 0x4158bc
mov dword [ebp - 0x41c], eax
call fcn.00403a80
mov esi, eax
test esi, esi
jne 0x4016c8
mov edi, 0x206
push edi
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.004082d0
add esp, 0xc
xor eax, eax
push edi
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push ebx
push eax
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x4193a8
mov ebx, edi
xor eax, eax
cmp word [ebx], ax
je 0x40165e
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0040482f
add esp, 0xc
lea eax, [ebp - 0x418]
push ebx
push 0x104
push eax
call fcn.0040488b
add esp, 0xc
xor eax, eax
add ebx, 0x118
cmp ebx, 0x419920
jl 0x401627
mov ebx, dword [ebp - 0x41c]
cmp word [edi], ax
je 0x401689
push ecx
push ebx
mov edx, 0x4158bc
mov ecx, edi
call fcn.00404390
pop ecx
pop ecx
xor eax, eax
add edi, 0x118
cmp edi, 0x419920
jl 0x401672
push 0x4191a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040488b
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
cmp eax, 0xffffffff
pop ecx
cmove esi, ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
leave
ret
Function at 0x401946
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x417038]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x418eb8
push 0x67
push edi
call esi
push 0x64
mov ebx, 0x418df0
push ebx
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00401ab8
xor ecx, ecx
push ecx
push edi
push ecx
push ecx
push ecx
mov eax, connect
push eax
push ecx
push eax
push 0xcf0000
push 0x418eb8
push ebx
push ecx
mov dword [0x418f80], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x4019d0
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004046ea
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
call fcn.004027c0
call fcn.00401eab
test eax, eax
je 0x401a02
call fcn.004030b0
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004013da
test eax, eax
je 0x4019b7
call fcn.004016d7
mov ecx, dword [0x419e20]
test ecx, ecx
je 0x401a3a
cmp word [0x419e24], 0
jbe 0x401a3a
mov edx, 0x417ef8
call fcn.00403810
mov ax, word [0x419e24]
mov word [0x417ef4], ax
xor ebx, ebx
mov ecx, ebx
movzx eax, word [ecx + 0x415968]
mov word [ecx + 0x4191a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401a3e
call fcn.00403890
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push ebx
push eax
call fcn.004082d0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4191a0
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0040488b
add esp, 0xc
push 0x1f4
call esi
push 1
push ebx
push 0x41584c
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4019fb
Function at 0x401cc8
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 0x214], eax
test eax, eax
je 0x401dde
test ebx, ebx
je 0x401dde
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x401cff
sub ecx, edx
sar ecx, 1
je 0x401dde
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004082d0
add esp, 0xc
cmp dword [ebp + 0xc], edi
jne 0x401d6b
cmp dword [0x417f08], 3
jne 0x401d6b
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41599c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040488b
add esp, 0xc
jmp 0x401d7e
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040488b
push 0x4159a0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], edi
call fcn.00404a82
add esp, 0x18
pop esi
cmp dword [ebp - 0x210], edi
je 0x401dde
push dword [ebp - 0x210]
xor edi, edi
inc edi
push edi
push 0x200
push dword [ebp - 0x214]
call fcn.00404d54
push dword [ebp - 0x210]
call fcn.00404e6c
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.004046ea
leave
ret

Function at 0x401dee
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
xor esi, esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov edi, ecx
call fcn.004082d0
add esp, 0xc
mov dword [ebp - 0x210], esi
test edi, edi
je 0x401e9b
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x415980
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040488b
push 0x4159c0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00404a82
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x210], 0
je 0x401e9b
push dword [ebp - 0x210]
push esi
push 0x200
push edi
call fcn.0040503a
push dword [ebp - 0x210]
call fcn.00404e6c
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004046ea
leave
ret
Function at 0x40263b
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.004082d0
add esp, 0xc
mov esi, 0x200
push esi
lea eax, [ebp - 0x418]
push ebx
push eax
mov dword [ebp - 0x214], 0x504d534d
call fcn.004082d0
add esp, 0xc
lea ecx, [ebp - 0x418]
push ebx
push 0x4159a8
call fcn.00401cc8
pop ecx
pop ecx
test eax, eax
je 0x4027af
mov eax, ebx
not byte [ebp + eax - 0x418]
inc eax
cmp eax, esi
jb 0x4026ae
lea eax, [ebp - 0x418]
lea ecx, [ebp - 0x214]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4027af
mov ecx, 0x80
lea esi, [ebp - 0x418]
lea edi, [ebp - 0x618]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
movzx eax, word [ecx + 0x415890]
mov word [ecx + 0x419018], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4026e5
mov ecx, ebx
movzx eax, word [ebp + ecx - 0x592]
mov word [ecx + 0x419120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4026fd
movzx eax, word [ebp + ebx - 0x614]
mov word [ebx + 0x4190a0], ax
lea ebx, [ebx + 2]
test ax, ax
jne 0x402714
cmp dword [0x417f08], 3
mov ax, word [ebp - 0x394]
mov word [0x419098], ax
mov ax, word [ebp - 0x2f2]
mov word [0x419010], ax
mov dword [0x41900c], 5
lea eax, [ebp - 0x210]
mov esi, 0x104
je 0x40276d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40278a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41599c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040488b
add esp, 0xc
push 0x4159a8
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040488b
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004046ea
leave
ret

Function at 0x4027c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [0x417f08], 0
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40287d
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402841
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402829
cmp eax, 1
jne 0x40287d
mov dword [0x417f08], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x40287d
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x402868
mov dword [0x417f08], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
mov eax, dword [0x417f08]
mov edx, 5
cmp ecx, 1
cmove eax, edx
mov dword [0x417f08], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x402890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov esi, ecx
call fcn.004082d0
add esp, 0xc
cmp dword [0x417f08], 3
lea eax, [ebp - 0x20c]
jne 0x4028fd
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41599c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040488b
add esp, 0xc
jmp 0x402909
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x415a20
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.004046ea
mov esp, ebp
pop ebp
ret

Function at 0x4029f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
je 0x402b0d
push 0x400
call fcn.004056f7
add esp, 4
mov ebx, eax
push 0x400
push 0
push ebx
call fcn.004082d0
add esp, 0xc
mov ecx, esi
call fcn.00402bc0
xor ecx, ecx
shld ecx, eax, 9
xorps xmm0, xmm0
shl eax, 9
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 0x400
push ebx
movq qword [ebp - 0x10], xmm0
push esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b04
cmp dword [ebx + 4], 0x5042475f
jne 0x402acb
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a90
sub ecx, edx
sar ecx, 1
je 0x402acb
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00405789
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
push ebx
push 2
mov edx, 0x1e
mov ecx, esi
call fcn.00402ca0
add esp, 8
test eax, eax
je 0x402b04
cmp dword [ebx + 4], 0x5042475f
jne 0x402b04
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402af3
sub ecx, edx
sar ecx, 1
jne 0x402aa1
push ebx
call fcn.00405789
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x402b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov esi, ecx
mov dword [ebp - 0x214], 0
call fcn.004082d0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebp - 0x210]
sub ecx, 0x41
lea edx, [ebp - 0x214]
call fcn.00402d10
mov ecx, dword [ebp - 0x214]
call fcn.00402e00
cmp eax, 0xffffffff
jne 0x402ba6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, eax
call fcn.004029f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004046ea
mov esp, ebp
pop ebp
ret

Function at 0x402bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1ff
xor esi, esi
lea eax, [ebp - 0x207]
push esi
push eax
mov byte [ebp - 0x208], 0
call fcn.004082d0
add esp, 0xc
cmp ebx, 0xffffffff
je 0x402c7c
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x200
lea eax, [ebp - 0x208]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x21c], xmm0
movq qword [ebp - 0x214], xmm0
push ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c7c
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
mov ecx, dword [ebp - 0xe]
cmovne esi, eax
mov eax, dword [ebp - 0x32]
add eax, dword [ebp - 0x2e]
cmp eax, esi
cmova esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
cmova esi, eax
add ecx, dword [ebp - 0x12]
cmp ecx, esi
cmova esi, ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret

Function at 0x402ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
cmp ecx, 0xffffffff
je 0x402cfa
shld eax, edx, 9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
shl eax, 9
push eax
push esi
shl edx, 9
push ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004046ea
mov esp, ebp
pop ebp
ret