joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x3c]
push eax
mov edi, ecx
push esi
mov dword [ebp - 0xc], edi
xor ebx, ebx
mov byte [ebp - 1], 1
call fcn.004390b2
add esp, 8
test eax, eax
jne 0x432069
push 0x4720dc
push esi
call fcn.00437ee0
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x432074
push esi
push str.ERROR:_Unable_to_open__s_for_reading_n
call fcn.00439a0a
add esp, 8
lea ecx, [ebp + 0xc]
push ecx
mov ecx, edi
mov dword [ebp + 0xc], ebx
call fcn.00431d90
mov esi, dword [ebp + 0xc]
push esi
push str.__s__n
call fcn.00439a0a
push esi
call fcn.0043611d
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x432069
mov dword [eax], ebx
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], ebx
xor edi, edi
jmp 0x432080
mov esi, dword [ebp - 0x28]
push esi
call fcn.00436157
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x4320d5
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x1e
jl 0x432080
mov edx, dword [ebp + 0xc]
cmp dword [edx], ebx
jne 0x4320d2
mov eax, dword [ebp + 8]
push eax
push str.Cabby:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.00437c6f
add eax, 0x40
push eax
call fcn.0043815e
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx]
test eax, eax
je 0x4320e3
mov dword [eax], esi
test esi, esi
je 0x43219f
jmp 0x4320f0
sub esi, ebx
cmp esi, 0x8000
jbe 0x4320ff
mov esi, 0x8000
mov edx, dword [ebp - 8]
push edx
push esi
push 1
push edi
call fcn.00438141
add esp, 0x10
cmp eax, esi
jne 0x432136
mov esi, dword [ebp - 0x28]
add ebx, eax
add edi, eax
cmp ebx, esi
jb 0x4320f0
mov eax, dword [ebp - 8]
push eax
call fcn.004385d6
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push eax
push ebx
push esi
push str.Cabby:_Unable_to_read__li_bytes_at_offset__li_from_file__s_n
call fcn.00437c6f
add eax, 0x40
push eax
call fcn.0043815e
add esp, 0x14
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], 0
call fcn.00431d90
mov esi, dword [ebp + 8]
push esi
push str.__s__n
call fcn.00437c6f
add eax, 0x40
push eax
call fcn.0043815e
push esi
call fcn.0043611d
mov edx, dword [ebp + 0xc]
push edx
call fcn.0043611d
mov eax, dword [ebp + 0x10]
add esp, 0x14
test eax, eax
je 0x43219b
mov dword [eax], 0
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
push eax
call fcn.004385d6
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4321d5
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 0x432216
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 0x4321ef
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x432234
dec esi
je 0x43222b
dec esi
jne 0x432239
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 0x43b41d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47a790]
jne 0x43b427
repz ret
jmp fcn.0044508d

Function at 0x445193
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47a790]
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.0043c4ae
and dword [ebp - 0x14], 0
cmp dword [0x490074], 0
mov dword [ebp - 0x18], eax
jne 0x445246
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4452ee
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46d930
push ebx
call edi
test eax, eax
je 0x4452ee
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x46d920
push ebx
mov dword [0x490074], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x490078], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49007c], eax
call edi
push eax
call esi
mov dword [0x490084], eax
test eax, eax
je 0x445246
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x490080], eax
mov eax, dword [0x490080]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x44529f
cmp dword [0x490084], ecx
je 0x44529f
push eax
call esi
push dword [0x490084]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x44529f
test ebx, ebx
je 0x44529f
call edi
test eax, eax
je 0x445296
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x445296
test byte [ebp - 8], 1
jne 0x44529f
or dword [ebp + 0x10], 0x200000
jmp 0x4452d2
mov eax, dword [0x490078]
cmp eax, dword [ebp - 0x18]
je 0x4452d2
push eax
call esi
test eax, eax
je 0x4452d2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4452d2
mov eax, dword [0x49007c]
cmp eax, dword [ebp - 0x18]
je 0x4452d2
push eax
call esi
test eax, eax
je 0x4452d2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x490074]
call esi
test eax, eax
je 0x4452ee
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4452f0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b41d
leave
ret
Function at 0x44abed
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 0x44ac15
call fcn.0043a313
and dword [eax], 0
call fcn.0043a300
mov dword [eax], 0x16
call fcn.0043d1c8
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44ac32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043a326
pop ecx
jmp 0x44ac10
test byte [ebp + 0xc], 0x80
je 0x44ac3d
and eax, 0xfffffffe
jmp 0x44ac40
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x44ac23
xor eax, eax
pop ebp
ret
Function at 0x44ceeb
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.0044d719
lea esi, [edi + 0x10]
call fcn.0044d719
lea esi, [edi + 0x1c]
call fcn.0044d719
push dword [ebp + 8]
lea eax, [edi + 4]
push eax
xor ebx, ebx
or eax, 0xffffffff
mov dword [edi + 0x48], ebx
call fcn.0044d80f
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 0x44cfe3
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 0x44cfe3
lea eax, [ebp - 0x118]
push eax
lea eax, [edi + 0x10]
push eax
or eax, 0xffffffff
call fcn.0044d80f
lea eax, [ebp - 0x220]
push eax
lea eax, [edi + 0x1c]
push eax
or eax, 0xffffffff
call fcn.0044d80f
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.00438dec
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00438dec
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00438ab7
add esp, 0x30
test eax, eax
jne 0x44cfdf
or dword [edi + 0x48], 1
xor eax, eax
jmp 0x44cfe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44d780
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.0044d6be
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x44d7a6
mov ebx, dword [esi + 8]
add ebx, 0x64
call fcn.0044d6be
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 0x44d79b
xor eax, eax
cmp dword [ebp - 0xc], eax
jne 0x44d7f7
cmp dword [ebp - 8], eax
jbe 0x44d7eb
cmp dword [ebp - 8], 2
jbe 0x44d7e3
cmp dword [ebp - 8], 7
jne 0x44d7eb
cmp dword [ebp - 4], eax
je 0x44d7eb
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, esi
call fcn.0044d73e
jmp 0x44d805
xor ebx, ebx
call fcn.0044d6be
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 0x44dc92
Capabilities:
Print debug messages

Disassembly:
push edi
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
call fcn.0044d8b7
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.00436059
pop ecx
push dword [esi + 8]
call fcn.00436059
pop ecx
push dword [esi + 0xc]
call fcn.00436059
pop ecx
push esi
call fcn.00436059
pop ecx
pop edi
ret

Function at 0x44dd51
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 0x44dcd9
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 0x44e502
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.0043afd0
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 0x44e5f4
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 0x44e567
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.0043afd0
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 0x44e5f2
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 0x44e5fc
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.0043afd0
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 0x44e688
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 0x44e656
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 0x44e688
shr eax, 4
not eax
and eax, 1
jmp 0x44e68a
xor eax, eax
pop esi
leave
ret 4

Function at 0x44e68f
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 0x44e7a9
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 0x44e6d2
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 + 0x88]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x44e799
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 0x44e787
push 0xff
lea eax, [ebp - 0x133]
push ebx
push eax
mov byte [ebp - 0x134], bl
call fcn.0043afd0
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov edi, pe_nt_image_headers32
jmp 0x44e76d
cmp dword [ebp + 8], ebx
je 0x44e784
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 0x44e74d
jmp 0x44e787
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 0x44e7b2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 8
Function at 0x45002b
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov ebx, eax
call fcn.0044e7d8
push 0x103
xor esi, esi
lea eax, [ebp - 0x103]
push esi
push eax
mov byte [ebp - 0x104], 0
call fcn.0043afd0
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x4500ad
dec eax
je 0x45008e
dec eax
je 0x45006f
push 2
pop eax
jmp 0x450162
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVYUElHR1k
call fcn.0044ffef
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x450082
jmp 0x4500ca
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVY
call fcn.0044ffef
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4500a1
jmp 0x4500ca
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVYU0I
call fcn.0044ffef
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4500c0
lea eax, [ebp - 0x104]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push eax
mov dword [ebx + 0xd14], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4500ef
xor eax, eax
jmp 0x450162
push edi
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4500f7
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 + 0xd18], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45015e
push dword [ebx + 0xd14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx + 0xd14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0xd18]
mov dword [ebx + 0xd14], edi
call esi
mov dword [ebx + 0xd18], edi
xor eax, eax
jmp 0x450161
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45401a
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.0043afd0
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 0x4540b4
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 0x45408c
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 0x4540e8
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 0x45446d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x4720dc
push dword [ebp + 8]
call fcn.00437ee0
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x45448d
and dword [ebx], eax
or eax, 0xffffffff
jmp 0x4544dd
push esi
push 2
push 0
push edi
call fcn.004384ed
push edi
call fcn.004383fe
push 0
push 0
push edi
mov esi, eax
call fcn.004384ed
lea eax, [esi + 1]
push eax
call fcn.00436157
push edi
push esi
push 1
push eax
mov dword [ebx], eax
call fcn.00438141
add esp, 0x30
cmp esi, eax
je 0x4544d3
push dword [ebx]
call fcn.0043611d
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x4544dc
push edi
call fcn.004385d6
pop ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4544f1
Capabilities:
Create directory
Get file attributes

Disassembly:
cmp byte [edi], 0
je 0x454519
push esi
mov esi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x454503
cmp al, 0x2f
jne 0x454512
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 0x4544f9
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x454527
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 0x4545b3
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.00416970
cmp al, 1
jne 0x454572
push 0x64
add ebx, 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x64
jl 0x454552
push 0x103
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.0043afd0
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 0x454610
fld dword [ebp + 8]
call fcn.004395c6
cmp eax, dword [0x490f18]
jbe 0x4545eb
push dword [esi + 0x294]
fld dword [ebp + 8]
fmul qword [0x473988]
push dword [esi + 0x254]
push 1
push 0x3e8
call fcn.004395c6
push eax
call dword [esi + 0x250]
push 0xffffffffffffffff
push dword [0x490f20]
call edi
test eax, eax
jne 0x45460e
mov eax, dword [ebp + 0xc]
push dword [0x490f20]
add dword [0x4908e4], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop edi
pop ebx
leave
ret 8

Function at 0x4547ae
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.00436ae5
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.0046754c
add esp, 0x18
test eax, eax
je 0x45487f
push ebx
push 0
push str.files
push 0x471a8c
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 0x454854
lea eax, [esi + 0x2a8]
mov dword [ebp + 0xc], eax
cmp byte [ebp + 0xb], 0
je 0x45487f
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
call fcn.00438879
pop ecx
pop ecx
test eax, eax
jne 0x454841
mov byte [ebp + 0xb], al
add dword [ebp + 0xc], 4
inc edi
cmp edi, dword [esi + 0x2bc]
jb 0x454827
cmp byte [ebp + 0xb], 0
je 0x45487f
mov edi, dword [ebp - 4]
test edi, edi
je 0x45487f
push ebx
call fcn.0046754c
pop ecx
test eax, eax
je 0x45487f
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