joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ff20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push edi
mov eax, 0x201c
push esi
push ebx
call fcn.005d4d10
sub esp, eax
mov ebx, dword [esp + 0x2030]
cmp word [ebx + 2], 0x3a
je 0x440030
mov dword [esp], ebx
mov ecx, 0x8554b8
call fcn.0043fdb0
sub esp, 4
test eax, eax
jne 0x43ff80
mov dword [esp + 8], ebx
mov dword [esp + 4], str.ERROR_in_mkdir_r__:_Path_not_found_or_write_protected__S_n
mov dword [esp], 0x835180
call fcn.0041e920
add esp, 0x201c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4400a4
test al, 0x10
jne 0x43ff6e
lea esi, [esp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov ebx, esi
call sub.msvcrt.dll_wcscpy
mov edi, dword [sym.imp.msvcrt.dll__wmkdir]
mov ebp, dword [sym.imp.msvcrt.dll__errno]
jmp 0x43ffcc
mov eax, 0x5c
add ebx, 2
mov word [ebx - 2], ax
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
call sub.msvcrt.dll_wcschr
test eax, eax
mov ebx, eax
je 0x440050
xor edx, edx
mov word [eax], dx
mov dword [esp], esi
call edi
test eax, eax
jns 0x43ffc0
call ebp
cmp dword [eax], 0x11
je 0x43ffc0
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp eax, 2
jbe 0x43ffc0
call ebp
mov eax, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], str.ERROR_in_mkdir_r__:_failed__wmkdir__S__d__n
mov dword [esp], 0x835180
mov dword [esp + 0xc], eax
call fcn.0041e920
jmp 0x43ffc0
cmp word [ebx + 4], 0
jne 0x43ff42
add esp, 0x201c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call edi
test eax, eax
jns 0x43ff6e
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
cmp dword [eax], 0x11
je 0x43ff6e
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp eax, 2
jbe 0x43ff6e
call ebx
mov eax, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], str.ERROR_in_mkdir_r__:_failed__wmkdir__S__d__n
mov dword [esp], 0x835180
mov dword [esp + 0xc], eax
call fcn.0041e920
jmp 0x43ff6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test al, 0x7f
je 0x43ff6e
jmp 0x43ff99

Function at 0x4400c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
add esp, 0x1c
ret 4
Function at 0x440110
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
mov ecx, 0xf
sub esp, 0x6c
lea ebp, [esp + 0x24]
mov esi, dword [esp + 0x80]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x8c]
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.Run__S__S__d__d__n
mov dword [esp], 0x835180
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x34], esi
call fcn.0041eed0
mov dword [esp + 4], 0x727a7a
mov dword [esp], esi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x440215
mov eax, dword [esp + 0x84]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x727a7a
mov dword [esp], 0
mov dword [esp + 8], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
sub esp, 0x18
test ebx, ebx
je 0x440209
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
mov ebx, dword [esp + 0x20]
add esp, 0x6c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
sub esp, 4
jmp 0x4401d1
Function at 0x4416e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor ebx, ebx
sub esp, 0x48
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.00409690
sub esp, 8
cmp dword [esp + 0x28], 4
jg 0x441711
add esp, 0x48
mov eax, ebx
pop ebx
ret 4
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionSystemRestore
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x4417d0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], 4
cmp eax, 5
je 0x441824
cmp eax, 0xb
mov ebx, 1
je 0x4417b4
lea eax, [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], str.RPSessionInterval
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x441800
cmp dword [esp + 0x34], 1
sete bl
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov eax, ebx
add esp, 0x48
pop ebx
ret 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR_in_SystemProtectionEnabled__:_error_in_RegOpenKeyEx__d_n
mov ebx, 1
mov dword [esp], 0x835180
call fcn.0041e920
add esp, 0x48
mov eax, ebx
pop ebx
ret 4
cmp eax, 2
je 0x441820
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR_in_SystemProtectionEnabled__:_error_in_RegQueryValueEx__d_n
mov dword [esp], 0x835180
call fcn.0041e920
jmp 0x4417b4
xor ebx, ebx
jmp 0x4417b4
lea eax, [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisableSR
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x441870
mov eax, dword [esp + 0x34]
test eax, eax
sete bl
jmp 0x4417b4
cmp eax, 2
je 0x441820
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR_in_SystemProtectionEnabled__:_error_in_RegQueryValueEx__d_n
mov ebx, 1
mov dword [esp], 0x835180
call fcn.0041e920
jmp 0x4417b4
Function at 0x4418a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
sub esp, 0x38
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionSystemRestore
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x441943
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.SystemRestorePointCreationFrequency
mov ebx, 0xffffffff
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
mov eax, dword [esp + 0x20]
cmove ebx, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
add esp, 0x38
mov eax, ebx
pop ebx
ret
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR_in_GetRestorePointCreationFrequency__:_error_in_RegOpenKeyEx__d_n
mov ebx, 0xfffffffe
mov dword [esp], 0x835180
call fcn.0041e920
jmp 0x44193c

Function at 0x441970
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
sub esp, 0x38
mov ebx, dword [esp + 0x40]
cmp ebx, 0xfffffffe
je 0x441a06
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x20106
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionSystemRestore
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x441a10
cmp ebx, 0xffffffff
mov dword [esp + 0x2c], ebx
je 0x441a30
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.SystemRestorePointCreationFrequency
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
add esp, 0x38
pop ebx
ret 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR_in_SetRestorePointCreationFrequency__:_error_in_RegOpenKeyEx__d_n
mov dword [esp], 0x835180
call fcn.0041e920
add esp, 0x38
pop ebx
ret 4
mov eax, dword [esp + 0x28]
mov dword [esp + 4], str.SystemRestorePointCreationFrequency
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
sub esp, 8
jmp 0x4419f6
Function at 0x4459e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x21e]
lea ecx, [ebp - 0x230]
sub esp, 0x244
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x224], pe_nt_image_headers32
mov dword [ebp - 0x228], eax
xor eax, eax
mov byte [ebp - 0x220], 0
mov word [ebp - 0x21e], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], 0x75d6e8
mov dword [esp], eax
call fcn.00403cc0
mov ebx, dword [ebp - 0x228]
sub esp, 4
movzx eax, word [ebx]
test ax, ax
je 0x445b40
mov edx, ebx
jmp 0x445a60
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
je 0x445b40
cmp ax, 0x5f
jne 0x445a50
movzx ecx, word [edx + 2]
mov eax, ecx
sub ecx, 0x30
cmp ecx, 9
ja 0x445a54
xor eax, eax
mov word [edx], ax
mov eax, dword [0x70c368]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov dword [esp], ebx
call dword [eax + 0x18]
sub esp, 4
test eax, eax
je 0x445b40
lea ecx, [ebp - 0x10a]
lea edx, [ebp - 0x11c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x83d1c0
mov dword [esp + 4], 0x73151c
mov dword [ebp - 0x114], ecx
mov dword [esp], edx
xor ecx, ecx
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x110], pe_nt_image_headers32
mov byte [ebp - 0x10c], 0
mov dword [ebp - 0x11c], 0x75d6e8
mov word [ebp - 0x10a], cx
call fcn.00403910
mov eax, dword [ebp - 0x114]
mov dword [esp + 4], str.Old_file:__S_n
mov dword [esp], 0x835180
mov dword [esp + 8], eax
call fcn.0041eed0
mov eax, dword [ebp - 0x114]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wremove]
mov eax, dword [ebp - 0x118]
mov dword [ebp - method.nInst.virtual_0], vtable.nInst.0
test eax, eax
je 0x445b40
mov dword [esp], eax
call fcn.006eb310
lea esi, [esi]
mov eax, dword [ebp - 0x22c]
mov dword [ebp - method.nInst.virtual_0], vtable.nInst.0
test eax, eax
je 0x445b5c
mov dword [esp], eax
call fcn.006eb310
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x46f9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov dword [0x857a00], 0x857a08
mov dword [0x857a04], 0x857a10
call fcn.0046f980
test al, al
jne 0x46fa20
mov eax, dword [0x857a04]
mov eax, dword [eax]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Unsupported_Windows_version
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
lea esp, [ebp - 8]
mov eax, 2
pop ebx
pop esi
pop ebp
ret
lea ecx, [ebp - 0x18]
call fcn.004a8420
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004a8a90
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.004a83b0
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4762f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ecx, dword [esp + 8]
xor edx, edx
mov dword [ecx + 0x34], 0
mov byte [ecx + 0x1f], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x30], 0x20
mov byte [ecx + 0x1d], 1
mov dword [ecx + 0x48], 4
mov byte [ecx + 0x1e], 0
nop
mov eax, edx
mov ebx, edx
and eax, 1
shr ebx, 1
neg eax
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor ebx, eax
mov eax, ebx
and ebx, 1
neg ebx
shr eax, 1
and ebx, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor ebx, eax
mov eax, ebx
and ebx, 1
shr eax, 1
neg ebx
and ebx, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
mov dword [ecx + edx*4 + 0x60], eax
add edx, 1
cmp edx, 0x100
jne 0x476320
pop ebx
ret

Function at 0x478ad0
Capabilities:
Create thread

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov edx, eax
mov eax, dword [esp + 0x40]
mov dword [eax], edx
xor eax, eax
test edx, edx
je 0x478b20
add esp, 0x3c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 1
test eax, eax
cmove eax, edx
add esp, 0x3c
ret
Function at 0x4a8520
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov esi, edx
mov edi, ecx
sub esp, 0x5c
mov ebx, dword [0x857a04]
mov eax, dword [ebx]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], 0x73369c
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [ebx]
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str._Memory_
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add esi, 0xfffff
lea ebx, [esp + 0x30]
adc edi, 0
shrd esi, edi, 0x14
shr edi, 0x14
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.004ada10
cmp byte [esp + 0x30], 0
je 0x4a866e
xor edx, edx
jmp 0x4a85c2
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4a85c0
cmp eax, 6
ja 0x4a862c
cmp edx, 5
mov byte [esp + 0x2f], 0x20
je 0x4a8682
add edx, 3
mov byte [esp + 0x2e], 0x20
cmp edx, 7
je 0x4a8688
cmp edx, 6
mov byte [esp + 0x2d], 0x20
je 0x4a868e
cmp edx, 5
mov byte [esp + 0x2c], 0x20
je 0x4a8694
cmp edx, 4
mov byte [esp + 0x2b], 0x20
je 0x4a869a
cmp edx, 3
mov byte [esp + 0x2a], 0x20
je 0x4a86a0
lea ebx, [esp + 0x29]
mov byte [esp + 0x29], 0x20
mov eax, dword [0x857a04]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [0x857a04]
mov eax, dword [eax]
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x7336ab
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esp + 0x2f], 0x20
mov byte [esp + 0x2e], 0x20
mov edx, 2
jmp 0x4a85ef
lea ebx, [esp + 0x2f]
jmp 0x4a862c
lea ebx, [esp + 0x2e]
jmp 0x4a862c
lea ebx, [esp + 0x2d]
jmp 0x4a862c
lea ebx, [esp + 0x2c]
jmp 0x4a862c
lea ebx, [esp + 0x2b]
jmp 0x4a862c
lea ebx, [esp + 0x2a]
jmp 0x4a862c
Function at 0x4d6df0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov ebx, eax
mov esi, ecx
sub esp, 0x5c
mov eax, dword [eax]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x73693a
mov edi, dword [esp + 0x70]
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.Path:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov ecx, ebx
mov dword [esp], ebp
call fcn.004740b0
sub esp, 4
mov dword [esp], eax
call fcn.00474070
test edi, edi
je 0x4d6ef0
lea ebp, [esp + 0x10]
mov ecx, ebp
call fcn.00470e90
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004d6c60
mov eax, dword [ebx]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x73693a
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.Size:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], ebx
call fcn.00474070
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d6ef0
mov dword [esp], eax
call fcn.006eb310
test esi, esi
je 0x4d6f10
lea edi, [esp + 0x10]
mov dword [esp + 8], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.004dc1c0
test al, al
jne 0x4d6f20
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x73693a
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.Modified:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], ebx
call fcn.00474070
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4dbbe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
test esi, esi
je 0x4dbc12
mov eax, dword [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x736d6c
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
lea ebx, [ebp - 0x24]
test esi, esi
je 0x4dbc42
mov eax, dword [esi]
mov dword [esp + 8], 0x43
mov dword [esp + 4], 1
mov dword [esp], str._Y_es____N_o____A_lways____S_kip_all___A_u_to_rename_all____Q_uit_
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov ecx, esi
call fcn.00474040
mov ecx, ebx
call fcn.00470e90
mov dword [esp], ebx
mov ecx, 0x857bec
call fcn.004dc010
sub esp, 4
test al, al
je 0x4dbd60
mov eax, dword [0x857bec]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x4dbd60
mov ecx, ebx
call fcn.00471980
mov ecx, ebx
call fcn.00471910
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4dbcb0
cmp eax, 1
mov edx, dword [ebp - 0x24]
je 0x4dbcd0
test edx, edx
je 0x4dbc15
mov dword [esp], edx
call fcn.006eb310
test esi, esi
jne 0x4dbc19
jmp 0x4dbc42
mov eax, dword [0x857bec]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
jne 0x4dbd80
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
cmp eax, 1
jne 0x4dbc93
movzx eax, byte [edx]
lea ecx, [eax + 0x20]
lea edi, [eax - 0x41]
mov byte [ebp - 0x29], cl
mov ecx, edi
cmp cl, 0x19
movzx ecx, byte [ebp - 0x29]
cmovbe eax, ecx
sub eax, 0x61
cmp al, 0x18
ja case.0x4dbcf2.1
movzx eax, al
jmp dword [eax*4 + 0x736db4]
xor ebx, ebx
mov dword [esp], edx
call fcn.006eb310
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 2
jmp 0x4dbd02
mov ebx, 1
jmp 0x4dbd02
mov ebx, 5
jmp 0x4dbd02
mov ebx, 3
jmp 0x4dbd02
mov ebx, 4
jmp 0x4dbd02
mov edx, dword [ebp - 0x24]
mov ebx, 7
test edx, edx
jne 0x4dbd02
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x24]
mov ebx, 6
jmp 0x4dbd68
Function at 0x4e6070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
call fcn.004e5f60
mov esi, eax
mov dword [ebx + 0x14], eax
xor eax, eax
test esi, esi
je 0x4e6151
mov eax, dword [ebx]
lea edi, [ebx + 0x18]
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 4]
mov dword [esi + 8], edi
mov dword [esi + 0x68], eax
mov dword [esp + 4], 0x208
mov dword [esp], edi
call fcn.004e2ad0
mov dword [esp + 4], edi
mov dword [esp], 0
call fcn.004e1dd0
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esi], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
lea eax, [esi + 0x18]
mov dword [esp], eax
call fcn.004fe270
mov edx, dword [ebx + 4]
mov dword [esp + 4], 0
mov ecx, 1
mov dword [esp], esi
mov eax, dword [ebx]
call fcn.004e5190
test eax, eax
je 0x4e6131
cmp dword [esi + 0xb0], 1
je 0x4e6170
mov edx, dword [ebx]
mov dword [ebx + 0x84], 0
mov eax, esi
call fcn.004e3d70
test eax, eax
jne 0x4e6160
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x4e6148
mov dword [esp], esi
call fcn.004e5fa0
mov dword [esp], esi
call fcn.004ff2a0
mov dword [ebx + 0x14], 0
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esi + 0xb4], 3
jne 0x4e611a
mov eax, dword [esi + 0x78]
test eax, eax
jg 0x4e611a
mov ebp, dword [esi + 0xa4]
test ebp, ebp
jle 0x4e61f1
mov eax, dword [esi + 0xa8]
mov edx, dword [eax + 4]
cmp byte [edx], 0
jne 0x4e611a
mov edx, dword [eax + 8]
cmp byte [edx], 0
jne 0x4e611a
mov edx, dword [eax + 0xc]
cmp byte [edx], 0
jne 0x4e611a
add eax, 0x228
xor edx, edx
jmp 0x4e61ea
mov ecx, dword [eax]
mov edi, eax
cmp byte [ecx], 0
jne 0x4e611a
mov ecx, dword [eax + 4]
cmp byte [ecx], 0
jne 0x4e611a
mov ecx, dword [edi + 8]
add eax, 0x224
cmp byte [ecx], 0
jne 0x4e611a
add edx, 1
cmp edx, ebp
jne 0x4e61c0
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x84], 1
imul dword [esi + 0x64]
mov dword [esi + 0x14], 0
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004ff1a0
test eax, eax
mov dword [esi + 0x10], eax
jne 0x4e6160
mov dword [esi], 1
jmp 0x4e6131
Function at 0x5029a5
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x50]
call fcn.00614c34
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
sub esp, 0x18
mov ebx, eax
call fcn.004dccc9
mov ebp, eax
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp ebx, 0xffffffff
mov dword [esi], eax
mov dword [esi + 4], ebp
je 0x502a53
cmp edi, 0x17
lea edi, [esp + 0x28]
jne 0x502a3f
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 0x29
mov dword [esp], ebx
call dword [sym.imp.WSOCK32.DLL_setsockopt]
sub esp, 0x14
mov ecx, edi
call fcn.0062d0ac
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi], eax
mov dword [esi + 4], edx
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x503ca2
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, ecx
sub esp, 0x12c
lea ebx, [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
mov dword [esp + 4], pe_nt_image_headers32
call dword [sym.imp.msvcrt.dll__snwprintf]
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
sub esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
test ebx, ebx
jne 0x503d07
call ebp
jmp 0x503d73
cmp eax, 0xb7
jne 0x503d21
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push ecx
cmp byte [esi], 0
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jne 0x503d61
lea eax, [esi + 4]
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
push edx
push edx
jne 0x503d5e
call ebp
mov dword [esp], ebx
mov esi, eax
call edi
push ecx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
push ebx
jmp 0x503d73
mov byte [esi], 1
mov dword [esp], ebx
call edi
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
xor eax, eax
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret