joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b9fd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x44ba2b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x44ba32
cmp ebx, dword [eax + 4]
jae 0x44ba32
xor eax, eax
jmp 0x44bc22
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x44ba43
xor eax, eax
inc eax
jmp 0x44bc21
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x44ba59
cmp ecx, edx
jae 0x44bb9e
cmp dword [eax + 4], 0
je 0x44ba62
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x44ba4a
cmp dword [ebp + 8], 0
je 0x44ba84
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x44bb9e
cmp eax, esi
jae 0x44bb9e
mov eax, dword [0x4439d8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x44baa9
cmp dword [esi*4 + 0x4439e0], edi
je 0x44bba2
inc esi
cmp esi, eax
jl 0x44ba97
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x43214c]
test eax, eax
je 0x44bc1e
cmp dword [ebp - 8], 0x1000000
jne 0x44bc1e
test byte [ebp - 0xc], 0xcc
je 0x44bb27
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x44bc1e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x44bc1e
cmp word [eax + 0x18], 0x10b
jne 0x44bc1e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x44bc1e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x44bb27
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x44bb27
test byte [ecx + 0x27], 0x80
jne 0x44bb9e
push 1
push 0x443a20
call dword [0x4322d4]
test eax, eax
jne 0x44ba3b
mov ecx, dword [0x4439d8]
test ecx, ecx
mov edx, ecx
jle 0x44bb5b
lea eax, [ecx*4 + 0x4439dc]
cmp dword [eax], edi
je 0x44bb5b
dec edx
sub eax, 4
test edx, edx
jg 0x44bb4f
test edx, edx
jne 0x44bb8c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x44bb68
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x44bb80
lea eax, [edx*4 + 0x4439e0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x44bb6e
cmp ecx, 0x10
jge 0x44bb8c
inc ecx
mov dword [0x4439d8], ecx
push 0
push 0x443a20
call dword [0x4322d4]
jmp 0x44ba3b
xor eax, eax
jmp 0x44bc21
test esi, esi
jle 0x44ba3b
mov ebx, dword [0x4322d4]
push 1
push 0x443a20
call ebx
test eax, eax
jne 0x44ba3b
cmp dword [esi*4 + 0x4439e0], edi
je 0x44bbf8
mov eax, dword [0x4439d8]
lea esi, [eax - 1]
test esi, esi
jl 0x44bbe6
cmp dword [esi*4 + 0x4439e0], edi
je 0x44bbe2
dec esi
jns 0x44bbd6
test esi, esi
jge 0x44bbf6
cmp eax, 0x10
jge 0x44bbf1
inc eax
mov dword [0x4439d8], eax
lea esi, [eax - 1]
jmp 0x44bbf8
je 0x44bc10
xor ecx, ecx
test esi, esi
jl 0x44bc10
lea eax, [ecx*4 + 0x4439e0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x44bbfe
push 0
push 0x443a20
call ebx
jmp 0x44ba3b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40410a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x422414]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [0x4231e4]
cmp eax, 0xffffffff
jne 0x40415f
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0040ce50
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
sbb eax, eax
inc eax
mov dword [0x4231e4], eax
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0040af0b
add ebp, 0x98
leave
ret
Function at 0x404bc4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 1
push 0
push 0
push esi
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x1b
je 0x404be9
cmp eax, 0x1f
jne 0x404c59
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.shell32.dll
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0x24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHOpenWithDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
test eax, eax
jne 0x404c51
push 0x38
push eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0x3c
call fcn.0040ce50
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x44], 0x100
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x3c], str.openas
mov dword [ebp - 0x38], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret
lea ecx, [ebp - 0xc]
push ecx
push 0
call eax
leave
ret
Function at 0x4054d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419615
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.00415650
mov eax, dword [0x422414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x201c], edi
push 0x1ffe
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push edi
push eax
mov dword [ebp - 0x2028], ebx
call fcn.0040ce50
add esp, 0xc
lea eax, [ebp - 0x2010]
push eax
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x2010]
push eax
mov esi, ebx
call fcn.00401610
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2030]
mov ecx, ebx
mov dword [ebp - 0x201c], 1
call fcn.004059e3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
or edi, 0xffffffff
lea esi, [ebp - 0x2018]
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x2014], eax
call fcn.00405d7b
mov eax, dword [ebp - 0x2018]
mov dword [ebp - 0x2024], eax
mov eax, dword [ebp - 0x2014]
lea esi, [ebp - 0x2024]
mov dword [ebp - 0x2020], eax
call fcn.00405d47
cmp word [eax], 0x5c
je 0x4055bf
push 0x5c
mov eax, ebx
call fcn.00405a09
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040af0b
leave
ret

Function at 0x4055da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405624
push esi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], edi
push ebx
sete byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
jmp 0x405626
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x40562a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
mov eax, ecx
shr eax, 5
push edi
mov edi, 0x41dff0
test eax, eax
jbe 0x405664
mov eax, ecx
shr eax, 5
mov dword [ebp - 8], eax
push ebx
mov edx, edi
mov dword [ebp - 4], 0x20
mov bl, byte [edx]
xor byte [esi], bl
inc esi
inc edx
dec dword [ebp - 4]
jne 0x405653
dec dword [ebp - 8]
jne 0x40564a
pop ebx
shl eax, 5
sub ecx, eax
je 0x405674
mov al, byte [edi]
xor byte [esi], al
inc esi
inc edi
dec ecx
jne 0x40566b
pop edi
pop esi
leave
ret
Function at 0x4056c5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x4195ce
call fcn.0040c936
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0x20019
xor edi, edi
push edi
push str.Software4sharedDownloadHelper
mov dword [ebp - 0x34], edi
push 0x80000001
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405791
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x3c]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push ebx
push dword [ebp - 0x34]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
call esi
test eax, eax
jne 0x405791
cmp dword [ebp - 0x38], 1
jne 0x405791
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jbe 0x405771
shr eax, 1
lea ecx, [ebp - 0x2c]
call fcn.00405a6c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x405755
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
push edi
push ebx
push dword [ebp - 0x34]
call esi
mov eax, dword [ebp - 0x18]
dec eax
lea ecx, [ebp - 0x2c]
call fcn.00405a6c
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040162f
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00401894
mov eax, dword [ebp - 0x30]
jmp 0x4057a0
mov esi, dword [ebp - 0x30]
push 0x41e7f4
call fcn.00401610
mov eax, esi
call fcn.0040c980
ret

Function at 0x4057a6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.Software4sharedDownloadHelper
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40580e
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x4057d8
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405801
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x405810
xor al, al
pop ebx
leave
ret
Function at 0x405813
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x202c
call fcn.00415650
mov eax, dword [0x422414]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x41e5b0
xor esi, esi
push 0xa5
mov edi, ecx
push esi
mov dword [ebp - 0x200c], edi
mov dword [ebp - 0x2010], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x405862
mov esi, edi
call fcn.004015fd
mov eax, edi
jmp 0x40593d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2010], eax
cmp edi, esi
je 0x405930
cmp eax, esi
je 0x405930
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2008], ax
lea eax, [ebp - 0x2006]
push esi
push eax
call fcn.0040ce50
add esp, 0xc
lea ebx, [ebp - 0x202c]
call fcn.004054d4
cmp dword [eax + 0x18], 8
jb 0x4058c5
mov eax, dword [eax + 4]
jmp 0x4058c8
add eax, 4
lea ecx, [ebp - 0x2008]
push ecx
push esi
push 0x41e5c0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push 1
lea esi, [ebp - 0x202c]
call fcn.00401894
push str..exe
lea eax, [ebp - 0x2008]
push 0x1000
push eax
call fcn.0040bc1e
add esp, 0xc
push edi
mov edi, dword [ebp - 0x2010]
lea eax, [ebp - 0x2008]
push eax
call fcn.004055da
mov esi, dword [ebp - 0x200c]
pop ecx
pop ecx
test al, al
je 0x405936
lea eax, [ebp - 0x2008]
push eax
call fcn.00401610
jmp 0x40593b
mov esi, dword [ebp - 0x200c]
call fcn.004015fd
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af0b
leave
ret
Function at 0x406fd1
Capabilities:
Create http request

Disassembly:
push 0
mov eax, 0x4193c7
call fcn.0040c8cd
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
mov esi, ebx
call fcn.0040162f
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
lea esi, [ebx + 0x20]
mov dword [ebx + 0x1c], eax
call fcn.0040162f
mov eax, dword [ebp + 0x14]
or dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], eax
lea eax, [ebx + 0x54]
push eax
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], edi
call fcn.004077e5
lea eax, [ebx + 0x6c]
push eax
call fcn.004077e5
lea eax, [ebx + 0x84]
push eax
call fcn.004077e5
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 4
mov dword [ebx + 0xa0], eax
mov eax, dword [ebp + 0x20]
push 0x2000
mov dword [ebx + 0xa4], eax
mov al, byte [ebp + 0x18]
lea esi, [ebx + 0xe0]
push edi
push esi
mov dword [ebx + 0xa8], edi
mov dword [ebx + 0xac], edi
mov dword [ebx + 0xb0], edi
mov dword [ebx + 0xb4], edi
mov byte [ebx + 0x20e0], 0
mov byte [ebx + 0x20e1], 1
mov byte [ebx + 0x20e2], al
call fcn.0040ce50
add esp, 0xc
lea edx, [ebx + 0xb8]
push 0xa
xor eax, eax
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0xcc], esi
xor esi, esi
mov dword [edx], 0x28
mov dword [ebx + 0xd0], 0x2000
cmp eax, esi
je 0x4070bf
mov dword [eax + 4], ebx
push 0x10000000
push esi
push esi
push esi
push 0x41e638
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0x4c], eax
cmp eax, esi
je 0x4070ee
push 0x4075f2
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, ebx
call fcn.00407487
jmp 0x4070fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.0040726c
mov eax, ebx
call fcn.0040c96c
ret 0x1c

Function at 0x407981
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.00415650
mov eax, dword [0x422414]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
mov eax, dword [ebp + 0x3f98]
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4079f2
push 2
push esi
push 0xffffc000
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x80]
push eax
push 0x4000
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call fcn.00407a31
push dword [ebp - 0x78]
mov ecx, ebx
push dword [ebp - 0x7c]
call fcn.00407aec
mov ecx, dword [ebp + 0x3f8c]
pop edi
xor ecx, ebp
pop esi
call fcn.0040af0b
add ebp, 0x3f90
leave
ret 4
Function at 0x408f07
Capabilities:
Hide graphical window

Disassembly:
push 0x1c
mov eax, 0x419db1
call fcn.0040c8cd
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0x236
mov esi, ebx
call fcn.0040635d
and dword [ebp - 4], 0
mov eax, dword [ebx + 4]
push 0x231
push eax
mov dword [ebx], 0x41e898
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
fld dword [0x41ec38]
push 1
push 1
push ecx
fstp dword [esp]
mov esi, 0x13cc
push esi
push dword [ebx + 8]
mov dword [ebx + 0x10], eax
call fcn.00408edd
fld dword [0x41ec4c]
add esp, 0x14
push 0
push 0
push ecx
fstp dword [esp]
push 0x13db
push dword [ebx + 8]
call fcn.00408edd
add esp, 0x14
cmp dword [edi + 0x18], 8
jb 0x408f92
mov edi, dword [edi + 4]
jmp 0x408f95
add edi, 4
mov eax, dword [ebx + 8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
call fcn.00404c5b
xor esi, esi
push esi
push dword [ebx + 8]
mov byte [ebx + 0x35], 0
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00407f01
lea ecx, [ebp - 0x28]
call fcn.0040104a
cmp dword [eax + 0x14], esi
push esi
push 1
lea esi, [ebp - 0x28]
sete byte [ebp + 0xf]
call fcn.00401894
cmp byte [ebp + 0xf], 0
push 0
je 0x408fe5
push 0x4231e8
jmp 0x408fea
push 0x4231ec
push 0x18aa1
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
call fcn.0040c96c
ret 8

Function at 0x40925e
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x419520
call fcn.0040c936
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [edi], 0x41e93c
mov dword [edi + 0x38], 0x41e954
mov dword [ebp - 4], 4
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x4092fb
and dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 5
cmp dword [eax + 0x40], 3
je 0x4092bb
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
lea eax, [edi + 0x84]
push ecx
xor ebx, ebx
call fcn.0040168d
mov esi, dword [edi + 0xa0]
test esi, esi
je 0x4092d2
push esi
call fcn.00407106
push esi
call fcn.0040af97
pop ecx
cmp dword [ebp - 0x18], 0
je 0x4092eb
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4092e4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00401894
mov eax, dword [edi + 0xe8]
test eax, eax
je 0x40930b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0
push 1
lea esi, [edi + 0xcc]
mov byte [ebp - 4], 3
call fcn.00401894
push 0
push 1
lea esi, [edi + 0xb0]
mov byte [ebp - 4], 2
call fcn.00401894
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 1
call fcn.00409fe0
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [edi + 0x38], 0x41e484
call fcn.00406403
call fcn.0040c980
ret
Function at 0x40a49e
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419d0f
mov eax, dword fs:[0]
push eax
mov eax, 0x2224
call fcn.00415650
mov eax, dword [0x422414]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x83
mov esi, ebx
mov dword [ebp - 0x2230], ebx
mov edi, ecx
call fcn.0040635d
and dword [ebp - 4], 0
lea esi, [ebx + 0x38]
mov dword [ebx], 0x41ec14
call fcn.004015fd
mov byte [ebp - 4], 1
mov ecx, ebx
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x55], 1
call fcn.0040a6d6
cmp dword [edi + 0x18], 8
jb 0x40a516
mov edi, dword [edi + 4]
jmp 0x40a519
add edi, 4
mov eax, dword [ebx + 8]
push 0x41e
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
call fcn.00404c5b
lea eax, [ebp - 0x2220]
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [ebp - 0x2220], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a651
push 0x1ffe
mov word [ebp - 0x221c], ax
lea eax, [ebp - 0x221a]
push edi
push eax
call fcn.0040ce50
add esp, 0xc
lea eax, [ebp - 0x222c]
push eax
lea eax, [ebp - 0x221c]
push eax
lea eax, [ebp - 0x2228]
push eax
push edi
push str.374DE290_123F_4565_9164_39C4925E467B
push dword [ebp - 0x2220]
mov dword [ebp - 0x2228], edi
mov dword [ebp - 0x222c], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a651
lea eax, [ebp - 0x221c]
push eax
push esi
call fcn.00401715
mov edi, str._USERPROFILE_
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40a5ce
sub eax, edx
sar eax, 1
push eax
push edi
xor eax, eax
mov ecx, esi
call fcn.00408dee
mov dword [ebp - 0x2224], eax
cmp eax, 0xffffffff
je 0x40a651
push 0
push 0x28
lea eax, [ebp - 0x221c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40a60a
sub eax, ecx
lea ecx, [ebp - 0x221c]
push ecx
sar eax, 1
push eax
push dword [ebp - 0x2224]
push esi
call fcn.0040165e
cmp dword [esi + 0x18], 8
jb 0x40a637
mov eax, dword [esi + 4]
jmp 0x40a63a
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a64a
test al, 0x10
jne 0x40a651
mov eax, esi
call fcn.00408cdc
xor eax, eax
cmp dword [ebx + 0x4c], eax
jne 0x40a676
push eax
push 0x10
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.00401715
cmp dword [esi + 0x18], 8
jb 0x40a681
mov esi, dword [esi + 4]
jmp 0x40a684
add esi, 4
mov eax, dword [ebx + 8]
push esi
push 0x423
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00404dbc
pop ecx
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040af0b
leave
ret 4
Function at 0x40af0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422414]
jne 0x40af15
repz ret
jmp fcn.0040cd42

Function at 0x4145e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d7e7
and dword [ebp - 4], 0
cmp dword [0x4240a8], 0
mov ebx, eax
jne 0x414694
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414745
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x414745
push eax
call fcn.0040d775
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4240a8], eax
call esi
push eax
call fcn.0040d775
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4240ac], eax
call esi
push eax
call fcn.0040d775
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4240b0], eax
call esi
push eax
call fcn.0040d775
pop ecx
mov dword [0x4240b8], eax
test eax, eax
je 0x414694
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d775
pop ecx
mov dword [0x4240b4], eax
mov eax, dword [0x4240b4]
cmp eax, ebx
je 0x4146ec
cmp dword [0x4240b8], ebx
je 0x4146ec
push eax
call fcn.0040d7f0
push dword [0x4240b8]
mov esi, eax
call fcn.0040d7f0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4146ec
test edi, edi
je 0x4146ec
call esi
test eax, eax
je 0x4146e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4146e3
test byte [ebp - 0xc], 1
jne 0x4146ec
or dword [ebp + 0x10], 0x200000
jmp 0x414725
mov eax, dword [0x4240ac]
cmp eax, ebx
je 0x414725
push eax
call fcn.0040d7f0
pop ecx
test eax, eax
je 0x414725
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414725
mov eax, dword [0x4240b0]
cmp eax, ebx
je 0x414725
push eax
call fcn.0040d7f0
pop ecx
test eax, eax
je 0x414725
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4240a8]
call fcn.0040d7f0
pop ecx
test eax, eax
je 0x414745
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414747
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4011ab
cmp byte [esi + ebx - 1], 0xa
je 0x40117f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4050a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401c10
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop