joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce626
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x55bb24]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x522ab6
call fcn.004f896f
and dword [ebp - 4], 0
mov edi, dword [esi + 8]
mov edx, dword [esi + 4]
cmp edx, edi
je 0x4ce67a
mov eax, edi
sub eax, edi
sar eax, 2
mov ecx, eax
shl ecx, 2
lea ebx, [ecx + edx]
test eax, eax
jle 0x4ce677
push ecx
push edi
push ecx
push edx
call fcn.004f071c
add esp, 0x10
mov dword [esi + 8], ebx
xor edi, edi
push 0x228
lea eax, [ebp + 4]
push edi
push eax
mov dword [ebp], edi
call fcn.004f4810
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor bl, bl
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4ce6d3
lea ecx, [ebp + 0x238]
call fcn.00402d80
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.004f070d
add ebp, 0x230
leave
ret
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4ce765
cmp dword [ebp + 0x250], 8
mov eax, dword [ebp + 0x23c]
jae 0x4ce6ff
lea eax, [ebp + 0x23c]
push 0xffffffffffffffff
lea ecx, [ebp + 0x24]
push ecx
push 0xffffffffffffffff
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x4ce753
mov edx, dword [esi + 4]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
test edx, edx
jne 0x4ce728
xor ecx, ecx
jmp 0x4ce730
mov ecx, dword [esi + 0xc]
sub ecx, edx
sar ecx, 2
mov eax, dword [esi + 8]
mov ebx, eax
sub ebx, edx
sar ebx, 2
cmp ebx, ecx
jae 0x4ce748
mov dword [eax], edi
add eax, 4
mov dword [esi + 8], eax
jmp 0x4ce753
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
call fcn.004ce829
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4ce6ea
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ce6a3

Function at 0x4d0424
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [eax + 0x1c], 8
mov dword [ebp - 4], 1
jb 0x4d043c
mov ecx, dword [eax + 8]
jmp 0x4d043f
lea ecx, [eax + 8]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push ecx
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4d046d
push eax
lea esi, [ebp - 0x18]
call fcn.004452b0
push 0x54cc44
mov eax, esi
push eax
call fcn.004f4646
leave
ret
Function at 0x4d046f
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x52533f
call fcn.0051f7c8
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
xor eax, eax
xor esi, esi
inc esi
cmp byte [ebp + 0x2c], bl
mov dword [ebp - 4], esi
mov word [ebp - 0x21c], ax
setne al
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.0040b580
mov dword [ebp - 0x14], esi
call fcn.004d0163
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x10]
push eax
mov ecx, edi
call fcn.0040a640
cmp byte [ebp + 0x2c], bl
je 0x4d04f1
cmp dword [edi + 0x18], 8
jb 0x4d04e5
mov eax, dword [edi + 4]
jmp 0x4d04e8
lea eax, [edi + 4]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.004d0163
lea ecx, [ebp + 0x10]
call fcn.00402d80
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4d05f3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x525c9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
and dword [esp], 0
and dword [esp], 0
push ebx
push esi
push edi
lea ebx, [esp + 0xc]
mov edi, 0x1000
lea esi, [esp + 0x10]
call fcn.0040b3c0
and dword [esp + 0x2c], 0
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
push dword [esp + 0x14]
sar eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.0040b580
call fcn.00439530
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d32b3
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x52212a
call fcn.0051f7c8
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004e171e
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.004f0e27
pop ecx
cmp eax, edi
je 0x4d32ea
mov ecx, eax
call fcn.0040abc0
jmp 0x4d32ec
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4d4c30
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [esi], 0
push 0xf0000000
push 1
push 0x544060
push 0
push esi
mov dword [esi + 4], eax
mov dword [esi + 8], 0x48
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4d4c6f
push 0x54cccc
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 1
call fcn.004f4646
mov eax, esi
leave
ret
Function at 0x4d4d58
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, 0x5252b5
call fcn.0051f7c8
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
call fcn.004d4c83
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x20]
lea eax, [eax + eax + 0x64]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x18], bl
cmp eax, ebx
jbe 0x4d4dae
lea edx, [ebp - 0x18]
push edx
push eax
xor ecx, ecx
push ecx
lea eax, [ebp - 0x3c]
call fcn.00418410
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0xc]
call fcn.00409d20
push dword [ebp + 0x20]
mov eax, dword [eax + 4]
mov edi, dword [ebp - 0x38]
push eax
push edi
call fcn.004f7510
mov eax, dword [ebp + 0x20]
add esp, 0xc
sub esi, edi
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
xor esi, esi
inc esi
push esi
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4d4e18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x54cccc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 5
push eax
call fcn.004f4646
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor ebx, ebx
push ebx
push ebx
jmp 0x4d4e04
push dword [ebp - 0x1c]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
push edi
call fcn.004183e0
lea esi, [ebp - 0x3c]
call fcn.00439530
lea ecx, [ebp + 0xc]
call fcn.00402b30
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x20
Function at 0x4d4e54
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, 0x52529b
call fcn.0051f7c8
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 0x20], ebx
call fcn.004d4c83
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
lea eax, [esi + esi]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x18], bl
cmp eax, ebx
jbe 0x4d4ea3
lea edx, [ebp - 0x18]
push edx
push eax
xor ecx, ecx
push ecx
lea eax, [ebp - 0x34]
call fcn.00418410
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x30]
call fcn.004f7510
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x20], esi
push ebx
push 1
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4d4ef1
push 0x54cccc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 6
push eax
call fcn.004f4646
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor ebx, ebx
push ebx
push ebx
jmp 0x4d4edd
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x30]
call fcn.004183e0
lea esi, [ebp - 0x34]
call fcn.00439530
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x4d4f71
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x52223e
call fcn.0051f7c8
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [eax + 0x1c], 8
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp + 8], 4
jb 0x4d4f9e
mov ecx, dword [eax + 8]
jmp 0x4d4fa1
lea ecx, [eax + 8]
lea edx, [ebp + 8]
push edx
push dword [ebp + 0xc]
push esi
push esi
push ecx
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x4d4fdc
push eax
lea esi, [ebp - 0x24]
call fcn.0041f3d0
push 0x54cc08
mov eax, esi
push eax
call fcn.004f4646
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, 0x4d4fdc
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x4d58ae
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push esi
mov esi, 0x114
push esi
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004f4810
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4d5989
call fcn.004cefff
mov edx, dword [eax]
push 8
mov ecx, eax
call dword [edx + 8]
test al, al
je 0x4d5989
push 0x534dc4
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x427160
push str.Cant_get_version_info._Error:
push ecx
push 0x534dd4
push ecx
push 0xb0
push ecx
push 0x534dd8
push ecx
push str.IsVista
push ecx
push 0x534dc0
push ecx
call fcn.004cf0d6
pop ecx
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
pop ecx
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
pop ecx
pop ecx
mov esi, eax
call fcn.00426b10
push eax
call fcn.0041f0d0
pop ecx
push eax
call fcn.00405660
pop ecx
pop ecx
push 8
call fcn.004cf0e5
cmp dword [esp + 0xc], 6
pop esi
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret

Function at 0x4d5bf4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [eax + 0x1c], 8
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], ecx
jb 0x4d5c12
mov ecx, dword [eax + 8]
jmp 0x4d5c15
lea ecx, [eax + 8]
push 8
lea edx, [ebp - 8]
push edx
push 0xb
push 0
push ecx
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4d5c43
push eax
lea esi, [ebp - 0x1c]
call fcn.004452b0
push 0x54cc44
mov eax, esi
push eax
call fcn.004f4646
pop esi
leave
ret 8

Function at 0x4d76e9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004f13ad
add esp, 0x18
leave
ret
Function at 0x4d78d5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fcfb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x55bb24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x55fec8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d7957
push 0x20
call fcn.004f0e27
pop ecx
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x4d7934
mov ecx, dword [ebp - 0x18]
call fcn.004d7e10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
jmp 0x4d7938
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [0x55fec8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004d7ea5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret

Function at 0x4d99ac
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fec9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x55bb24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4d9a02
push dword [ebp - 0x10]
call fcn.004d7819
pop ecx
push 0
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
call fcn.004cea8f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x4f070d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55bb24]
jne 0x4f0717
repz ret
jmp fcn.004fb617
Function at 0x50a61e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004fd4de
and dword [ebp - 4], 0
cmp dword [0x560db0], 0
mov ebx, eax
jne 0x50a6cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x50a780
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x50a780
push eax
call fcn.004fd46c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x560db0], eax
call esi
push eax
call fcn.004fd46c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x560db4], eax
call esi
push eax
call fcn.004fd46c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x560db8], eax
call esi
push eax
call fcn.004fd46c
pop ecx
mov dword [0x560dc0], eax
test eax, eax
je 0x50a6cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004fd46c
pop ecx
mov dword [0x560dbc], eax
mov eax, dword [0x560dbc]
cmp eax, ebx
je 0x50a727
cmp dword [0x560dc0], ebx
je 0x50a727
push eax
call fcn.004fd4e7
push dword [0x560dc0]
mov esi, eax
call fcn.004fd4e7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x50a727
test edi, edi
je 0x50a727
call esi
test eax, eax
je 0x50a71e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x50a71e
test byte [ebp - 0xc], 1
jne 0x50a727
or dword [ebp + 0x10], 0x200000
jmp 0x50a760
mov eax, dword [0x560db4]
cmp eax, ebx
je 0x50a760
push eax
call fcn.004fd4e7
pop ecx
test eax, eax
je 0x50a760
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x50a760
mov eax, dword [0x560db8]
cmp eax, ebx
je 0x50a760
push eax
call fcn.004fd4e7
pop ecx
test eax, eax
je 0x50a760
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x560db0]
call fcn.004fd4e7
pop ecx
test eax, eax
je 0x50a780
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x50a782
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x50f48f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x560e30], 0
push esi
jne 0x50f402
call fcn.0050f328
test eax, eax
je 0x50f445
mov eax, dword [0x560e30]
cmp eax, 1
jne 0x50f423
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x50f445
pop esi
ret
push eax
call dword [0x560e38]
test eax, eax
jne 0x50f48d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x50f449
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x560e30]
call dword [0x560e38]
mov edi, eax
test edi, edi
je 0x50f46e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x50f48a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x560e30]
call dword [0x560e34]
add edi, 0x10
cmp edi, esi
jb 0x50f476
mov eax, edi
pop edi
pop esi
ret
jmp 0x50f3ef
Function at 0x50fcb7
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and dword [eax + 0x14], 0
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
leave
ret

Function at 0x511127
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
mov dword [ebp - 0x24], ecx
and dword [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov cl, 0x20
call fcn.0051e6e0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
push dword [eax]
call fcn.00509276
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x51118e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
jmp 0x511192
or dword [ebp - 0x28], 0xffffffff
mov eax, dword [ebp - 0x28]
pop edi
leave
ret 0x10
Function at 0x5120f2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520ffd
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x55bb24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x850], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], SysReAllocString
cmp dword [ebp + 0xc], 0
je 0x512241
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jae 0x51214a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x854], eax
jmp 0x512153
lea eax, [ebp + 0xc]
mov dword [ebp - 0x854], eax
mov eax, dword [ebp - 0x854]
mov dword [ebp - 0x848], eax
mov eax, dword [ebp - 0x848]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x850]
push dword [eax]
call fcn.005058d5
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x512222
push 0x538c6c
lea eax, [ebp - 0x844]
push eax
call fcn.00511e22
pop ecx
pop ecx
mov dword [ebp - method.yexception.virtual_0], vtable.yexception_with_line_info.0
mov dword [ebp - 0x438], str.c:projectsdesktop.trunkutil_sysfile.h
mov dword [ebp - 0x434], 0x183
lea eax, [ebp - 0x844]
mov dword [ebp - 0x858], eax
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x850]
mov eax, dword [eax + 8]
mov dword [ebp - 0x84c], eax
push dword [ebp - 0x84c]
push str.can_not_read_data_from_file__s___S_
push dword [ebp - 0x858]
call fcn.00512256
add esp, 0xc
push eax
lea ecx, [ebp - 0x430]
call fcn.00512308
push 0x54b650
lea eax, [ebp - 0x430]
push eax
call fcn.004f4646
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x844]
call fcn.004f0857
cmp dword [ebp - 0x18], 0
jne 0x51222a
jmp 0x512241
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
jmp 0x51212d
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 8

Function at 0x5137e1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x513874
push 0x400
call fcn.004f2867
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x513837
push 1
push 0x55cf6c
lea ecx, [ebp - 0x14]
call fcn.004f07dd
mov dword [ebp - 0x14], vtable.std::bad_alloc.0
push 0x54cad0
lea eax, [ebp - 0x14]
push eax
call fcn.004f4646
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
call dword [eax + 4]
mov dword [ebp - 4], eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp - 8]
push 0x518e45
call fcn.004d78d5
pop ecx
pop ecx
mov eax, dword [ebp - 4]
leave
ret
Function at 0x513879
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52179f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x55bb24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 4
call fcn.004f0e27
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5138d0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.Tls::TValue_struct_TErrString_::TConstructor.0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.Tls::TValue_struct_TErrString_::TDefaultConstructor.0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x5138d4
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x513911
push dword [ebp - 0x18]
call fcn.004d79e7
pop ecx
mov byte [ebp - 4], 1
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret

Function at 0x51586c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 4]
push dword [ecx + eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004f7d6f
add esp, 0x10
leave
ret 8

Function at 0x5158fb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 4]
push dword [ecx + eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004f15bf
add esp, 0x10
leave
ret 8

Function at 0x516553
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push dword [eax + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004f15bf
add esp, 0x10
leave
ret 8