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

Disassembly:
push 0xffffffffffffffff
push 0x4e1501
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea ecx, [esp + 4]
mov dword [esp], 0
call fcn.004173e0
mov dword [esp + 0x14], 1
mov edx, dword [esp + 4]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x1000
or eax, ecx
jge 0x40ee7a
push 0x1000
lea ecx, [esp + 8]
call fcn.004019a0
mov edx, dword [esp + 4]
push esi
push 1
push 0x1a
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40eeee
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0047a8aa
add esp, 8
test eax, eax
jl 0x40eee4
mov ecx, dword [esp + 8]
cmp eax, dword [ecx - 8]
jg 0x40eee4
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 8]
xor ecx, ecx
mov word [edx + eax*2], cx
push str.Mra
lea ecx, [esp + 0xc]
call fcn.00418290
mov eax, dword [esp + 8]
push eax
call fcn.0041b840
mov esi, dword [esp + 0x24]
add esp, 4
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004176e0
jmp 0x40eefe
push 0x80070057
call fcn.004010d0
mov esi, dword [esp + 0x20]
push 0x4e88c0
mov ecx, esi
call fcn.00418470
mov dword [esp + 4], 1
mov byte [esp + 0x18], 0
lea ecx, [esp + 8]
call fcn.00417490
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40fed0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x4e16c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 0x24], 0
cmp dword [esp + 0x2c], 0
je 0x410008
cmp dword [esp + 0x30], 0
je 0x40ff89
push str.__LM
lea ecx, [esp + 0x18]
call fcn.00418470
mov esi, eax
mov byte [esp + 0x24], 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
call fcn.004176e0
mov byte [esp + 0x24], 2
push esi
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0040f2e0
mov byte [esp + 0x30], 3
mov eax, dword [eax]
push eax
push str.MAgent
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040d570
add esp, 0x1c
mov byte [esp + 0x24], 2
lea ecx, [esp + 4]
call fcn.00417490
mov byte [esp + 0x24], 1
lea ecx, [esp + 0xc]
call fcn.00417490
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00417490
jmp 0x41002d
push str.__CU
lea ecx, [esp + 8]
call fcn.00418470
mov esi, eax
mov byte [esp + 0x24], 4
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x10]
call fcn.004176e0
mov byte [esp + 0x24], 5
push esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040f2e0
mov byte [esp + 0x30], 6
mov eax, dword [eax]
push eax
push str.MAgent
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push closesocket
call fcn.0040d570
add esp, 0x1c
mov byte [esp + 0x24], 5
lea ecx, [esp + 0x14]
call fcn.00417490
mov byte [esp + 0x24], 4
lea ecx, [esp + 0xc]
call fcn.00417490
mov byte [esp + 0x24], 0
lea ecx, [esp + 4]
call fcn.00417490
jmp 0x41002d
cmp dword [esp + 0x30], 0
push str.MAgent
push str.SoftwareMicrosoftWindowsCurrentVersionRun
je 0x410020
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x410025
push closesocket
call fcn.0040d6b0
add esp, 0xc
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00417490
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x410050
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4e1720
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [esp + 8], esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x830], 1
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41015b
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x14], esi
push str.DataBasePath
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x3ff
call fcn.0040b520
test eax, eax
jne 0x41015b
push 0x3ff
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
call fcn.00418470
mov byte [esp + 0x830], 2
push str.hosts
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00404a80
add esp, 0xc
mov byte [esp + 0x830], 4
lea ecx, [esp + 0x20]
call fcn.00417490
mov edi, dword [esp + 0x838]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.004176e0
mov dword [esp + 0x1c], 1
mov byte [esp + 0x830], 1
lea ecx, [esp + 0x14]
call fcn.00417490
jmp 0x410176
mov edi, dword [esp + 0x838]
push 0x4e88c0
mov ecx, edi
call fcn.00418470
mov dword [esp + 0x1c], 1
mov byte [esp + 0x830], bl
cmp esi, ebx
je 0x41018c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x828]
mov eax, edi
pop edi
mov dword [esp + 0xc], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x828
ret
Function at 0x4101b0
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4e176f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
mov dword [esp + 0x820], 0
lea ecx, [esp + 0x828]
call fcn.004173d0
test eax, eax
jne 0x410212
mov dword [esp + 0x820], 0xffffffff
lea ecx, [esp + 0x828]
call fcn.00417490
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
add esp, 0x824
ret
lea eax, [esp + 0x18]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410230
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x5c
push esi
push edi
je 0x410264
lea edi, [esp + 0x20]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x410250
mov ecx, dword [0x4e90cc]
mov dword [edi], ecx
lea edi, [esp + 0x20]
add edi, 0xfffffffe
jmp 0x410270
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x410270
push 0x4e90cc
lea edx, [esp + 0x834]
push edx
lea eax, [esp + 0x10]
mov ecx, 8
mov esi, str.magentsetup.exe
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00404a80
mov byte [esp + 0x834], 1
push str.magentsetup.exe
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00404a80
add esp, 0x18
mov byte [esp + 0x828], 2
mov eax, dword [eax]
push 0
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [esp + 0x828], 1
lea ecx, [esp + 0x10]
call fcn.00417490
mov byte [esp + 0x828], 0
lea ecx, [esp + 8]
call fcn.00417490
push 5
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x830]
push ecx
lea edx, [esp + 0x1c]
push str._uninstalltmp__
push edx
call fcn.00407140
mov byte [esp + 0x834], 3
push 0x4ea164
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00404a80
add esp, 0x18
mov esi, eax
mov byte [esp + 0x828], 4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00418470
mov byte [esp + 0x828], 5
mov esi, dword [esi]
mov eax, dword [eax]
push 0x7530
push 0
push esi
push eax
call fcn.0041c4b0
add esp, 0x10
mov byte [esp + 0x828], 4
lea ecx, [esp + 8]
call fcn.00417490
mov byte [esp + 0x828], 3
lea ecx, [esp + 0x10]
call fcn.00417490
mov byte [esp + 0x828], 0
lea ecx, [esp + 0x18]
call fcn.00417490
mov dword [esp + 0x828], 0xffffffff
lea ecx, [esp + 0x830]
call fcn.00417490
pop edi
pop esi
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
add esp, 0x824
ret
Function at 0x412bc0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x412c10
mov eax, dword [esi + 8]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [esi + 0x2c]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x412bf8
mov edx, dword [esi + 4]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x2c]
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
ret

Function at 0x412d60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x412c80
push 0
push 0
call fcn.0047d4a6
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x412d93
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x418d50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e2c21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 1
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], 0x4ec8e0
call fcn.004173e0
mov byte [esp + 0x18], 2
lea ebp, [esi + 0x1c]
mov ecx, ebp
call fcn.004173e0
mov byte [esp + 0x18], 3
lea ecx, [esi + 0x24]
call fcn.004173e0
mov byte [esp + 0x18], 4
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.004027a0
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.004027a0
xor eax, eax
cmp dword [esp + 0x30], eax
mov dword [esi + 0x31], eax
setne dl
mov byte [esi + 0x3d], 1
mov byte [esi + 0x2c], dl
mov dword [esi + 0x2d], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x35], eax
mov byte [esp + 0x18], al
lea ecx, [esp + 0x20]
call fcn.00417490
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00417490
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x418ec0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x418ed0
sub eax, esi
sar eax, 1
mov edx, eax
lea edx, [ecx + edx*2]
mov eax, 0x811c9dc5
cmp ecx, edx
je 0x418f02
lea ecx, [ecx]
movzx esi, word [ecx]
imul eax, eax, 0x1000193
add ecx, 2
xor eax, esi
cmp ecx, edx
jne 0x418ef0
pop esi
ret
Function at 0x41b780
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0x2000000
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41b7b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41b7af
cmp eax, 3
jne 0x41b7b9
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret

Function at 0x41b840
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e2dd8
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
push 0
push 0x2000000
push 3
push 0
push 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41b8d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41b888
cmp eax, 3
jne 0x41b8dc
push esi
lea ecx, [esp + 8]
call fcn.00418470
mov dword [esp + 0x14], 0
mov eax, dword [esp + 4]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 4]
call fcn.00417490
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41b900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4e300b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push edi
mov ebx, 1
mov dword [esp + 0x1c], ebx
push 0x24
call fcn.0045d88f
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x1c], 2
test eax, eax
je 0x41b94a
mov ecx, eax
call fcn.00434ce0
mov ebp, eax
mov dword [esp + 0xc], ebp
jmp 0x41b956
mov dword [esp + 0xc], 0
mov ebp, dword [esp + 0xc]
mov byte [esp + 0x1c], bl
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x41b96b
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41b98e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41b9c1
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x24]
call fcn.00417490
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00417490
pop edi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x34], eax
test eax, eax
je 0x41b98e
push esi
mov esi, dword [ebp + 0x10]
add ebp, 0x10
push edi
push ebx
add esi, 4
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esi]
push edx
mov ecx, ebp
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x28]
call fcn.00417490
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00417490
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41bd00
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e304b
push eax
mov dword fs:[0], esp
sub esp, 0x224
push esi
mov esi, dword [esp + 0x238]
push esi
call fcn.0041b720
add esp, 4
test eax, eax
jne 0x41bd46
pop esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
add esp, 0x230
ret
push esi
lea ecx, [esp + 8]
call fcn.00418470
mov dword [esp + 0x230], 0
push str..
lea ecx, [esp + 8]
call fcn.00418290
mov eax, dword [esp + 4]
cmp dword [eax - 4], 1
jle 0x41bd84
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 8]
call fcn.00401370
mov eax, dword [esp + 4]
push ebx
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.0047abc2
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x41becf
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.0047ace9
add esp, 8
test eax, eax
jne 0x41bec6
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [esp + 0x18], 0x10
je 0x41be41
mov ecx, 0x4eac18
lea eax, [esp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41bdf8
test dx, dx
je 0x41bdf4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41bdf8
add eax, 4
add ecx, 4
test dx, dx
jne 0x41bdd2
xor eax, eax
jmp 0x41bdfd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41be41
push esi
lea ecx, [esp + 0x14]
call fcn.00402d30
push 0x4e90cc
lea ecx, [esp + 0x14]
call fcn.00418290
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00418290
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041bd00
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41beae
mov ecx, 0x4eac18
lea eax, [esp + 0x2c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41be76
test dx, dx
je 0x41be72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41be76
add eax, 4
add ecx, 4
test dx, dx
jne 0x41be50
xor eax, eax
jmp 0x41be7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41beae
push esi
lea ecx, [esp + 0x14]
call fcn.00402d30
push 0x4e90cc
lea ecx, [esp + 0x14]
call fcn.00418290
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00418290
mov ecx, dword [esp + 0x10]
push ecx
call edi
call ebp
lea edx, [esp + 0x18]
push edx
push ebx
call fcn.0047ace9
add esp, 8
test eax, eax
je 0x41bdc2
pop edi
pop ebp
push ebx
call fcn.0047aa07
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov dword [esp + 0x234], 0xffffffff
lea ecx, [esp + 8]
call fcn.00417490
mov ecx, dword [esp + 0x22c]
pop ebx
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x41c4b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e3158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
xor eax, eax
push edi
push 0x44
xor edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.0047a4b0
mov ebp, dword [esp + 0x98]
mov ebx, 1
mov ecx, ebx
add esp, 0xc
mov word [esp + 0x68], cx
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], ebx
call fcn.00418470
mov dword [esp + 0x84], edi
mov esi, dword [esp + 0x90]
test esi, esi
je 0x41c582
push 0x4ebc80
lea ecx, [esp + 0x24]
call fcn.00418470
mov byte [esp + 0x84], bl
push esi
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00404a80
add esp, 0xc
mov byte [esp + 0x84], 2
push eax
lea ecx, [esp + 0x14]
call fcn.00418270
mov byte [esp + 0x84], bl
lea ecx, [esp + 0x18]
call fcn.00417490
mov byte [esp + 0x84], 0
lea ecx, [esp + 0x20]
call fcn.00417490
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], ebx
jle 0x41c59c
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401370
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41c5fd
cmp dword [esp + 0x94], 0
mov edi, ebx
je 0x41c5e7
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41c5e7
xor edi, edi
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
jmp 0x41c616
push ebx
push 0
push esi
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x41c616
mov edi, ebx
mov dword [esp + 0x84], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00417490
mov ecx, dword [esp + 0x7c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret
Function at 0x41c640
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e3186
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, dword [esp + 0x270]
push edi
push eax
lea ecx, [esp + 0x10]
call fcn.00418470
mov dword [esp + 0x26c], 0
push 0x4eca1c
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00404a80
add esp, 0xc
mov byte [esp + 0x26c], 2
lea ecx, [esp + 0xc]
call fcn.00417490
mov eax, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41c6db
mov dword [esp + 0x26c], eax
lea ecx, [esp + 4]
call fcn.00417490
mov al, 1
pop edi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
add esp, 0x26c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
lea ecx, [esp + 0x1c]
push ecx
push edi
mov esi, 1
call ebx
test eax, eax
je 0x41c706
inc esi
cmp esi, 3
jge 0x41c706
lea edx, [esp + 0x1c]
push edx
push edi
call ebx
test eax, eax
jne 0x41c6f4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 3
setl bl
mov dword [esp + 0x274], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00417490
mov ecx, dword [esp + 0x26c]
pop esi
mov al, bl
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x26c
ret
Function at 0x41e8a0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x4e358f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x16]
mov dword [esp + 0x10], 0
push ecx
mov word [esp + 0x18], ax
call fcn.0047a4b0
add esp, 0xc
push 0
push 0x26
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push 0x4e90cc
push eax
call fcn.00417180
lea edi, [esp + 0x18]
add esp, 0xc
add edi, 0xfffffffe
jmp 0x41e910
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41e910
mov ecx, 0x10
mov esi, str.Internet_Exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x81c]
mov ecx, esi
cmp eax, 0xffffffff
jne 0x41e94d
push 0x4e88c0
call fcn.00418470
jmp 0x41e957
lea edx, [esp + 0xc]
push edx
call fcn.00418470
mov dword [esp + 0x814], 0
mov ecx, dword [esp + 0x80c]
mov dword [esp + 8], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x810
ret 4
Function at 0x41f0d8
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e3758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
mov esi, ecx
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x41f2e1
jl 0x41f132
push str.mailto:
push ecx
call fcn.0047a849
add esp, 8
test eax, eax
je 0x41f132
mov ecx, dword [esp + 0x80]
sub eax, ecx
sar eax, 1
jne 0x41f132
push 1
push 0
push str.__new
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41f2e1
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0041ed10
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x80]
cmp dword [eax - 0xc], 0
jl 0x41f16d
push str.http:__agent.mail.ru_flashinstall
push eax
call fcn.0047a849
add esp, 8
test eax, eax
je 0x41f16d
sub eax, dword [esp + 0x80]
sar eax, 1
je 0x41f177
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x41f1a0
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0041e8a0
mov byte [esp + 0x78], 2
push eax
lea ecx, [esp + 0x10]
call fcn.004027a0
mov byte [esp + 0x78], 1
lea ecx, [esp + 4]
call fcn.00417490
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x41f1cd
mov ecx, dword [esp + 0x80]
push 1
push 0
push str.__new
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41f2d3
lea ecx, [esp + 0x14]
call fcn.004173e0
mov byte [esp + 0x78], 3
push 0
sub esp, 8
mov ecx, esp
mov dword [esp + 0x10], esp
push str.mozilla
call fcn.00418470
mov byte [esp + 0x84], 4
mov byte [esp + 0x84], 3
lea ecx, [esp + 0x18]
call fcn.00417ea0
mov edx, dword [esp + 0x80]
cmp eax, 0xffffffff
mov eax, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x18]
push eax
je 0x41f226
push str.__s___url___s_
jmp 0x41f22b
push str.__s____s_
push ecx
call fcn.00404b40
add esp, 0x10
push 0x44
lea edx, [esp + 0x30]
push 0
push edx
call fcn.0047a4b0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov eax, 1
mov word [esp + 0x60], ax
xor eax, eax
lea edx, [esp + 0x30]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
push eax
push 0
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x80], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41f2b1
mov ecx, dword [esp + 0x80]
push 1
push eax
push str.__new
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x14]
call fcn.00417490
mov byte [esp + 0x78], 0
lea ecx, [esp + 0xc]
call fcn.00417490
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x80]
call fcn.00417490
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop esi
add esp, 0x78
ret 8