joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023dca
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10023e67
push ebx
push esi
call fcn.10023d93
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10023d29
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10023e14
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10023e66
push edi
push eax
call fcn.10022b30
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10023e34
call fcn.10021bb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10023e65
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10023d29
add esp, 0x20
test eax, eax
jne 0x10023e53
push edi
call fcn.10021bb0
jmp 0x10023e5b
push ebx
call fcn.10021bb0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1002c7b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002c7dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002c7dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401a1e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov eax, 0x40300c
or esi, 0xffffffff
lock xadd dword [eax], esi
dec esi
jne 0x401a62
push 4
pop ecx
call fcn.00401415
xor ecx, ecx
push ecx
push ecx
push eax
push 0x4019f0
push ecx
push ecx
mov dword [eax], 0x493e0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x401a5d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401a62
call fcn.004015de
mov eax, esi
pop esi
ret

Function at 0x4026c0
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x402ca0
call fcn.00402a54
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x40344c
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4024c5
cmp eax, edi
jne 0x4024d7
mov esi, ebx
cmp dword [0x403450], ebx
jne 0x4024e4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402513
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4024ae
cmp dword [0x403450], 0
jne 0x40250d
mov dword [0x403450], ebx
push 0x40101c
push 0x401010
call fcn.00402664
pop ecx
pop ecx
test eax, eax
je 0x402513
jmp 0x40264d
mov dword [0x40301c], ebx
cmp dword [0x403450], ebx
jne 0x402536
push 0x40100c
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403450], 2
test esi, esi
jne 0x402543
xor eax, eax
mov ecx, 0x40344c
xchg dword [ecx], eax
cmp dword [0x403454], 0
je 0x402571
push 0x403454
call fcn.00402880
pop ecx
test eax, eax
je 0x402571
push 0
push 2
push 0
mov esi, dword [0x403454]
mov ecx, esi
call dword [0x40414c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x40264d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx]
cmp ax, si
ja 0x4025e1
test ax, ax
je 0x40259a
test edx, edx
jne 0x4025e1
movzx eax, word [ecx]
test ax, ax
je 0x4025af
cmp ax, si
ja 0x4025af
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x40259a
test byte [ebp - 0x40], 1
je 0x4025bb
movzx eax, word [ebp - 0x3c]
jmp 0x4025be
push 0xa
pop eax
push eax
push ecx
push 0
push 0x400000
call main
mov dword [0x403018], eax
cmp dword [0x403030], 0
jne 0x402629
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x4025f2
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x24], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x402589
cmp dword [0x40301c], 0
jne 0x40263d
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403018]
mov dword [ebp - 4], 0xfffffffe
jmp 0x402659
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00402a9c
ret
call fcn.00402988
jmp 0x402478
Function at 0x40275f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402cc8
call fcn.00402c38
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4027bf
cmp eax, 0xffffffff
je 0x4027bf
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4027b8
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4027b8
cmp edx, 0x10000000
jae 0x4027b8
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4027b5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00402c7d
ret 4

Function at 0x402830
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40286e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402866
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x402870
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402856
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402950
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x402966
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x402981
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401380
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x4954f4]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
xorps xmm0, xmm0
mov word [esp + 0x36], cx
push esi
push edi
movlpd qword [esp + 0x32], xmm0
movlpd qword [esp + 0x4a], xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x52], ecx
movaps xmm0, xmmword [0x488760]
mov word [esp + 0x56], cx
mov dword [esp + 0x40], ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x58], ecx
mov word [esp + 0x48], cx
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x3e], 0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x48], 7
mov dword [esp + 0x60], 7
call fcn.004027c0
test eax, eax
je 0x401463
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x60]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
push 0
push eax
movaps xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
call esi
test eax, eax
je 0x401463
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x60]
push eax
call edi
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call esi
test eax, eax
jne 0x401440
push 0
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401485
push eax
call fcn.0040b7c0
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x10]
call fcn.004045c0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4014a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 0
call fcn.0040b610
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0040a000
mov edx, dword [esp + 0x5c]
cmp edx, 8
jb 0x4014ed
mov ecx, dword [esp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4014e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401554
push edx
push ecx
call fcn.00444954
add esp, 8
mov edx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 7
mov word [esp + 0x48], ax
cmp edx, 8
jb 0x40153c
mov ecx, dword [esp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401532
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401554
push edx
push ecx
call fcn.00444954
add esp, 8
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00444204
mov esp, ebp
pop ebp
ret 0x10
call fcn.004538a3
int3
Function at 0x402af0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20a
lea eax, [ebp - 0x218]
mov esi, ecx
push 0
push eax
call fcn.0044b130
add esi, 0x38
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x402b27
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.0044f0a8
add esp, 0xc
lea eax, [ebp - 0x218]
push str.XXPicUpsSvr.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402c3e
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push str.__s___upsins
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.004015b0
add esp, 0x14
mov dword [ebp - 0x430], 0
lea eax, [ebp - 0x480]
mov dword [ebp - 0x470], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x444], 1
movlpd qword [ebp - 0x46c], xmm0
push eax
lea eax, [ebp - 0x470]
movlpd qword [ebp - 0x464], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x428]
movlpd qword [ebp - 0x45c], xmm0
push eax
push 0
movlpd qword [ebp - 0x454], xmm0
movlpd qword [ebp - 0x44c], xmm0
movlpd qword [ebp - 0x440], xmm0
movlpd qword [ebp - 0x438], xmm0
movups xmmword [ebp - 0x480], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402c3e
push dword [ebp - 0x47c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x480]
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00444204
mov esp, ebp
pop ebp
ret
Function at 0x403370
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
mov dword [ebp - 0x854], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x84c]
mov dword [ebp - 0x84c], 0
push eax
push 0x479c64
push 1
push 0
push 0x479c84
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40353d
cmp dword [ebp - 0x84c], 0
je 0x40353d
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0044b130
lea eax, [esi + 0x38]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4033fa
mov eax, dword [eax]
push edi
push eax
push 0x488034
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.004015b0
mov eax, dword [ebp - 0x84c]
lea edx, [ebp - 0x428]
add esp, 0x18
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x84c]
lea edx, [ebp - 0x850]
push edx
mov dword [ebp - 0x850], 0
push 0x479c74
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x403531
cmp dword [ebp - 0x850], 0
je 0x403531
push 0x20a
lea eax, [ebp - 0x638]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x638]
push 0
push dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x638]
push ebx
push eax
push 0x488034
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004015b0
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x20a
lea eax, [ebp - 0x848]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x854]
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x848]
push 0x104
push eax
call fcn.004015b0
mov eax, dword [ebp - 0x850]
lea edx, [ebp - 0x848]
add esp, 0x18
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x850]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x84c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444204
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403560
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x21c]
xor esi, esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallXXPic
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x403606
cmp dword [ebp - 0x21c], esi
je 0x403617
push 0x20a
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], 1
push eax
call fcn.0044b130
add esp, 0xc
mov dword [ebp - 0x214], 0x20a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push str.DisplayIcon
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
cmovne esi, ecx
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x403617
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00444204
mov esp, ebp
pop ebp
ret
Function at 0x4040d0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push 0x4881d4
push 0x71
push ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], 0xffffffff
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x404293
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x220], esi
test esi, esi
je 0x404293
push dword [ebp - 0x218]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x404293
inc esi
push esi
call fcn.00444962
push esi
mov edi, eax
push ebx
push edi
call fcn.0044b130
mov esi, dword [ebp - 0x220]
push esi
push dword [ebp - 0x218]
push edi
call fcn.0044b510
add esp, 0x1c
mov byte [edi + esi], bl
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x40425a
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.7za.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
jne 0x40420c
mov ebx, 3
jmp 0x40425f
push 0
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], ebx
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40422d
lea ebx, [eax + 4]
jmp 0x40425f
lea edx, [ebp - 0x210]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404236
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x210]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00407ef0
jmp 0x40425f
mov ebx, 2
test edi, edi
je 0x40426c
push edi
call fcn.0044421a
add esp, 4
mov eax, dword [ebp - 0x21c]
cmp eax, 0xffffffff
je 0x40427e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444204
mov esp, ebp
pop ebp
ret 4
Function at 0x405470
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040a000
add eax, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.00406820
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push str.SoftwareXXPic
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40550f
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x40550f
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push 0x488400
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
call fcn.00452eca
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edx
push 8
push eax
push 0xb
push 0
push str.installtime
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x405545
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40553b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405553
push edx
push ecx
call fcn.00444954
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret
call fcn.004538a3
int3
Function at 0x406e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x406e6b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x406e8d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x406e8f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x406f13
jg 0x406ea4
test esi, esi
je 0x406f13
test ecx, ecx
jl 0x406eed
jg 0x406eae
test eax, eax
je 0x406eed
cmp edi, ecx
jg 0x406ec2
jl 0x406eb8
cmp esi, eax
jae 0x406ec2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0044b510
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x406ef0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x406f13
jg 0x406efa
test esi, esi
je 0x406f13
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x406f13
push eax
push esi
push 1
push edx
call fcn.00452bdc
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x406f5b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x406f7d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x406f7f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40701e
jg 0x406f9c
test esi, esi
je 0x40701e
test ecx, ecx
jl 0x406fe9
jg 0x406fa6
test eax, eax
je 0x406fe9
cmp ebx, ecx
jg 0x406fba
jl 0x406fb0
cmp esi, eax
jae 0x406fba
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0044b510
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x406ff0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40701e
jg 0x406ffa
test esi, esi
je 0x40701e
cmp dword [edi + 0x4c], 0
je 0x40701e
mov ecx, edi
call fcn.00408330
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.00453277
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x407490
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4074cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4074cc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40759b
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4074f4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x407527
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0044ecc7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret 4
mov al, bl
mov byte [ebp - 0x25], al
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x4075b1
lea ecx, [ebp - 0x25]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
push dword [esi + 0x4c]
movsx eax, al
push eax
call fcn.0044ecc7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40758b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00452bdc
add esp, 0x10
cmp edi, eax
jne 0x40759b
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4074b7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444204
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40759b
cmp eax, 1
jle 0x40756e
cmp eax, 3
jne 0x40759b
mov al, byte [ebp - 0x25]
jmp 0x407542