joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f3c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea edx, [ebp - 0x108]
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40f3d3
xor edi, edi
cmp byte [ebp - 0x108], 0
je 0x40f417
lea esi, [ebp + edi - 0x108]
cmp byte [esi], 0x5c
jne 0x40f40c
cmp edi, 2
jle 0x40f40c
lea eax, [ebp - 0x108]
push eax
mov byte [esi], 0
call fcn.0040d7bd
pop ecx
mov byte [esi], 0x5c
inc edi
cmp byte [ebp + edi - 0x108], 0
jne 0x40f3e8
lea eax, [ebp - 0x108]
push eax
call fcn.0040d7bd
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
leave
ret

Function at 0x40f45a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x357]
push ebx
push eax
mov byte [ebp - 0x358], bl
call fcn.0044ded0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x358]
push str._s.
push eax
call edi
add esp, 0xc
push 0x13c
lea eax, [ebp - 0x144]
push ebx
push eax
mov dword [ebp - 0x148], ebx
call fcn.0044ded0
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40f5af
cmp byte [ebp - 0x11c], 0x2e
je 0x40f584
test byte [ebp - 0x148], 0x10
je 0x40f545
cmp byte [ebp + 0xc], bl
je 0x40f545
push esi
lea eax, [ebp - 0x24f]
push ebx
push eax
mov byte [ebp - 0x250], bl
call fcn.0044ded0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x250]
add esp, 0xc
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
cmp dl, bl
jne 0x40f516
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x250]
push eax
call fcn.0040f45a
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x45f]
push ebx
push eax
mov byte [ebp - 0x460], bl
call fcn.0044ded0
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push 0x45d450
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f5a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0xffffffff
jne 0x40f4d9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f5bd
Capabilities:
Delete directory
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
push ebx
push esi
push edi
mov edi, 0x103
push edi
xor esi, esi
lea eax, [ebp - 0x45f]
push esi
push eax
mov byte [ebp - 0x460], 0
call fcn.0044ded0
push edi
lea eax, [ebp - 0x24f]
push esi
push eax
mov byte [ebp - 0x250], 0
call fcn.0044ded0
push edi
lea eax, [ebp - 0x357]
push esi
push eax
mov byte [ebp - 0x358], 0
call fcn.0044ded0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esp, 0x24
lea esi, [edi + 1]
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x358]
push eax
call ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push eax
call ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x250]
push eax
call ebx
and dword [ebp - 0x148], 0
push 0x13c
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0044ded0
push 0x45e780
lea ebx, [ebp - 0x358]
call fcn.0040f9e6
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f6c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x567]
push ebx
push eax
mov byte [ebp - 0x568], bl
call fcn.0044ded0
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x568]
push eax
push ebx
push dword [ebp - 4]
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
jmp 0x40f73a
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, str._s_s
cmp byte [ebp - 0x11c], 0x2e
je 0x40f718
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push edi
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x250]
push edi
push eax
call esi
add esp, 0x20
push 1
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f6ce
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f79a
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.0044531d
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x251]
push ebx
push eax
mov byte [esp + 0x258], bl
call fcn.0044ded0
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.0044ded0
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.0044ded0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x150]
push edi
push eax
call fcn.004453c2
lea eax, [esp + 0x158]
push eax
call fcn.0044531d
lea eax, [esp + 0x15c]
push eax
push dword [ebp + 8]
call fcn.00444510
add esp, 0x24
test eax, eax
je 0x40f8a2
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 0x40f8a2
lea eax, [esp + 0x248]
push eax
call fcn.0044531d
push dword [ebp + 8]
lea eax, [esp + 0x250]
push eax
call fcn.00444510
add esp, 0xc
test eax, eax
jne 0x40f8ba
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40f80d
jmp 0x40f8cb
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 0x40f9b5
Capabilities:
Check if file exists
Get file attributes

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

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f9dd
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x40fc32
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
call fcn.0044ded0
add esp, 0xc
cmp dword [ebp + 8], 0
mov byte [ebp - 0x108], 0
je 0x40fc8e
mov eax, dword [ebp + 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fc66
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fc76
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 8
call fcn.004441b8
mov ebx, eax
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
mov dword [ebp + 8], ebx
xor esi, esi
mov edi, 0x4761e0
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00446420
pop ecx
pop ecx
test eax, eax
je 0x40fcfe
add edi, 0x108
inc esi
cmp edi, 0x476708
jl 0x40fca8
xor eax, eax
push eax
push eax
push 3
push eax
xor ebx, ebx
inc ebx
push ebx
push SysReAllocStringLen
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fd1a
push dword [ebp + 8]
call fcn.00444160
pop ecx
xor eax, eax
jmp 0x40fda2
imul esi, esi, 0x108
lea eax, [esi + 0x4762e4]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, dword [eax]
inc dword [eax + 8]
mov eax, ebx
jmp 0x40fda2
push 0xc
call fcn.004441b8
and dword [ebp - 4], 0
pop ecx
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 4], eax
call fcn.004441b8
pop ecx
push 0
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
mov dword [esi], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
mov dword [edi], esi
mov dword [esi + 8], ebx
xor eax, eax
mov ecx, 0x4762e4
cmp dword [ecx], 0
je 0x40fd7a
add ecx, 0x108
inc eax
cmp ecx, 0x47680c
jl 0x40fd64
jmp 0x40fda0
imul eax, eax, 0x108
lea ecx, [ebp - 0x108]
lea ebx, [eax + 0x4761e0]
mov edx, ecx
sub ebx, edx
mov dl, byte [ecx]
mov byte [ebx + ecx], dl
inc ecx
test dl, dl
jne 0x40fd90
mov dword [eax + 0x4762e4], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4105b5
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.00411e59
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.0041a6dc
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 0x410639
push ebx
call fcn.00444db8
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x410a23
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], 0x40b3e2
mov byte [esi + 0x274], al
call fcn.00444794
pop ecx
cmp dword [ebp + 0x10], edi
jne 0x410aa3
xor eax, eax
jmp 0x410aac
push dword [ebp + 0x10]
call fcn.00401c7c
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.00444794
pop ecx
cmp dword [ebp + 0x3c], edi
jne 0x410aef
xor eax, eax
jmp 0x410af8
push dword [ebp + 0x3c]
call fcn.00401c7c
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.00443ca8
push ebx
push edi
push eax
mov dword [ebp + 0x24], eax
call fcn.0044ded0
mov eax, dword [ebp + 0x24]
add esp, 0x10
mov dword [esi + 0x294], eax
cmp dword [ebp + 0x14], edi
je 0x410b4d
push edi
call fcn.00444794
push dword [ebp + 0x14]
call fcn.00401c7c
pop ecx
pop ecx
mov dword [esi + 0x23c], eax
push dword [ebp + 0x18]
lea eax, [esi + 0x244]
push 0x45cc74
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.00444794
add esp, 0x10
cmp dword [ebp + 0x1c], edi
jne 0x410b74
xor eax, eax
jmp 0x410b7d
push dword [ebp + 0x1c]
call fcn.00401c7c
pop ecx
mov dword [esi + 0x260], eax
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x41176e
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 0x410bcf
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 0x410c96
cmp eax, 0x22
jle 0x410bf4
cmp eax, 0x27
jne 0x410c96
mov eax, dword [esi]
push edi
test eax, eax
je 0x410c29
mov edi, dword [eax + 8]
test edi, edi
jle 0x410c38
push 0
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0044f0b0
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.0044b270
jmp 0x410c35
mov eax, esi
call fcn.00436a39
call fcn.004590e0
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.0044ded0
mov eax, dword [esi + 0x1c]
add esp, 0xc
pop edi
test eax, eax
jne 0x410c62
mov eax, 0x45cbc7
mov esi, dword [esi + 0x14]
push eax
push dword [ebp - 4]
mov eax, esi
call fcn.0042f7b0
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 0x410cad
push eax
push str.Unhandled_Muppet_status_code:__i_n
call fcn.00445765
add eax, 0x40
push eax
call fcn.00445cb2
add esp, 0xc
pop esi
leave
ret
Function at 0x41143a
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 0x411475
sub eax, esi
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00444396
add esp, 0xc
test eax, eax
jne 0x41149c
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 0x4114a2
sub eax, edi
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00444396
add esp, 0xc
test eax, eax
jne 0x4114ce
lea eax, [ebp - 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4114c3
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.0044ded0
push esi
push dword [ebp - 4]
lea eax, [ebp - 0x12c]
push 0x45d450
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 0x41158f
cmp byte [ebp - 0x12c], bl
je 0x411561
lea eax, [ebp - 0x12c]
mov dword [ebp + 0xc], eax
cmp byte [eax], 0x5c
jne 0x411559
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 0x41153e
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x4115b3
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 0x4115b3
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 0x411602
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.00443ca8
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.0040f9cb
add esp, 0x18
test eax, eax
je 0x4116d3
push ebx
push 0
push str.files
push 0x45e5e4
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 0x4116a8
lea eax, [esi + 0x2a8]
mov dword [ebp + 0xc], eax
cmp byte [ebp + 0xb], 0
je 0x4116d3
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
call fcn.00446420
pop ecx
pop ecx
test eax, eax
jne 0x411695
mov byte [ebp + 0xb], al
add dword [ebp + 0xc], 4
inc edi
cmp edi, dword [esi + 0x2bc]
jb 0x41167b
cmp byte [ebp + 0xb], 0
je 0x4116d3
mov edi, dword [ebp - 4]
test edi, edi
je 0x4116d3
push ebx
call fcn.0040f9cb
pop ecx
test eax, eax
je 0x4116d3
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 0x411d08
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 0x411dc0
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.0043c122
cmp dword [edi + 0x158], 0
push dword [ebx]
seta byte [ebp + 0xb]
call fcn.0043c136
cmp byte [ebp + 0xb], 1
pop ecx
pop ecx
jne 0x411d7d
add dword [ebp - 4], 0x64
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x64
jl 0x411d3b
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0044ded0
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 0x411e1d
fld dword [ebp + 8]
call fcn.00459116
cmp eax, dword [0x475d5c]
jbe 0x411df8
push dword [esi + 0x294]
fld dword [ebp + 8]
fmul qword [0x4623a0]
push dword [esi + 0x254]
push 1
push 0x3e8
call fcn.00459116
push eax
call dword [esi + 0x250]
push 0xffffffffffffffff
push dword [0x475d64]
call edi
test eax, eax
jne 0x411e1b
mov eax, dword [ebp + 0xc]
push dword [0x475d64]
add dword [0x475d58], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop edi
pop ebx
leave
ret 8
Function at 0x411e23
Capabilities:
Create directory
Get file attributes

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

Function at 0x411e59
Capabilities:
Read file on windows

Disassembly:
push edi
push 0x45eb14
push dword [esp + 0xc]
call fcn.004459de
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x411e77
and dword [ebx], eax
or eax, 0xffffffff
pop edi
ret
push esi
push 2
push 0
push edi
call fcn.00446063
push edi
call fcn.00445f6b
push 0
push 0
push edi
mov esi, eax
call fcn.00446063
lea eax, [esi + 1]
push eax
call fcn.00444443
push edi
push esi
push 1
push eax
mov dword [ebx], eax
call fcn.00445c95
add esp, 0x30
cmp esi, eax
je 0x411ebd
push dword [ebx]
call fcn.00444db8
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x411ec6
push edi
call fcn.0044615f
pop ecx
mov eax, esi
pop esi
pop edi
ret

Function at 0x412919
Capabilities:
Hash data using rshash

Disassembly:
push esi
mov esi, eax
mov edx, 0xf8c9
xor eax, eax
jmp 0x412934
imul eax, edx
imul edx, edx, 0x5c6b7
movsx ecx, cl
add eax, ecx
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x412925
cmp dword [esp + 8], 0
pop esi
je 0x41294a
xor edx, edx
div dword [esp + 4]
mov eax, edx
ret
Function at 0x4190ee
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 0x41927f
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 0x41927e
push esi
call fcn.00444813
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.0044ded0
xor eax, eax
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push esi
push eax
call fcn.0044ded0
lea eax, [ebx + 0xd8]
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 0x419197
lea eax, [ebx + 0x2e0]
lea edx, [ebp - 0x41c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, si
jne 0x4191b3
push dword [ebx + 0x20]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebx + 0x20]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebx + 0x4e8]
push eax
push dword [ebp + 8]
call fcn.00444a08
pop ecx
pop ecx
test eax, eax
jne 0x41926b
add ebx, 0x6f0
push ebx
push dword [ebp + 8]
call fcn.00444a08
pop ecx
pop ecx
test eax, eax
jne 0x41926b
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call fcn.00444975
pop ecx
pop ecx
test eax, eax
je 0x419235
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
call fcn.00444975
pop ecx
pop ecx
test eax, eax
jne 0x41927e
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.00444a08
pop ecx
pop ecx
test eax, eax
je 0x41927e
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push str.UGUIDTimeStamp
jmp 0x419279
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push 0x45f2a0
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