joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fce0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
push 0
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x40fd3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0040feb0
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d318
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x10024
push str.XperiaCompanionService
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40fd66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x40fe15
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40fdf2
push str.XperiaCompanionService
push str.Stopping__s.
call fcn.0040feb0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x40fdce
mov eax, dword [ebp - 0x1c]
cmp eax, 3
jne 0x40fdd1
push 0x5c1110
call fcn.0040feb0
add esp, 4
push 0x3e8
call edi
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x40fda7
mov eax, dword [ebp - 0x1c]
push str.XperiaCompanionService
cmp eax, 1
jne 0x40fde2
push 0x5c1114
jmp 0x40fde7
push str._n_s_failed_to_stop._n
call fcn.0040feb0
mov ebx, dword [ebp - 0x24]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40fe0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x40fe15
push str.XperiaCompanionService
push str._s_is_removed._n
call fcn.0040feb0
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
test esi, esi
je 0x40fe2d
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d318
mov esp, ebp
pop ebp
ret
Function at 0x414110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551c36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5d3070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0044d35f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043c5f5
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414280
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x4142b1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4142a0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x41ed10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x41ed41
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x41ed30
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x425f90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x5db298]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x425fd2
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x425fd2
mov eax, dword [ecx]
test eax, eax
je 0x425fd2
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x425fc9
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
push eax
call fcn.0044d337
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.0044d35f
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x425ff3
movzx eax, bl
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
xor eax, eax
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x426000
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x5db298]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x426018
mov edx, dword [eax + 4]
jmp 0x42601a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x426039
test edx, edx
je 0x426039
cmp dword [edx], 0
jne 0x426039
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.0044d337
add esp, 4
pop ebp
ret
Function at 0x42cba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554278
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x50], edi
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
push ebx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042db80
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp esi, eax
je 0x42cc2e
sub eax, esi
sar eax, 1
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42cc2e
push esi
lea ecx, [ebp - 0x4c]
call fcn.00405800
mov ebx, 1
jmp 0x42cc4a
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov ebx, 2
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x34]
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
mov ecx, edi
push eax
call fcn.0041c8b0
or ebx, 4
test bl, 2
je 0x42cc99
mov eax, dword [ebp - 0x20]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x42cc85
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.0040e780
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
test bl, 1
je 0x42ccc7
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x42ccb3
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.0040e780
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
test esi, esi
je 0x42ccdc
mov ecx, dword [ebp - 0x14]
sub ecx, esi
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040e780
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d318
mov esp, ebp
pop ebp
ret

Function at 0x42d310
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5543e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5d3070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x1c
push str.boost::filesystem::copy_file
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.0040ef40
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x42d36d
mov eax, dword [edi]
jmp 0x42d36f
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x42d379
mov ecx, dword [esi]
jmp 0x42d37b
mov ecx, esi
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42d391
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42d393
xor eax, eax
lea ecx, [ebp - 0x24]
mov edx, esi
push ecx
push dword [ebp + 0xc]
mov ecx, eax
push edi
call fcn.0042cd40
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp eax, 0x10
jb 0x42d3bc
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.0040f1c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d570
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554458
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x42d5a9
mov eax, dword [edi]
jmp 0x42d5ab
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42d5c7
test esi, esi
je 0x42d5c3
mov ecx, esi
call fcn.0042c1d0
mov al, 1
jmp 0x42d644
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
mov ebx, eax
movq qword [ebp - 0x18], xmm0
call fcn.00402a00
cmp ebx, 0xb7
jne 0x42d602
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0042cb30
test al, al
je 0x42d602
test esi, esi
je 0x42d642
mov ecx, esi
call fcn.0042c1d0
jmp 0x42d642
test esi, esi
jne 0x42d638
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x30]
call fcn.0040f040
mov dword [ebp - 4], esi
call fcn.00402f40
push eax
push ebx
push edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x64]
call fcn.0042c460
push 0x5d189c
lea eax, [ebp - 0x64]
push eax
call fcn.0046587d
call fcn.00402f40
mov dword [esi], ebx
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d318
mov esp, ebp
pop ebp
ret
Function at 0x42d660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554488
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5d3070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
cmp dword [edi + 0x14], 8
jb 0x42d696
mov eax, dword [edi]
jmp 0x42d698
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x42d6ca
push dword [ebp + 8]
mov edx, edi
mov ecx, ebx
call fcn.0042d1e0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x400
je 0x42d790
cmp dword [edi + 0x14], 8
jb 0x42d6df
mov eax, dword [edi]
jmp 0x42d6e1
mov eax, edi
push eax
lea ecx, [ebp - 0x34]
call fcn.0042a480
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x42d72c
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.0040e780
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
cmp esi, 0xffffffff
je 0x42d6a7
mov ecx, edi
call fcn.0042d100
test al, al
jne 0x42d782
mov edx, dword [ebp - 0x14]
mov ecx, edi
call fcn.0042cdb0
push esi
mov dword [ebx], 9
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x42d79c
call fcn.0042c1d0
mov edx, dword [ebp - 0x14]
mov ecx, edi
mov dword [ebp - 0x1c], 3
test dl, 0x10
jne 0x42d7b4
mov dword [ebp - 0x1c], 2
call fcn.0042cdb0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4335a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 1
push 1
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x28], eax
test eax, eax
jne 0x4335e4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d318
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0xc], eax
mov ecx, edi
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.004336e0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx esi, al
nop dword [eax]
push 1
push 0xffffffffffffffff
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov cl, byte [edi + 0x2c]
test cl, cl
jne 0x4336b9
test eax, eax
je 0x433636
cmp eax, 0xc0
je 0x433600
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d318
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x433651
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x433623
push 0x4024
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x433623
mov ecx, dword [edi + 0x24]
lea eax, [esi + 0x18]
push 0x433900
push esi
push 0x2000
push eax
push ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x4020], edi
mov dword [esi + 0x401c], 0
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x4336a9
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [esi + 0x14]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004336e0
jmp 0x4335fa
push dword [edi + 0x24]
call ebx
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.0044d318
mov esp, ebp
pop ebp
ret

Function at 0x4336e0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 4]
cmp dword [esi + 0x20], 8
lea edx, [esi + 0xc]
jb 0x4336f6
mov edx, dword [edx]
push eax
push 0x1388
push 0x2000
push 0x2000
push 0xff
push 6
push 0x40000003
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x24], eax
pop esi
cmp eax, 0xffffffff
jne 0x433733
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
pop ebp
ret 4
push dword [ebp + 8]
push eax
call fcn.00433740
pop ebp
ret 4

Function at 0x433740
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x43378b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x433776
cmp eax, 0x3e5
jne 0x43378b
mov bl, 1
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x43378b
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x4341e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554e81
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d3070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 3
xorps xmm0, xmm0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
movsd qword [edi + 0x10], xmm0
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], 0
cmp dword [edi + 0x2c], 0x10
jb 0x434240
mov eax, dword [edi + 0x18]
jmp 0x434243
lea eax, [edi + 0x18]
mov esi, dword [ebp + 8]
mov byte [eax], 0
cmp byte [esi], 0
jne 0x434252
xor ecx, ecx
jmp 0x434260
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434257
sub ecx, ebx
push ecx
push esi
lea ecx, [edi + 0x18]
call fcn.0040ef40
mov dword [ebp - 4], 0
lea esi, [edi + 0x34]
push 0
mov byte [edi + 0x30], 0
push 0
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00437400
mov dword [esi], eax
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 1
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004373d0
mov dword [esi], eax
lea esi, [edi + 0x44]
mov byte [ebp - 4], 2
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004373a0
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x60], 0xf
mov dword [edi + 0x5c], 0
mov byte [edi + 0x4c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x434550
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554e81
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d3070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x18]
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [edi + 0x18]
movsd xmm0, qword [edi + 0x10]
push eax
movsd qword [ebx + 0x10], xmm0
call fcn.0040ea00
mov dword [ebp - 4], 0
lea esi, [ebx + 0x34]
mov al, byte [edi + 0x30]
push 0
mov byte [ebx + 0x30], al
push 0
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00437400
mov dword [esi], eax
mov ecx, dword [edi + 0x34]
mov dword [esi], ecx
mov dword [edi + 0x34], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x38]
mov dword [esi + 4], eax
mov dword [edi + 0x38], ecx
lea esi, [ebx + 0x3c]
mov byte [ebp - 4], 1
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004373d0
mov dword [esi], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi], ecx
mov dword [edi + 0x3c], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x40]
mov dword [esi + 4], eax
mov dword [edi + 0x40], ecx
lea esi, [ebx + 0x44]
mov byte [ebp - 4], 2
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004373a0
mov dword [esi], eax
mov ecx, dword [edi + 0x44]
mov dword [esi], ecx
mov dword [edi + 0x44], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x48]
mov dword [esi + 4], eax
lea eax, [edi + 0x4c]
mov dword [edi + 0x48], ecx
lea ecx, [ebx + 0x4c]
push eax
call fcn.0040ea00
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4382d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555286
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.data::DataFile.1.0
mov dword [esi + 4], vtable.data::DataFile.0
test eax, eax
je 0x438384
cmp byte [esi + 0x16], 0
je 0x438342
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffffffff
push ecx
push eax
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x438342
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x14]
jne 0x438342
mov word [esi + 0x14], 0x100
cmp byte [esi + 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x438378
cmp byte [esi + 0x15], 0
je 0x438378
push 0x4000000
push 7
push closesocket
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReOpenFile]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x438378
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], ebx
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov edi, dword [esi + 0xc]
test edi, edi
je 0x4383b3
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4383b3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x4383b3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [esi], vtable.data::DataSource.0
mov dword [esi + 4], vtable.data::DataSink.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d318
mov esp, ebp
pop ebp
ret

Function at 0x438420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
movlpd qword [ebp - 0x10], xmm0
test edi, edi
jne 0x438457
test esi, esi
jne 0x438457
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
jmp 0x4384c1
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x43846e
mov eax, esi
cmp esi, 0x2000000
jbe 0x438473
mov eax, 0x2000000
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [ebx + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x4384c1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4384c1
add ebx, eax
adc ecx, 0
mov dword [ebp - 0x14], ecx
test edi, edi
jb 0x4384c1
ja 0x4384af
cmp esi, eax
jbe 0x4384c1
mov edx, dword [ebp - 0x18]
sub esi, eax
sbb edi, 0
test edi, edi
ja 0x43846e
jb 0x4384c1
test esi, esi
jne 0x438460
mov edx, ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d318
mov esp, ebp
pop ebp
ret
Function at 0x438820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [esp + 8], eax
push esi
push edi
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
call eax
mov esi, dword [ebp + 0xc]
cmp esi, edx
ja 0x43893e
mov ecx, dword [ebp + 8]
jb 0x43885f
cmp ecx, eax
jae 0x43893e
mov edi, dword [ebp + 0x18]
sub eax, ecx
sbb edx, esi
cmp edi, edx
ja 0x438873
mov esi, dword [ebp + 0x14]
jb 0x438877
cmp esi, eax
jb 0x438877
mov esi, eax
mov edi, edx
test edi, edi
jne 0x438883
test esi, esi
je 0x43893e
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
je 0x43893e
push 0
push 0
push dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x43893e
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
nop
test edi, edi
jne 0x4388ce
mov eax, esi
cmp esi, 0x2000000
jbe 0x4388d3
mov eax, 0x2000000
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push eax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x438926
mov eax, dword [esp + 0x18]
test eax, eax
je 0x438926
add ebx, eax
adc ecx, 0
mov dword [esp + 0xc], ecx
test edi, edi
jb 0x438926
ja 0x438917
cmp esi, eax
jbe 0x438926
sub esi, eax
sbb edi, 0
test edi, edi
ja 0x4388ce
jb 0x438926
test esi, esi
jne 0x4388c0
mov eax, ebx
mov edx, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044d318
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
xor edx, edx
call fcn.0044d318
mov esp, ebp
pop ebp
ret 0x14