joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401950
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40b058]
test esi, esi
jle 0x401a70
mov eax, dword [0x40b05c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401984
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a07
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401970
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401a97
mov eax, dword [0x40b05c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x40b05c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a77
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a00
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a10
add dword [0x40b058], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40b05c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40198e
mov eax, dword [0x40b05c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop

Function at 0x401fb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b06c]
sub esp, 4
test ebx, ebx
je 0x402005
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401ffe
test esi, esi
je 0x401ffe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fe0
mov dword [esp], 0x40b074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402340
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402365
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402370
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402365
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4023b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4023ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4023ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4023a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x407ef8
nop
mov ecx, 0x46ec10ae
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..rsrc
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x44ce75cd
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x799c4e65
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x48d80ed0
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x100183b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x100183c4
pop dword [ebp - 0x2c]
mov eax, 0x100183c4
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x32d984a3
add dword [ebp - 0x3c], 0x1b78c0a8
mov dword [ebp - 0x38], 0x60329014
add dword [ebp - 0x38], 0xd200bc31
mov dword [ebp - 0x34], 0xcc480613
add dword [ebp - 0x34], 0x80043e1b
mov dword [ebp - 0x30], 0x5802de10
add dword [ebp - 0x30], 0xa7fd21f0
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x3328b4d1
add eax, 0xdcd96b73
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xdf0ee915
sub dword [ebp - 0x3c], 0x6a9c7fbf
mov dword [ebp - 0x38], 0x2fcfe3e5
sub dword [ebp - 0x38], 0xee638270
mov dword [ebp - 0x34], 0x8f2e2a4
add dword [ebp - 0x34], 0x5a7c89c8
mov dword [ebp - 0x30], 0x1465bcd3
add dword [ebp - 0x30], 0xeb9a432d
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x400d85d3
sub eax, 0x300b6593
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x36c9f
push 0
call eax
mov ecx, 0xb6fce0e9
sub ecx, 0xb6fc9e22
mov edx, eax
mov ebx, 0x540dd6f4
sub ebx, 0x440abaf4
add ebx, dword [ebp - 0x2c]
mov edi, 0x5b991fd4
sub edi, 0x538403f
xor dword [ebp - 0x14], eax
mov esi, dword [ebx]
mov dword [ebp - 0x24], 0xa86eae77
xor esi, edi
sub dword [ebp - 0x10], esi
mov dword [edx], esi
sub dword [ebp - 8], ebx
add edx, 0x99bb6186
sub edx, 0x99bb6182
add ebx, 0x5a90dc24
sub ebx, 0x5a90dc20
loop 0x100184e1
add eax, 0xcfae4236
sub eax, 0xcfad4447
mov ebx, eax
add eax, 5
mov ecx, 0x3325052c
sub ecx, 0x2325052c
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0xabbf80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x65e000]
push edi
jmp 0xabbf9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xabbfa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xabbf90
mov eax, 1
add ebx, ebx
jne 0xabbfb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xabbfc4
jne 0xabbfe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xabbfe3
dec eax
add ebx, ebx
jne 0xabbfd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xabbfa8
add ebx, ebx
jne 0xabbfdf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xabc035
xor ecx, ecx
sub eax, 3
jb 0xabbffb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xabc06a
sar eax, 1
mov ebp, eax
jmp 0xabc006
add ebx, ebx
jne 0xabc006
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xabbfd4
inc ecx
add ebx, ebx
jne 0xabc014
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xabbfd4
add ebx, ebx
jne 0xabc021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xabc016
jne 0xabc032
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xabc016
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xabc054
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xabc046
jmp 0xabbf96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xabc054
add edi, ecx
jmp 0xabbf96
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xabc072
cmp byte [edi], 0x11
jne 0xabc072
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xabc077
lea edi, [esi + 0x6b4000]
mov eax, dword [edi]
or eax, eax
je 0xabc0ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc926e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc9285c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xabc0a4
mov ecx, edi
jns 0xabc0d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc92860]
or eax, eax
je 0xabc0e9
mov dword [ebx], eax
add ebx, 4
jmp 0xabc0c1
call dword [esi + 0xc92870]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xabc120
cmp al, 0xef
ja 0xabc113
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xabc0f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xabc102
mov ebp, dword [esi + 0xc92864]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xabc154
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x41037b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4c61e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, 0x208
mov word [ebp - 0x41c], ax
push edi
xor ebx, ebx
lea eax, [ebp - 0x41a]
push ebx
push eax
call fcn.0045cc26
xor eax, eax
push edi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0045cc26
add esp, 0x18
mov dword [ebp - 0x420], ebx
mov ecx, 0x105
mov dword [ebp - 0x424], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x428], ebx
push ecx
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x420]
push eax
push ecx
lea eax, [ebp - 0x41c]
push eax
push 0x49d8dc
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x41042c
push edi
push esi
push dword [ebp - 0x420]
call fcn.00410592
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x41045a
call fcn.0041047a
cmp eax, 1
je 0x41044e
cmp dword [ebp + 0x10], ebx
jne 0x41044e
push str.TsnIorcAeBoda
jmp 0x410453
push str.thsnYaVieBoda
push edi
push esi
call fcn.00410712
cmp dword [ebp + 0xc], ebx
je 0x410469
push dword [ebp + 0xc]
push edi
push esi
call fcn.00410712
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cc3b
mov esp, ebp
pop ebp
ret

Function at 0x41047a
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x41049b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x410497
xor eax, eax
ret

Function at 0x4104a9
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4104ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4104c6
xor eax, eax
ret
Function at 0x4105d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x190000
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410617
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0xd
test esi, esi
pop eax
cmove esi, eax
jmp 0x4106a8
push ebx
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x41064a
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push edi
call ebx
test eax, eax
jne 0x41065c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0xd
test esi, esi
pop eax
cmove esi, eax
jmp 0x4106a1
cmp dword [ebp + 0x10], esi
je 0x4106a1
xor eax, eax
mov byte [ebp - 4], al
mov word [ebp - 3], ax
mov byte [ebp - 1], al
lea eax, [ebp - 4]
push eax
push edi
call fcn.004106b1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4106a1
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
inc ecx
push 0xd
pop esi
cmp eax, ecx
mov dword [ebp - 0x10], eax
push edx
lea eax, [ebp - 8]
cmove esi, edx
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4106b1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xd
xor edi, edi
pop ebx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4106fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
cmove esi, ebx
cmp esi, 0xe8
jne 0x410709
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x4106bd
jmp 0x410709
xor eax, eax
mov esi, ebx
cmp dword [ebp - 4], 4
cmove esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4197f4
Capabilities:
Create thread

Disassembly:
push esi
push 4
mov esi, ecx
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
xor edx, edx
pop ecx
test eax, eax
je 0x419809
mov dword [eax], edx
jmp 0x41980b
mov eax, edx
push edx
push edx
push esi
push 0x419825
push edx
push edx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
ret
Function at 0x419c8a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov ecx, esi
call fcn.00418bd8
cmp dword [esi + 4], ebx
jne 0x419ca7
xor eax, eax
jmp 0x419e70
push edi
mov ecx, esi
call fcn.00418bd8
xor edi, edi
inc edi
cmp dword [esi + 4], edi
jne 0x419cd6
push ebx
mov ecx, esi
call fcn.0041794b
movzx eax, ax
push eax
call fcn.0041a229
add esp, 4
test al, al
je 0x419cd6
mov eax, edi
jmp 0x419e6f
mov ecx, esi
call fcn.00418bd8
cmp dword [esi + 4], 3
push 2
pop edi
jne 0x419d42
push ebx
mov ecx, esi
call fcn.0041794b
movzx eax, ax
push eax
call dword [sym.imp.MSVCR120.dll_iswalpha]
pop ecx
test eax, eax
je 0x419d42
xor eax, eax
mov ecx, esi
inc eax
push eax
call fcn.0041794b
cmp ax, 0x3a
jne 0x419d42
push edi
mov ecx, esi
call fcn.0041794b
movzx eax, ax
push eax
call fcn.0041a229
add esp, 4
test al, al
je 0x419d42
mov ecx, esi
call fcn.00418bd8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x419e6f
mov ecx, esi
call fcn.00418bd8
cmp dword [esi + 4], edi
jbe 0x419e6d
push ebx
mov ecx, esi
call fcn.0041794b
movzx eax, ax
push eax
call fcn.0041a229
add esp, 4
test al, al
je 0x419e6d
xor eax, eax
mov ecx, esi
inc eax
push eax
call fcn.0041794b
movzx eax, ax
push eax
call fcn.0041a229
add esp, 4
test al, al
je 0x419e6d
push edi
mov ecx, esi
call fcn.0041794b
movzx eax, ax
push eax
call fcn.0041a229
add esp, 4
test al, al
jne 0x419e74
mov ecx, esi
inc edi
call fcn.00418bd8
cmp edi, dword [esi + 4]
jae 0x419dce
push edi
mov ecx, esi
call fcn.0041794b
movzx eax, ax
push eax
call fcn.0041a229
add esp, 4
test al, al
je 0x419da9
mov ecx, esi
call fcn.00418bd8
cmp dword [esi + 4], edi
je 0x419e74
mov ecx, esi
inc edi
call fcn.00418bd8
cmp dword [esi + 4], edi
je 0x419e74
push edi
mov ecx, esi
call fcn.0041794b
movzx eax, ax
push eax
call fcn.0041a229
add esp, 4
test al, al
jne 0x419e74
mov ecx, esi
inc edi
call fcn.00418bd8
cmp edi, dword [esi + 4]
jae 0x419e2c
push edi
mov ecx, esi
call fcn.0041794b
movzx eax, ax
push eax
call fcn.0041a229
add esp, 4
test al, al
je 0x419e07
mov ecx, esi
call fcn.00418bd8
lea eax, [edi + 1]
cmp dword [esi + 4], eax
ja 0x419e74
mov ecx, esi
call fcn.00418bd8
cmp dword [esi + 4], edi
jne 0x419e56
movzx eax, word [0x4c6108]
mov ecx, esi
push eax
call fcn.00417e09
mov ecx, esi
call fcn.00418bd8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb ebx, ebx
neg ebx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x419e6f
Function at 0x41a63e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x41a677
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0xffffffffffffffff
push str.unable_to_create_tls_index
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.RSException.0
call fcn.00417813
push 0x4b0a7c
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR120.dll__CxxThrowException
int3
Function at 0x41c8ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 1
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c918
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
test esi, esi
je 0x41c912
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41c918
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41c9fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4cd020
mov dword [ebp - 8], eax
lea ebx, [eax + 0x105]
push ebx
call fcn.0045cc32
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41ca36
mov eax, 0x8000ffff
jmp 0x41cb1a
push edi
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x41ca7e
cmp edi, 0x104
jbe 0x41ca8f
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
mov ebx, dword [ebp - 8]
inc ebx
mov dword [esp], 0x4cd020
add ebx, edi
push ebx
call fcn.0045cc32
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41ca85
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x41ca8f
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, 0x8000ffff
jmp 0x41cb19
push str.Shell32.dll
push ebx
push esi
xor edi, edi
call fcn.0041c91d
test eax, eax
jne 0x41caa9
push esi
call fcn.0041cb4e
mov edi, eax
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
xor ebx, ebx
mov esi, 0x80004001
mov dword [ebp - 4], ebx
pop ecx
test edi, edi
je 0x41cb17
push str.SHGetKnownFolderPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41cadd
lea ecx, [ebp - 4]
push ecx
push ebx
push ebx
push 0x4c610c
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp + 8], ebx
je 0x41cb17
cmp dword [ebp - 4], ebx
je 0x41cb17
test esi, esi
jne 0x41cb17
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov ecx, 0x80070057
test eax, eax
cmovne esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret