joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413cbd
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x580b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push 0x538af4
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00413a3e
pop ecx
cmp eax, esi
je 0x413da7
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x413da7
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0050f760
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x413da7
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x413da7
cmp esi, 0x14
jge 0x413da7
push 0x10
push 0
push edi
call fcn.005119b2
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x413d96
call fcn.0051178c
cmp dword [eax], 0x22
je 0x413d96
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005117d5
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x413d6c
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.DLL_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5829f0], 0
jne 0x413e32
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x413e5b
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00413bcd
pop ecx
pop ecx
test eax, eax
jne 0x413e5d
inc edi
cmp edi, esi
jl 0x413e38
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00510ec1
leave
ret 8

Function at 0x4172f4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x580b00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x417329
xor eax, eax
jmp 0x41737c
lea eax, [ebp - 0x210]
push eax
call fcn.005117d5
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41735a
push 0x538fac
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051348c
add esp, 0xc
test eax, eax
jne 0x417325
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051348c
add esp, 0xc
test eax, eax
jne 0x417325
lea eax, [ebp - 0x210]
push eax
call fcn.004171ee
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00510ec1
leave
ret
Function at 0x419a59
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041b324
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x419a92
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041969b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x419af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x419b14
cmp dword [edi + 0x74], 0
jne 0x419b14
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041b324
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00419ab1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x426d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0042b859
call fcn.00413ac4
cmp eax, esi
pop esi
jne 0x426d6c
mov ecx, 0x582a68
jmp fcn.0041820b
ret

Function at 0x42d2f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42d33e
call fcn.0041b324
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x42d33e
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42d35a
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042cdfc
mov esi, eax
test edi, edi
je 0x42d358
test ebx, ebx
je 0x42d358
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42d78a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52bb3d
call fcn.00510ed0
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42d7af
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42d801
call fcn.00425adb
push eax
lea ecx, [ebp - 0x10]
call fcn.0040167d
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00513e0f
push eax
call fcn.0041349c
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004016eb
mov eax, esi
call fcn.00510fa8
ret 8

Function at 0x4302f0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0042ffaf
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x43033a
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00425ef3
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00415edb
jmp 0x430345
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0043266d
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43034b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0042d403
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x430388
call fcn.0042ffaf
mov dword [esi + 0xc], 1
jmp 0x43038d
call fcn.0042ffaf
cmp dword [esi], 0
je 0x4303d6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4303ae
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00425ef3
jmp 0x4303c0
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401718
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00415edb
jmp 0x4303fa
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4303fa
push dword [esi]
push dword [ebp + 8]
call fcn.0043266d
pop esi
pop ebp
ret 0xc
Function at 0x45f822
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x45f83c
call fcn.0041b324
mov esi, dword [eax + 0xc]
push dword [0x586144]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45f85a
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x45f852
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x45f887
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop ebx
jmp 0x45f854
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0045f750
mov esi, eax
jmp 0x45f879

Function at 0x4ef39d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4ef3b5
mov edi, dword [esi + 0xc]
jmp 0x4ef3f5
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ef3ce
call fcn.0042e231
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ef3e3
call fcn.0042e231
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
jne 0x4ef3f5
call fcn.0042e231
call fcn.0041b324
cmp dword [eax + 0x3c], 0
je 0x4ef40a
push edi
mov ecx, ebx
call fcn.004ee1d1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ef2b7
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4ef428
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ef434
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x510ec1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x580b00]
jne 0x510ecb
repz ret
jmp fcn.0051bba5
Function at 0x522b1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x580b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00516cb0
and dword [ebp - 0x14], 0
cmp dword [0x588d04], 0
mov dword [ebp - 0x18], eax
jne 0x522bce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x522c76
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x522c76
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push 0x55f924
push ebx
mov dword [0x588d04], eax
call edi
push eax
call esi
push 0x55f910
push ebx
mov dword [0x588d08], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x588d0c], eax
call edi
push eax
call esi
mov dword [0x588d14], eax
test eax, eax
je 0x522bce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x588d10], eax
mov eax, dword [0x588d10]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x522c27
cmp dword [0x588d14], ecx
je 0x522c27
push eax
call esi
push dword [0x588d14]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x522c27
test ebx, ebx
je 0x522c27
call edi
test eax, eax
je 0x522c1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x522c1e
test byte [ebp - 8], 1
jne 0x522c27
or dword [ebp + 0x10], 0x200000
jmp 0x522c5a
mov eax, dword [0x588d08]
cmp eax, dword [ebp - 0x18]
je 0x522c5a
push eax
call esi
test eax, eax
je 0x522c5a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x522c5a
mov eax, dword [0x588d0c]
cmp eax, dword [ebp - 0x18]
je 0x522c5a
push eax
call esi
test eax, eax
je 0x522c5a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x588d04]
call esi
test eax, eax
je 0x522c76
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x522c78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00510ec1
leave
ret
Function at 0x401010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408e70
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov edi, ecx
push str.FILES
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
push esi
push ebx
push dword [ebp - 0x14]
call fcn.00405520
add esp, 0xc
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
push edi
push ecx
call dword [eax + 0xb4]
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x40]
push 0
push 0
push 0xc
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, eax
lea eax, [ebp - 0x34]
push eax
call esi
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], 0
call esi
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
movq xmm0, qword [ebp - 0x34]
mov edx, dword [ecx]
push edi
sub esp, 0x10
mov eax, esp
push ecx
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [eax + 8], xmm0
call dword [edx + 0x94]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x44]
push eax
call esi
lea eax, [ebp - 0x34]
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100711aa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
int3
push ebp
mov ebp, esp
add esp, 0xffffffd8
push eax
push ecx
push edx
push ebx
lea ecx, [0x10073ccb]
xor ecx, 0xc6a4fe87
sub ecx, dword [ebp + 0x18]
add ecx, 0x66
xor ecx, dword [ebp + 8]
mov dword [ebp + 0x20], ecx
push 0x100741a1
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
push 0x10074c46
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov dword [ebp + 0xc], eax
lea ecx, [0x10073ccb]
xor ecx, dword [ebp + 0x18]
sub ecx, 0x59
add ecx, dword [ebp + 0x1c]
xor ecx, dword [0x10073ccb]
mov dword [0x1007414a], ecx
push 1
push 0x1e
push 3
push 0x10073664
push 0x3b
push 0x2e
push 0x10074821
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x1006fec2
lea eax, [0x1007414a]
mov dword [ebp - 0xc], eax
push 0x10074836
push 0x73
push 1
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
mov dword [0x10073ccb], eax
push 0x10074c46
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov dword [ebp - 8], eax
lea ebx, [0x1007414a]
add ebx, 0x4b
xor ebx, ebx
add ebx, 0x76
sub ebx, dword [ebp + 0x14]
xor ebx, 0x78
add ebx, dword [str.TrrJ]
sub ebx, 0x23ffd471
mov dword [ebp + 8], ebx
lea ebx, str.kACK
xor ebx, dword [ebp + 0x18]
sub ebx, 0x44
mov dword [ebp - 4], ebx
push 0x10074c46
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov dword [str._tshoy], eax
push 0x10074c46
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov dword [ebp - 0xc], eax
mov ecx, 0x5d
sub ecx, dword [str.k__6]
add ecx, 0x1b
xor ecx, dword [ebp + 0x18]
sub ecx, dword [str.J95d]
mov dword [ebp - 0x28], ecx
push 0x10074c46
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov dword [ebp - 0x14], eax
Function at 0x10071d54
Capabilities:
Get file attributes

Disassembly:
xor ecx, eax
mov ecx, dword [ebp - 0x10]
jmp fcn.10052ea3
push ebp
mov ebp, esp
add esp, 0xffffffdc
push edx
push esi
push dword [ebp + 8]
push dword [0x10074a46]
push dword [ebp + 8]
push dword [ebp + 8]
push 0x75
call fcn.1006fbaf
mov dword [ebp + 8], eax
push 0x10074c46
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov dword [str.___freX], eax
push dword [ebp + 8]
push eax
push dword [0x10074100]
push dword [ebp + 8]
push 0x15
call fcn.1006fbaf
mov dword [ebp - 0x10], eax
push 0x10074c46
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov dword [str.___freX], eax
cmp eax, 0
jne 0x1006feef
mov edx, 0x48
add edx, 0x571b39a7
sub edx, 0x45
add edx, dword [ebp + 8]
xor edx, 0x32
add edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov esi, dword [ebp + 8]
add esi, dword [0x10075320]
sub esi, 0x56
add esi, dword [str.s:_]
xor esi, edx
sub esi, dword [0x100752b4]
add esi, dword [ebp + 8]
mov dword [ebp + 8], esi
push 0x10074c46
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov dword [str.s:_], eax
push 0x100741a1
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov dword [str.v_Bo3838], eax
lea edx, [0x10074b5e]
sub edx, dword [ebp + 8]
xor edx, 0xf16e40cb
sub edx, dword [ebp + 8]
add edx, 0x78
mov dword [str.s:_], edx
mov esi, dword [ebp + 8]
mov dword [ebp + 8], esi
pop esi
pop edx
mov esp, ebp
pop ebp
ret 4
Function at 0x401300
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42774a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x439070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004068bf
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4013c0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0040c45f
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x437ef0
push eax
call fcn.0040ca9e
push edi
push esi
call fcn.00406c07
add esp, 8
mov eax, esi
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.0040a65f
mov esp, ebp
pop ebp
ret 4

Function at 0x402790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x439070]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402856
push 7
push str.Release
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], eax
mov word [esp + 0x10], ax
call fcn.00403c00
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 4
push ecx
xor esi, esi
lea ecx, [esp + 0x28]
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push ecx
cmovae eax, dword [esp + 0x10]
push esi
push esi
push eax
push dword [esp + 0x34]
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [esp + 0x1c]
cmove esi, dword [esp + 0x24]
cmp eax, 8
jb 0x40283c
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.00404540
cmp esi, 0x5c615
jb 0x402856
mov al, 1
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040a65f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
xor al, al
pop esi
xor ecx, esp
call fcn.0040a65f
mov esp, ebp
pop ebp
ret
Function at 0x40765a
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x427f59
call fcn.0040afff
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x407777
cmp byte [ebx + 0x3e], 0
je 0x407777
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040af9f
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x4076a6
xor al, al
jmp 0x407779
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00403f20
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4076d6
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.0040af9f
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x40770b
sub eax, 1
je 0x40770f
dec eax
sub eax, 1
je 0x407765
xor bl, bl
jmp 0x407767
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x40771f
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x407747
cmp eax, 0x10
jae 0x40772e
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00413fe0
add esp, 0x10
cmp esi, eax
jne 0x407707
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x407765
test esi, esi
jne 0x4076ca
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00404220
jmp 0x4076c4
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00403e90
mov al, bl
jmp 0x407779
mov al, 1
call fcn.0040afba
ret

Function at 0x41acf7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a9ba

Function at 0x41ad02
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ab3b

Function at 0x41f663
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f323