joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bfe4
Capabilities:
Get common file path
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x1358]
mov eax, 0x13d8
call fcn.00416300
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x1354], eax
push ebx
mov ebx, dword [ebp + 0x1364]
push esi
push edi
mov edi, dword [ebp + 0x1360]
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004140e0
lea eax, [ebp - 0x44]
add esp, 0xc
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0xfbc]
push eax
push 0x1cc
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x50], 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40c0b3
lea eax, [ebp - 0x80]
push eax
push 0x80000000
push 0
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40c098
push dword [ebp - 0x54]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push esi
call fcn.004104e9
pop ecx
test eax, eax
jne 0x40c098
mov eax, dword [ebp - 0x54]
add eax, 2
cmp esi, eax
je 0x40c098
push esi
lea eax, [ebp + 0xfbc]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x40c098
xor eax, eax
inc eax
jmp 0x40c0b3
push ebx
push 0
push 0x424538
lea eax, [ebp + 0xfbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1354]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x1358
leave
ret 8
Function at 0x40d7bb
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fa8]
mov eax, 0x2028
call fcn.00416300
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x1fa4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor ebx, ebx
push ebx
mov edi, 0x80
push edi
push 2
push ebx
push 1
push 0x40000000
push str.C:DOCUME1TommyLOCALS1TempJustin_Timberlake___Mirrors_2013_Pop__M4A_MP3___P2PDL_.8130409.TPB.torrent
mov dword [ebp - 0x64], ecx
call esi
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x40d8e7
mov eax, dword [ebp - 0x64]
add eax, 0x230
push eax
mov dword [ebp - 0x64], eax
mov eax, dword [eax + 0x14]
push dword [eax]
lea ecx, [ebp - 0x74]
call fcn.0040cd6b
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
push eax
push dword [eax + 0x14]
jmp 0x40d8c2
lea ecx, [ebp - 0x6c]
call fcn.0040cd02
push ebx
push edi
push 3
push ebx
push 1
push 0x80000000
add eax, 0x22
push eax
call esi
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x40d8b3
push ebx
lea eax, [ebp - 0x60]
push eax
push 0x2000
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x60], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x60], ebx
jbe 0x40d898
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x60], ebx
ja 0x40d85f
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.0040cd02
add eax, 0x22
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x6c]
call fcn.0040c4fb
mov eax, dword [ebp - 0x64]
push eax
push dword [eax + 0x14]
lea ecx, [ebp - 0x74]
call fcn.0040cd6b
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040c4a5
test al, al
je 0x40d83d
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1fa4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x1fa8
leave
ret
Function at 0x40f197
Capabilities:
Create thread

Disassembly:
push 0x58
mov eax, 0x42258f
call fcn.0041677a
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp dword [esi + 4], ebx
je 0x40f1bf
xor eax, eax
jmp 0x40f2e7
push eax
lea ecx, [ebp - 0x48]
call fcn.0040e03d
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x210]
push eax
mov dword [ebp - 4], ebx
call fcn.0040dd4f
or dword [ebp - 4], 0xffffffff
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x48]
call fcn.0040d203
lea eax, [esi + 0x210]
mov ecx, dword [eax + 0x18]
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040cd6b
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c4a5
test al, al
je 0x40f1b8
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.0040e03d
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x210]
mov dword [ebp - 4], edi
call fcn.0040f083
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x48]
mov dword [eax], ebx
call fcn.0040d203
push dword [ebp - 0x14]
lea ecx, [ebp - 0x64]
call fcn.0040e03d
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 0x210]
mov dword [ebp - 4], 2
call fcn.0040f083
push ebx
push edi
lea ecx, [ebp - 0x64]
mov dword [esi + 0x24c], eax
call fcn.0040d203
push dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [0x43053c], ebx
mov dword [0x43054c], ebx
mov dword [0x430520], edi
push str.http:__piratebaydownload.co_8130409_Justin_Timberlake___Mirrors_2013_Pop__M4A_MP3___P2PDL_.8130409.TPB.torrent
mov dword [esi + 0x250], eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov dword [0x42e800], 0x1e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x430544], eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
push 0x40ed08
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp eax, ebx
mov eax, edi
jne 0x40f2e7
mov dword [0x430520], 0x14
mov byte [0x430960], bl
call fcn.004167c4
ret 0xc
Function at 0x40f42f
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1d4]
sub esp, 0x254
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x1d0], eax
mov eax, dword [ebp + 0x1dc]
push ebx
mov ebx, dword [ebp + 0x1e0]
push esi
push edi
mov edi, dword [ebp + 0x1e4]
push edi
mov esi, ecx
mov dword [ebp - 0x3c], eax
call fcn.00416cec
push edi
push ebx
lea eax, [ebp - 0x38]
push 0x4247b4
push eax
call fcn.0040b236
push esi
call fcn.0041389f
push 0x40
xor edi, edi
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.004140e0
add esp, 0x24
xor eax, eax
inc eax
mov ecx, eax
mov word [ebp - 0x50], cx
lea ebx, [esi + 0x14]
push ebx
lea ecx, [ebp - 0x80]
push ecx
push edi
push edi
push 0x20
push eax
push edi
mov dword [ebp - 0x54], eax
push edi
lea eax, [ebp - 0x38]
push eax
push edi
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40f4df
push 0x3e8
push dword [ebx]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x3c]
lea ecx, [esi + 0x24]
call fcn.00406935
xor eax, eax
inc eax
jmp 0x40f4e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp + 0x1d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x1d4
leave
ret 0xc
Function at 0x40f8c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [esp + 8]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
pop esi
ret 4

Function at 0x40fa08
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x918]
sub esp, 0x998
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x914], eax
push esi
mov esi, dword [ebp + 0x920]
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40faa3
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40fa69
cmp dword [ebp - 0x5c], 0
mov eax, 0x424850
jne 0x40fa6e
mov eax, 0x424848
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
lea eax, [ebp + 0xc4]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push str._d._d._d__s__sbit
push 0x428
push eax
call fcn.0040f97d
add esp, 0x20
lea eax, [ebp + 0xc4]
push eax
mov ecx, esi
call fcn.00406977
mov ecx, dword [ebp + 0x914]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004144c5
add ebp, 0x918
leave
ret 4

Function at 0x40fbbb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x300
lea ebp, [esp - 4]
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x300], eax
push 0x14
mov eax, 0x422610
call fcn.00416711
mov esi, dword [ebp + 0x30c]
mov eax, dword [ebp + 0x310]
mov ebx, dword [ebp + 0x314]
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea ecx, [ebp]
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], 0x100
mov dword [ebp - 0x10], edi
call fcn.0040f501
pop ecx
cmp eax, edi
jne 0x40fc43
lea ecx, [ebp - 0x18]
call fcn.004019cd
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x300]
xor ecx, ebp
call fcn.004144c5
add ebp, 0x304
leave
ret 0xc
push 0x2001f
lea ecx, [ebp]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401a42
test eax, eax
jne 0x40fcce
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x200]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fcce
mov eax, dword [ebp - 0x1c]
dec eax
je 0x40fc98
sub eax, 3
jne 0x40fcce
push 0x16
push edi
push esi
push esi
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov eax, dword [ebp + 0x200]
mov dword [esi + 8], eax
jmp 0x40fcc7
push 8
push edi
push esi
push esi
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
lea eax, [ebp + 0x200]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040251f
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040f93b
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x10], 1
mov edi, dword [ebp - 0x10]
jmp 0x40fc14
Function at 0x40fcd6
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x21c]
sub esp, 0x29c
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x218], eax
push esi
mov esi, dword [ebp + 0x224]
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x58], edi
cmp edi, 0xffffffff
jne 0x40fd13
xor eax, eax
jmp 0x40fe08
lea eax, [ebp - 0x54]
push eax
push edi
mov dword [ebp - 0x54], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40fd31
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fd0c
push str._processes__n
mov ecx, esi
call fcn.0040f91f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push str._process_
mov ecx, esi
call fcn.0040f91f
push str._name_
mov ecx, esi
call fcn.0040f91f
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.0040f91f
push str.__name_
mov ecx, esi
call fcn.0040f91f
push dword [ebp - 0x4c]
push 0
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40fdcd
push 0x28
lea eax, [ebp - 0x80]
push eax
push ebx
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x40fdc8
mov eax, dword [ebp - 0x74]
shr eax, 0xa
push eax
push str._memory__d__memory_
lea eax, [ebp + 0x1d8]
push 0x40
push eax
call fcn.0040f97d
add esp, 0x10
test eax, eax
jl 0x40fdc8
lea eax, [ebp + 0x1d8]
push eax
mov ecx, esi
call fcn.0040f91f
push ebx
call edi
jmp 0x40fdd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.__process_
mov ecx, esi
call fcn.0040f91f
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x58]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40fd44
push dword [ebp - 0x58]
call edi
push str.__processes__n
mov ecx, esi
call fcn.0040f91f
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp + 0x218]
pop edi
xor ecx, ebp
pop esi
call fcn.004144c5
add ebp, 0x21c
leave
ret 4
Function at 0x4100e9
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x422650
call fcn.00416711
mov edi, ecx
mov eax, dword [ebp + 0x218]
mov esi, dword [ebp + 0x214]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x21c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x224]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
mov dword [ebp - 4], ebx
call fcn.0040251f
mov ecx, edi
call fcn.0040f8c0
cmp eax, ebx
je 0x410281
lea eax, [ebp - 0x10]
push eax
push 0x424814
push 0x17
push ebx
push 0x42580c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x10]
jl 0x410284
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x220], ebx
jle 0x4101c3
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0040ff49
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x18]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
or edx, 0x2000
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4101c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x28]
lea eax, [ebp]
push dword [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call fcn.00416cec
pop ecx
test eax, eax
ja 0x4101f7
push str..lnk
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410211
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x44]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0040ff68
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 1
lea edx, [ebp]
push edx
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x18]
test eax, eax
mov eax, dword [ebp - 0x14]
jl 0x410274
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x1c]
push ebx
push ebx
push ebx
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x41025e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x41026f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x410294
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x410281
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x410292
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004144c5
add ebp, 0x20c
leave
ret 0x14
Function at 0x4102b9
Capabilities:
Get mac address on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x160
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
lea eax, [ebp + 0x20]
xor ebx, ebx
push eax
push ebx
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x20], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
je 0x4102ed
xor eax, eax
jmp 0x4103cc
push esi
push dword [ebp + 0x20]
call fcn.004144df
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4103c8
lea eax, [ebp + 0x20]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4103c1
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
movzx ebx, byte [esi + 0x195]
push edi
movzx edi, byte [esi + 0x196]
push eax
push ecx
push edx
push edi
push ebx
movzx ebx, byte [esi + 0x194]
push ebx
push eax
movzx eax, byte [esi + 0x195]
push ecx
push edx
push edi
push eax
push ebx
lea eax, [ebp + 0x54]
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call fcn.004173de
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00413949
add esp, 0x40
test eax, eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xe8], eax
push 3
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0xe8]
setg bl
call fcn.004046e7
push dword [ebp - 0xe8]
mov eax, dword [ebp + 0x1c]
add eax, 0x2ca
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0xe4]
pop edi
cmp dword [ebp - 0xe8], eax
je 0x4103c1
push dword [ebp - 0xe8]
call fcn.0041457b
pop ecx
push esi
call fcn.004144d4
pop ecx
movzx eax, bl
pop esi
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x78
leave
ret

Function at 0x4103dc
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0x20
mov eax, 0x422688
call fcn.00416711
mov esi, ecx
xor eax, eax
push str._APPDATA_
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x2c], ax
call fcn.00406977
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040fe21
push dword [ebp - 0x14]
lea eax, [ebp + 0x410]
push str._sMozillaFirefoxprofiles.ini
push eax
call fcn.0040b236
add esp, 0xc
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4104a1
lea eax, [ebp + 0x410]
push eax
push 0x104
lea eax, [ebp + 0x208]
push eax
push 0x424538
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x14]
lea eax, [ebp]
push str._sMozillaFirefox_sprefs.js
push eax
call fcn.0040b236
add esp, 0x10
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.004144c5
add ebp, 0x61c
leave
ret 4
Function at 0x411269
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 0xc], 0x203
push esi
mov esi, ecx
jne 0x411293
push 0
push 0
call fcn.00410a0e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10
Function at 0x4136ed
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov eax, dword [esp + 4]
add eax, 0x10
push eax
push 0
push 0
push 0x8003
push dword [0x43096c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
ret

Function at 0x4137a3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
mov edi, dword [ebp + 8]
push 0x425774
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x413890
test byte [ebp - 0x664], 0x10
je 0x413858
push 0x425770
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x413858
push 0x425768
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x413858
cmp dword [ebp + 0x10], 1
jae 0x413858
lea eax, [ebp - 0x638]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
call esi
mov eax, dword [ebp + 0x10]
inc eax
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.004137a3
add esp, 0xc
lea eax, [ebp - 0x638]
push eax
call fcn.00416cec
push eax
lea eax, [ebp - 0x638]
push eax
push edi
call fcn.0041370b
add esp, 0x10
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4137f7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c5
leave
ret

Function at 0x41389f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
mov ebx, dword [ebp + 0x1a4]
mov dword [ebp - 0x80], 0x16
mov dword [ebp - 0x7c], 0xb
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x74], 0x26
call fcn.00413759
test eax, eax
je 0x413933
push esi
push edi
push 0x14
xor esi, esi
push esi
push ebx
call fcn.004140e0
push ebx
call fcn.004136ed
add esp, 0x10
xor edi, edi
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push dword [ebp + edi*4 - 0x80]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x413921
push esi
lea eax, [ebp - 0x70]
push eax
push ebx
call fcn.004137a3
add esp, 0xc
inc edi
cmp edi, 0x10
jb 0x4138fe
push ebx
call fcn.00413723
pop ecx
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x19c
leave
ret
Function at 0x413bc7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x430970], 0
push esi
jne 0x413b3a
call fcn.00413a60
test eax, eax
je 0x413b7d
mov eax, dword [0x430970]
cmp eax, 1
jne 0x413b5b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x413b7d
pop esi
ret
push eax
call dword [0x430978]
test eax, eax
jne 0x413bc5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x413b81
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x430970]
call dword [0x430978]
mov edi, eax
test edi, edi
je 0x413ba6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x413bc2
mov edi, esi
add esi, 0xff0
push edi
push dword [0x430970]
call dword [0x430974]
add edi, 0x10
cmp edi, esi
jb 0x413bae
mov eax, edi
pop edi
pop esi
ret
jmp 0x413b27

Function at 0x4144c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ea70]
jne 0x4144cf
repz ret
jmp fcn.00417c5a

Function at 0x41e974
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00419537
and dword [ebp - 4], 0
cmp dword [0x4314c0], 0
mov ebx, eax
jne 0x41ea25
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ead6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41ead6
push eax
call fcn.004194c5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4314c0], eax
call esi
push eax
call fcn.004194c5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4314c4], eax
call esi
push eax
call fcn.004194c5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4314c8], eax
call esi
push eax
call fcn.004194c5
pop ecx
mov dword [0x4314d0], eax
test eax, eax
je 0x41ea25
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004194c5
pop ecx
mov dword [0x4314cc], eax
mov eax, dword [0x4314cc]
cmp eax, ebx
je 0x41ea7d
cmp dword [0x4314d0], ebx
je 0x41ea7d
push eax
call fcn.00419540
push dword [0x4314d0]
mov esi, eax
call fcn.00419540
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ea7d
test edi, edi
je 0x41ea7d
call esi
test eax, eax
je 0x41ea74
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ea74
test byte [ebp - 0xc], 1
jne 0x41ea7d
or dword [ebp + 0x10], 0x200000
jmp 0x41eab6
mov eax, dword [0x4314c4]
cmp eax, ebx
je 0x41eab6
push eax
call fcn.00419540
pop ecx
test eax, eax
je 0x41eab6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41eab6
mov eax, dword [0x4314c8]
cmp eax, ebx
je 0x41eab6
push eax
call fcn.00419540
pop ecx
test eax, eax
je 0x41eab6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4314c0]
call fcn.00419540
pop ecx
test eax, eax
je 0x41ead6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ead8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret