joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100114a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x240
mov eax, dword [0x1001f090]
xor eax, esp
mov dword [esp + 0x23c], eax
cmp byte [0x1001f420], 0
jne 0x100115e1
push 0x110
lea eax, [esp + 0x2c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x24], 0x114
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x100115e1
xorps xmm0, xmm0
mov dword [esp], 0
lea eax, [esp]
push eax
movdqu xmmword [esp + 8], xmm0
movdqu xmmword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x103
lea eax, [esp + 0x13d]
mov byte [esp + 0x13c], 0
push 0
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov eax, dword [esp + 0x2c]
cmp ecx, 6
jne 0x10011561
cmp eax, 1
jne 0x10011549
push str.Windows_7
jmp 0x1001156f
cmp eax, 2
jne 0x10011555
push str.Windows_8
jmp 0x1001156f
cmp eax, 3
jne 0x10011586
push str.Windows_8.1
jmp 0x1001156f
cmp ecx, 0xa
jne 0x10011586
test eax, eax
jne 0x10011586
push str.Windows_10
lea eax, [esp + 0x13c]
push 0x104
push eax
call sub.MSVCR120.dll_strcpy_s
add esp, 0xc
jmp 0x1001159f
push eax
push ecx
push str.Unknown_Version__u._u
lea eax, [esp + 0x144]
push 0xffffffffffffffff
push eax
call fcn.1000fac0
add esp, 0x14
mov eax, dword [esp]
cmp ax, 9
je 0x100115c1
cmp ax, 6
je 0x100115c1
push dword [esp + 0x30]
lea eax, [esp + 0x13c]
push eax
push str._s_32_bit_build__u
jmp 0x100115d2
push dword [esp + 0x30]
lea eax, [esp + 0x13c]
push eax
push str._s_64_bit_build__u
push 0xffffffffffffffff
push 0x1001f420
call fcn.1000fac0
add esp, 0x14
mov ecx, dword [esp + 0x23c]
mov eax, 0x1001f420
xor ecx, esp
call fcn.10015b7c
add esp, 0x240
ret

Function at 0x10011940
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
test edi, edi
je 0x100119e9
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
push ebx
call esi
mov ecx, edi
mov ebp, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011963
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ebp]
lea eax, [eax*2 + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10011990
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
push ebx
call esi
mov esi, eax
mov ecx, edi
mov eax, 0x5c
mov word [ebx + esi*2], ax
lea ebp, [ecx + 2]
inc esi
xor edx, edx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100119a7
sub ecx, ebp
sar ecx, 1
je 0x100119e3
jmp 0x100119c0
mov ax, word [edi + edx*2]
mov word [ebx + esi*2], ax
mov eax, edi
inc esi
inc edx
lea ebp, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100119d0
sub eax, ebp
sar eax, 1
cmp edx, eax
jb 0x100119c0
xor eax, eax
mov word [ebx + esi*2], ax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x10011a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [esp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011a67
sub ecx, edx
mov edx, dword [esp + 4]
push ebx
push esi
sar ecx, 1
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10011a80
sub edx, esi
sar edx, 1
lea eax, [edx + ecx]
lea ebx, [eax*2 + 4]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10011af2
push dword [esp + 0xc]
push dword [esp + 0x14]
push str._s_s
push ebx
push esi
call fcn.10013530
add esp, 0x14
push esi
test eax, eax
js 0x10011ae7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10011ad3
test al, 0x50
je 0x10011af2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10011ae6
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
xor eax, eax
pop ebx
ret
mov eax, esi
pop esi
pop ebx
ret
Function at 0x10012900
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
mov eax, dword [0x1001f090]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
mov ebp, dword [esp + 0x20]
xor ebx, ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x24
mov dword [esp + 0x18], 0x26
mov dword [esp + 0x1c], 0x2a
cmp dword [0x1001f538], ebx
jne 0x100129a2
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push 3
push 1
push 3
push 2
push ebx
push ebx
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
xor ecx, ecx
mov dword [0x1001f538], 0x11c
push 0x1001f538
mov dword [0x1001f53c], 6
mov dword [0x1001f540], 1
mov word [0x1001f64c], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
inc eax
mov dword [0x1001f080], eax
jmp 0x100129a7
mov eax, dword [0x1001f080]
test eax, eax
je 0x100129c3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10015b7c
add esp, 0x14
ret
test ebp, ebp
je 0x10012afd
push 0
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
test esi, esi
je 0x10012afd
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10012afd
push 0
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp esi, eax
jbe 0x10012afd
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
jmp 0x10012a20
mov eax, dword [esp + ebp*4 + 0x14]
cmp eax, 0x26
jne 0x10012b21
push 0
push 0
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10012afd
lea ecx, [esi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10012afd
push esi
push edi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
jne 0x10012afd
push edi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10012aa5
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call esi
push 0x10019e5c
push 0x26
call fcn.100117f0
mov edi, eax
add esp, 8
test edi, edi
je 0x10012afd
jmp 0x10012ac2
cmp word [edi + esi*2 - 4], 0x5c
je 0x10012abc
push 0x10019e18
lea eax, [esi + 1]
push eax
push edi
call fcn.100135b0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10012ac7
sub eax, edx
sar eax, 1
push eax
push edi
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jne 0x10012afd
push edi
call esi
inc ebp
xor edi, edi
cmp ebp, 3
jl 0x10012a20
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call ebp
push dword [esp + 0x10]
call ebp
mov ecx, dword [esp + 0x20]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10015b7c
add esp, 0x14
ret
push 0x10019e5c
push eax
jmp 0x10012a95
Function at 0x10014650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov dword [esp + 0x14], 0
call edi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x100147a2
movzx eax, word [esi]
cmp eax, 0x5c
je 0x100146af
cmp eax, 0x2f
je 0x100146af
push eax
call dword [sym.imp.MSVCR120.dll_isalpha]
add esp, 4
test eax, eax
je 0x100147a2
cmp word [esi + 2], 0x3a
jne 0x100147a2
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x100146af
cmp eax, 0x2f
jne 0x100147a2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10014794
test al, 0x50
jne 0x10014794
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100146f2
push 0x20
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
call fcn.10012900
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
jne 0x10014767
xor ecx, ecx
mov dword [esp + 0x18], 0
cmp dword [esp + 0x20], ecx
lea eax, [esp + 0x18]
cmove eax, ecx
push eax
push esi
call fcn.10014ff0
add esp, 8
test eax, eax
je 0x1001473d
cmp dword [esp + 0x20], 0
je 0x10014767
cmp dword [esp + 0x18], 0
jne 0x10014767
push 0x80092009
call edi
call ebp
push eax
push esi
call fcn.10012d00
add esp, 8
test eax, eax
jne 0x10014767
test ebx, ebx
je 0x1001475f
call ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push dword [esp + 0x1c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x100147a9
call ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x7e
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xa0
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4012bc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp esi, 1
jl 0x4012cd
cmp esi, 9
jle 0x4012d8
push str.Invalid_compression_level
call fcn.004052b4
pop ecx
mov edi, 0x10000
xor ebx, ebx
push edi
push ebx
push 0x44bb60
mov dword [0x42f198], esi
call fcn.00425820
mov eax, esi
add esp, 0xc
shl eax, 3
cmp esi, 1
movzx ecx, word [eax + 0x42c07a]
mov dword [0x42f184], ecx
movzx ecx, word [eax + 0x42c078]
mov dword [0x42f19c], ecx
movzx ecx, word [eax + 0x42c07c]
movzx eax, word [eax + 0x42c07e]
mov dword [0x42f190], ecx
mov dword [0x42f194], eax
jne 0x40133a
mov eax, dword [esp + 0x14]
or byte [eax], 4
jmp 0x401346
cmp esi, 9
jne 0x401346
mov eax, dword [esp + 0x14]
or byte [eax], 2
push edi
push 0x45bb60
mov dword [0x42f180], ebx
mov dword [0x42f1a4], ebx
call dword [0x42f178]
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x42f1a8], eax
je 0x4013ba
cmp eax, 0xffffffff
je 0x4013ba
mov esi, 0x106
mov dword [0x42f18c], ebx
cmp eax, esi
jae 0x401392
cmp dword [0x42f18c], ebx
jne 0x401392
call fcn.0040150b
cmp dword [0x42f1a8], esi
jb 0x40137d
xor eax, eax
xor ecx, ecx
movzx edx, byte [ecx + 0x45bb60]
and eax, 0x3ff
and edx, 0x7fff
shl eax, 5
xor eax, edx
inc ecx
cmp ecx, 2
jb 0x401396
mov dword [0x42f188], eax
jmp 0x4013ca
mov dword [0x42f18c], 1
mov dword [0x42f1a8], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4015e9
Capabilities:
Encode data using xor

Disassembly:
push ecx
and dword [esp], 0
cmp dword [0x42f198], 3
push edi
push 2
pop edi
jg 0x401606
call fcn.0040186b
jmp 0x401868
cmp dword [0x42f1a8], 0
je 0x401840
mov ecx, dword [0x42f180]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebp, 0x3ff
movzx eax, byte [ecx + 0x45bb62]
mov edx, dword [0x42f188]
and eax, esi
and edx, ebp
mov ebx, ecx
shl edx, 5
xor eax, edx
and ebx, esi
movzx edx, word [eax*2 + 0x44bb60]
mov dword [0x42f188], eax
lea eax, [eax*2 + 0x44bb60]
mov word [ebx*2 + 0x43bb60], dx
mov ebx, dword [0x42f1a0]
mov word [eax], cx
mov eax, edi
push 2
mov dword [0x42f17c], eax
test edx, edx
pop edi
je 0x4016b7
cmp eax, dword [0x42f184]
jae 0x4016b7
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4016b7
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x42f1a8]
cmp edi, eax
pop ecx
jbe 0x40169a
mov edi, eax
mov ecx, dword [0x42f180]
cmp edi, 3
jne 0x4016b7
mov eax, ecx
sub eax, dword [0x42f1a0]
cmp eax, 0x1000
jbe 0x4016b7
push 2
pop edi
mov eax, dword [0x42f17c]
cmp eax, 3
jb 0x401781
cmp edi, eax
ja 0x401781
sub ecx, ebx
add eax, 0xfffffffd
dec ecx
push eax
push ecx
call fcn.00403af8
pop ecx
pop ecx
push 1
pop ecx
sub ecx, dword [0x42f17c]
add dword [0x42f1a8], ecx
sub dword [0x42f17c], 2
mov ecx, dword [0x42f180]
movzx edx, byte [ecx + 0x45bb63]
mov edi, dword [0x42f188]
inc ecx
and edi, ebp
and edx, esi
shl edi, 5
xor edx, edi
mov edi, ecx
mov dword [0x42f188], edx
and edi, esi
mov bx, word [edx*2 + 0x44bb60]
dec dword [0x42f17c]
lea edx, [edx*2 + 0x44bb60]
mov word [edi*2 + 0x43bb60], bx
mov word [edx], cx
jne 0x4016f8
and dword [esp + 0x10], 0
push 2
inc ecx
pop edi
test eax, eax
mov dword [0x42f180], ecx
je 0x4017ef
mov eax, dword [0x42f1a4]
test eax, eax
jl 0x401763
lea edx, [eax + 0x45bb60]
jmp 0x401765
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032ff
mov ecx, dword [0x42f180]
add esp, 0xc
mov dword [0x42f1a4], ecx
jmp 0x4017ef
cmp dword [esp + 0x10], 0
je 0x4017da
movzx eax, byte [ecx + 0x45bb5f]
push eax
push 0
call fcn.00403af8
pop ecx
test eax, eax
pop ecx
je 0x4017d2
mov eax, dword [0x42f1a4]
test eax, eax
jl 0x4017ae
lea ecx, [eax + 0x45bb60]
jmp 0x4017b0
xor ecx, ecx
mov edx, dword [0x42f180]
push 0
sub edx, eax
push edx
push ecx
call fcn.004032ff
mov ecx, dword [0x42f180]
add esp, 0xc
mov dword [0x42f1a4], ecx
jmp 0x4017e2
mov ecx, dword [0x42f180]
jmp 0x4017e2
mov dword [esp + 0x10], 1
inc ecx
dec dword [0x42f1a8]
mov dword [0x42f180], ecx
mov ebx, 0x106
cmp dword [0x42f1a8], ebx
jae 0x401818
cmp dword [0x42f18c], 0
jne 0x401818
call fcn.0040150b
cmp dword [0x42f1a8], ebx
mov ecx, dword [0x42f180]
jb 0x4017fc
cmp dword [0x42f1a8], 0
jne 0x401626
cmp dword [esp + 0x10], 0
pop esi
pop ebp
pop ebx
je 0x401846
movzx eax, byte [ecx + 0x45bb5f]
push eax
push 0
call fcn.00403af8
pop ecx
pop ecx
mov ecx, dword [0x42f180]
mov edx, dword [0x42f1a4]
test edx, edx
jl 0x401858
lea eax, [edx + 0x45bb60]
jmp 0x40185a
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032ff
add esp, 0xc
pop edi
pop ecx
ret
Function at 0x40186b
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x42f1a8], edi
mov dword [0x42f17c], 2
je 0x401a32
mov ecx, dword [0x42f180]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebx, 0x3ff
movzx eax, byte [ecx + 0x45bb62]
mov edx, dword [0x42f188]
and eax, esi
and edx, ebx
mov ebp, ecx
shl edx, 5
xor eax, edx
and ebp, esi
movzx edx, word [eax*2 + 0x44bb60]
mov dword [0x42f188], eax
lea eax, [eax*2 + 0x44bb60]
mov word [ebp*2 + 0x43bb60], dx
test edx, edx
mov word [eax], cx
je 0x4018fa
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4018fa
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x42f1a8]
cmp edi, eax
pop ecx
jbe 0x4018f4
mov edi, eax
mov ecx, dword [0x42f180]
cmp edi, 3
jb 0x40199b
sub ecx, dword [0x42f1a0]
lea eax, [edi - 3]
push eax
push ecx
call fcn.00403af8
sub dword [0x42f1a8], edi
cmp edi, dword [0x42f184]
pop ecx
mov dword [esp + 0x14], eax
pop ecx
ja 0x40196d
mov ecx, dword [0x42f180]
dec edi
movzx eax, byte [ecx + 0x45bb63]
mov edx, dword [0x42f188]
inc ecx
and edx, ebx
and eax, esi
shl edx, 5
xor eax, edx
mov dword [0x42f188], eax
mov bp, word [eax*2 + 0x44bb60]
lea edx, [eax*2 + 0x44bb60]
mov eax, ecx
and eax, esi
dec edi
mov word [eax*2 + 0x43bb60], bp
mov word [edx], cx
jne 0x40192e
jmp 0x4019bc
mov ecx, dword [0x42f180]
add ecx, edi
xor edi, edi
mov dword [0x42f180], ecx
movzx eax, byte [ecx + 0x45bb60]
movzx edx, byte [ecx + 0x45bb61]
and eax, ebx
and edx, esi
shl eax, 5
xor eax, edx
mov dword [0x42f188], eax
jmp 0x4019c3
movzx eax, byte [ecx + 0x45bb60]
push eax
push 0
call fcn.00403af8
dec dword [0x42f1a8]
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x42f180]
inc ecx
mov dword [0x42f180], ecx
cmp dword [esp + 0x10], 0
je 0x4019f7
mov eax, dword [0x42f1a4]
test eax, eax
jl 0x4019db
lea edx, [eax + 0x45bb60]
jmp 0x4019dd
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032ff
mov ecx, dword [0x42f180]
add esp, 0xc
mov dword [0x42f1a4], ecx
mov ebp, 0x106
cmp dword [0x42f1a8], ebp
jae 0x401a20
cmp dword [0x42f18c], 0
jne 0x401a20
call fcn.0040150b
cmp dword [0x42f1a8], ebp
mov ecx, dword [0x42f180]
jb 0x401a04
cmp dword [0x42f1a8], 0
jne 0x401898
pop esi
pop ebp
pop ebx
jmp 0x401a38
mov ecx, dword [0x42f180]
mov edx, dword [0x42f1a4]
pop edi
test edx, edx
jl 0x401a4b
lea eax, [edx + 0x45bb60]
jmp 0x401a4d
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032ff
add esp, 0x10
ret

Function at 0x4050f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x405100
or eax, 0xffffffff
jmp 0x40512e
cmp dword [esp + 8], 0
mov eax, dword [0x42c4a4]
je 0x40512e
push esi
movzx esi, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x42c4a8]
xor eax, edx
inc ecx
dec dword [esp + 0xc]
jne 0x40510d
pop esi
mov dword [0x42c4a4], eax
not eax
ret
Function at 0x40521c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40523d
call fcn.00405411
mov eax, dword [0x47f7f8]
mov ecx, dword [0x480314]
add eax, dword [ebp + 0x10]
mov dword [0x47f7f8], eax
lea edx, [eax - 0x8400]
cmp edx, ecx
jle 0x405276
cmp byte [0x48039a], 0
je 0x405276
sub eax, ecx
push eax
call fcn.00415f4b
mov eax, dword [0x47f7f8]
pop ecx
mov dword [0x480314], eax
pop ebp
ret
Function at 0x406ae7
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
or esi, 0xffffffff
call fcn.00425820
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x406b9d
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebx
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x14]
push eax
call edi
mov eax, 0x80000000
mov bx, 0xfa0
bsf ecx, eax
dec bx
jne 0x406b31
lea eax, [ebp - 0xc]
push eax
call edi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, esi
jae 0x406b4a
mov esi, eax
dec dword [ebp - 4]
jne 0x406b22
mov ecx, dword [ebp - 0x1c]
push 0xa
mov eax, ecx
xor edx, edx
pop edi
imul esi, esi, 0x186a0
div edi
xor edx, edx
pop ebx
mov edi, eax
mov eax, esi
div edi
xor edx, edx
mov esi, eax
div ecx
shr ecx, 1
cmp edx, ecx
jbe 0x406b77
inc esi
mov edi, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
div esi
xor edx, edx
mov ecx, eax
mov eax, edi
div esi
mov eax, esi
mov dword [ebp - 0x24], ecx
shr eax, 1
cmp edx, eax
jbe 0x406b94
inc ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret

Function at 0x406bad
Capabilities:
Check for time delay via gettickcount
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4295e0
push 0x426200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
mov dword [ebp - 0x30], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x24], eax
push 0xf
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
call esi
sub eax, dword [ebp - 0x20]
je 0x406bfe
call esi
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
rdtsc
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
push ebx
call edi
push 0x3c
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf
push ebx
call edi
call esi
mov dword [ebp - 0x2c], eax
call esi
sub eax, dword [ebp - 0x2c]
je 0x406c2f
call esi
mov esi, eax
rdtsc
mov dword [ebp - 0x34], eax
push dword [ebp - 0x24]
push ebx
call edi
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
xor edx, edx
div esi
mov esi, eax
xor edx, edx
mov ecx, 0x3e8
div ecx
mov ecx, eax
mov eax, esi
xor edx, edx
push 0x64
pop esi
div esi
lea edx, [ecx + ecx*4]
shl edx, 1
sub eax, edx
cmp eax, 5
jb 0x406c75
inc ecx
mov eax, ecx
jmp 0x406c92
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40731c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
mov dword [0x47f064], esi
call fcn.004085c9
mov ebx, eax
xor edi, edi
cmp ebx, edi
jge 0x40736e
lea ecx, [ebp - 0xc]
call fcn.0041cf28
push ebx
lea eax, [ebp - 0xc]
push str.Load_template_failed___d_
push eax
call fcn.0041d5b5
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.0041de81
push eax
call fcn.0041ea8b
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0041d05e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 0x10]
call fcn.0040948b
mov eax, dword [ebp + 0x14]
mov dword [0x47f064], edi
cmp eax, edi
je 0x40738a
mov dword [eax], esi
cmp dword [esi + 4], edi
mov dword [esi + 0x6c], eax
jne 0x40739a
or eax, 0xffffffff
jmp 0x40751d
push dword [0x47f05c]
inc dword [0x47f054]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x47f054]
push 0x42
shl eax, 2
push eax
push dword [0x47f05c]
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [0x47f05c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [0x47f05c], edi
mov dword [0x47f058], eax
jne 0x4073ed
mov ecx, 0x47fa34
call fcn.0041de81
push eax
call fcn.0041ea8b
pop ecx
mov eax, dword [0x47f054]
mov ecx, dword [0x47f058]
mov dword [ecx + eax*4 - 4], esi
mov ecx, esi
call fcn.004096a8
mov ecx, esi
call fcn.004081b3
test al, al
je 0x407452
mov eax, dword [0x47f060]
cmp eax, edi
je 0x407452
mov ecx, dword [eax + 0x18]
cmp ecx, dword [esi + 0x18]
jne 0x407452
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [esi + 0x1c]
jne 0x407452
mov ecx, dword [eax + 0x20]
cmp ecx, dword [esi + 0x20]
jne 0x407452
lea ecx, [ebp - 0x10]
push ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push edi
push edi
push 0x110
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
cmp dword [esi + 0x7c], edi
jle 0x407492
push ebx
lea ecx, [esi + 0x70]
call fcn.0041fafa
cmp dword [eax + 0x10], 1
je 0x407480
inc ebx
cmp ebx, dword [esi + 0x7c]
jl 0x407469
jmp 0x407492
push ebx
lea ecx, [esi + 0x70]
call fcn.0041fafa
push dword [eax + 0x50]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.004081b3
test al, al
je 0x40751a
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov ebx, eax
push edi
mov edi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0xf120
push ebx
call edi
push 0
push 0xf020
push ebx
call edi
push 0
push 0xf030
push ebx
call edi
push 0
push 0xf000
push ebx
call edi
push 0x400
push 1
push ebx
call edi
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
push 0x42c9e4
push 2
push 0x800
push ebx
call edi
push str.About...
push 1
push 0
push ebx
call edi
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.00407f59
pop ecx
mov dword [0x47f210], esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10