joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4806f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f84d8]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.0044ee90
mov ecx, dword [esi + 0x7e8]
test ecx, ecx
je 0x480789
lea eax, [ebp - 0x14]
push eax
call fcn.0047eef0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x48075f
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.00474a80
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486203
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.00474a80
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00486203
mov esp, ebp
pop ebp
ret 0x14

Function at 0x481da0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c216b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4f84d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x7f8], 0
cmp dword [edi + 4], 0
jne 0x481e4d
lea eax, [ebp - 0xa4]
push eax
call fcn.004818f0
mov ecx, dword [edi + 0x10]
movdqu xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.004403f0
push eax
mov ecx, edi
call fcn.0043cfa0
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.0044a060
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.0043ff20
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0043c770
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.0043bdd0
test bl, bl
je 0x481e91
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00486203
mov esp, ebp
pop ebp
ret 4
Function at 0x481ee0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f84d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044ca40
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x481f71
lea eax, [ebp - 0x14]
push eax
call fcn.004818f0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x481f47
mov ecx, dword [esi + 0x800]
push 0
call fcn.00474a80
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486203
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.00474a80
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00486203
mov esp, ebp
pop ebp
ret 0xc

Function at 0x482080
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f84d8]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.0044ee90
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x482119
lea eax, [ebp - 0x14]
push eax
call fcn.004818f0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4820ef
mov ecx, dword [esi + 0x800]
push 0
call fcn.00474a80
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486203
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.00474a80
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00486203
mov esp, ebp
pop ebp
ret 0x14
Function at 0x485be0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.00440410
mov edi, eax
add esp, 8
test edi, edi
jne 0x485c84
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x485c79
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x485c79
push eax
mov dword [ebp + 8], edi
call fcn.0043a365
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
je 0x485c75
push edi
call fcn.00486e23
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x485c87
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.00485cb0
push edi
mov esi, eax
call fcn.00486e23
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x489da8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4b1e8b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f84d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0048ed90
mov dword [ebp - 0x14], eax
cmp dword [0x500e28], esi
jne 0x4b1f7e
push 0x800
push esi
push 0x4d6a4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4b1f0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b205e
push esi
push esi
push 0x4d6a4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4b205e
push 0x4d6a64
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b205e
push eax
call ebx
push 0x4d6a70
push edi
mov dword [0x500e28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x500e2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x500e30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x500e38], eax
test eax, eax
je 0x4b1f7b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x500e34], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b1fa3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b1f96
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4b1fb8
push 4
pop eax
jmp 0x4b2060
cmp dword [ebp - 0x14], esi
je 0x4b1fb8
push dword [0x500e28]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4b1f9d
mov eax, dword [0x500e34]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4b2016
cmp dword [0x500e38], edi
je 0x4b2016
push eax
call ebx
push dword [0x500e38]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b2016
test eax, eax
je 0x4b2016
call ecx
test eax, eax
je 0x4b200b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4b200b
test byte [ebp - 8], 1
jne 0x4b2016
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4b2046
mov eax, dword [0x500e2c]
cmp eax, edi
je 0x4b2043
push eax
call ebx
test eax, eax
je 0x4b2043
call eax
mov esi, eax
test esi, esi
je 0x4b2043
mov eax, dword [0x500e30]
cmp eax, edi
je 0x4b2043
push eax
call ebx
test eax, eax
je 0x4b2043
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x500e28]
call ebx
test eax, eax
je 0x4b205e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4b2060
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486203
mov esp, ebp
pop ebp
ret
Function at 0x401b2f
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x46cf4e
call fcn.0044e5d8
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
call fcn.00404056
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0x10], esi
je 0x401c7f
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov al, byte [edi]
dec dword [ebp + 0x10]
mov byte [ebp + esi - 0x10], al
mov bl, byte [ebp - 0xf]
inc esi
inc edi
cmp esi, 3
jne 0x401bd9
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x14]
push eax
mov ecx, 0x4998f4
call fcn.00403a0c
mov al, byte [eax]
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
push 1
call fcn.0040411c
inc esi
cmp esi, 4
jl 0x401baf
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x401b65
xor edi, edi
cmp esi, edi
je 0x401c7d
cmp esi, 3
jge 0x401c05
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x10]
push edi
push eax
call fcn.00450270
mov bl, byte [ebp - 0xf]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea ebx, [esi + 1]
mov byte [ebp - 0x11], al
test ebx, ebx
jle 0x401c65
movzx eax, byte [ebp + edi - 0x14]
push eax
mov ecx, 0x4998f4
call fcn.00403a0c
mov al, byte [eax]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push 1
call fcn.0040411c
inc edi
cmp edi, ebx
jl 0x401c3e
push 3
pop edi
cmp esi, edi
jge 0x401c7d
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.0040411c
dec edi
jne 0x401c6e
pop ebx
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4081ad
Capabilities:
Create directory

Disassembly:
mov eax, 0x46d7be
call fcn.0044e5d8
sub esp, 0x14
push ebx
push esi
push edi
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401407
lea eax, [ebp - 0x20]
mov esi, 0x499acc
push eax
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.0041970e
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
push ebx
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0041953a
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00410ca1
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.00401436
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.00401436
push 0x475c60
push 0x476a4c
lea ecx, [ebp - 0x10]
call fcn.00410880
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00407e18
push 0x476a48
mov ecx, edi
call fcn.00410dc0
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408290
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408290
push ebx
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0041953a
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.00407eb7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.00401436
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00401436
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4091e9
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x46daa4
call fcn.0044e5d8
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push str.openUrlOnDefaultBrowser
mov ecx, 0x499ba8
call fcn.004019b3
mov byte [ebp - 4], 1
push 1
push esi
push esi
push dword [ebp + 8]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x417855
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
movzx ecx, word [eax + 0x14]
push ebx
movzx ebx, word [eax + 6]
lea edx, [ecx + eax + 0x18]
push esi
xor ecx, ecx
push edi
test ebx, ebx
jle 0x417898
lea eax, [edx + 8]
mov edi, dword [eax]
test edi, edi
jne 0x417881
mov edi, dword [eax + 8]
mov esi, dword [eax + 4]
cmp dword [ebp + 0xc], esi
jb 0x417890
add esi, edi
cmp dword [ebp + 0xc], esi
jb 0x41789f
inc ecx
add eax, 0x28
cmp ecx, ebx
jl 0x417878
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
imul ecx, ecx, 0x28
add ecx, edx
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
jmp 0x41789a

Function at 0x4178b2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, 0x5a4d
add eax, ecx
cmp word [ecx], dx
je 0x4178cb
xor eax, eax
pop ebp
ret
cmp dword [eax], 0x4550
jne 0x4178c7
mov edx, 0xe0
cmp word [eax + 0x14], dx
jb 0x4178c7
push dword [eax + 0x88]
push ecx
call fcn.00417855
pop ecx
pop ecx
pop ebp
ret
Function at 0x417d28
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push esi
mov esi, dword [ebp + 8]
push 0x25
push esi
call fcn.00452176
pop ecx
pop ecx
test eax, eax
jne 0x417d4b
or eax, 0xffffffff
jmp 0x417e28
add eax, 2
push 0x25
push eax
call fcn.00452176
pop ecx
pop ecx
test eax, eax
je 0x417d43
xor eax, eax
push ebx
mov word [ebp - 0x210], ax
push edi
lea edi, [ebp - 0x210]
cmp word [esi], ax
je 0x417dfe
movzx eax, word [esi]
cmp ax, 0x25
je 0x417d88
mov word [edi], ax
inc edi
inc edi
inc esi
inc esi
jmp 0x417df4
lea ebx, [esi + 2]
push 0x25
push ebx
call fcn.00452176
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x417e2b
sub eax, esi
sar eax, 1
push eax
push ebx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x417dee
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
mov esi, dword [ebp - 4]
add esi, 2
cmp word [esi], 0
jne 0x417d76
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x417e24
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x417e26
Function at 0x4180ad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.00404678
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
mov dword [ebp - 4], 0x400
jb 0x4180da
mov eax, dword [eax + 4]
jmp 0x4180dd
add eax, 4
push esi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x404]
push ecx
push 0
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41810c
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x404]
push eax
call fcn.00404912
mov eax, esi
pop esi
leave
ret
Function at 0x41910e
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4700b8
call fcn.0044e5d8
sub esp, 0xe8
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push 0x479c90
mov ecx, 0x499ba8
call fcn.004019b3
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 2
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 1
mov ecx, esi
call dword [eax + 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 8]
call fcn.00407e18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00401436
push dword [ebp + 8]
lea ecx, [ebp - 0xf4]
call fcn.00407c91
mov byte [ebp - 4], 4
push dword [eax]
lea ecx, [ebp - 0x54]
call fcn.00401a8d
mov byte [ebp - 4], 6
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xf4], eax
je 0x4191ad
push dword [ebp - 0xf4]
call fcn.00450476
pop ecx
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x4191b9
lea eax, [ebp - 0x50]
push 0x479c8c
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00454077
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x419320
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x41921a
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.004014ab
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00401436
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0xf
call fcn.004013d5
mov byte [ebp - 4], 7
push 2
push ebx
push dword [ebp - 0x14]
call fcn.00453868
push dword [ebp - 0x14]
call fcn.00453f45
add esp, 0x10
push ebx
push eax
lea ecx, [ebp - 0x38]
call fcn.0041cbe8
push dword [ebp - 0x14]
call fcn.00453ce2
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x24]
push edi
push ebx
call fcn.00403a0c
push eax
call fcn.00453cc5
push dword [ebp - 0x14]
call fcn.004539a9
add esp, 0x14
push dword [ebp + 0xc]
lea ecx, [ebp - 0xf4]
call fcn.00407c91
mov byte [ebp - 4], 8
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.00401a8d
mov byte [ebp - 4], 9
cmp dword [eax + 0x18], 0x10
jb 0x4192a3
mov eax, dword [eax + 4]
jmp 0x4192a6
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00401a8d
mov byte [ebp - 4], 0xa
sub esp, 0x1c
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0040486d
mov byte [ebp - 4], 0xb
mov eax, dword [esi]
mov byte [ebp - 4], 9
mov ecx, esi
call dword [eax + 0x28]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 8
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.004014ab
mov byte [ebp - 4], 7
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xf4], eax
je 0x419307
push dword [ebp - 0xf4]
call fcn.00450476
pop ecx
mov byte [ebp - 4], 6
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.004014ab
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x4191e1
mov byte [ebp - 0xd], bl
jmp 0x4191e1
Function at 0x419955
Capabilities:
Get common file path

Disassembly:
mov eax, 0x470272
call fcn.0044e5d8
sub esp, 0x414
push ebx
xor ebx, ebx
push str.getTempPath
mov ecx, 0x499ba8
mov dword [ebp - 0x10], ebx
call fcn.004019b3
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp byte [ebp + 0xc], bl
je 0x4199a2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.00407f28
jmp 0x4199cb
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x475c60
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
call fcn.00407f28
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x419e29
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov eax, 0x4703a7
call fcn.0044e5d8
sub esp, 0x254
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x476de0
mov ecx, 0x499ba8
call fcn.004019b3
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 1
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], bl
mov ecx, esi
call dword [eax + 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 8]
call fcn.00407e18
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401436
push 0x104
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404ddc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041cb9d
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041cb7b
push dword [esi + 4]
lea ecx, [ebp - 0x3c]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.0041d79c
mov byte [ebp - 4], 4
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x419eee
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x419f39
mov byte [ebp - 0xd], bl
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.004014ab
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0040370d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
test al, 0x10
je 0x419efa
mov byte [ebp - 0xd], 1
jmp 0x419efd