joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432af5
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x432b36
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x432b0f
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x432b54
dec esi
je 0x432b4b
dec esi
jne 0x432b59
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43ba1d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479790]
jne 0x43ba27
repz ret
jmp fcn.0044565d

Function at 0x445763
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0043caae
and dword [ebp - 0x14], 0
cmp dword [0x48da34], 0
mov dword [ebp - 0x18], eax
jne 0x445816
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4458be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46c930
push ebx
call edi
test eax, eax
je 0x4458be
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x46c920
push ebx
mov dword [0x48da34], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48da38], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48da3c], eax
call edi
push eax
call esi
mov dword [0x48da44], eax
test eax, eax
je 0x445816
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48da40], eax
mov eax, dword [0x48da40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x44586f
cmp dword [0x48da44], ecx
je 0x44586f
push eax
call esi
push dword [0x48da44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x44586f
test ebx, ebx
je 0x44586f
call edi
test eax, eax
je 0x445866
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x445866
test byte [ebp - 8], 1
jne 0x44586f
or dword [ebp + 0x10], 0x200000
jmp 0x4458a2
mov eax, dword [0x48da38]
cmp eax, dword [ebp - 0x18]
je 0x4458a2
push eax
call esi
test eax, eax
je 0x4458a2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4458a2
mov eax, dword [0x48da3c]
cmp eax, dword [ebp - 0x18]
je 0x4458a2
push eax
call esi
test eax, eax
je 0x4458a2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48da34]
call esi
test eax, eax
je 0x4458be
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4458c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ba1d
leave
ret
Function at 0x44b1ed
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x44b215
call fcn.0043a913
and dword [eax], 0
call fcn.0043a900
mov dword [eax], 0x16
call fcn.0043d7c8
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44b232
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043a926
pop ecx
jmp 0x44b210
test byte [ebp + 0xc], 0x80
je 0x44b23d
and eax, 0xfffffffe
jmp 0x44b240
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x44b223
xor eax, eax
pop ebp
ret
Function at 0x44d4eb
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
call fcn.0044dd19
lea esi, [edi + 0x10]
call fcn.0044dd19
lea esi, [edi + 0x1c]
call fcn.0044dd19
push dword [ebp + 8]
lea eax, [edi + 4]
push eax
xor ebx, ebx
or eax, 0xffffffff
mov dword [edi + 0x48], ebx
call fcn.0044de0f
lea eax, [edi + 0x40]
push eax
lea eax, [edi + 0x38]
push eax
lea eax, [edi + 0x30]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x44d5e3
mov esi, 0x104
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [edi + 0x28]
push eax
push esi
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x44d5e3
lea eax, [ebp - 0x118]
push eax
lea eax, [edi + 0x10]
push eax
or eax, 0xffffffff
call fcn.0044de0f
lea eax, [ebp - 0x220]
push eax
lea eax, [edi + 0x1c]
push eax
or eax, 0xffffffff
call fcn.0044de0f
push esi
lea eax, [ebp - 0x328]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.0043970c
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0043970c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004393d7
add esp, 0x30
test eax, eax
jne 0x44d5df
or dword [edi + 0x48], 1
xor eax, eax
jmp 0x44d5e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44dd80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x64
mov esi, eax
pop ebx
call fcn.0044dcbe
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x44dda6
mov ebx, dword [esi + 8]
add ebx, 0x64
call fcn.0044dcbe
mov eax, dword [esi + 8]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov dword [ebp - 0xc], eax
cmp eax, 0xea
je 0x44dd9b
xor eax, eax
cmp dword [ebp - 0xc], eax
jne 0x44ddf7
cmp dword [ebp - 8], eax
jbe 0x44ddeb
cmp dword [ebp - 8], 2
jbe 0x44dde3
cmp dword [ebp - 8], 7
jne 0x44ddeb
cmp dword [ebp - 4], eax
je 0x44ddeb
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, esi
call fcn.0044dd3e
jmp 0x44de05
xor ebx, ebx
call fcn.0044dcbe
mov eax, dword [esi]
and dword [esi + 4], ebx
mov byte [eax], bl
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44e26a
Capabilities:
Print debug messages

Disassembly:
push edi
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
call fcn.0044deb7
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call edi
push str._DONE__r_n
call edi
push dword [esi + 4]
call fcn.00436979
pop ecx
push dword [esi + 8]
call fcn.00436979
pop ecx
push dword [esi + 0xc]
call fcn.00436979
pop ecx
push esi
call fcn.00436979
pop ecx
pop edi
ret

Function at 0x44e329
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 0x44e2b1
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

Function at 0x44ead8
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.0043b5d0
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
js 0x44ebca
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x20c]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x44eb3d
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.0043b5d0
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 0x44ebc8
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 0x44ebd2
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.0043b5d0
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
js 0x44ec5e
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x44ec2c
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 0x44ec5e
shr eax, 4
not eax
and eax, 1
jmp 0x44ec60
xor eax, eax
pop esi
leave
ret 4

Function at 0x44ec65
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 0x44ed7f
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]
add eax, 2
cmp cx, bx
jne 0x44eca8
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 + 0x80]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x44ed6f
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 0x44ed5d
push 0xff
lea eax, [ebp - 0x133]
push ebx
push eax
mov byte [ebp - 0x134], bl
call fcn.0043b5d0
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov edi, 0x100
jmp 0x44ed43
cmp dword [ebp + 8], ebx
je 0x44ed5a
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 0x44ed23
jmp 0x44ed5d
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]
pop edi
pop esi
cmp dword [ebp - 8], ebx
jge 0x44ed88
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 8
Function at 0x44ee06
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 0x44ee7e
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.00437405
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 0x44ee82
cmp dword [ebp + 8], ebx
je 0x44ee7e
push dword [ebp + 8]
call fcn.00436979
pop ecx
xor eax, eax
jmp 0x44ee85
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x44ee8e
mov ecx, dword [edi]
mov byte [eax + ecx], bl
pop ebx
leave
ret 0xc
Function at 0x44f657
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 0x44f7ea
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 0x44f7e9
push esi
call fcn.00437895
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.0043b5d0
xor eax, eax
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push esi
push eax
call fcn.0043b5d0
lea eax, [ebx + 0xd8]
lea edx, [ebp - 0x214]
add esp, 0x18
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x44f700
lea eax, [ebx + 0x2e0]
lea edx, [ebp - 0x41c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x44f71d
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.00437ba9
pop ecx
pop ecx
test eax, eax
jne 0x44f7d6
add ebx, 0x6f0
push ebx
push dword [ebp + 8]
call fcn.00437ba9
pop ecx
pop ecx
test eax, eax
jne 0x44f7d6
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call fcn.004379e9
pop ecx
pop ecx
test eax, eax
je 0x44f7a0
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
call fcn.004379e9
pop ecx
pop ecx
test eax, eax
jne 0x44f7e9
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.00437ba9
pop ecx
pop ecx
test eax, eax
je 0x44f7e9
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push str.UGUIDTimeStamp
jmp 0x44f7e4
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push 0x47155c
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 0x450e08
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov ebx, eax
call fcn.0044edae
push 0x103
xor esi, esi
lea eax, [ebp - 0x103]
push esi
push eax
mov byte [ebp - 0x104], 0
call fcn.0043b5d0
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x450e8a
dec eax
je 0x450e6b
dec eax
je 0x450e4c
push 2
pop eax
jmp 0x450f3f
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVYUElHR1k
call fcn.00450dcc
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x450e5f
jmp 0x450ea7
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVY
call fcn.00450dcc
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x450e7e
jmp 0x450ea7
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVYU0I
call fcn.00450dcc
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x450e9d
lea eax, [ebp - 0x104]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push eax
mov dword [ebx + 0xd0c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x450ecc
xor eax, eax
jmp 0x450f3f
push edi
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x450ed4
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 + 0xd10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x450f3b
push dword [ebx + 0xd0c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx + 0xd0c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0xd10]
mov dword [ebx + 0xd0c], edi
call esi
mov dword [ebx + 0xd10], edi
xor eax, eax
jmp 0x450f3e
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45317a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x40b]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 8], esi
mov byte [ebp - 0x40c], bl
call fcn.0043b5d0
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push 1
mov edi, 0x40000000
push edi
add esi, 0x130
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call esi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x453214
lea eax, [ebp - 0x40c]
push str._tserver_tlocal_tfileset_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
lea eax, [ebp - 0x40c]
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4531ec
sub eax, ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push ebx
push 0x80
push 2
push ebx
push 1
push edi
add eax, 0x2c
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x40c]
push str.file_thash_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
lea eax, [ebp - 0x40c]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x453248
push ebx
lea ecx, [ebp - 0xc]
push ecx
sub eax, esi
push eax
lea eax, [ebp - 0x40c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45385f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x470e54
push dword [ebp + 8]
call fcn.00438800
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x45387f
and dword [ebx], eax
or eax, 0xffffffff
jmp 0x4538cf
push esi
push 2
push 0
push edi
call fcn.00438e0d
push edi
call fcn.00438d1e
push 0
push 0
push edi
mov esi, eax
call fcn.00438e0d
lea eax, [esi + 1]
push eax
call fcn.00436a77
push edi
push esi
push 1
push eax
mov dword [ebx], eax
call fcn.00438a61
add esp, 0x30
cmp esi, eax
je 0x4538c5
push dword [ebx]
call fcn.00436a3d
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x4538ce
push edi
call fcn.00438ef6
pop ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4538e3
Capabilities:
Create directory
Get file attributes

Disassembly:
cmp byte [edi], 0
je 0x45390b
push esi
mov esi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x4538f5
cmp al, 0x2f
jne 0x453904
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 0x4538eb
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x453919
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
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 0x4539a5
mov ecx, dword [esi + 0x2a4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x18]
xor edi, edi
mov ecx, dword [esi + 0x2a4]
call fcn.00417280
cmp al, 1
jne 0x453964
push 0x64
add ebx, 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x64
jl 0x453944
push 0x103
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.0043b5d0
push ebx
lea eax, [ebp - 0x104]
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 - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x453a02
fld dword [ebp + 8]
call fcn.00439ee6
cmp eax, dword [0x48e8d8]
jbe 0x4539dd
push dword [esi + 0x294]
fld dword [ebp + 8]
fmul qword [0x4724e0]
push dword [esi + 0x254]
push 1
push 0x3e8
call fcn.00439ee6
push eax
call dword [esi + 0x250]
push 0xffffffffffffffff
push dword [0x48e8e0]
call edi
test eax, eax
jne 0x453a00
mov eax, dword [ebp + 0xc]
push dword [0x48e8e0]
add dword [0x48e2a4], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop edi
pop ebx
leave
ret 8

Function at 0x453ba0
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.00437405
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.00466023
add esp, 0x18
test eax, eax
je 0x453c71
push ebx
push 0
push str.files
push 0x470804
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 0x453c46
lea eax, [esi + 0x2a8]
mov dword [ebp + 0xc], eax
cmp byte [ebp + 0xb], 0
je 0x453c71
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
call fcn.00439199
pop ecx
pop ecx
test eax, eax
jne 0x453c33
mov byte [ebp + 0xb], al
add dword [ebp + 0xc], 4
inc edi
cmp edi, dword [esi + 0x2bc]
jb 0x453c19
cmp byte [ebp + 0xb], 0
je 0x453c71
mov edi, dword [ebp - 4]
test edi, edi
je 0x453c71
push ebx
call fcn.00466023
pop ecx
test eax, eax
je 0x453c71
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