joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6291e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x854fb8
push 0
call fcn.0068e57b
mov edi, eax
mov dword [ebp - 8], 1
test edi, edi
je 0x629375
mov eax, dword [ebp + 8]
shr eax, 4
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
movzx eax, cx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x62927c
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x62927c
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x62927c
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x629272
cmp esi, edx
jae 0x62927c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x629260
cmp esi, edx
jae 0x62927c
cmp word [esi], 0
jne 0x62929d
mov ebx, dword [ebp - 8]
mov ecx, 0x854fb8
push ebx
call fcn.0068e57b
mov edi, eax
inc ebx
mov dword [ebp - 8], ebx
test edi, edi
je 0x629375
mov eax, dword [ebp - 0xc]
jmp 0x629220
test edi, edi
je 0x629375
mov eax, dword [ebp - 0x10]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x629375
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x629375
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x629375
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x629306
cmp esi, ecx
jae 0x629375
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x6292f4
cmp esi, ecx
jae 0x629375
movzx eax, word [esi]
test ax, ax
je 0x629375
mov edx, dword [ebp - 4]
mov edi, eax
mov ebx, eax
mov ecx, 1
mov edx, dword [edx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x62933c
mov ebx, dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.00619160
mov edx, dword [ebx]
movzx ebx, word [esi]
movzx ecx, bx
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.006a8199
push eax
call fcn.00430810
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ecx]
cmp edi, dword [eax - 8]
jg 0x629380
mov dword [eax - 0xc], edi
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004307f0
int3
Function at 0x631870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x707f18
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0xbc], 0
mov eax, dword [ebp + 8]
je 0x6318fe
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x6318f4
mov esi, dword [0x855a98]
test esi, esi
je 0x6318e7
push str.SendHTTPRequestAsync:_Another_async_request_already_in_progress
push 0x75c10c
push 0x75c10c
push str.HTTPConnector
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x18
jmp 0x631a95
mov eax, dword [0x855a9c]
test eax, eax
je 0x631a95
push str.SendHTTPRequestAsync:_Another_async_request_already_in_progress
jmp 0x631a76
cmp dword [eax + 0x10], 0
je 0x631a2d
cmp dword [eax + 0x40], 0
je 0x631a2d
push eax
lea ecx, [esi + 0x34]
call fcn.00631ac0
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [esi + 0xac], eax
mov eax, dword [ebp + 0x10]
movlpd qword [ebp - 0x1c], xmm0
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], 0
mov dword [esi + 0xd8], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
push 8
mov dword [ebp - 4], 0
lea ebx, [esi + 0xb8]
call fcn.0067d692
add esp, 4
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], edi
push 0
push 0
push edi
push 0x629860
push 0
movq qword [edi], xmm0
push 0
mov dword [edi], 0x631ba0
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x631a23
push 8
push edi
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.0067d913
mov eax, dword [esi + 0x30]
add esp, 8
test eax, eax
jne 0x6319f8
mov esi, dword [0x855a98]
test esi, esi
je 0x6319ef
push str.SendHTTPRequestAsync:_Failed_in_thread_creation
push 0x75c10c
push 0x75c10c
push str.HTTPConnector
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x18
mov eax, 5
jmp 0x631a9a
mov eax, dword [0x855a9c]
test eax, eax
je 0x631a1c
mov esi, dword [eax]
push str.SendHTTPRequestAsync:_Failed_in_thread_creation
push str.HTTPConnector
push 0x75c10c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x32
push eax
call dword [0x74835c]
call esi
add esp, 0x14
mov eax, 5
jmp 0x631a9a
test ebx, ebx
je 0x631a29
mov dword [ebx], eax
xor eax, eax
jmp 0x631a9a
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x631a71
mov esi, dword [0x855a98]
test esi, esi
je 0x631a68
push str.SendHTTPRequestAsync:_Invalid_arguments
push 0x75c10c
push 0x75c10c
push str.HTTPConnector
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x18
jmp 0x631a95
mov eax, dword [0x855a9c]
test eax, eax
je 0x631a95
push str.SendHTTPRequestAsync:_Invalid_arguments
mov esi, dword [eax]
push str.HTTPConnector
push 0x75c10c
push 0x32
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
call dword [0x74835c]
call esi
add esp, 0x14
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6336c0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d67e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 0x761b44
call fcn.00439f60
add esp, 4
mov dword [ebp - 4], 0
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x633710
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.0042ff20
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x40]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.0042fd70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa0000000
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x6372b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x708380
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x82f084]
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 dword [ebp - 0x18], edx
mov edi, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
cmp byte [edi + 0x38], al
je 0x637360
mov esi, dword [ebp + 0xc]
nop dword [eax]
cmp byte [edi + 0x39], 0
je 0x637360
push 0
lea edx, [ebp - 0x14]
add eax, ecx
push edx
mov edx, dword [ebp - 0x18]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x14]
mov edx, eax
cmp edx, 0x6d
je 0x637333
test ecx, ecx
jne 0x63733d
jmp 0x63734c
cmp dword [ebp - 0x20], 0
je 0x6373fd
cmp ecx, esi
je 0x637360
add dword [ebp - 0x1c], ecx
sub esi, ecx
cmp ebx, 0x64
jg 0x63737e
inc ebx
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [edi + 0x38], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
jne 0x637300
mov al, 1
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.0067d681
mov esp, ebp
pop ebp
ret
mov esi, dword [0x855a98]
test esi, esi
je 0x6373b6
push dword [ebp - 0x18]
mov ecx, esi
push edx
push str.Number_of_retries_to_read_pipe_exhausted_with_last_errno___lu._Aborting_read_on_pipe__p
push 0x75c10c
push 0x75c10c
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x74835c]
call esi
add esp, 0x20
jmp 0x6373e7
mov eax, dword [0x855a9c]
test eax, eax
je 0x6373e7
push dword [ebp - 0x18]
mov esi, dword [eax]
push edx
push str.Number_of_retries_to_read_pipe_exhausted_with_last_errno___lu._Aborting_read_on_pipe__p
push str.CommBridge
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x75c10c
push 0x28
push eax
call dword [0x74835c]
call esi
add esp, 0x1c
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
call fcn.0042fbe0
mov dword [ebp - 4], 1
jmp 0x63747c
mov esi, dword [0x855a98]
test esi, esi
je 0x637436
push 0x6d
push dword [ebp - 0x18]
mov ecx, esi
push str.Aborting_read_on_pipe__p___errno:__lu
push 0x75c10c
push 0x75c10c
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x74835c]
call esi
add esp, 0x20
jmp 0x637468
mov eax, dword [0x855a9c]
test eax, eax
je 0x637468
mov esi, dword [eax]
push 0x6d
push dword [ebp - 0x18]
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.Aborting_read_on_pipe__p___errno:__lu
push str.CommBridge
push 0x75c10c
push 0x28
push eax
call dword [0x74835c]
call esi
add esp, 0x1c
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
call fcn.0042fbe0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.00639090
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fd70
mov ecx, edi
call fcn.00638ea0
xor al, al
jmp 0x637362
Function at 0x6387e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], edx
push ebx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push esi
push edx
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x638856
cmp dword [ebp - 8], esi
ja 0x638856
jae 0x63891a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
add edi, dword [ebp - 8]
sub esi, dword [ebp - 8]
cmp ebx, 0xbb8
jg 0x6388ac
push 0xa
inc ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push esi
add eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x638814
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x855a98]
mov ecx, eax
test esi, esi
je 0x63892d
push ecx
push dword [ebp - 0xc]
mov ecx, esi
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
push 0x75c10c
push 0x75c10c
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x74835c]
call esi
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
mov esi, dword [0x855a98]
test esi, esi
je 0x6388f6
push dword [ebp - 0xc]
mov ecx, esi
push eax
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
push 0x75c10c
push 0x75c10c
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x74835c]
call esi
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x855a9c]
test ecx, ecx
je 0x63895e
push dword [ebp - 0xc]
mov esi, dword [ecx]
push eax
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
push str.CommBridge
push 0x75c10c
push 0x28
push ecx
jmp 0x63894e
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
mov eax, dword [0x855a9c]
test eax, eax
je 0x63895e
mov esi, dword [eax]
push ecx
push dword [ebp - 0xc]
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
push str.CommBridge
push 0x75c10c
push 0x28
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x1c
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x63be70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70879f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x82f084]
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 edi, edx
mov ebx, ecx
push 8
call fcn.0067d692
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [esi], xmm0
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0067d692
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [eax], eax
push 0
push 0
push esi
push 0x63b900
push 0
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x63bf59
mov eax, dword [esi]
mov ecx, ebx
push eax
push dword [eax]
call fcn.00460390
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.00442110
push 0x40
push dword [esi]
call fcn.0067d913
push 8
push esi
call fcn.0067d913
add esp, 0x10
mov al, 1
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.0067d681
mov esp, ebp
pop ebp
ret
cmp eax, 0x102
jne 0x63bf1a
test edi, edi
je 0x63bf7a
mov esi, dword [edi]
push str.In_CPUUtils::GetCPUDetails._Timed_out___
push str.HardwareUtils
push 0x75c10c
push 0x32
push edi
jmp 0x63bfcd
mov esi, dword [0x855a98]
test esi, esi
je 0x63bfb0
push str.In_CPUUtils::GetCPUDetails._Timed_out___
push 0x75c10c
push 0x75c10c
push str.HardwareUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x18
xor al, al
jmp 0x63bf3d
mov eax, dword [0x855a9c]
test eax, eax
je 0x63bfdd
mov esi, dword [eax]
push str.In_CPUUtils::GetCPUDetails._Timed_out___
push str.HardwareUtils
push 0x75c10c
push 0x32
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x14
xor al, al
jmp 0x63bf3d
Function at 0x63d560
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f9458
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x24]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.00483060
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x63d5da
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x63d5da
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x270f
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x1c]
call fcn.0063e970
or dword [ebx], eax
add esp, 0x1c
test al, 2
jne 0x63d626
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x45
jge 0x63d618
lea eax, [ecx + 0x64]
mov dword [esi + 0x14], eax
jmp 0x63d626
cmp ecx, 0x64
jl 0x63d623
add ecx, 0xfffff894
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov eax, edi
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x63fd20
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x63fd31
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x63fd75
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x63fd59
mov byte [esi + 0x20], 1
mov al, 1
pop esi
pop ebx
ret
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], bl
pop esi
mov al, bl
pop ebx
ret
Function at 0x647340
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0067e1a0
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
mov dl, 1
push edi
mov edi, ecx
mov ecx, esi
push 1
call fcn.0061f720
add esp, 4
test eax, eax
je 0x647397
cmp eax, 1
jne 0x647385
push ecx
mov dl, al
mov ecx, esi
call fcn.00611290
add esp, 4
test al, al
jne 0x647397
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x6473a2
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x6473c5
mov esi, dword [esi]
push 0
push 0x200080
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x647400
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x64743f
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x647447
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x2008], 0x1000
je 0x647400
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x649c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7094b9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
xor eax, eax
mov dword [ebp - 0x10], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push ecx
mov dword [ebp - 4], eax
lea ecx, [eax + 0x18]
mov edx, esi
mov dword [ebp - 0x10], 1
call fcn.0060f1e0
add esp, 4
test al, al
je 0x649cb7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x649ca1
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x649cb7
push ecx
mov ecx, esi
call fcn.0060ff00
add esp, 4
push ecx
mov edx, esi
mov ecx, 0x1b
call fcn.0060f1e0
add esp, 4
test al, al
je 0x649ceb
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x649cd5
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x649ceb
push ecx
mov ecx, esi
call fcn.0060ff00
add esp, 4
test edi, edi
jne 0x649d17
push 0xc
xor eax, eax
mov dword [ebp - 0x18], edi
push str.temp_lbs_wid
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
mov dword [ebp - 4], 1
jmp 0x649d46
cmp edi, 1
jne 0x649d5c
push 0x10
xor eax, eax
mov dword [ebp - 0x18], 0
push str.temp_ins_lbs_wid
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
mov dword [ebp - 4], 2
push ecx
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0060f9d0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x64be60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x709847
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x30], edi
xor eax, eax
mov dword [edi], vtable.AnalyticsFramework::AnalyticsManager.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 7
mov word [edi + 0x1c], ax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], al
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0xf
mov byte [edi + 0x4c], al
mov byte [ebp - 4], 3
lea esi, [edi + 0x70]
mov dword [ebp - 0x10], esi
push 0x58
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0067d692
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x75c10c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
add esi, 8
mov dword [ebp - 0x2c], esi
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
cmp esi, eax
je 0x64bf5a
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042fe00
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov byte [ebp - 4], 7
lea esi, [edi + 0xa8]
mov dword [ebp - 0x2c], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0067d692
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov byte [ebp - 4], 8
push eax
push 0x75c10c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
add esi, 8
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
cmp esi, eax
je 0x64bffd
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042fe00
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov dword [edi + 0x68], 0
mov eax, edi
mov dword [edi + 0x6c], 0
mov byte [edi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret