joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4087fc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4130
call fcn.00415ed0
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 0x408981
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 0x408978
cmp dword [ebp - 0xc], ebx
je 0x408978
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 0x408968
mov esi, 0x41e5f8
cmp byte [ebp - 1], bl
jne 0x408968
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.0040224e
cmp word [0x41e5f8], bx
mov dword [ebp - 0x28], 0x41b3dc
mov eax, esi
je 0x40890d
inc eax
inc eax
cmp word [eax], bx
jne 0x408906
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
push ebx
call fcn.00409728
cmp word [0x41e5f8], bx
mov eax, esi
je 0x40892e
inc eax
inc eax
cmp word [eax], bx
jne 0x408927
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
call fcn.004029f5
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.0040d38a
pop ecx
test al, al
pop ecx
je 0x408956
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x28]
call fcn.00401672
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x4088a0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
jmp 0x408983
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ebx
leave
ret

Function at 0x40cd08
Capabilities:
Check os version
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jae 0x40cd83
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x804
jne 0x40cd44
push 0x41e098
jmp 0x40cd6e
cmp ax, 0x404
jne 0x40cd51
push 0x41e090
jmp 0x40cd6e
and eax, 0xff
cmp ax, 0x11
jne 0x40cd63
push str.MS_UI_Gothic
jmp 0x40cd6e
cmp ax, 0x12
jne 0x40cd83
push 0x41e078
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
mov word [eax], 9
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x40cd87
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
call fcn.00409912
mov edi, dword [ebp + 8]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor esi, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
mov dword [ebp - 4], esi
mov dword [ebp + 8], esi
mov dword [ebp - 8], esi
je 0x40cdcd
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
push ebx
push dword [ebp + 0xc]
push edi
call fcn.0040dedf
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
je 0x40ce46
push ebx
lea ecx, [ebp - 0x18]
call fcn.00415b94
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x40ce00
cmp byte [eax], 0
je 0x40ce00
push dword [ebp + 0x20]
lea ecx, [ebp - 0x18]
push eax
call fcn.00415d3f
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.0040ce63
pop ecx
mov esi, eax
pop ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
cmp esi, ebx
mov dword [ebp - 8], eax
je 0x40ce3c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x18]
call fcn.00415c23
xor esi, esi
cmp dword [ebp + 8], esi
pop ebx
je 0x40ce5a
cmp dword [ebp - 0xc], esi
je 0x40ce5a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x1c

Function at 0x40d206
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 0x40d275
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40d275
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40d275
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 0x40d2a5
lea ecx, [ebp - 0x28]
call fcn.0040224e
push 1
lea ecx, [ebp - 0x28]
pop ebx
mov dword [ebp - 0x28], 0x41b3dc
push 0x41e118
call fcn.00402825
jmp 0x40d2ba
lea ecx, [ebp - 0x18]
call fcn.0040224e
push 2
mov dword [ebp - 0x18], 0x41b3dc
pop ebx
lea eax, [ebp - 0x18]
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.004022b4
test bl, 2
mov dword [edi], 0x41b3dc
je 0x40d2db
lea ecx, [ebp - 0x18]
and ebx, 0xfffffffd
call fcn.00401672
test bl, 1
je 0x40d2e8
lea ecx, [ebp - 0x28]
call fcn.00401672
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x40da8f
Capabilities:
Hide graphical window

Disassembly:
push esi
lea esi, [ecx + 4]
push 0
mov ecx, esi
call fcn.00401b09
push dword [esp + 8]
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4

Function at 0x40db59
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x40dbad
and byte [ebp - 0xc8], 0
push edi
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0xc7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc8]
push 0xc8
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0xc8]
push 0
push eax
lea ecx, [esi + 0x58]
push dword [ebp + 8]
call fcn.0040dc00
pop edi
xor eax, eax
pop esi
leave
ret 4

Function at 0x40dcdc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0
mov ebx, 0x130b
mov edi, ecx
push 0
push ebx
push dword [edi]
call esi
cmp eax, dword [ebp + 8]
je 0x40dd50
push 0
push 0
push ebx
mov dword [ebp - 0x1c], 8
push dword [edi]
call esi
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 0x1305
push dword [edi]
call esi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp - 4]
call ebx
push 0
push dword [ebp + 8]
push 0x130c
push dword [edi]
call esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push 0x1305
push dword [edi]
call esi
push 5
push dword [ebp - 4]
call ebx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40dedf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40df02
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40df05
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
ret
Function at 0x410b85
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.0040185e
push dword [esi + 4]
lea eax, [ebp - 0x24]
push 0x14
push eax
push 0x421914
push str.LastCheck
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x10
push 0
push dword [ebp + 8]
call fcn.00415e70
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.004090b3
push eax
call fcn.004151ba
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00401701
pop edi
pop esi
leave
ret 4

Function at 0x41224c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, ecx
call fcn.00412a93
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x50], 0x41b4b8
push 0x7f89
mov dword [esi + 0x54], 0x41b4b4
push ebx
mov dword [esi], 0x41b914
mov dword [esi + 0x50], 0x41b910
mov dword [esi + 0x54], 0x41b90c
mov dword [esi + 0xb0], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push str.AnimateWindow
push 0x41ed58
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xac], eax
push 0x94
lea eax, [ebp - 0x94]
push ebx
push eax
mov dword [esi + 0xa8], ebx
call fcn.00415e70
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 + 0xb4]
mov byte [eax], 1
jb 0x412318
mov byte [eax], bl
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x413ac9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
cmp dword [eax + 0x1c], 8
mov esi, ecx
jne 0x413cd2
mov ecx, dword [eax + 0x18]
cmp ecx, dword [eax + 0x14]
je 0x413cd2
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x1032
push dword [esi + 0x58]
call edi
cmp eax, 1
jg 0x413cd2
je 0x413b7d
lea edi, [esi + 0x18c]
mov ecx, edi
call fcn.0040185e
mov eax, dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f9
mov dword [ebp + 0xc], eax
push dword [esi + 4]
call edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
push dword [esi + 0x80]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3e8
push dword [esi + 4]
call edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0x3e9
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 0x3fa
push dword [esi + 4]
call edi
push 0
push eax
call ebx
jmp 0x413cd2
mov eax, dword [ebp + 0xc]
push 2
mov eax, dword [eax + 0xc]
push eax
push 0x102c
push dword [esi + 0x58]
call edi
cmp eax, 2
jne 0x413cd2
push eax
push 0xffffffffffffffff
push 0x100c
push dword [esi + 0x58]
call edi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push 0x1005
mov dword [ebp - 0x34], ebx
push dword [esi + 0x58]
mov dword [ebp - 0x3c], 4
call edi
mov eax, dword [ebp - 0x1c]
lea edi, [eax + 0x30]
mov ecx, edi
call fcn.0040185e
mov eax, dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f9
mov dword [ebp + 0xc], eax
push dword [esi + 4]
call edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x4c]
cmp eax, ebx
je 0x413c12
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x413c12
push 5
push dword [esi + 0x80]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [ebp - 1], 0
and byte [ebp + 0xf], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 8], ebx
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], 0x41b3d8
mov ecx, dword [eax + 0x68]
push 0xf
call fcn.004030b0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x60], 1
jne 0x413c74
push 0x41e688
lea ecx, [ebp - 0x14]
mov byte [ebp - 1], 1
mov byte [ebp + 0xf], 1
call fcn.00404719
test al, al
jne 0x413c6e
push 0x41e684
lea ecx, [ebp - 0x14]
call fcn.00404719
test al, al
je 0x413c89
and byte [ebp + 0xf], 0
jmp 0x413c89
push 0x41e1c8
lea ecx, [ebp - 0x14]
call fcn.00404719
test al, al
je 0x413c89
mov byte [ebp + 0xf], 1
push 0x3e9
push dword [esi + 4]
call edi
xor ecx, ecx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [ebp + 0xf], cl
setne cl
push ecx
push eax
call ebx
push 0x3e8
push dword [esi + 4]
call edi
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
push ecx
push eax
call ebx
push 0x3fa
push dword [esi + 4]
call edi
push 1
push eax
call ebx
lea ecx, [ebp - 0x14]
call fcn.00401701
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x414a9b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and byte [ebp - 0x40], 0
push ebx
push esi
push edi
mov esi, ecx
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x3f]
push 0
rep stosd dword es:[edi], eax
mov ebx, 0x101d
push 1
push ebx
push dword [esi + 0x58]
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
push 0
push 2
push ebx
mov dword [ebp - 0xc], eax
push dword [esi + 0x58]
call edi
push 0
push 3
push ebx
mov dword [ebp - 8], eax
push dword [esi + 0x58]
call edi
push 0
push 4
push ebx
mov dword [ebp - 4], eax
push dword [esi + 0x58]
call edi
push eax
lea eax, [ebp - 0x40]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push str._04lu_04lu_04lu_04lu
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x40]
push eax
lea eax, [esi + 0x1a1]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x414b46
mov ecx, 0x421938
call fcn.0040185e
push dword [0x42193c]
lea eax, [ebp - 0x40]
push eax
push str.ColumnWidth
push str.General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp byte [esi + 0x124], 0
lea edi, [esi + 0x124]
je 0x414b63
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x414bcc
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [edi], 0
jne 0x414bba
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x421948
call fcn.00408e78
mov edi, eax
mov eax, esi
neg eax
lea ecx, [esi + 0x50]
sbb eax, eax
and eax, ecx
lea ecx, [edi + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040ddac
mov eax, esi
lea ecx, [esi + 0x54]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [edi + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040ddac
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414d9f
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], 0x41b3d8
call fcn.00415ace
add eax, 0xc
mov eax, dword [eax]
cmp eax, esi
je 0x414ddb
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00401672
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.004023f5
cmp dword [0x41b3e4], eax
je 0x414e62
lea esi, [eax + 1]
lea ecx, [ebp - 0x10]
push esi
push 0
push ebx
call fcn.00415953
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x41b3dc
call fcn.0040185e
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x414e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
call fcn.0040185e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414e5a
test al, 0x10
je 0x414e5a
lea ecx, [ebp - 0x10]
call fcn.00401672
mov dword [ebp + 8], edi
jmp 0x414dea
lea ecx, [ebp - 0x10]
call fcn.00401672
lea ecx, [ebp - 0x20]
call fcn.00401701
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414e6f
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 0x41b938
push 1
push esi
push 0x41b948
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 4], esi
je 0x414f5a
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0040185e
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 0x414f5a
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push 0x41edd0
push eax
call dword [ecx]
cmp dword [ebp + 0xc], esi
je 0x414f4d
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.004022b4
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x41b3dc
push dword [eax + 0xc]
call fcn.00402825
cmp word [str..lnk], si
mov ecx, str..lnk
mov eax, ecx
je 0x414f0b
inc eax
inc eax
cmp word [eax], si
jne 0x414f04
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004029f5
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 0x414f38
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.00401672
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x414f4d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x414f5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
leave
ret
Function at 0x41910f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4211e8
cmp edx, dword [eax]
je 0x419131
add eax, 8
inc ecx
cmp eax, 0x421278
jl 0x419122
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4211e8]
jne 0x41925f
mov eax, dword [0x421a18]
cmp eax, 1
je 0x419239
test eax, eax
jne 0x419162
cmp dword [0x41ef24], 1
je 0x419239
cmp edx, 0xfc
je 0x41925f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419199
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419730
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419630
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4191dc
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419630
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41bedc
push edi
call fcn.004194f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419730
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419740
lea eax, [ebp - 0xa0]
push 0x41bebc
push eax
call fcn.00419740
push dword [esi + 0x4211ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419740
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a103
add esp, 0x2c
pop edi
jmp 0x41925f
lea eax, [ebp + 8]
lea esi, [esi + 0x4211ec]
push 0
push eax
push dword [esi]
call fcn.00419630
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 0x8ddee0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8ddee6
pop ebp
sub ebp, 6
sub ebp, 0x4ddee0
jmp 0x8ddf44
jmp 0x8ddf4d
mov eax, 0x4ddee0
add eax, ebp
add eax, 0x93
mov ecx, 0x615
mov edx, 0x36eecd07
xor byte [eax], dl
inc eax
dec ecx
jne 0x8ddf64
jmp 0x8ddf77
insd dword es:[edi], dx
inc edi
outsd dx, dword [esi]
pop es
pop ss
pop es
pop es
outsd dx, dword [esi]
pop es
retf
Function at 0x4011a2
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3ff
push 0x40b6b0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4011e5
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
push 0x40b6b0
call section..text
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x40b6b0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xac], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
cmp dword [ebp - 0xac], 0xffffffff
je 0x4013bf
push 2
push 0
push 0xfffffffffffffff0
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 8]
push eax
push 4
push 0x40bab8
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
push dword [ebp - 0xc]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [0x40bab8]
push str._d__d__d__d
lea eax, [ebp - 0x8c]
push eax
call fcn.0040378b
add esp, 0x18
cmp dword [ebp - 0xc], 0x221c
jne 0x401379
mov eax, dword [ebp - 0x94]
mov dword [0x40500c], eax
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [ebp - 0x98]
mov dword [0x405008], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
jmp 0x401395
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
jmp 0x4013ec
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
leave
ret