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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4130
call fcn.0041cd70
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 0x40b8da
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 0x40b8d1
cmp dword [ebp - 0xc], ebx
je 0x40b8d1
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 0x40b8c1
mov esi, 0x425710
cmp byte [ebp - 1], bl
jne 0x40b8c1
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.004022f5
cmp word [0x425710], bx
mov dword [ebp - 0x28], 0x422424
mov eax, esi
je 0x40b866
inc eax
inc eax
cmp word [eax], bx
jne 0x40b85f
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
push ebx
call fcn.0040cc9a
cmp word [0x425710], bx
mov eax, esi
je 0x40b887
inc eax
inc eax
cmp word [eax], bx
jne 0x40b880
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
call fcn.00402a9c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.00410ad0
pop ecx
test al, al
pop ecx
je 0x40b8af
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x28]
call fcn.0040166e
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x40b7f9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
jmp 0x40b8dc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ebx
leave
ret
Function at 0x40bcf8
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd35
lea ecx, [ebp - 4]
call fcn.0040beae
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push 0x64
mov edi, 0x422420
pop eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], esi
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], edi
call fcn.0040cd38
lea ecx, [ebp - 0x3c]
call fcn.004016d3
lea ecx, [ebp - 0xc]
mov ebx, str.ISUSPM_Startup
push ecx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x3c]
call fcn.0040665c
cmp dword [ebp - 0x20], esi
je 0x40be97
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40be97
mov ecx, dword [ebp + 8]
push 1
push 1
push esi
push str.bootstrap
call fcn.00409ac4
test al, al
jne 0x40be97
push dword [0x428cc4]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 1
push 0x22
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], edi
call fcn.0040c645
cmp word [str.___startup], si
mov eax, str.___startup
mov ecx, eax
je 0x40bdf5
inc ecx
inc ecx
cmp word [ecx], si
jne 0x40bdee
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040195c
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00405442
test eax, eax
je 0x40be75
cmp dword [ebp - 4], esi
je 0x40be24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40be53
lea ecx, [ebp - 4]
call fcn.0040beae
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1c]
call fcn.00401876
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x1c]
call fcn.004016fd
lea ecx, [ebp - 0x2c]
call fcn.004016fd
cmp dword [ebp - 4], esi
je 0x40be93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40bea9
lea ecx, [ebp - 0x2c]
call fcn.004016fd
lea ecx, [ebp - 4]
call fcn.0040beae
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4101a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
call fcn.0040ce1a
mov edi, dword [ebp + 8]
push pe_nt_image_headers32
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 0x4101e9
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.00417ea7
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
je 0x410262
push ebx
lea ecx, [ebp - 0x18]
call fcn.0041ca36
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x41021c
cmp byte [eax], 0
je 0x41021c
push dword [ebp + 0x20]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041cbe1
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.0041027f
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 0x410258
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x18]
call fcn.0041cac5
xor esi, esi
cmp dword [ebp + 8], esi
pop ebx
je 0x410276
cmp dword [ebp - 0xc], esi
je 0x410276
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 0x41063a
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 0x4106a9
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4106a9
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4106a9
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 0x4106d9
lea ecx, [ebp - 0x28]
call fcn.004022f5
push 1
lea ecx, [ebp - 0x28]
pop ebx
mov dword [ebp - 0x28], 0x422424
push 0x425128
call fcn.004028cc
jmp 0x4106ee
lea ecx, [ebp - 0x18]
call fcn.004022f5
push 2
mov dword [ebp - 0x18], 0x422424
pop ebx
lea eax, [ebp - 0x18]
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.0040235b
test bl, 2
mov dword [edi], 0x422424
je 0x41070f
lea ecx, [ebp - 0x18]
and ebx, 0xfffffffd
call fcn.0040166e
test bl, 1
je 0x41071c
lea ecx, [ebp - 0x28]
call fcn.0040166e
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x411973
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
neg esi
lea eax, [ecx - 0x50]
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x4119b6
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x4119a7
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4119bc
cmp dword [ebp + 0xc], 0
jne 0x4119b6
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x4119d3
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x50]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0x10]
push eax
call fcn.004119da
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x412e09
Capabilities:
Capture webcam image

Disassembly:
push ebp
xor ebp, ebp
cmp word [esp + 8], bp
push esi
push edi
mov esi, ecx
jne 0x412e64
push ebx
push 0x419
mov byte [esi + 0x7c], 1
call fcn.00413161
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
mov ebx, 0x147
push ebp
push ebx
push dword [esi + 0x70]
call edi
cmp eax, 0xffffffff
jne 0x412e4a
push ebp
push ebp
push 0x14e
push dword [esi + 0x70]
call edi
push ebp
push ebp
push ebx
push dword [esi + 0x6c]
call edi
cmp eax, 0xffffffff
pop ebx
jne 0x412e64
push ebp
push ebp
push 0x14e
push dword [esi + 0x6c]
call edi
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
Function at 0x4141df
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.00401876
push dword [esi + 4]
lea eax, [ebp - 0x24]
push 0x14
push eax
push 0x428bc4
push 0x425c18
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x10
push 0
push dword [ebp + 8]
call fcn.0041cd10
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.00408259
push eax
call fcn.0041be5d
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004016fd
pop edi
pop esi
leave
ret 4
Function at 0x416a71
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.00401876
push dword [esi + 4]
lea eax, [ebp - 0x24]
push 0x14
push eax
push 0x428bc4
push str.LastCheck
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x10
push 0
push dword [ebp + 8]
call fcn.0041cd10
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.00408259
push eax
call fcn.0041be5d
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004016fd
pop edi
pop esi
leave
ret 4

Function at 0x416e57
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x428c18
call fcn.0040c358
mov edi, eax
mov eax, esi
neg eax
lea ecx, [esi + 0x7c]
sbb eax, eax
and eax, ecx
lea ecx, [edi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00416f1e
mov eax, esi
lea ecx, [esi + 0x80]
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.00416f1e
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
leave
ret 4

Function at 0x417ea7
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 0x417eca
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x417ecd
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
ret

Function at 0x418696
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, ecx
call fcn.00418df3
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x50], 0x4224e4
push 0x7f89
mov dword [esi + 0x54], 0x4224e0
push ebx
mov dword [esi], 0x422a10
mov dword [esi + 0x50], 0x422a0c
mov dword [esi + 0x54], 0x422a08
mov dword [esi + 0x74], eax
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push str.AnimateWindow
push 0x426028
mov dword [esi + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x70], eax
push 0x94
lea eax, [ebp - 0x94]
push ebx
push eax
mov dword [esi + 0x6c], ebx
call fcn.0041cd10
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
mov byte [esi + 0x78], 1
jb 0x418743
mov byte [esi + 0x78], bl
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x419f16
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 0x41a11f
mov ecx, dword [eax + 0x18]
cmp ecx, dword [eax + 0x14]
je 0x41a11f
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x1032
push dword [esi + 0x78]
call edi
cmp eax, 1
jg 0x41a11f
je 0x419fca
lea edi, [esi + 0x1ac]
mov ecx, edi
call fcn.00401876
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 + 0xa0]
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 0x41a11f
mov eax, dword [ebp + 0xc]
push 2
mov eax, dword [eax + 0xc]
push eax
push 0x102c
push dword [esi + 0x78]
call edi
cmp eax, 2
jne 0x41a11f
push eax
push 0xffffffffffffffff
push 0x100c
push dword [esi + 0x78]
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 + 0x78]
mov dword [ebp - 0x3c], 4
call edi
mov eax, dword [ebp - 0x1c]
lea edi, [eax + 0x30]
mov ecx, edi
call fcn.00401876
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 0x41a05f
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x41a05f
push 5
push dword [esi + 0xa0]
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], 0x422420
mov ecx, dword [eax + 0x68]
push 0xf
call fcn.0040313b
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x60], 1
jne 0x41a0c1
push 0x425818
lea ecx, [ebp - 0x14]
mov byte [ebp - 1], 1
mov byte [ebp + 0xf], 1
call fcn.004049ee
test al, al
jne 0x41a0bb
push 0x425814
lea ecx, [ebp - 0x14]
call fcn.004049ee
test al, al
je 0x41a0d6
and byte [ebp + 0xf], 0
jmp 0x41a0d6
push 0x4251d8
lea ecx, [ebp - 0x14]
call fcn.004049ee
test al, al
je 0x41a0d6
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.004016fd
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x41b140
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 + 0x78]
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 + 0x78]
call edi
push 0
push 3
push ebx
mov dword [ebp - 8], eax
push dword [esi + 0x78]
call edi
push 0
push 4
push ebx
mov dword [ebp - 4], eax
push dword [esi + 0x78]
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 + 0x1c1]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41b1eb
mov ecx, 0x428ca8
call fcn.00401876
push dword [0x428cac]
lea eax, [ebp - 0x40]
push eax
push str.ColumnWidth
push str.General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp byte [esi + 0x144], 0
lea edi, [esi + 0x144]
je 0x41b208
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x41b271
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [edi], 0
jne 0x41b25f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x428c18
call fcn.0040c358
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.00416f1e
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.00416f1e
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 0x41b6a4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
neg esi
lea eax, [ecx - 0x58]
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x41b6e7
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x41b6d8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41b6ed
cmp dword [ebp + 0xc], 0
jne 0x41b6e7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x41b704
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x58]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0x10]
push eax
call fcn.0041b77b
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x41ba0b
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], 0x422420
call fcn.0041c970
add eax, 0xc
mov eax, dword [eax]
cmp eax, esi
je 0x41ba47
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0040166e
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.0040249c
cmp dword [0x42242c], eax
je 0x41bace
lea esi, [eax + 1]
lea ecx, [ebp - 0x10]
push esi
push 0
push ebx
call fcn.004108a4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x422424
call fcn.00401876
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41bab9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
call fcn.00401876
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41bac6
test al, 0x10
je 0x41bac6
lea ecx, [ebp - 0x10]
call fcn.0040166e
mov dword [ebp + 8], edi
jmp 0x41ba56
lea ecx, [ebp - 0x10]
call fcn.0040166e
lea ecx, [ebp - 0x20]
call fcn.004016fd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41badb
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 0x422ab0
push 1
push esi
push 0x422ac0
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 4], esi
je 0x41bbc6
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.00401876
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 0x41bbc6
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push 0x426088
push eax
call dword [ecx]
cmp dword [ebp + 0xc], esi
je 0x41bbb9
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.0040235b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x422424
push dword [eax + 0xc]
call fcn.004028cc
cmp word [str..lnk], si
mov ecx, str..lnk
mov eax, ecx
je 0x41bb77
inc eax
inc eax
cmp word [eax], si
jne 0x41bb70
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402a9c
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 0x41bba4
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.0040166e
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x41bbb9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x41bbc6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
leave
ret