joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x458e94
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x46bce0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x458e94
test cl, 0x48
je 0x458d2b
cmp byte [eax + 5], 0xa
je 0x458d2b
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x458d7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x458d65
call fcn.004525d2
mov dword [eax], 9
call fcn.004525db
mov dword [eax], esi
jmp 0x458d75
cmp eax, 0x6d
je 0x458e94
push eax
call fcn.004525e4
pop ecx
or eax, 0xffffffff
jmp 0x458e96
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x458e8f
test eax, eax
je 0x458da4
cmp byte [ebx], 0xa
jne 0x458da4
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x458dad
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x458e89
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x458e79
cmp al, 0xd
je 0x458ddf
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x458e6b
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x458df9
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x458df4
add dword [ebp + 0x10], 2
jmp 0x458e4d
mov dword [ebp + 0x10], eax
jmp 0x458e67
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x458e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x458e67
cmp dword [ebp - 0xc], 0
je 0x458e67
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x458e42
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x458e4d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x458e6a
cmp ebx, dword [ebp + 0xc]
jne 0x458e52
cmp byte [ebp - 1], 0xa
jne 0x458e52
mov byte [ebx], 0xa
jmp 0x458e6a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00452cd1
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x458e6b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x458dc3
jmp 0x458e89
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x458e89
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x458e96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4590f6
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x465f68
call fcn.0044f6e0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x46ba60], edi
jne 0x45913a
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x459125
mov dword [0x46ba60], ebx
jmp 0x45913a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45913a
mov dword [0x46ba60], 2
mov eax, dword [0x46ba60]
cmp eax, ebx
jne 0x45915a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x45921d
cmp eax, 2
je 0x459163
cmp eax, edi
jne 0x45918b
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x459176
mov eax, dword [0x46b9cc]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x459192
xor eax, eax
jmp 0x45921d
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0044c380
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4591c5
cmp esi, edi
jne 0x4591db
push dword [ebp - 0x20]
call fcn.0044ae91
pop ecx
mov esi, eax
cmp esi, edi
je 0x45918b
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x45920e
cmp dword [ebp + 0x14], edi
jne 0x4591f8
push edi
push edi
jmp 0x4591fe
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x45921a
push esi
call fcn.0044ad12
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0044f71b
ret
Function at 0x459226
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x465f78
call fcn.0044f6e0
xor esi, esi
cmp dword [0x46ba64], esi
jne 0x45926a
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x459255
mov dword [0x46ba64], edi
jmp 0x45926a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45926a
mov dword [0x46ba64], 2
mov eax, dword [0x46ba64]
cmp eax, 2
je 0x45934b
cmp eax, esi
je 0x45934b
cmp eax, 1
jne 0x4592af
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x459298
mov eax, dword [0x46b9cc]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4592b6
xor eax, eax
jmp 0x45935d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0044c380
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4592ec
cmp edi, esi
jne 0x459307
lea eax, [ebx + ebx]
push eax
call fcn.0044ae91
pop ecx
mov edi, eax
cmp edi, esi
je 0x4592af
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45933a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x459324
push esi
push esi
jmp 0x45932a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x459346
push edi
call fcn.0044ad12
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x45935d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0044f71b
ret
Function at 0x459ae3
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044c380
mov eax, dword [0x469d0c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00452cd1
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x459c16
push 2
push esi
push dword [ebp + 8]
call fcn.00452cd1
add esp, 0xc
cmp eax, ebx
je 0x459c16
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x459bb6
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0044f680
push 0x8000
push dword [ebp + 8]
call fcn.00459d71
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x459b6c
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00452779
add esp, 0xc
cmp eax, 0xffffffff
je 0x459b8c
sub edi, eax
test edi, edi
jg 0x459b64
jmp 0x459ba4
call fcn.004525db
cmp dword [eax], 5
jne 0x459ba1
call fcn.004525d2
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00459d71
pop ecx
pop ecx
jmp 0x459bfe
jge 0x459bfe
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00452cd1
push dword [ebp + 8]
call fcn.00458529
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x459bfe
call fcn.004525d2
mov dword [eax], 0xd
call fcn.004525db
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00452cd1
add esp, 0xc
mov eax, esi
pop edi
jmp 0x459c18
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0044b588
leave
ret
Function at 0x45a22b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x45a244
or eax, 0xffffffff
jmp 0x45a2a5
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x45a2a1
push 0x3d
push esi
call fcn.0044bae8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x45a2a1
cmp esi, eax
je 0x45a2a1
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x46b750]
sete cl
cmp eax, dword [0x46b754]
mov dword [ebp - 8], ecx
jne 0x45a287
mov edi, eax
call fcn.0045a1ca
mov dword [0x46b750], eax
cmp eax, ebx
jne 0x45a2e0
cmp dword [ebp + 0xc], ebx
je 0x45a2a9
cmp dword [0x46b758], ebx
je 0x45a2a9
call fcn.00459c72
test eax, eax
je 0x45a2e0
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x45a2b2
xor eax, eax
jmp 0x45a2a4
push 4
call fcn.0044ae91
cmp eax, ebx
pop ecx
mov dword [0x46b750], eax
je 0x45a2a1
mov dword [eax], ebx
cmp dword [0x46b758], ebx
jne 0x45a2e0
push 4
call fcn.0044ae91
cmp eax, ebx
pop ecx
mov dword [0x46b758], eax
je 0x45a2a1
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x46b750]
call fcn.0045a17d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x45a341
cmp dword [esi], ebx
je 0x45a341
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0044ad12
cmp dword [ebp - 8], ebx
pop ecx
jne 0x45a324
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x45a382
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x45a31b
mov eax, edi
shl eax, 2
push eax
push dword [0x46b750]
call fcn.0044d535
cmp eax, ebx
pop ecx
pop ecx
je 0x45a382
jmp 0x45a37d
cmp dword [ebp - 8], ebx
jne 0x45a3ed
cmp edi, ebx
jge 0x45a350
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x46b750]
call fcn.0044d535
cmp eax, ebx
pop ecx
pop ecx
je 0x45a2a1
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x46b750], eax
cmp dword [ebp + 0xc], ebx
je 0x45a3d7
push dword [ebp - 4]
call fcn.0044ddd0
inc eax
inc eax
push eax
call fcn.0044ae91
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x45a3d7
push dword [ebp - 4]
push esi
call fcn.00454790
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x45a3d0
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0044ad12
pop ecx
cmp dword [ebp - 8], ebx
je 0x45a3e5
push dword [ebp - 4]
call fcn.0044ad12
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x45a2a4
push dword [ebp - 4]
call fcn.0044ad12
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x45a2ae
Function at 0x409c30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d70c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5aa464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea edi, [esi + 8]
mov dword [esi], vtable.CCurlDownloader.0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x409c8d
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
lea edi, [esi + 0x30]
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x409cac
mov eax, dword [edi]
jmp 0x409cae
mov eax, edi
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov word [eax], cx
cmp word [edx], cx
je 0x409ccf
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409cc0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00406720
lea ebx, [esi + 0x48]
mov byte [ebp - 4], 3
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 8
jb 0x409cf7
mov eax, dword [ebx]
jmp 0x409cf9
mov eax, ebx
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov word [eax], cx
cmp word [edx], cx
je 0x409d20
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d10
sub ecx, dword [ebp + 8]
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00406720
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
jb 0x409d35
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x409d3d
mov ebx, dword [ebx]
push dword [ebp - 0x10]
push ecx
push edi
push ebx
lea ecx, [esi + 0x60]
call fcn.0041b740
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x10]
lea ecx, [esi + 0x60]
push 1
push eax
mov dword [ebx + 0xf0], 0
mov byte [ebx + 0xf4], 0
call fcn.0041ba00
cmp dword [eax + 0x14], 8
jb 0x409d79
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x409d95
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00406e80
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 0xc
Function at 0x409dd0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d73f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5aa464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0xf0]
test esi, esi
je 0x409e4b
cmp dword [esi + 4], 0
je 0x409e2f
mov eax, dword [esi + 4]
test eax, eax
je 0x409e2f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi], 0xffffffff
mov esi, dword [edi + 0xf0]
test esi, esi
je 0x409e4b
mov ecx, esi
call fcn.0044e480
push 0x50
push esi
call fcn.00509478
add esp, 8
push 0x50
call fcn.00509486
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 0
call fcn.004b4650
sub esp, 0x18
mov ecx, 0x409ed0
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x409e8d
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____cdecl___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], 0x409ed0
mov dword [eax + 0x24], eax
push str.ABDEF
push edi
mov ecx, esi
call fcn.0044e230
mov dword [edi + 0xf0], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x409eae
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d84a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5aa464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004f4b2a
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40a640
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004b3c6e
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x5a7194
push eax
call fcn.004b4b80
push edi
push esi
call fcn.004f4ea0
add esp, 8
mov eax, esi
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.00509444
mov esp, ebp
pop ebp
ret 4
Function at 0x40cf10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d956
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5aa464]
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_char__struct_std::char_traits_char__.0
call fcn.00509486
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004f4d9d
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 0x40e6c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dd2b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5aa464]
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 dword [ebp - 0x30], esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov dword [esi], vtable.CMTCurlDownloader.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edi, [esi + 0x10]
mov dword [ebp - 0x30], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x40e741
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 3
mov dword [esi + 0x4c], 7
mov dword [esi + 0x48], 0
cmp dword [esi + 0x4c], 8
jb 0x40e75e
mov eax, dword [esi + 0x38]
jmp 0x40e761
lea eax, [esi + 0x38]
xor ecx, ecx
mov word [eax], cx
cmp word [ebx], cx
je 0x40e77f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e770
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [esi + 0x38]
call fcn.00406720
mov byte [ebp - 4], 4
mov dword [esi + 0x64], 7
mov dword [esi + 0x60], 0
cmp dword [esi + 0x64], 8
jb 0x40e7a6
mov eax, dword [esi + 0x50]
jmp 0x40e7a9
lea eax, [esi + 0x50]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x2c]
cmp word [eax], cx
je 0x40e7d2
mov ecx, eax
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e7c0
mov eax, dword [ebp - 0x2c]
sub ecx, ebx
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x50]
call fcn.00406720
lea eax, [esi + 0x68]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40e7f5
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [esi + 0x84]
mov dword [esi + 0x80], 0xffffffff
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40e81e
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [esi + 0xac]
mov dword [esi + 0xa8], 0
xorps xmm0, xmm0
push 2
push eax
movsd qword [esi + 0xa0], xmm0
call fcn.004f5b0a
add esp, 8
mov byte [ebp - 4], 8
xorps xmm0, xmm0
mov dword [esi + 0xec], 0
movsd qword [esi + 0xa0], xmm0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0x80], 0xffffffff
mov byte [esi + 0xe8], 0
cmp dword [esi + 0x4c], 8
jb 0x40e89a
mov eax, dword [esi + 0x38]
jmp 0x40e89d
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea edx, [esi + 0x38]
lea ecx, [ebp - 0x28]
call fcn.0044c7a0
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00410d50
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40e8d5
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00406ee0
mov eax, esi
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.00509444
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e900
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d73f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5aa464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0xec]
test esi, esi
je 0x40e97b
cmp dword [esi + 4], 0
je 0x40e95f
mov eax, dword [esi + 4]
test eax, eax
je 0x40e95f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi], 0xffffffff
mov esi, dword [edi + 0xec]
test esi, esi
je 0x40e97b
mov ecx, esi
call fcn.0044e480
push 0x50
push esi
call fcn.00509478
add esp, 8
push 0x50
call fcn.00509486
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 0
call fcn.004b4650
sub esp, 0x18
mov ecx, 0x40e9f0
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x40e9bd
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____cdecl___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], 0x40e9f0
mov dword [eax + 0x24], eax
push str.ABDEF
push edi
mov ecx, esi
call fcn.0044e230
mov dword [edi + 0xec], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x40e9de
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410d50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, ecx
xor esi, esi
push esi
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.0040e600
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x410d7d
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x410d98
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.00406ee0
inc esi
cmp esi, 2
jne 0x410d66
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret