joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4905a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x3f5a180]
push ebx
push esi
xor esi, esi
test eax, eax
push edi
je 0x490668
mov eax, dword [ebp + 0x20]
cmp eax, 1
je 0x4905ea
cmp eax, 2
je 0x4905ea
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x4905d8
cmp eax, 0xfffffffa
jne 0x4905d8
mov ebx, dword [ebp + 8]
mov esi, 1
jmp 0x4905f5
test eax, eax
jne 0x4905f2
mov esi, 1
call fcn.004aa220
mov ebx, eax
jmp 0x4905f5
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x3f5a180]
test eax, eax
je 0x490618
test edi, edi
je 0x490618
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x490618
push ebx
call fcn.004aa240
push ebx
call fcn.004aa220
add esp, 8
test esi, esi
je 0x490668
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
call fcn.004aa240
mov edi, dword [ebp + 0x14]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [edi], esi
jne 0x490640
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push 0
push ebx
push 2
push 0x4bf764
call fcn.004aa240
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov byte [esi + edx], 0xa
mov eax, dword [edi]
inc eax
mov dword [edi], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x20]
push 0
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x20]
pop edi
mov dword [esi], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x4a169e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c02c0
cmp edx, dword [eax]
je 0x4a16c0
add eax, 8
inc ecx
cmp eax, 0x4c0350
jl 0x4a16b1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c02c0]
jne 0x4a17ee
mov eax, dword [0x3f59f30]
cmp eax, 1
je 0x4a17c8
test eax, eax
jne 0x4a16f1
cmp dword [0x4bf85c], 1
je 0x4a17c8
cmp edx, 0xfc
je 0x4a17ee
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a1728
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004a3b00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a2a20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4a176b
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a2a20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4b2c38
push edi
call fcn.0049ed90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004a3b00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004a3b10
lea eax, [ebp - 0xa0]
push 0x4b2c18
push eax
call fcn.004a3b10
push dword [esi + 0x4c02c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004a3b10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004a7588
add esp, 0x2c
pop edi
jmp 0x4a17ee
lea eax, [ebp + 8]
lea esi, [esi + 0x4c02c4]
push 0
push eax
push dword [esi]
call fcn.004a2a20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401cf8
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0
push 0x401d84
push 0
push 0
push 0x401d8c
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_FindWindowExA
sub ebx, 1
jb 0x401d28
je 0x401d3f
dec ebx
je 0x401d56
dec ebx
je 0x401d6d
jmp 0x401d81
push 0
push eax
call sub.user32.dll_ShowWindow
mov eax, esi
mov edx, 0x401da4
call fcn.004016d4
pop esi
pop ebx
ret
push 5
push eax
call sub.user32.dll_ShowWindow
mov eax, esi
mov edx, 0x401dc0
call fcn.004016d4
pop esi
pop ebx
ret
push 0
push eax
call sub.user32.dll_EnableWindow
mov eax, esi
mov edx, 0x401ddc
call fcn.004016d4
pop esi
pop ebx
ret
push 0xffffffffffffffff
push eax
call sub.user32.dll_EnableWindow
mov eax, esi
mov edx, 0x401df8
call fcn.004016d4
pop esi
pop ebx
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040a7e3
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040a7e3
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040a7e3
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040a7e3
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040a7e3
mov dword [0x41203c], eax
call fcn.0040a7e3
test eax, eax
jge 0x402550
push 8
call fcn.0040a7e3
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040a7e3
pop ecx
push 1
call fcn.0040a7e3
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040a7e3
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040a7e3
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040a7e3
jmp 0x402495

Function at 0x40a7e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40a7f2
pop dword [ebp - 0x34]
mov eax, 0x859a21eb
add eax, 0x7aa68607
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3554f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x387e
mov ebx, eax
mov esi, 0x8a1902f7
sub esi, 0x89d7c733
add esi, dword [ebp - 0x34]
mov edi, 0x209e64b0
sub edi, 0x5fc74a4e
sub dword [ebp - 0x24], ebx
mov edx, dword [esi]
xor dword [ebp - 0x24], ecx
add edx, edi
xor dword [ebp - 8], 0xa70be0f1
mov dword [ebx], edx
add ebx, 4
add esi, 0x51f4a832
sub esi, 0x51f4a82e
loop 0x40a846
add eax, 0xeb733049
add eax, 0x148da482
xor ebx, ebx
add ebx, eax
add eax, 0x89652641
add eax, 0x769ad9c4
mov ecx, 0x36772e61
add ecx, 0xc9c8d19f
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0xf1e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00f1e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf1e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf1e06a
add dl, dl
jne 0xf1e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf1e0dc
xor eax, eax
add dl, dl
jne 0xf1e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf1e17d
add dl, dl
jne 0xf1e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf1e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf1e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf1e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf1e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf1e075
mov eax, 1
add dl, dl
jne 0xf1e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf1e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf1e0e1
sub eax, ebx
mov ebx, 1
jne 0xf1e128
mov ecx, 1
add dl, dl
jne 0xf1e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf1e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf1e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf1e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf1e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf1e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf1e136
cmp eax, 0x7d00
jae 0xf1e16d
cmp eax, 0x500
jb 0xf1e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf1e075
cmp eax, 0x7f
ja 0xf1e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf1e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf1e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xf1e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40cf9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40cfaa
pop dword [ebp - 0x1c]
mov eax, 0xd8fab23e
add eax, 0x27461d6c
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x423e6
push 0
mov eax, 0x52c6f455
sub eax, 0x5284a23d
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x46671684
add ecx, 0xb999436f
mov esi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x1c]
mov edi, 0xc3158f47
sub edi, 0xd38935f0
mov dword [ebp - 4], 0xe8cb6852
mov ebx, dword [edx]
add dword [ebp - 0xc], 0x9adddd31
xor ebx, edi
xor dword [ebp - 0xc], edi
mov dword [esi], ebx
xor dword [ebp - 4], 0x3c6fbbb1
add esi, 0x8f5ed67
add esi, 0xf70a129d
add edx, 0xe90a701d
add edx, 0x16f58fe7
loop 0x40d003
add eax, 0x15a9f
mov ebx, eax
add eax, 0x43bd39d0
add eax, 0xbc42c635
mov ecx, 0x6649fe9d
add ecx, 0x99f60163
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401a6c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push 0x421244
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x401aee
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
add esp, 0x1c
test edi, edi
jle 0x401ae1
lea esi, [edi + 2]
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x401ae1
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
push 1
push edi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [ebp + 0xc]
add esp, 0x1c
mov dword [ecx], eax
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40282f
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.00415c50
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x402950
cmp dword [ebp + 0xc], esi
je 0x402950
push ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x600]
push 0x42268c
push 0x200
push eax
call fcn.0040201b
add esp, 0x10
lea eax, [ebp - 0x600]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40293c
push 0xc
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x2d10]
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x2d10]
push edi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402930
push 0x3e8
lea eax, [ebp - 0x400]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x400]
push eax
push 1
push dword [ebp - 0x2cf8]
lea eax, [ebp - 0x2d10]
push eax
call fcn.00401bcf
add esp, 0x1c
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402649
test eax, eax
jne 0x402930
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x402949
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x40285e
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x402952
xor eax, eax
pop esi
leave
ret
Function at 0x402ab7
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x402c0f
cmp dword [ebp + 0xc], ebx
je 0x402c0f
push esi
push 0x64
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 8
push ebx
push 0x4226f0
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x402bef
mov dword [ebp - 8], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x14], 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x402be6
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2e8]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402bde
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x4226d8
mov dword [ebp - 0x10], 0x208
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402bd5
push 0x64
lea eax, [ebp - 0xe0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xe0]
push 0x64
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.00402c14
add esp, 0x18
test eax, eax
je 0x402bd5
cmp byte [ebp - 0x7c], bl
je 0x402bc3
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x402bd5
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push 0x64
push eax
call fcn.00402649
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
jmp 0x402b09
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x7c], bl
pop esi
je 0x402c0f
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402649
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x402c11
xor eax, eax
pop ebx
leave
ret
Function at 0x403279
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
cmp dword [ebp + 8], 0
push esi
je 0x403382
cmp dword [ebp + 0xc], 0x20
jb 0x403382
mov esi, 0x400
lea eax, [ebp - 0x508]
push esi
push 0
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 8]
push eax
push 0x4227dc
push 0x4227c4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x403382
lea eax, [ebp - 0x508]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x40
pop ecx
jne 0x403382
push edi
lea eax, [ebp - 0x508]
push 0x20
push eax
mov edi, 0x80
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.00403387
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00402649
push esi
lea eax, [ebp - 0x508]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x508]
push esi
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004030eb
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
pop edi
jne 0x403382
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402649
neg eax
sbb eax, eax
inc eax
jmp 0x403384
xor eax, eax
pop esi
leave
ret

Function at 0x4033fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 4
pop eax
xor esi, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x422834
push 0x4227ec
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], esi
jne 0x40343b
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x4034e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x42f7bc]
push edi
test eax, eax
jne 0x4035c0
and word [ebp - 0x418], ax
mov ecx, 0x81
lea edi, [ebp - 0x416]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 4]
push eax
push 0x4211e0
push 0x4228a4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40354d
xor eax, eax
jmp 0x4035c0
and word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x418]
push eax
push 0x422880
lea eax, [ebp - 0x210]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
mov dword [0x42f7bc], eax
jne 0x4035c0
lea eax, [ebp - 0x210]
push eax
call fcn.004035c3
test eax, eax
pop ecx
je 0x403549
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x42f7bc], eax
pop edi
leave
ret
Function at 0x403683
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
and word [ebp - 0x208], 0
push ebx
push esi
mov ebx, 0x81
push edi
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
and word [ebp - 0x410], 0
mov ecx, ebx
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
mov esi, 0x103
push eax
push 0x422938
lea eax, [ebp - 0x410]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push esi
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x616]
mov word [ebp - 0x618], dx
mov word [ebp - 0x820], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x81e]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x618]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x820]
push esi
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403772
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
and word [ebp - 0x410], 0
push ebx
push esi
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
and word [ebp - 0x208], 0
mov ecx, esi
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x410]
mov ebx, 0x103
push eax
push 0x422938
lea eax, [ebp - 0x208]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
and word [ebp - 0x618], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x618]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push 0
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403824
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
push eax
push 0x422938
lea eax, [ebp - 0x410]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push 5
push eax
lea eax, [ebp - 0x410]
push esi
push eax
push 0x42295c
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 4
lea eax, [ebp - 0x410]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x403af9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42122c]
and word [ebp - 0x20c], 0
push esi
mov edx, 0x81
push edi
mov dword [ebp - 4], eax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x20a]
and word [ebp - 0x414], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0x422938
lea eax, [ebp - 0x414]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 4]
push 0x4225b0
push eax
call fcn.0040209f
mov eax, dword [ebp - 4]
push dword [eax - 8]
push eax
call fcn.0040f72b
add esp, 0x24
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00402479
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x403d3f
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
and byte [esi], 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403d9b
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x403d9b
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x403d8a
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov byte [esi], 1
mov eax, esi
pop edi
pop esi
ret 4

Function at 0x4043d1
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x42f8ac], esi
jne 0x404413
push 0x20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x4043f6
mov ecx, eax
call fcn.00404481
mov dword [0x42f8ac], eax
jmp 0x4043fc
mov dword [0x42f8ac], esi
push esi
push esi
push esi
push 0x404331
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret