joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5232ad
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, esp
mov esi, ecx
and dword [eax], 0
push eax
push 0
push 0
push edx
call dword [sym.imp.shell32.dll_SHGetKnownFolderPath]
lea edi, [esp + 4]
mov edx, eax
mov ecx, edi
call fcn.005220c8
xor eax, eax
cmp dword [edi], eax
jne 0x523361
mov edi, dword [esp]
push edi
call fcn.00574b43
pop ecx
lea ebx, [esp + 4]
mov edx, edi
mov ecx, ebx
push eax
call fcn.0055c211
pop eax
cmp dword [ebx], 0
jne 0x523361
lea edi, [esp + 4]
mov eax, esp
mov edx, dword [edi + 4]
mov ecx, edi
mov dword [eax], edx
call fcn.0055c2b9
mov ecx, dword [edi]
mov edx, dword [edi + 8]
push 0
call fcn.00522b21
pop ecx
mov ebp, edx
mov ecx, edx
xor edx, edx
mov dword [esp + 0x10], eax
call fcn.0055c169
mov ebx, eax
mov edi, edx
push ebp
push dword [esp + 0x14]
push eax
call fcn.00570e70
add esp, 0xc
lea eax, [esp + 4]
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
mov ecx, dword [eax]
mov edx, dword [eax + 4]
call fcn.00448429
mov ecx, esp
call fcn.0055c19a
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00584f48
mov dword [esi + 4], eax
and dword [esi], 0
jmp 0x523359

Function at 0x523378
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x3f8
call fcn.0052338c
Function at 0x53d622
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov edi, edx
mov edx, dword [esp + 0x60]
lea ebx, [esp + 0x14]
mov esi, ecx
mov ecx, ebx
push dword [esp + 0x64]
call fcn.0055e0c1
pop eax
movzx ecx, word [ebx]
and dword [esp + 8], 0
and dword [esp], 0
test ecx, ecx
je 0x53d65e
xor eax, eax
cmp ecx, 1
jne 0x53d662
mov eax, dword [esp + 0x1c]
jmp 0x53d662
lea eax, [esp + 0x16]
mov ecx, esp
lea edx, [esp + 8]
push ecx
push 0
push edx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x53d688
mov dword [esi + 4], eax
mov dword [esi], 7
jmp 0x53d71d
mov ebx, dword [esp]
xor edx, edx
inc edx
mov ecx, ebx
call fcn.0055c169
mov ecx, dword [esp]
and dword [esp + 0xc], 0
mov ebp, eax
mov dword [esp + 4], edx
mov dword [esp + 0x10], ecx
movzx ecx, word [esp + 0x14]
test ecx, ecx
je 0x53d6bd
xor eax, eax
cmp ecx, 1
jne 0x53d6c1
mov eax, dword [esp + 0x1c]
jmp 0x53d6c1
lea eax, [esp + 0x16]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push ebp
push edx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x53d6f0
mov edx, dword [esp + 4]
mov ecx, ebp
mov dword [esi + 4], eax
mov dword [esi], 7
call fcn.00448429
jmp 0x53d71d
mov ecx, dword [esp + 4]
lea eax, [esp + 0x40]
mov edx, dword [esp + 8]
mov edi, dword [esp]
mov dword [eax], ebp
mov ebp, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x10]
mov ecx, esi
push eax
push ebx
push ebp
push edi
call fcn.0055e104
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
call fcn.00526237
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x559ee1
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
lea eax, [esi + 0x40]
mov dword [esi + 0xc], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x56d7c0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
cmp byte [edx + 0xc], 2
je 0x55a0ab
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.0051c32b
cmp byte [edi + 0xc], 2
je 0x55a0ab
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x18]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov ecx, ebx
mov dword [esi + 0x14], edx
mov dword [esi + 0x28], eax
push dword [ebx + 8]
call fcn.004df280
pop eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
test ecx, ecx
je 0x55a027
mov ebx, edx
lea edx, [esi + 0x18]
mov dword [edx], ecx
mov dword [edx + 4], ebx
lea ebx, [esi + 0x2c]
mov dword [edx + 8], eax
mov ecx, ebx
push 1
call fcn.004e6ae0
pop eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
test eax, eax
je 0x55a024
and dword [esi + 0x48], 0
mov dword [esi + 4], edx
mov dword [esi + 8], eax
lea ecx, [esi + 0x18]
mov edx, edi
push dword [esi + 0x28]
call fcn.004df280
pop eax
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
test ecx, ecx
je 0x55a041
lea edx, [esi + 0x18]
mov dword [edx], ecx
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea ecx, [esi + 0x2c]
push 1
call fcn.004e6ae0
pop eax
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x30]
test edi, edi
je 0x55a03e
and dword [esi + 0x1c], 0
and dword [esi + 0x18], 0
push 0
push 0
lea eax, [esi + 0x18]
push eax
push 0x4fb470
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x55a082
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
and dword [edx], 0
test ebx, ebx
je 0x55a01e
push 2
pop edx
mov ecx, edi
call fcn.004040f0
cmp dword [esi + 4], 0
jmp 0x55a055
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov dword [ecx], 1
jmp 0x55a068
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0xc]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx], 1
mov eax, dword [esi + 4]
test eax, eax
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
je 0x55a068
push 2
pop edx
mov ecx, dword [esi + 8]
call fcn.004040f0
mov ecx, edi
mov edx, ebx
call fcn.00448429
mov eax, dword [esi + 0x40]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0xc]
test ebx, ebx
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
mov dword [ecx], 1
je 0x55a053
push 2
pop edx
mov ecx, edi
call fcn.004040f0
jmp 0x55a050
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
push 0x637404
call fcn.00580fe0
pop eax
ud2
Function at 0x56d876
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov dword [esp], 0x63fcf0
mov ecx, esi
call fcn.0056ea4c
sub esp, 4
mov dword [esp], str.EBWebViewx86EmbeddedBrowserWebView.dll
mov ecx, esi
call fcn.0056ea4c
sub esp, 4
mov ecx, esi
call fcn.0056eb36
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x56d92b
mov ecx, esi
call fcn.0056eb36
mov esi, eax
movaps xmm0, xmmword [0x63f9c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x56d901
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov al, 1
jmp 0x56d92d
mov dword [esp], str.WebView2:_skipped_inaccessible
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call edi
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sub esp, 4
mov dword [esp], 0x63fd56
call edi
sub esp, 4
xor eax, eax
add esp, 0x1c
pop esi
pop edi
pop ebp
ret
Function at 0x56d9d9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 0xc]
mov eax, dword [0x64f100]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, esi
push 0x104
call fcn.0056e8fe
mov ecx, esi
push dword [ebp + 8]
call fcn.0056e982
mov ecx, esi
call fcn.0056eb36
mov edi, eax
mov ecx, esi
call fcn.0056eaee
cmp eax, 3
jb 0x56da4f
movzx eax, word [edi + 2]
cmp ax, 0x3a
jne 0x56da3f
cmp word [edi + 4], 0x5c
jne 0x56da4f
movzx eax, word [edi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x56da4f
jmp 0x56dad7
cmp ax, 0x5c
jne 0x56da4f
cmp word [edi], 0x5c
je 0x56dad7
xor eax, eax
dec eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.0056e88c
push edi
push 0
call fcn.0056d934
add esp, 8
test eax, eax
js 0x56db0f
mov ecx, edi
call fcn.0056eaee
mov ebx, eax
mov ecx, edi
call fcn.0056eb36
mov ecx, esi
push ebx
push eax
call fcn.0056e9ac
mov ecx, edi
call fcn.0056eb36
push 0x5c
push eax
call fcn.00572f84
add esp, 8
test eax, eax
je 0x56db1e
mov ebx, eax
mov ecx, edi
call fcn.0056eb36
sub ebx, eax
add ebx, 2
sar ebx, 1
mov ecx, edi
call fcn.0056eb36
mov ecx, esi
push ebx
push eax
call fcn.0056e9ac
mov ecx, esi
push dword [ebp + 8]
call fcn.0056ea4c
mov ecx, edi
call fcn.0056e89e
xor edi, edi
push esi
call fcn.0056d876
add esp, 4
test al, al
jne 0x56db2b
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WebView2:_Failed_to_find_the_WebView2_client_dll_at:
call edi
mov ecx, esi
call fcn.0056eb36
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x63fd56
call edi
mov edi, 0x80070002
jmp 0x56db2b
mov edi, eax
push str.WebView2:_Failed_to_find_the_app_exe_path._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x56db23
mov edi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.0056e89e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056fcfe
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x56e68b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov dword [ebp - 0x234], edx
mov esi, ecx
mov bl, byte [ebp + 8]
mov eax, dword [0x64f100]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, 0x208
lea eax, [ebp - 0x218]
push edi
push 0xff
push eax
call fcn.005713f0
add esp, 0xc
mov dword [ebp - 0x22c], edi
lea eax, [ebp - 0x230]
mov dword [eax], 0xffffffff
movzx ecx, bl
mov edx, 0x80000002
sub edx, ecx
push eax
push 0x20219
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
je 0x56e70f
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056fcfe
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, str.location
mov ecx, str.EBWebView
mov edx, dword [ebp - 0x234]
mov esi, edx
test dl, dl
cmovne ecx, eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ecx
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x56e7b8
cmp dword [ebp - 0x22c], 3
lea ebx, [ebp - 0x218]
jb 0x56e7b8
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.0056e982
xor edi, edi
mov eax, esi
test al, al
je 0x56e7b8
mov dword [ebp - 0x22c], 0x208
xor eax, eax
lea ecx, [ebp - 0x22c]
push ecx
push ebx
push eax
push eax
push 0x6400cc
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x56e7b8
cmp dword [ebp - 0x22c], 3
jb 0x56e7b8
mov esi, dword [ebp + 0x10]
mov ecx, esi
push 0x63fcf0
call fcn.0056ea4c
mov ecx, esi
push ebx
call fcn.0056ea4c
xor edi, edi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test edi, edi
jne 0x56e6f8
cmp dword [ebp - 0x22c], 3
jb 0x56e6f8
mov ecx, dword [ebp + 0x10]
call fcn.0056eb36
push 0x5c
push eax
call fcn.00572f84
add esp, 8
test eax, eax
je 0x56e832
mov edi, eax
add edi, 2
pcmpeqd xmm0, xmm0
lea edx, [ebp - 0x228]
movdqu xmmword [edx], xmm0
mov ecx, edi
call fcn.0056e5b8
test al, al
je 0x56e832
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x56e81d
push edi
call fcn.0056e982
lea ecx, [ebp - 0x228]
mov edx, dword [ebp + 0x10]
call fcn.0056e839
mov ebx, eax
jmp 0x56e6f8
xor ebx, ebx
jmp 0x56e6f8

Function at 0x56e839
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
xor eax, eax
mov edx, dword [eax + 0x6400d4]
cmp dword [ecx + eax], edx
ja 0x56e857
jb 0x56e862
add eax, 4
cmp eax, 0x10
jne 0x56e842
push esi
call fcn.0056d876
add esp, 4
jmp 0x56e886
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WebView2:_skipped_an_incompatible_version
call edi
mov ecx, esi
call fcn.0056eb36
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x63fd56
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x56f2d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x64f100]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x56f332
push ebx
push esi
call fcn.0056f3e0
add esp, 8
test al, al
je 0x56f38e
mov ecx, ebx
call fcn.0056eaf6
test al, al
jne 0x56f38e
mov edx, dword [esi]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.0056f015
add esp, 4
mov bl, 1
jmp 0x56f390
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ecx
mov ebx, edx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x56f3a4
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
lea edx, [ebp - 0x18]
mov dword [edx], 4
push edx
push ecx
push eax
push 0x10
push ebx
push eax
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x56f3bf
mov ecx, edi
mov edx, ebx
push dword [ebp - 0x20]
push esi
call fcn.0056f3e0
add esp, 8
test al, al
je 0x56f38e
mov eax, dword [esi]
test eax, eax
je 0x56f3dc
push eax
call fcn.00575a4c
add esp, 4
cmp eax, 1
jmp 0x56f3c3
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056fcfe
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056fcfe
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0056f3e0
cmp dword [ebp - 0x14], 1
sete al
movzx eax, al
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov bl, 1
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x56f390
mov byte [esi], 1
jmp 0x56f390
xor eax, eax
jmp 0x56f3c6

Function at 0x56f3e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], ecx
mov eax, dword [0x64f100]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x208
xor ebx, ebx
lea edi, [ebp - 0x218]
push esi
push ebx
push edi
call fcn.005713f0
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [eax], esi
push eax
push edi
push ebx
push 2
push dword [ebp - 0x220]
push ebx
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x56f45d
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x218]
push eax
call fcn.0056e982
mov ecx, edi
call fcn.0056eb36
mov dword [ebx], eax
test esi, esi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056fcfe
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x570258
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x570297
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x570297
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x570297
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x570297
cmp dword [ecx + 0x74], 0xe
jbe 0x570297
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x57a448
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x57a4e5
push ebx
push esi
call fcn.0057a411
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0057a3a5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x57a492
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x57a4e4
push edi
push eax
call fcn.0057b065
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x57a4b2
call fcn.00578f88
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x57a4e3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0057a3a5
add esp, 0x20
test eax, eax
jne 0x57a4d1
push edi
call fcn.00578f88
jmp 0x57a4d9
push ebx
call fcn.00578f88
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x57b7e2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x642920
push 0x642918
push str.FlsAlloc
push 0x1f
call fcn.0057b6a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57b816
push dword [ebp + 8]
mov ecx, esi
call dword [0x588350]
call esi
jmp 0x57b81c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x57b860
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x642930
push 0x642928
push str.FlsGetValue
push 0x21
call fcn.0057b6a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57b897
push dword [ebp + 8]
mov ecx, esi
call dword [0x588350]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x57b89f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x642938
push 0x642930
push str.FlsSetValue
push 0x22
call fcn.0057b6a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57b8d9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x588350]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x580860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x58088d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x58088d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x583bc0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x583c41
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x583c7c
cmp dword [esp + 4], 0
je 0x583c63
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x583c9f
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x64fc44]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x64fc44], esi
jne 0x583c20
mov byte [0x64fc40], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x583c73
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x583ce2
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x583c67
mov edi, dword [esp]
jmp 0x583c73
mov edi, dword [esi]
jmp 0x583c72
mov edi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x60b668
push 0x60b6c8
push eax
call fcn.00583d20
add esp, 8
ud2
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x60b6b8
mov dword [esp + 8], 0x60b680
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
mov dword [esp + 0x14], 0
call fcn.00580e60
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x60b680
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00583d60
ud2

Function at 0x584200
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.00412970
add esp, 4
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x584240
mov eax, dword [0x60a600]
mov edx, dword [0x60a604]
cmp dword [esp + 8], 0
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov dword [esi], 1
jne 0x5842af
jmp 0x5842b9
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x584290
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x5842a4
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x5842b9
mov ecx, edi
mov edx, 1
call fcn.004040f0
add esp, 0x34
pop esi
pop edi
pop ebx
ret
Function at 0x701070
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x37c8
call fcn.007062d0
mov eax, dword [0x7122e4]
xor eax, esp
mov dword [esp + 0x37c4], eax
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_DeviceIoControl]
push esi
push edi
xor esi, esi
xor edi, edi
push edi
lea eax, [esp + 0x28]
push 0x707280
push eax
call fcn.007017d0
add esp, 0xc
lea eax, [esp + 0x24]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x7012ab
push 0x2710
lea eax, [esp + 0x10c8]
mov dword [esp + 0x14], 0
push 0
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call sub.vcruntime140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x2710
lea eax, [esp + 0x10d0]
push eax
push 0xc
lea eax, [esp + 0x2c]
push eax
push 0x2d1400
push ebx
call ebp
test eax, eax
je 0x7012a0
lea eax, [esp + 0x8f4]
push eax
push 0
push dword [esp + 0x10d8]
lea eax, [esp + 0x10d0]
push eax
call fcn.00701340
lea eax, [esp + 0x51c]
push eax
push 0
push dword [esp + 0x10ec]
lea eax, [esp + 0x10e0]
push eax
call fcn.00701340
lea eax, [esp + 0xcfc]
push eax
push 0
push dword [esp + 0x1100]
lea eax, [esp + 0x10f0]
push eax
call fcn.00701340
lea eax, [esp + 0x154]
push eax
push 1
push dword [esp + 0x1114]
lea eax, [esp + 0x1100]
push eax
call fcn.00701340
add esp, 0x40
lea eax, [esp + 0x10c4]
push 0x2710
push 0
push eax
call sub.vcruntime140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x2710
lea eax, [esp + 0x10d0]
push eax
push 0
push 0
push 0x700a0
push ebx
call ebp
test eax, eax
je 0x7012a0
cmp dword [esp + 0x10cc], 0xc
jne 0x7012a0
movsx eax, byte [esp + 0x124]
push eax
call sub.ucrtbase.dll_isalnum
add esp, 4
test eax, eax
jne 0x701223
movsx eax, byte [esp + 0x137]
push eax
call sub.ucrtbase.dll_isalnum
add esp, 4
test eax, eax
je 0x7012a0
lea ecx, [esp + 0x124]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x701230
sub ecx, edx
je 0x7012a0
push 0x804
call sub.ucrtbase.dll_malloc
mov esi, eax
add esp, 4
test esi, esi
je 0x701261
push 0x800
lea eax, [esi + 4]
push 0
push eax
call sub.vcruntime140.dll_memset
add esp, 0xc
lea ecx, [esp + 0x124]
mov dword [esi], edi
mov edx, ecx
mov eax, esi
sub eax, edx
lea edx, [eax + 4]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x701273
lea eax, [esp + 0x50c]
mov ecx, esi
mov edx, eax
sub ecx, edx
lea edx, [ecx + 0x404]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x701293
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
jne 0x7012b5
inc edi
cmp edi, 4
jl 0x701096
mov ecx, dword [esp + 0x37d4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.007062b2
add esp, 0x37c8
ret