joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029ab
Capabilities:
Read .ini file

Disassembly:
push 0x410f20
push 0
push str.Count
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 6
add eax, 0xfffffffa
ret

Function at 0x4029d3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
cmp dword [edi], esi
jbe 0x402a53
push esi
push 0x40f0b8
lea eax, [ebp - 0x94]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x410f20
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x410790
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x402a50
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x40f090
push eax
call fcn.00407964
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [eax + esi*4], ecx
inc esi
cmp esi, dword [edi]
jb 0x4029ea
jmp 0x402a53
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x402b34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, 0x80000003
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 8], 9
call esi
test eax, eax
jne 0x402b95
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x410790
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x402bd8
lea eax, [ebp - 4]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
test eax, eax
jne 0x402bd3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Locale
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402bd8
push 0xfffffffffffffff8
pop eax
jmp 0x402bf8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x40f090
push eax
call fcn.00407964
movzx eax, word [ebp - 0x14]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402bfd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov edi, 0x40f0bc
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push edi
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push edi
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0xc]
push 0x411060
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x410790
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
neg eax
sbb eax, eax
pop edi
and eax, 5
pop esi
add eax, 0xfffffffb
leave
ret
Function at 0x40324a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x410f04], 0
push ebx
push esi
push edi
je 0x403282
push dword [ebp + 8]
call fcn.00403437
test eax, eax
pop ecx
jne 0x40328f
test byte [0x4107b8], 1
je 0x4033d5
xor dword [0x4107b8], 1
jmp 0x4033d5
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403f5d
pop ecx
pop ecx
push 0x1b59
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov esi, dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x403351
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp + 0xc]
call fcn.004036e4
test eax, eax
pop ecx
je 0x403351
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push dword [0x410f08]
push 0x1c21
push dword [ebp + 8]
push 0xc
call ebx
push eax
push 0xb
call ebx
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x40000000
push str.LgoBitmapWin
push str.LgoBitmapCls
push 0
call esi
mov ebx, eax
test ebx, ebx
je 0x4033d5
push dword [ebp + 0xc]
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push dword [ebp - 4]
call edi
push 5
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x1c52
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40342f
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [0x410f08]
push 0x1c85
push dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x40000000
push str.LgoStatusWin
push str.ISBarCls
push 0
call esi
mov ebx, eax
test ebx, ebx
jne 0x4033d9
xor eax, eax
jmp 0x403432
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push dword [ebp - 4]
call esi
push 0
push eax
push 0x30
push ebx
call esi
push 1
push 0
push 0x495
push ebx
call esi
push 0x800000
push 0
push 0x493
push ebx
call esi
push 0xffffff
push 0
push 0x494
push ebx
call esi
push 0
push dword [ebp - 4]
call edi
push 5
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40399d
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
lea eax, [ebp - 0x2c]
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
push dword [ebp + 8]
call edi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
xor ebx, ebx
push eax
push ebx
call esi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0x1e
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
cmp dword [0x410f10], 1
mov dword [ebp - 8], eax
je 0x4039fc
cmp dword [0x410f0c], ebx
je 0x403a51
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403a51
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push esi
call edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403f5d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
push 0x65
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x404006
lea eax, [ebp - 0x200]
push 0x200
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov cl, byte [ebp - 0x200]
lea eax, [ebp - 0x200]
test cl, cl
je 0x404006
cmp cl, 0x25
jne 0x403fb2
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x50
je 0x403fbd
cmp cl, 0x70
je 0x403fbd
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x403f9b
mov byte [eax], 0x73
mov eax, dword [ebp + 0xc]
push esi
cmp byte [eax + 0x14], 0
lea esi, [eax + 0x14]
je 0x403fd9
push 0x40f204
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x200]
push esi
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
pop eax
pop esi
pop edi
leave
ret
push 1
pop eax
jmp 0x404003
Function at 0x405be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x410bbc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
shl eax, 0xa
add ebx, eax
lea eax, [ebp - 0x108]
push str.TEMP
push eax
call esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00405fa9
mov edi, dword [ebp + 0xc]
pop ecx
test eax, eax
pop ecx
je 0x405c50
push eax
push edi
call esi
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push edi
call fcn.00405d88
pop ecx
test eax, eax
pop ecx
je 0x405c50
push edi
call fcn.00405d26
test eax, eax
pop ecx
jne 0x405cb4
push 0x105
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x405c78
push ebx
push edi
call fcn.00405d88
pop ecx
test eax, eax
pop ecx
je 0x405c78
push edi
call fcn.00405d26
test eax, eax
pop ecx
jne 0x405cb4
push 0x410790
push edi
call esi
push edi
push ebx
push 3
call fcn.00405cbc
add esp, 0xc
test eax, eax
jge 0x405cb4
push edi
push ebx
push 4
call fcn.00405cbc
add esp, 0xc
test eax, eax
jge 0x405cb4
shr ebx, 0xa
push ebx
push 0x1b97
call fcn.00405ea1
pop ecx
xor eax, eax
pop ecx
jmp 0x405cb7
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405cbc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x405d15
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.00405d88
pop ecx
test eax, eax
pop ecx
je 0x405d15
push esi
call fcn.00405d26
test eax, eax
pop ecx
jne 0x405d22
inc ebx
cmp ebx, 0x1a
jl 0x405ce0
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x405d1e

Function at 0x405d26
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push str._INS5566._MP
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call fcn.00406fbf
push 0
push 0x80
push 2
push 0
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [0x410904], eax
jge 0x405d6f
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret
Function at 0x406762
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x406774
push 0x40f45c
jmp 0x406775
push esi
push dword [ebp + 8]
push str.INSTALL.EXE
call fcn.004067be
add esp, 0xc
push esi
push dword [ebp + 8]
push str.ZDATA.DLL
call fcn.004067be
push esi
push dword [ebp + 8]
push str.WUTL95I.DLL
call fcn.004067be
add esp, 0x18
cmp dword [0x40f214], esi
pop esi
je 0x4067b9
push dword [0x410ed4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
pop ebp
ret

Function at 0x4067be
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
lea eax, [ebp - 0x324]
push eax
push dword [ebp + 8]
push dword [0x410db0]
call fcn.004041aa
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x108]
push dword [ebp + 0xc]
push eax
call fcn.00406fbf
cmp dword [ebp + 0x10], 0
je 0x406807
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
call fcn.0040718a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret

Function at 0x4068a5
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x214
and dword [esp], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x228]
mov esi, str.NOT_POSSIBLE_VALUE
mov ebp, str.main
push dword [esp + 0x10]
push str.file_d
push edi
call ebx
add esp, 0xc
lea eax, [esp + 0x14]
push dword [0x410ed4]
push 0x105
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40690e
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x14
jl 0x4068cb
push dword [0x410ed4]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [esp + 0x230]
push ebp
push edi
call esi
push dword [0x410ed4]
push dword [esp + 0x234]
push 0x40f4ac
push edi
call esi
push dword [0x410f14]
lea eax, [esp + 0x120]
push 0x40f05c
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x11c]
push dword [0x410ed4]
push eax
push str.exeostype
push edi
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x4069b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x105
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
push edi
call fcn.00406f04
push str._iserr31.ini
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x220]
push 0x20a
mov esi, 0x1b9c
push eax
push esi
call fcn.0040550b
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call fcn.00406bd1
add esp, 0x10
lea eax, [ebp - 0x220]
mov ebx, str.SharedErrors
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
lea eax, [ebp - 0x220]
push 0x20a
push eax
push 0x1b97
call fcn.0040550b
push 0x1b97
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call fcn.00406bd1
add esp, 0x10
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
lea eax, [ebp - 0x220]
push 0x20a
push eax
push 0x1b98
call fcn.0040550b
push 0x1b98
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call fcn.00406bd1
add esp, 0x10
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
push 0x20a
lea eax, [ebp - 0x220]
push eax
push 0x1bc6
call fcn.0040550b
push 0x1bc6
lea eax, [ebp - 0x14]
push 0x40f05c
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call fcn.00406bd1
add esp, 0x10
lea eax, [ebp - 0x220]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406b10
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebx
push esi
push edi
push 0x4000
push 1
call fcn.0040400b
mov ebx, dword [esp + 0x10]
push 0x105
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
push ebx
call fcn.00406f04
push str._isenv31.ini
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x410c00]
mov esi, edi
mov eax, dword [ecx]
test eax, eax
je 0x406b74
push ebp
mov ebp, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebp, 4
lea esi, [esi + eax + 1]
mov eax, dword [ebp]
test eax, eax
jne 0x406b56
pop ebp
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x410904], eax
mov ebx, eax
jne 0x406b9d
xor eax, eax
jmp 0x406bcd
sub esi, edi
push 0
inc esi
push 0x410908
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [0x41090c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
call fcn.00404057
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x406d64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push str._INS0432.INI
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00406fbf
push 0
push 0x80
push 2
push 0
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x410908
push dword [ebp + 0xc]
mov dword [0x410904], eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [0x41090c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop esi
leave
ret

Function at 0x409385
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4102b0
cmp edx, dword [eax]
je 0x4093a7
add eax, 8
inc ecx
cmp eax, 0x410340
jl 0x409398
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4102b0]
jne 0x4094d5
mov eax, dword [0x410c2c]
cmp eax, 1
je 0x4094af
test eax, eax
jne 0x4093d8
cmp dword [0x40fe74], 1
je 0x4094af
cmp edx, 0xfc
je 0x4094d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40940f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a290
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004087f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409452
lea eax, [ebp - 0x1a4]
push eax
call fcn.004087f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5a0
push edi
call fcn.0040b280
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a290
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a2a0
lea eax, [ebp - 0xa0]
push 0x40d580
push eax
call fcn.0040a2a0
push dword [esi + 0x4102b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a2a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b1f4
add esp, 0x2c
pop edi
jmp 0x4094d5
lea eax, [ebp + 8]
lea esi, [esi + 0x4102b4]
push 0
push eax
push dword [esi]
call fcn.004087f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4010ea
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x401189
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xfb8]
mov eax, 0x1038
call fcn.00406cb0
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0xfb4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x20019
push esi
push 0x4083e0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x50], edi
call fcn.0040109b
mov ebx, eax
cmp ebx, edi
jne 0x401310
push esi
push 0x4083f4
push dword [ebp - 0x74]
lea ecx, [ebp - 0x80]
call fcn.0040109b
mov ebx, eax
cmp ebx, edi
jne 0x401310
push esi
push 0x408408
push dword [ebp - 0x80]
lea ecx, [ebp - 0x5c]
call fcn.0040109b
mov esi, eax
cmp esi, edi
je 0x40124f
lea ecx, [ebp - 0x68]
call fcn.00401080
lea ecx, [ebp - 0x5c]
call fcn.00401080
lea ecx, [ebp - 0x80]
call fcn.00401080
lea ecx, [ebp - 0x74]
call fcn.00401080
mov eax, esi
jmp 0x401332
mov esi, 0x800
push esi
lea eax, [ebp - 0x4c]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x4c]
push eax
push edi
jmp 0x4012ba
inc dword [ebp - 0x50]
mov ecx, 0x408424
lea eax, [ebp - 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40129b
cmp dx, di
je 0x401297
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40129b
add eax, 4
add ecx, 4
cmp dx, di
jne 0x401275
xor eax, eax
jmp 0x4012a0
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
lea eax, [ebp - 0x4c]
je 0x4012cb
push esi
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
cmp ebx, edi
je 0x40126a
jmp 0x401310
push 0x2001f
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x68]
call fcn.0040109b
mov esi, eax
cmp esi, edi
jne 0x401228
mov eax, dword [ebp + 0xfc0]
push 4
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push 4
push edi
push 0x408438
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x68]
mov ebx, eax
call fcn.00401080
lea ecx, [ebp - 0x68]
call fcn.00401080
lea ecx, [ebp - 0x5c]
call fcn.00401080
lea ecx, [ebp - 0x80]
call fcn.00401080
lea ecx, [ebp - 0x74]
call fcn.00401080
mov eax, ebx
mov ecx, dword [ebp + 0xfb4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bd0
add ebp, 0xfb8
leave
ret
Function at 0x402a2a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0040109b
mov ebx, eax
cmp ebx, esi
je 0x402a9d
lea ecx, [ebp - 0x74]
call fcn.00401080
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bd0
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402ab5
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.00402a2a
cmp eax, esi
jne 0x402ae7
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x402aa5
lea ecx, [ebp - 0x74]
call fcn.00401080
push dword [ebp - 0x78]
mov ecx, edi
call fcn.004023ce
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401080
mov eax, esi
jmp 0x402a83