joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40761c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
xor ebx, ebx
push dword [0x41d2e8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x407675
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407675
push str.Update_Manager
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x407665
push ebx
push ebx
push 0x90df
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407750
push esi
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
mov edi, 0x41e790
push dword [ebp + 8]
mov ecx, edi
push ebx
call fcn.004087eb
call fcn.0040943a
mov eax, 0x104
mov esi, 0x41e820
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
call fcn.004062bc
push eax
push dword [0x41e794]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x14]
call fcn.0040176d
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00402085
mov esi, 0x41e830
push eax
mov ecx, esi
call fcn.00401ec0
lea ecx, [ebp - 0x20]
call fcn.0040172f
push str.agent.exe
mov ecx, esi
call fcn.004025c0
lea ecx, [ebp - 0x34]
call fcn.004063c1
push dword [0x41e778]
lea ecx, [ebp - 0x34]
call fcn.00401d0e
push dword [ebp + 0x14]
mov dword [0x41e840], eax
push dword [ebp + 0x10]
call fcn.00406591
pop ecx
mov esi, eax
pop ecx
mov ecx, edi
call fcn.004088fd
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x34]
call fcn.004017a8
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x408073
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4060
call fcn.00415750
push ebx
push esi
push edi
lea eax, [ebp - 0x30]
mov edi, 0x104
xor ebx, ebx
mov esi, 0x41e820
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], bl
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
call fcn.004062bc
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.0040176d
cmp dword [ebp - 4], ebx
je 0x4081b8
push dword [ebp - 4]
call fcn.0041577f
pop ecx
mov dword [ebp - 0x18], eax
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], bl
mov dword [ebp - 0xc], esi
push ebx
mov dword [ebp - 8], ebx
call fcn.004062bc
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040176d
cmp esi, ebx
je 0x4081af
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x41d5e8
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4081af
xor eax, eax
lea edi, [ebp - 0xf]
mov byte [ebp - 0x10], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x10]
push str._ld._ld
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x4060]
call fcn.00403bce
push 0x41d648
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 0x41a3dc
call fcn.00408dd0
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4060]
call fcn.00404229
lea ecx, [ebp - 0x2c]
call fcn.004017a8
lea ecx, [ebp - 0x40]
call fcn.004017a8
lea ecx, [ebp - 0x4044]
call fcn.00408e27
lea ecx, [ebp - 0x4058]
call fcn.0040172f
push dword [ebp - 0x18]
call fcn.00415745
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4081bd
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
lea eax, [ebp - 0x28]
push esi
push eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4082a2
push 0x41e820
lea ecx, [ebp - 0x10]
call fcn.0040204f
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x41a3ec
call fcn.0040c807
push eax
lea ecx, [ebp - 0x10]
call fcn.00401ec0
lea ecx, [ebp - 0x38]
call fcn.0040172f
cmp word [str.__startup], bx
mov eax, str.__startup
mov ecx, eax
je 0x40823b
inc ecx
inc ecx
cmp word [ecx], bx
jne 0x408234
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00402790
cmp dword [ebp - 4], ebx
jne 0x408252
xor esi, esi
jmp 0x40825d
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0040184c
push esi
push dword [ebp - 0xc]
push 1
push ebx
push str.ISUSPM_Startup
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
test eax, eax
jne 0x408294
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.0040172f
jmp 0x40834b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.0040172f
lea eax, [ebp - 0x24]
push 0xfffffffffffffffb
push 0x41d5b8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0x41a3dc
mov dword [ebp - 0x10], 0x64
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call fcn.004062bc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00406295
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xb4]
push eax
call fcn.0040606e
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xac]
push eax
push 0x41e790
call fcn.004086c4
push ebx
push 0x40da37
push esi
push 0x408
push dword [0x41e798]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x88]
call fcn.0041108b
lea ecx, [ebp - 0x98]
call fcn.004017a8
lea ecx, [ebp - 0x24]
call fcn.004017a8
pop esi
pop ebx
leave
ret
Function at 0x40834f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push esi
mov esi, 0x41e780
mov dword [ebp - 0x10], 0x41a3dc
mov ecx, esi
call fcn.0040184c
push dword [0x41e784]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4083b3
push 1
mov ecx, esi
call fcn.0040848c
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x41d6b4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040840a
jmp 0x4083be
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040843a
cmp dword [ebp - 4], 0
pop esi
je 0x408400
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x408400
lea ecx, [ebp - 0x40]
call fcn.00407177
lea ecx, [ebp - 0x40]
call fcn.004084c1
test al, al
jne 0x4083f8
lea eax, [ebp - 0x10]
push 1
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407286
lea ecx, [ebp - 0x40]
call fcn.00407450
lea ecx, [ebp - 0x10]
call fcn.004017a8
leave
ret
Function at 0x4084c1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4130
call fcn.00415750
lea eax, [ebp - 0x2c]
push ebx
push eax
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push str.SOFTWAREInstallShieldUpdate_ServiceScheduler
mov dword [ebp - 0x14], ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408646
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40863d
cmp dword [ebp - 0xc], ebx
je 0x40863d
push esi
push edi
mov ecx, 0xfff
lea edi, [ebp - 0x412f]
mov byte [ebp - 0x4130], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
jbe 0x40862d
mov esi, 0x41d5a0
cmp byte [ebp - 1], bl
jne 0x40862d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0x3fff
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x4130]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 0x18], 0x104
mov byte [ebp - 0x4130], bl
mov byte [ebp - 0x130], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x28]
push eax
call fcn.00401fe9
cmp word [0x41d5a0], bx
mov dword [ebp - 0x28], 0x41a3ec
mov eax, esi
je 0x4085d2
inc eax
inc eax
cmp word [eax], bx
jne 0x4085cb
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
push ebx
call fcn.004090db
cmp word [0x41d5a0], bx
mov eax, esi
je 0x4085f3
inc eax
inc eax
cmp word [eax], bx
jne 0x4085ec
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
call fcn.00402790
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.0040c8a3
pop ecx
test al, al
pop ecx
je 0x40861b
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x28]
call fcn.0040172f
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x408565
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
jmp 0x408648
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ebx
leave
ret
Function at 0x40c71f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40c78e
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40c78e
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40c78e
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebp - 0x12c], bl
lea eax, [ebp - 0x12c]
push eax
je 0x40c7be
lea ecx, [ebp - 0x28]
call fcn.00401fe9
push 1
lea ecx, [ebp - 0x28]
pop ebx
mov dword [ebp - 0x28], 0x41a3ec
push 0x41d0f4
call fcn.004025c0
jmp 0x40c7d3
lea ecx, [ebp - 0x18]
call fcn.00401fe9
push 2
mov dword [ebp - 0x18], 0x41a3ec
pop ebx
lea eax, [ebp - 0x18]
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.0040204f
test bl, 2
mov dword [edi], 0x41a3ec
je 0x40c7f4
lea ecx, [ebp - 0x18]
and ebx, 0xfffffffd
call fcn.0040172f
test bl, 1
je 0x40c801
lea ecx, [ebp - 0x28]
call fcn.0040172f
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x40ce40
Capabilities:
Hide graphical window

Disassembly:
push esi
lea esi, [ecx + 4]
push 0
mov ecx, esi
call fcn.0040194e
push dword [esp + 8]
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
Function at 0x40fc5d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and byte [ebp - 0x24], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x23]
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040184c
push dword [esi + 4]
lea eax, [ebp - 0x24]
push 0x14
push eax
push 0x41e75c
push str.LastCheck
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x10
push 0
push dword [ebp + 8]
call fcn.00415790
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.00408dd0
push eax
call fcn.00414654
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004017a8
pop edi
pop esi
leave
ret 4

Function at 0x41162b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0x7f89
mov dword [esi + 4], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0x41a4c8
mov dword [esi + 0x20], 0x41a4c4
push ebx
mov dword [esi], 0x41a928
mov dword [esi + 0x1c], 0x41a924
mov dword [esi + 0x20], 0x41a920
mov dword [esi + 0x7c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push str.AnimateWindow
push 0x41dcf8
mov dword [esi + 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x78], eax
push 0x94
lea eax, [ebp - 0x94]
push ebx
push eax
mov dword [esi + 0x74], ebx
call fcn.00415790
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
lea eax, [esi + 0x80]
mov byte [eax], 1
jb 0x4116ec
mov byte [eax], bl
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x413f0d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0xf0], 0
je 0x413f2b
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x413f9a
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0xf0], 0
jne 0x413f88
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x41e790
call fcn.00408b84
mov edi, eax
mov eax, esi
neg eax
lea ecx, [esi + 0x1c]
sbb eax, eax
and eax, ecx
lea ecx, [edi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00411e4a
mov eax, esi
lea ecx, [esi + 0x20]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [edi + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00411e4a
pop edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
leave
ret 4

Function at 0x414239
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x10]
push esi
push eax
mov ecx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0x41a3dc
call fcn.0041533f
add eax, 0xc
mov eax, dword [eax]
cmp eax, esi
je 0x414275
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0040172f
push 0x5c
inc esi
pop edi
mov dword [ebp + 8], edi
push esi
lea eax, [ebp + 8]
push 1
push eax
mov ecx, ebx
call fcn.00402190
cmp dword [0x41a3f4], eax
je 0x4142fc
lea esi, [eax + 1]
lea ecx, [ebp - 0x10]
push esi
push 0
push ebx
call fcn.0041519a
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x41a3ec
call fcn.0040184c
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4142e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
call fcn.0040184c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4142f4
test al, 0x10
je 0x4142f4
lea ecx, [ebp - 0x10]
call fcn.0040172f
mov dword [ebp + 8], edi
jmp 0x414284
lea ecx, [ebp - 0x10]
call fcn.0040172f
lea ecx, [ebp - 0x20]
call fcn.004017a8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414309
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0x41a950
push 1
push esi
push 0x41a960
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 4], esi
je 0x4143f4
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0040184c
mov eax, dword [ebp - 4]
push dword [edi + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], esi
cmp eax, esi
pop edi
je 0x4143f4
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push 0x41dd58
push eax
call dword [ecx]
cmp dword [ebp + 0xc], esi
je 0x4143e7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.0040204f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x41a3ec
push dword [eax + 0xc]
call fcn.004025c0
cmp word [str..lnk], si
mov ecx, str..lnk
mov eax, ecx
je 0x4143a5
inc eax
inc eax
cmp word [eax], si
jne 0x41439e
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402790
mov eax, dword [ebp + 0xc]
push esi
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x4143d2
mov eax, dword [ebp + 0xc]
push 1
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
lea ecx, [ebp - 0x14]
call fcn.0040172f
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4143e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x4143f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
leave
ret
Function at 0x4179c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41e190
cmp edx, dword [eax]
je 0x4179e3
add eax, 8
inc ecx
cmp eax, 0x41e220
jl 0x4179d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41e190]
jne 0x417b11
mov eax, dword [0x41e860]
cmp eax, 1
je 0x417aeb
test eax, eax
jne 0x417a14
cmp dword [0x41def4], 1
je 0x417aeb
cmp edx, 0xfc
je 0x417b11
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417a4b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418070
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417f70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417a8e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417f70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ae50
push edi
call fcn.00417e30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418070
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418080
lea eax, [ebp - 0xa0]
push 0x41ae30
push eax
call fcn.00418080
push dword [esi + 0x41e194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418080
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00418623
add esp, 0x2c
pop edi
jmp 0x417b11
lea eax, [ebp + 8]
lea esi, [esi + 0x41e194]
push 0
push eax
push dword [esi]
call fcn.00417f70
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 0x4131f1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x413229
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x413217
mov al, 1
jmp 0x41327a
cmp dword [ebx + 0x54], ecx
jne 0x413220
mov al, 2
jmp 0x41327a
cmp dword [ebx + 0x7c], ecx
jne 0x41327a
mov al, 3
jmp 0x41327a
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x41323e
mov al, 4
jmp 0x41327a
cmp ecx, 5
jne 0x41325e
cmp ebx, 0
jne 0x41324c
mov al, 5
jmp 0x41327a
cmp ebx, 1
jne 0x413255
mov al, 6
jmp 0x41327a
cmp ebx, 2
jne 0x41325e
mov al, 7
jmp 0x41327a
cmp ecx, 6
jne 0x41326a
cmp ebx, 0
jne 0x41326c
mov al, 8
jmp 0x41327a
cmp ebx, 1
jne 0x413273
mov al, 9
cmp ebx, 2
jne 0x41327a
mov al, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481810
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x50fb0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004ff21d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x481892
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004fc6a4
mov eax, dword [eax]
push 0x55827c
push eax
call fcn.004ee3f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004ff4a8
test bl, bl
je 0x481892
push 0x55827c
lea ecx, [esp + 0xc]
call fcn.004ff884
push 0x55bf44
lea ecx, [esp + 0xc]
call fcn.004ff884
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4818ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004ff4a8
jmp 0x481999
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x481952
lea edx, [esp + 0x7c]
push 0x55bf40
push edx
call fcn.004ee3f4
add esp, 8
test eax, eax
je 0x481952
lea eax, [esp + 0x7c]
push 0x55bf3c
push eax
call fcn.004ee3f4
add esp, 8
test eax, eax
je 0x481952
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4818e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004ff4a8
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x482190
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4821f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc