joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed55
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.00446afd
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x251]
push ebx
push eax
mov byte [esp + 0x258], bl
call fcn.0044f6b0
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.0044f6b0
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.0044f6b0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x150]
push edi
push eax
call fcn.00446ba2
lea eax, [esp + 0x158]
push eax
call fcn.00446afd
lea eax, [esp + 0x15c]
push eax
push dword [ebp + 8]
call fcn.00445cf0
add esp, 0x24
test eax, eax
je 0x40ee5d
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 0x40ee5d
lea eax, [esp + 0x248]
push eax
call fcn.00446afd
push dword [ebp + 8]
lea eax, [esp + 0x250]
push eax
call fcn.00445cf0
add esp, 0xc
test eax, eax
jne 0x40ee75
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40edc8
jmp 0x40ee86
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 0x40ef70
Capabilities:
Check if file exists
Get file attributes

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

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

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
mov eax, dword [ecx]
push 3
push dword [esi + 0x264]
call dword [eax + 0x2c]
and dword [ebp - 4], 0
add esi, 0x2c
push esi
lea ebx, [ebp - 4]
call fcn.00410f5d
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.0041c55a
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 0x40f6c9
push ebx
call fcn.00446598
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x40fab3
Capabilities:
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
push edi
mov dword [ebp - 4], 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], 0x40acc7
mov byte [esi + 0x274], al
call fcn.00445f74
pop ecx
cmp dword [ebp + 0x10], edi
jne 0x40fb33
xor eax, eax
jmp 0x40fb3c
push dword [ebp + 0x10]
call fcn.00401c4b
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.00445f74
pop ecx
cmp dword [ebp + 0x3c], edi
jne 0x40fb7f
xor eax, eax
jmp 0x40fb88
push dword [ebp + 0x3c]
call fcn.00401c4b
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.00445488
push ebx
push edi
push eax
mov dword [ebp + 0x24], eax
call fcn.0044f6b0
mov eax, dword [ebp + 0x24]
add esp, 0x10
mov dword [esi + 0x294], eax
cmp dword [ebp + 0x14], edi
je 0x40fbdd
push edi
call fcn.00445f74
push dword [ebp + 0x14]
call fcn.00401c4b
pop ecx
pop ecx
mov dword [esi + 0x23c], eax
push dword [ebp + 0x18]
lea eax, [esi + 0x244]
push 0x45ec74
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.00445f74
add esp, 0x10
cmp dword [ebp + 0x1c], edi
jne 0x40fc04
xor eax, eax
jmp 0x40fc0d
push dword [ebp + 0x1c]
call fcn.00401c4b
pop ecx
mov dword [esi + 0x260], eax
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x410872
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 0x40fc5f
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 0x40fd26
cmp eax, 0x22
jle 0x40fc84
cmp eax, 0x27
jne 0x40fd26
mov eax, dword [esi]
push edi
test eax, eax
je 0x40fcb9
mov edi, dword [eax + 8]
test edi, edi
jle 0x40fcc8
push 0
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00450990
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.0044ca50
jmp 0x40fcc5
mov eax, esi
call fcn.00438284
call fcn.0045a8b0
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.0044f6b0
mov eax, dword [esi + 0x1c]
add esp, 0xc
pop edi
test eax, eax
jne 0x40fcf2
mov eax, 0x45ebc7
mov esi, dword [esi + 0x14]
push eax
push dword [ebp - 4]
mov eax, esi
call fcn.00431665
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 0x40fd3d
push eax
push str.Unhandled_Muppet_status_code:__i_n
call fcn.00446f45
add eax, 0x40
push eax
call fcn.00447492
add esp, 0xc
pop esi
leave
ret
Function at 0x4104ca
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 0x410505
sub eax, esi
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00445b76
add esp, 0xc
test eax, eax
jne 0x41052c
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 0x410532
sub eax, edi
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00445b76
add esp, 0xc
test eax, eax
jne 0x41055e
lea eax, [ebp - 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410553
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.0044f6b0
push esi
push dword [ebp - 4]
lea eax, [ebp - 0x12c]
push 0x45f430
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 0x41061f
cmp byte [ebp - 0x12c], bl
je 0x4105f1
lea eax, [ebp - 0x12c]
mov dword [ebp + 0xc], eax
cmp byte [eax], 0x5c
jne 0x4105e9
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 0x4105ce
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x410643
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 0x410643
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 + 0x2b8]
inc dword [eax]
mov eax, dword [eax]
push 1
push dword [ecx + 0x2b4]
push eax
call dword [ecx + 0x250]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x410692
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 + 0x2b8], edi
mov dword [ebp - 8], edi
cmp dword [esi + 0x2bc], edi
jbe 0x410721
lea eax, [esi + 0x2a8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x410727
push edi
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.00445488
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.00411baf
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 4], 4
cmp eax, dword [esi + 0x2bc]
jb 0x4106b6
mov al, 1
pop edi
pop ebx
leave
ret
xor al, al
jmp 0x410723

Function at 0x41072b
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.00445488
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.0040ef86
add esp, 0x18
test eax, eax
je 0x4107fc
push ebx
push 0
push str.files
push 0x4604d0
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 + 0x2bc], edi
jbe 0x4107d1
lea eax, [esi + 0x2a8]
mov dword [ebp + 0xc], eax
cmp byte [ebp + 0xb], 0
je 0x4107fc
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
call fcn.00447c00
pop ecx
pop ecx
test eax, eax
jne 0x4107be
mov byte [ebp + 0xb], al
add dword [ebp + 0xc], 4
inc edi
cmp edi, dword [esi + 0x2bc]
jb 0x4107a4
cmp byte [ebp + 0xb], 0
je 0x4107fc
mov edi, dword [ebp - 4]
test edi, edi
je 0x4107fc
push ebx
call fcn.0040ef86
pop ecx
test eax, eax
je 0x4107fc
mov eax, dword [esi + 0x2bc]
mov dword [esi + eax*4 + 0x2a8], ebx
inc dword [esi + 0x2bc]
add dword [esi + 0x2b4], edi
cmp dword [ebp - 4], 0
pop edi
setne al
pop ebx
leave
ret 8
Function at 0x410e0c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
push ebx
push dword [esi + 0x20]
call edi
test eax, eax
jne 0x410ec4
mov ecx, dword [esi + 0x2a4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], ebx
mov edi, dword [esi + 0x2a4]
lea ebx, [edi + 0xfc]
push dword [ebx]
call fcn.0043d96d
cmp dword [edi + 0x158], 0
push dword [ebx]
seta byte [ebp + 0xb]
call fcn.0043d981
cmp byte [ebp + 0xb], 1
pop ecx
pop ecx
jne 0x410e81
add dword [ebp - 4], 0x64
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x64
jl 0x410e3f
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0044f6b0
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push str.Slept_for__d_milliseconds_while_waiting_for_mupthread_to_shutdown_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x410f21
fld dword [ebp + 8]
call fcn.0045a8e6
cmp eax, dword [0x47751c]
jbe 0x410efc
push dword [esi + 0x294]
fld dword [ebp + 8]
fmul qword [0x464340]
push dword [esi + 0x254]
push 1
push 0x3e8
call fcn.0045a8e6
push eax
call dword [esi + 0x250]
push 0xffffffffffffffff
push dword [0x477524]
call edi
test eax, eax
jne 0x410f1f
mov eax, dword [ebp + 0xc]
push dword [0x477524]
add dword [0x477518], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop edi
pop ebx
leave
ret 8

Function at 0x410f27
Capabilities:
Create directory
Get file attributes

Disassembly:
cmp byte [edi], 0
je 0x410f4f
push esi
mov esi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x410f39
cmp al, 0x2f
jne 0x410f48
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 0x410f2f
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x410f5d
Capabilities:
Read file on windows

Disassembly:
push edi
push 0x4609fc
push dword [esp + 0xc]
call fcn.004471be
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x410f7b
and dword [ebx], eax
or eax, 0xffffffff
pop edi
ret
push esi
push 2
push 0
push edi
call fcn.00447843
push edi
call fcn.0044774b
push 0
push 0
push edi
mov esi, eax
call fcn.00447843
lea eax, [esi + 1]
push eax
call fcn.00445c23
push edi
push esi
push 1
push eax
mov dword [ebx], eax
call fcn.00447475
add esp, 0x30
cmp esi, eax
je 0x410fc1
push dword [ebx]
call fcn.00446598
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x410fca
push edi
call fcn.0044793f
pop ecx
mov eax, esi
pop esi
pop edi
ret

Function at 0x411e73
Capabilities:
Hash data using rshash

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
xor esi, esi
push esi
mov ebx, eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419530
push edi
push dword [ebp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41952f
push esi
call fcn.00445ff3
mov dword [ebp - 0xc], eax
xor eax, eax
mov word [ebp - 0x214], ax
mov dword [esp], 0x206
lea eax, [ebp - 0x212]
push esi
push eax
mov dword [ebp - 8], edx
call fcn.0044f6b0
xor eax, eax
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push esi
push eax
call fcn.0044f6b0
lea eax, [ebx + 0xf8]
lea edx, [ebp - 0x214]
add esp, 0x18
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, si
jne 0x419448
lea eax, [ebx + 0x300]
lea edx, [ebp - 0x41c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, si
jne 0x419464
push dword [ebx + 0x40]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebx + 0x40]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebx + 0x508]
push eax
push dword [ebp + 8]
call fcn.004461e8
pop ecx
pop ecx
test eax, eax
jne 0x41951c
add ebx, 0x710
push ebx
push dword [ebp + 8]
call fcn.004461e8
pop ecx
pop ecx
test eax, eax
jne 0x41951c
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call fcn.00446155
pop ecx
pop ecx
test eax, eax
je 0x4194e6
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
call fcn.00446155
pop ecx
pop ecx
test eax, eax
jne 0x41952f
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push str.CasinoTimeStamp
push dword [ebp - 4]
call edi
push str.PCMUID
push dword [ebp + 0xc]
call fcn.004461e8
pop ecx
pop ecx
test eax, eax
je 0x41952f
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push str.UGUIDTimeStamp
jmp 0x41952a
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push 0x461214
push dword [ebp - 4]
call edi
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret 0x14
Function at 0x419599
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x419611
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.00445488
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 0x419615
cmp dword [ebp + 8], ebx
je 0x419611
push dword [ebp + 8]
call fcn.00445940
pop ecx
xor eax, eax
jmp 0x419618
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x419621
mov ecx, dword [edi]
mov byte [eax + ecx], bl
pop ebx
leave
ret 0xc

Function at 0x41982e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, ebx
call fcn.004197e2
push 0x103
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.0044f6b0
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x41989a
dec eax
je 0x419886
dec eax
je 0x419871
push 2
pop eax
jmp 0x419940
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 0x4198aa
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 0x4198aa
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 + 0xd2c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4198d1
xor eax, eax
jmp 0x419940
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4198d8
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 + 0xd30], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41993d
push dword [ebx + 0xd2c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx + 0xd2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0xd30]
mov dword [ebx + 0xd2c], edi
call esi
mov dword [ebx + 0xd30], edi
jmp 0x4198cd
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x419946
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 0x419a5f
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 0x419989
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 0x419a4f
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 0x419a3d
push 0xff
lea eax, [ebp - 0x133]
push ebx
push eax
mov byte [ebp - 0x134], bl
call fcn.0044f6b0
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov edi, pe_nt_image_headers32
jmp 0x419a23
cmp dword [ebp + 8], ebx
je 0x419a3a
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 0x419a03
jmp 0x419a3d
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 0x419a68
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 8

Function at 0x419a70
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.0044f6b0
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 0x419afa
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 0x419ac9
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 0x419afa
shr eax, 4
not eax
and eax, 1
jmp 0x419afc
xor eax, eax
pop esi
leave
ret 4