joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040a9
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4040c3
call dword [sym.imp.USER32.dll_CloseClipboard]
push 4
mov dword [ebp - 0x3c], ebx
pop ecx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], 9
lea eax, [ebp - 0x3c]
add eax, ecx
lea edx, [ebp - 0x14]
cmp eax, edx
jne 0x404107
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 4], bl
call fcn.00405843
push 0xf84c
lea eax, [ebp - 0x3c]
push 0x29
push eax
call fcn.0040622b
push 0x34
call dword [sym.imp.MSVCRT.dll_isalnum]
add esp, 0x10
pop ebx
leave
ret

Function at 0x404bf6
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 5
push 5
push 5
lea ecx, [ebp - 0x10]
call fcn.004057e8
lea ecx, [ebp - 0x10]
call fcn.0040583a
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x404c24
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
leave
ret

Function at 0x40555e
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x409e0d
call fcn.00409920
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov edi, dword [esi]
mov dword [esi + 4], eax
xor edx, edx
mov ecx, eax
cmp byte [eax], 0
jne 0x4055a3
mov ebx, edi
and ebx, 1
cmp bl, 1
je 0x405599
cmp byte [ecx], 0x3d
je 0x40559a
inc edx
cmp byte [eax + 1], 0
lea ecx, [eax + 1]
je 0x4055a6
inc eax
jmp 0x405585
lea edi, [esi + 0xc]
inc eax
push edx
mov ecx, edi
mov dword [esi + 8], eax
call fcn.004058e8
mov eax, dword [esi + 8]
and dword [ebp - 4], 0
sub eax, dword [esi + 4]
lea ebx, [esi + 0x814]
mov ecx, ebx
push eax
call fcn.004055f7
push dword [ebp + 8]
mov byte [ebp - 4], 1
push dword [esi + 8]
push dword [esi + 4]
push ebx
push edi
call fcn.0040601d
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405983
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
push eax
mov ebx, str.PATH
push eax
push ebx
mov dword [ebp - 4], eax
call edi
mov dword [ebp - 8], eax
inc eax
push eax
lea ecx, [ebp - 0x410]
call fcn.00405a15
push dword [ebp - 0x40c]
mov esi, dword [ebp - 0x410]
mov eax, dword [ebp - 8]
add eax, esi
push esi
push ebx
mov dword [ebp - 8], eax
call edi
mov ecx, dword [ebp - 8]
cmp esi, ecx
je 0x4059db
cmp byte [esi], 0x3b
jne 0x4059db
inc esi
jmp 0x4059cf
mov eax, esi
cmp esi, ecx
je 0x4059f8
cmp byte [esi], 0x3b
jne 0x4059f5
mov edx, esi
sub edx, eax
cmp edx, 1
jle 0x4059f2
inc dword [ebp - 4]
lea eax, [esi + 1]
inc esi
jmp 0x4059dd
sub esi, eax
pop edi
cmp esi, 1
pop esi
pop ebx
jle 0x405a05
inc dword [ebp - 4]
lea ecx, [ebp - 0x410]
call fcn.00405a42
mov eax, dword [ebp - 4]
leave
ret

Function at 0x405c4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor ecx, ecx
mov eax, 0x440f48
cmp ecx, eax
jne 0x405c5f
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push edi
push 1
mov dword [ebp - 8], eax
push eax
call esi
test eax, eax
je 0x405c86
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
push dword [ebp - 8]
jmp 0x405c71
test byte [0x440f4c], 1
mov edi, 0x440f60
jne 0x405cae
or byte [0x440f4c], 1
push 0x105
push edi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov byte [0x441065], 1
push 0
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x405cbb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor ecx, ecx
mov eax, 0x440e28
cmp ecx, eax
jne 0x405cce
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push edi
push 1
mov dword [ebp - 8], eax
push eax
call esi
test eax, eax
je 0x405cf5
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
push dword [ebp - 8]
jmp 0x405ce0
test byte [0x440e2c], 1
mov edi, 0x440e40
jne 0x405d1d
or byte [0x440e2c], 1
push 0x105
push edi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov byte [0x440f45], 1
push 0
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4060bb
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x10
cmp byte [esp + 0x18], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
je 0x4060df
call fcn.0040632f
test al, al
je 0x4060df
mov byte [esp + 0x13], 1
jmp 0x4060e4
and byte [esp + 0x13], 0
mov esi, dword [edi]
mov edi, dword [edi + 0x408]
and dword [esp + 0x18], 0
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
and byte [esi], 0
and dword [esp + 0x14], 0
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [esp + 0x14]
movzx eax, byte [esp + 0x2c]
and ecx, 1
cmp ecx, eax
je 0x406131
cmp byte [esp + 0x24], 0
je 0x40615a
mov dword [edi], esi
add edi, 4
call fcn.00405b95
push eax
push esi
call ebp
push esi
call ebx
add esi, eax
jmp 0x40615a
cmp byte [esp + 0x28], 0
je 0x40615a
push esi
push 0x105
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
add esi, eax
cmp byte [esp + 0x13], 0
jne 0x40615a
mov eax, dword [esp + 0x18]
mov dword [edi], eax
add edi, 4
inc esi
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x406105
mov dword [edi], esi
add edi, 4
call fcn.00405c4c
push eax
push esi
call ebp
push esi
call ebx
lea esi, [esi + eax + 1]
call fcn.004032e9
cmp dword [eax + 0x10], 2
jne 0x40619b
mov dword [edi], esi
add edi, 4
call fcn.00405d2a
push eax
push esi
call ebp
push esi
call ebx
lea esi, [esi + eax + 1]
mov dword [edi], esi
add edi, 4
call fcn.00405cbb
push eax
push esi
call ebp
push esi
call ebx
cmp byte [esp + 0x28], 0
lea esi, [esi + eax + 1]
je 0x4061c7
cmp byte [esp + 0x13], 0
je 0x4061c7
mov eax, dword [esp + 0x18]
mov dword [edi], eax
add edi, 4
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
sub eax, esi
add eax, dword [ebx]
push eax
push esi
push str.PATH
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
add eax, esi
cmp esi, eax
je 0x4061ed
cmp byte [esi], 0x3b
jne 0x4061ed
inc esi
jmp 0x4061e1
mov ecx, esi
cmp esi, eax
je 0x40620f
cmp byte [esi], 0x3b
jne 0x40620c
mov edx, esi
sub edx, ecx
cmp edx, 1
jle 0x406206
mov dword [edi], ecx
add edi, 4
and byte [esi], 0
lea ecx, [esi + 1]
inc esi
jmp 0x4061ef
sub esi, ecx
cmp esi, 1
jle 0x40621b
mov dword [edi], ecx
add edi, 4
mov dword [ebx + 0x470], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x40632f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.004032e9
cmp dword [eax + 0x10], 2
jne 0x4063b0
call fcn.004032e9
cmp dword [eax + 4], 5
jb 0x4063b0
call fcn.004032e9
cmp dword [eax + 8], 1
jne 0x4063b0
lea eax, [ebp - 4]
push ebx
xor ebx, ebx
push eax
push 1
push ebx
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4063ab
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x411bec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4063a2
cmp dword [ebp - 0xc], 1
jne 0x4063a2
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
xor al, al
leave
ret
Function at 0x4070ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
mov dword [ebp - 4], eax
movzx eax, byte [esi + 1]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov ecx, eax
dec eax
test ecx, ecx
je 0x40713a
push ebx
mov ebx, dword [ebp + 0x10]
inc eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00407148
xor al, byte [ebx]
add esp, 0xc
mov byte [edi], al
inc edi
inc ebx
dec dword [ebp + 8]
jne 0x407119
pop edi
pop ebx
mov al, byte [ebp - 4]
mov byte [esi], al
mov al, byte [ebp - 8]
mov byte [esi + 1], al
pop esi
leave
ret

Function at 0x4071f3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
je 0x40720c
jne 0x40720c
jmp 0x40720e
push 0x43f6a8
push dword [ebp + 8]
test byte [ebx], 0xff
jne 0x40721c
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407229
xor al, al
jmp 0x407265
push dword [ebp - 4]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp + 0x10]
je 0x407250
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor al, al
jmp 0x407265
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [ebp + 8]
call fcn.004094eb
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407eb9
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
call fcn.00407f57
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.7AVHGkBgNWNRKJ2EbYucosArQaOjr26Vj7osoA30F4hknuTP
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
cmp esi, ebx
je 0x407f4c
push edi
lea eax, [ebp - 4]
push 4
push eax
push 2
push esi
mov dword [ebp - 4], 0xbb8
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
mov byte [ebp - 0x404], bl
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x404]
push 0x43f9d4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x404]
push ebx
push 0x84000000
push ebx
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
pop edi
jne 0x407f50
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x407f53
push 1
pop eax
pop esi
pop ebx
leave
ret

Function at 0x40800a
Capabilities:
Generate random numbers via winapi

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x408029
push 0xffffffffffffff99
jmp 0x40803f
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x408042
push 0xffffffffffffff98
pop eax
pop esi
ret
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
ret

Function at 0x4080b4
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
call fcn.004080f5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x24]
push 1
push 2
push 1
push 0xf01ff
push dword [esp + 0x34]
push dword [esp + 0x38]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
pop esi
jne 0x4080ea
xor eax, eax
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
pop eax
ret
Function at 0x408fde
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push edi
lea ecx, [ebp - 0x21c]
call fcn.004058ba
lea ecx, [ebp - 0x21c]
call fcn.00405091
push 0x3f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x31b]
mov byte [ebp - 0x31c], bl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x31c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x31c]
push 0x43f8e4
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40905d
xor al, al
jmp 0x409138
push esi
xor esi, esi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push 0x43f8ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp byte [ebp - 0x430], 0x2e
je 0x409109
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 0x10
je 0x4090bd
lea eax, [ebp - 0x104]
push eax
call fcn.00408fde
jmp 0x409104
push pe_nt_image_headers32
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push 0x100
push eax
push 0x440ccc
push 0x43f908
push 0x43f8f4
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x208]
push eax
call fcn.00408e19
test al, al
pop ecx
jne 0x40912a
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x409120
push 1
pop esi
cmp esi, ebx
je 0x409060
jmp 0x40912c
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40913c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
je 0x409156
jne 0x409156
jmp 0x409158
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x43f954
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409181
hlt
xor al, al
jmp 0x409240
and dword [ebp - 8], 0
and byte [ebp - 0x10], 0
push 1
pop eax
test eax, eax
je 0x409234
and byte [ebp - 0x224], 0
push pe_nt_image_headers32
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0x100
and byte [ebp - 0x118], 0
push pe_nt_image_headers32
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x120], 0x100
mov dword [ebp - 0x11c], 1
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_SHEnumValueA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40920e
jmp 0x409234
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x118]
push eax
call fcn.00408e19
pop ecx
movzx eax, al
test eax, eax
je 0x40922f
mov byte [ebp - 0x10], 1
jmp 0x409234
jmp 0x409189
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409245
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
call fcn.0040936b
lea eax, [ebp - 0xc]
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push eax
push 0x20019
push 0
push 0x43f90c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40927b
xor al, al
jmp 0x409368
and dword [ebp - 8], 0
and byte [ebp - 1], 0
push edi
and byte [ebp - 0x11c], 0
push pe_nt_image_headers32
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
mov dword [ebp - 0x14], 0x100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExA]
test eax, eax
jne 0x40935b
and byte [ebp - 0x420], al
push 0x7f
pop ecx
lea edi, [ebp - 0x41f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
inc dword [ebp - 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x11c]
push eax
push 0x43f90c
lea eax, [ebp - 0x420]
push 0x43f8ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
and byte [ebp - 0x220], 0
add esp, 0x10
xor eax, eax
lea edi, [ebp - 0x21f]
push pe_nt_image_headers32
mov dword [ebp - 0x10], 0x100
pop ecx
mov dword [ebp - 0x18], 1
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x420]
push 0x43f940
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x409284
lea eax, [ebp - 0x220]
push eax
call fcn.00408d39
test al, al
pop ecx
je 0x409284
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret

Function at 0x4093fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push 0x64
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp - 0x28]
call fcn.004038ed
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
and byte [ebp - 0x128], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x128]
push 6
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x128]
push eax
call fcn.00408fde
pop ecx
pop edi
test al, al
je 0x409469
mov al, 1
leave
ret
call fcn.00409245
test al, al
jne 0x409465
call fcn.00408e90
test al, al
jne 0x409465
call fcn.0040913c
test al, al
setne al
leave
ret
Function at 0x4094eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
call fcn.004095b0
push pe_nt_image_headers32
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push pe_nt_image_headers32
xor eax, eax
pop ecx
lea edi, [ebp - 0x22b]
mov byte [ebp - 0x22c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x22c]
push 0x43f7f4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x22c]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExA]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0010000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40958e
xor eax, eax
jmp 0x4095ab
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451cae
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x46b0b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401169
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str...includeMcNAPICoreWrapper.cpp
push str.CMcNAPICoreWrapper::ValidateModule
push 0xa
push 4
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00407040
mov dword [ebp - 4], 0
mov edx, str.CMcNAPICoreWrapper::ValidateModule
mov ecx, dword [eax]
call fcn.00407210
push esi
push ecx
mov edx, str.PathFileExists_failed._GetLastError:
mov ecx, eax
call fcn.00407210
add esp, 4
mov ecx, eax
call fcn.0040ba50
sub esp, 0xc
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.00401190
mov ecx, dword [ebp + 8]
call fcn.004074e0
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.0040fbe7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4019a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451d96
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46b0b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042d503
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00416ab6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret