joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5d5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0043c8ec
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x251]
push ebx
push eax
mov byte [esp + 0x258], bl
call fcn.004454d0
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x124
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.004454d0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], 0x128
mov dword [esp + 0x1c], ebx
call sub.KERNEL32.dll_Process32First
lea edi, [esi + 1]
push esi
lea eax, [esp + 0x145]
push ebx
push eax
mov byte [esp + 0x14c], bl
call fcn.004454d0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x150]
push edi
push eax
call fcn.0043c991
lea eax, [esp + 0x158]
push eax
call fcn.0043c8ec
lea eax, [esp + 0x15c]
push eax
push dword [ebp + 8]
call fcn.0043bb30
add esp, 0x24
test eax, eax
je 0x40e6dd
push dword [esp + 0x20]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
lea ecx, [esp + 0x24c]
push ecx
push ebx
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x40e6dd
lea eax, [esp + 0x248]
push eax
call fcn.0043c8ec
push dword [ebp + 8]
lea eax, [esp + 0x250]
push eax
call fcn.0043bb30
add esp, 0xc
test eax, eax
jne 0x40e6f5
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40e648
jmp 0x40e706
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [esp + 0x14], 1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e7f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e802
xor eax, eax
ret
and eax, 0x10
ret

Function at 0x40e806
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e818
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret

Function at 0x40eebd
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push 2
push dword [esi + 0x264]
call fcn.0042c208
and dword [ebp - 4], 0
add esi, 0x2c
push esi
lea ebx, [ebp - 4]
call fcn.00410834
pop ecx
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 8]
mov ebx, dword [ebp - 4]
push ebx
push str.C75A7F71_797A_11d2_8255_00A02455A490
call fcn.0041bb7a
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40ef41
push ebx
call fcn.0043c387
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x40f32a
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push edi
push edi
push edi
push edi
mov dword [0x46d4a4], eax
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1c], eax
call ebx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
mov dword [esi + 0x25c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x268], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x254], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x234], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x270], eax
mov al, byte [ebp + 0x24]
push edi
mov dword [esi + 0x258], ecx
mov dword [esi + 0x250], 0x40a718
mov byte [esi + 0x274], al
call fcn.0043bdb4
pop ecx
cmp dword [ebp + 0x10], edi
jne 0x40f3b8
xor eax, eax
jmp 0x40f3c1
push dword [ebp + 0x10]
call fcn.00401c12
pop ecx
mov dword [esi + 0x238], eax
mov al, byte [ebp + 0x28]
mov byte [esi + 0x275], al
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x278], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x27c], eax
mov eax, dword [ebp + 0x34]
mov dword [esi + 0x280], eax
mov eax, dword [ebp + 0x38]
push edi
mov dword [esi + 0x284], eax
call fcn.0043bdb4
pop ecx
cmp dword [ebp + 0x3c], edi
jne 0x40f404
xor eax, eax
jmp 0x40f40d
push dword [ebp + 0x3c]
call fcn.00401c12
pop ecx
mov dword [esi + 0x290], eax
mov eax, dword [ebp + 0x40]
mov dword [esi + 0x298], eax
mov eax, dword [ebp + 0x44]
mov ebx, 0x1000
push ebx
mov dword [esi + 0x29c], eax
call fcn.0043b2c8
push ebx
push edi
push eax
mov dword [ebp + 0x24], eax
call fcn.004454d0
mov eax, dword [ebp + 0x24]
add esp, 0x10
mov dword [esi + 0x294], eax
cmp dword [ebp + 0x14], edi
je 0x40f462
push edi
call fcn.0043bdb4
push dword [ebp + 0x14]
call fcn.00401c12
pop ecx
pop ecx
mov dword [esi + 0x23c], eax
push dword [ebp + 0x18]
lea eax, [esi + 0x244]
push 0x454c64
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.0043bdb4
add esp, 0x10
cmp dword [ebp + 0x1c], edi
jne 0x40f489
xor eax, eax
jmp 0x40f492
push dword [ebp + 0x1c]
call fcn.00401c12
pop ecx
mov dword [esi + 0x260], eax
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x410116
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [ebp - 4]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1c]
pop edi
pop ebx
leave
ret 0x40
Function at 0x40f4e4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jl 0x40f5ab
cmp eax, 0x22
jle 0x40f509
cmp eax, 0x27
jne 0x40f5ab
mov eax, dword [esi]
push edi
test eax, eax
je 0x40f53e
mov edi, dword [eax + 8]
test edi, edi
jle 0x40f54d
push 0
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00446830
mov ecx, eax
mov eax, edx
mov dword [ebp - 4], eax
mov eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
push eax
push ecx
call fcn.004467c0
jmp 0x40f54a
mov eax, esi
call fcn.00420c17
call fcn.00450a60
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.004454d0
mov eax, dword [esi + 0x1c]
add esp, 0xc
pop edi
test eax, eax
jne 0x40f577
mov eax, 0x454bc7
mov esi, dword [esi + 0x14]
push eax
push dword [ebp - 4]
mov eax, esi
call fcn.0042fa08
push eax
push esi
lea eax, [ebp - 0x404]
push str.__i:_s____3i_____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40f5c2
push eax
push str.Unhandled_Muppet_status_code:__i_n
call fcn.0043cd34
add eax, 0x40
push eax
call fcn.0043d281
add esp, 0xc
pop esi
leave
ret
Function at 0x40fd6e
Capabilities:
Create directory
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov esi, str.systemcomponents2_
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.cache_
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x264]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
lea esi, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fda9
sub eax, esi
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0043b9b6
add esp, 0xc
test eax, eax
jne 0x40fdd0
mov eax, dword [edi + 0x290]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fdd6
sub eax, edi
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0043b9b6
add esp, 0xc
test eax, eax
jne 0x40fe02
lea eax, [ebp - 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fdf7
sub eax, edx
add esi, eax
push 0x103
lea eax, [ebp - 0x12b]
push ebx
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 0x12c], bl
call fcn.004454d0
push esi
push dword [ebp - 4]
lea eax, [ebp - 0x12c]
push 0x4556fc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x1c
push ebx
push 0x80
push 2
push ebx
push 1
mov edi, 0x40000000
push edi
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0xc], ebx
call esi
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x40fec3
cmp byte [ebp - 0x12c], bl
je 0x40fe95
lea eax, [ebp - 0x12c]
mov dword [ebp + 0xc], eax
cmp byte [eax], 0x5c
jne 0x40fe8d
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 0xc]
mov byte [eax], 0x5c
inc eax
mov dword [ebp + 0xc], eax
cmp byte [eax], bl
jne 0x40fe72
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x40fee7
push ebx
push 0x80
push 2
push ebx
push 1
push edi
lea eax, [ebp - 0x12c]
push eax
call esi
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x40fee7
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 8]
push ebx
push dword [ecx + 0x254]
lea eax, [ecx + 0x2b4]
inc dword [eax]
mov eax, dword [eax]
push 1
push dword [ecx + 0x2b0]
push eax
call dword [ecx + 0x250]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40ff36
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [esi + 0x2b4], edi
mov dword [ebp - 8], edi
cmp dword [esi + 0x2b8], edi
jbe 0x40ffc5
lea eax, [esi + 0x2a4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ffcb
push edi
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.0043b2c8
pop ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push dword [ebp - 0x14]
call fcn.004113b4
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 4], 4
cmp eax, dword [esi + 0x2b8]
jb 0x40ff5a
mov al, 1
pop edi
pop ebx
leave
ret
xor al, al
jmp 0x40ffc7

Function at 0x40ffcf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push 0x104
call fcn.0043b2c8
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0xc]
mov ebx, eax
push str._s_s.info
push ebx
call edi
push ebx
call fcn.0040e806
add esp, 0x18
test eax, eax
je 0x4100a0
push ebx
push 0
push str.files
push 0x456390
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push str._s_s.cab
push ebx
call edi
xor edi, edi
add esp, 0x10
mov byte [ebp + 0xb], 1
cmp dword [esi + 0x2b8], edi
jbe 0x410075
lea eax, [esi + 0x2a4]
mov dword [ebp + 0xc], eax
cmp byte [ebp + 0xb], 0
je 0x4100a0
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
call fcn.0043d9ef
pop ecx
pop ecx
test eax, eax
jne 0x410062
mov byte [ebp + 0xb], al
add dword [ebp + 0xc], 4
inc edi
cmp edi, dword [esi + 0x2b8]
jb 0x410048
cmp byte [ebp + 0xb], 0
je 0x4100a0
mov edi, dword [ebp - 4]
test edi, edi
je 0x4100a0
push ebx
call fcn.0040e806
pop ecx
test eax, eax
je 0x4100a0
mov eax, dword [esi + 0x2b8]
mov dword [esi + eax*4 + 0x2a4], ebx
inc dword [esi + 0x2b8]
add dword [esi + 0x2b0], edi
cmp dword [ebp - 4], 0
pop edi
setne al
pop ebx
leave
ret 8
Function at 0x4106e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
xor edi, edi
push edi
push dword [ebx + 0x20]
call esi
test eax, eax
jne 0x41079b
mov esi, dword [ebx + 0x2a0]
push edi
call fcn.00421785
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], edi
mov esi, dword [ebx + 0x2a0]
lea edi, [esi + 0x4dc]
push dword [edi]
call fcn.004337f6
cmp dword [esi + 0x540], 0
pop ecx
push dword [edi]
seta byte [ebp + 0xb]
call fcn.0043380a
cmp byte [ebp + 0xb], 1
pop ecx
jne 0x410755
add dword [ebp - 4], 0x64
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x64
jl 0x410713
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.004454d0
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x110]
push str.Slept_for__d_milliseconds_while_waiting_for_mupthread_to_shutdown_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x4107f8
fld dword [ebp + 8]
call fcn.00450a96
cmp eax, dword [0x46d49c]
jbe 0x4107d3
push dword [ebx + 0x294]
fld dword [ebp + 8]
fmul qword [0x459d40]
push dword [ebx + 0x254]
push 1
push 0x3e8
call fcn.00450a96
push eax
call dword [ebx + 0x250]
push 0xffffffffffffffff
push dword [0x46d4a4]
call esi
test eax, eax
jne 0x4107f6
mov eax, dword [ebp + 0xc]
push dword [0x46d4a4]
add dword [0x46d498], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop edi
pop esi
leave
ret 8

Function at 0x4107fe
Capabilities:
Create directory
Get file attributes

Disassembly:
cmp byte [edi], 0
je 0x410826
push esi
mov esi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x410810
cmp al, 0x2f
jne 0x41081f
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x410806
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x410834
Capabilities:
Read file on windows

Disassembly:
push edi
push 0x4568bc
push dword [esp + 0xc]
call fcn.0043cfad
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x410852
and dword [ebx], eax
or eax, 0xffffffff
pop edi
ret
push esi
push 2
push 0
push edi
call fcn.0043d632
push edi
call fcn.0043d53a
push 0
push 0
push edi
mov esi, eax
call fcn.0043d632
lea eax, [esi + 1]
push eax
call fcn.0043ba63
push edi
push esi
push 1
push eax
mov dword [ebx], eax
call fcn.0043d264
add esp, 0x30
cmp esi, eax
je 0x410898
push dword [ebx]
call fcn.0043c387
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x4108a1
push edi
call fcn.0043d72e
pop ecx
mov eax, esi
pop esi
pop edi
ret

Function at 0x411678
Capabilities:
Hash data using rshash

Disassembly:
push esi
mov esi, eax
mov edx, 0xf8c9
xor eax, eax
jmp 0x411693
imul eax, edx
imul edx, edx, 0x5c6b7
movsx ecx, cl
add eax, ecx
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x411684
cmp dword [esp + 8], 0
pop esi
je 0x4116a9
xor edx, edx
div dword [esp + 4]
mov eax, edx
ret
Function at 0x418ab3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
lea eax, [ebp + 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x418aef
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14

Function at 0x418b54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x418bcc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov eax, dword [edi]
inc eax
push eax
call fcn.0043b2c8
pop ecx
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
je 0x418bd0
cmp dword [ebp + 8], ebx
je 0x418bcc
push dword [ebp + 8]
call fcn.0043b780
pop ecx
xor eax, eax
jmp 0x418bd3
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x418bdc
mov ecx, dword [edi]
mov byte [eax + ecx], bl
pop ebx
leave
ret 0xc
Function at 0x418de9
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, ebx
call fcn.00418d9d
push 0x103
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.004454d0
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x418e55
dec eax
je 0x418e41
dec eax
je 0x418e2c
push 2
pop eax
jmp 0x418efb
push 6
pop ecx
mov esi, str.MGSPOKERV2CREATEMUTEXPIGGY
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x418e65
push 5
pop ecx
mov esi, str.MGSPOKERV2CREATEMUTEX
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x418e65
push 6
pop ecx
mov esi, str.MGSPOKERV2CREATEMUTEXSB
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
push eax
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push eax
mov dword [ebx + 0xfc], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418e8c
xor eax, eax
jmp 0x418efb
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x418e93
mov esi, str._SEM
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
push eax
push 1
movsb byte es:[edi], byte [esi]
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push eax
mov dword [ebx + 0x100], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418ef8
push dword [ebx + 0xfc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx + 0xfc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0x100]
mov dword [ebx + 0xfc], edi
call esi
mov dword [ebx + 0x100], edi
jmp 0x418e88
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x418f01
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push str.Mozilla_4.0__compatible__MSIE_5.5__Windows_NT_5.0_
mov dword [ebp - 8], 0x80004005
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x41901a
push esi
push edi
push 8
pop ecx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x34]
lea eax, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x418f44
push ebx
sub eax, edx
push 0x4000000
sar eax, 1
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x41900a
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x418ff8
push 0xff
lea eax, [ebp - 0x133]
push ebx
push eax
mov byte [ebp - 0x134], bl
call fcn.004454d0
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov edi, 0x100
jmp 0x418fde
cmp dword [ebp + 8], ebx
je 0x418ff5
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x418fbe
jmp 0x418ff8
mov dword [ebp - 8], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], ebx
pop edi
pop esi
jge 0x419023
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 8

Function at 0x41902b
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.004454d0
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x10
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4190b5
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, si
jne 0x419084
mov esi, str..url
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
je 0x4190b5
shr eax, 4
not eax
and eax, 1
jmp 0x4190b7
xor eax, eax
pop esi
leave
ret 4
Function at 0x4190bc
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push ebx
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 4], 0x80004005
call fcn.004454d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4191ac
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x419120
push esi
mov esi, str..url
movsd dword es:[edi], dword [esi]
push 0x3ff
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60b]
push ebx
push eax
movsw word es:[edi], word [esi]
mov byte [ebp - 0x60c], bl
call fcn.004454d0
push dword [ebp + 0x10]
lea eax, [ebp - 0x60c]
push dword [ebp + 0xc]
push str._InternetShortcut__r_nURL_S_r_nIconFile_S_r_nIconIndex0_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push ebx
push ebx
push 2
push ebx
push ebx
mov edi, eax
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4191aa
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x60c]
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
pop esi
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc

Function at 0x41b5a2
Capabilities:
Create http request
Create thread

Disassembly:
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push str.VIP_TRACKING
mov dword [esi + 8], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
push edi
push edi
push edi
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
lea eax, [esi + 4]
push eax
push edi
push ebx
push 0x41b643
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, esi
pop ebx
ret