joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4583b8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414ed0]
call fcn.00404e20
xor eax, eax
push ebp
push 0x4584fc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x477dbc], 0
jne 0x45840b
mov ecx, dword [0x4787d4]
mov dl, 1
mov eax, dword [0x407734]
call fcn.0040c098
call fcn.00403e6c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004030dc
mov eax, ebx
call fcn.00404c9c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45850c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405e60
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404cac
test eax, eax
jle 0x4584a3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45849c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004046e0
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004046c8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004085cc
test eax, eax
jne 0x45849c
mov ebx, 0x15
jmp 0x4584a8
mov ebx, 0x10
jmp 0x4584a8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x477dbc]
call fcn.00458310
mov eax, dword [ebp - 8]
call fcn.00458310
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458503
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040447c
lea eax, [ebp - 0x10]
mov edx, dword [0x414ed0]
call fcn.00404ef0
ret

Function at 0x461964
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x461992
mov eax, ebx
call fcn.00462418
cmp dword [ebx + 0x40], 0
je 0x46198b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x461a03
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4619f5
cmp dword [ebx + 8], 0
je 0x4619b4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4619c6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4619f5
cmp dword [ebx + 8], 0
je 0x4619a7
cmp eax, 3
je 0x4619d9
dec eax
jne 0x4619a7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4619a7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4619a7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x461a21
cmp dword [ebx + 0x14], 0xcc
je 0x461a21
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00461a2c
pop ebx
ret
Function at 0x4720e8
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x4721b0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x4721b4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x4721b0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4721a7
xor eax, eax
push ebp
push 0x4721a0
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4721a7
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4753f4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov ebx, 0x479cf8
xor eax, eax
push ebp
push 0x4755c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x47888c]
mov byte [eax], 1
mov dword [ebx], 0x47373c
mov dword [ebx + 4], 0x473740
mov dword [ebx + 8], 0x473744
mov dword [ebx + 0xc], 0x473758
mov dword [ebx + 0x10], 0x473944
mov dword [ebx + 0x14], 0x4739b0
mov dword [ebx + 0x18], 0x473a0c
mov dword [ebx + 0x1c], 0x473a14
mov dword [ebx + 0x20], 0x474f88
mov dword [ebx + 0x24], 0x4750b8
mov dword [ebx + 0x28], 0x475234
mov dword [ebx + 0x2c], 0x475294
mov dword [ebx + 0x30], 0x4752d8
mov dword [ebx + 0x34], 0x4752f0
mov dword [ebx + 0x38], 0x475338
mov dword [ebx + 0x3c], 0x47535c
lea eax, [ebp - 4]
mov edx, 0x4755d4
call fcn.00404b98
mov eax, dword [ebp - 4]
call fcn.00404c9c
push eax
push ebx
call sub.ProtocolFilters.dll_pfc_init
add esp, 8
mov dword [0x479d38], eax
cmp dword [0x479d38], 0
jne 0x4754c0
xor ebx, ebx
jmp 0x4755aa
push 0x4755f0
call sub.ProtocolFilters.dll_pfc_setRootSSLCertSubject
pop ecx
call sub.ProtocolFilters.dll_pfc_getNFEventHandler
mov esi, eax
mov edi, 0x479d44
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [0x479d58], 0x475374
mov dword [0x479d74], 0x4753b0
push 0x479d44
push 0x4755fc
call sub.nfapi.dll_nf_init
add esp, 8
mov dword [0x479d38], eax
cmp dword [0x479d38], 0
je 0x47551e
call sub.ProtocolFilters.dll_pfc_free
xor ebx, ebx
jmp 0x4755aa
push 0
call sub.nfapi.dll_nf_setTCPTimeout
pop ecx
lea eax, [ebp - 0x5b]
xor ecx, ecx
mov edx, 0x53
call fcn.004030dc
xor eax, eax
mov dword [ebp - 0xc], eax
mov word [ebp - 0x4e], 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 8], eax
push 0x475608
call sub.wsock32.dll_inet_addr
mov edx, dword [ebp - 8]
mov dword [edx], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], eax
push 0x475614
call sub.wsock32.dll_inet_addr
mov edx, dword [ebp - 8]
mov dword [edx], eax
push 0
lea eax, [ebp - 0x5b]
push eax
call sub.nfapi.dll_nf_addRule
add esp, 8
lea eax, [ebp - 0x5b]
xor ecx, ecx
mov edx, 0x53
call fcn.004030dc
mov dword [ebp - 0xc], 0x12
mov dword [ebp - 0x5b], 6
push 0
lea eax, [ebp - 0x5b]
push eax
call sub.nfapi.dll_nf_addRule
add esp, 8
call fcn.00472f44
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4755c7
lea eax, [ebp - 4]
call fcn.00404b38
ret
Function at 0x537fb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe3000]
push edi
jmp 0x537fca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x537fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x537fc0
mov eax, 1
add ebx, ebx
jne 0x537fe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x537ff4
jne 0x538013
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x538013
dec eax
add ebx, ebx
jne 0x538000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x537fd8
add ebx, ebx
jne 0x53800f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x538065
xor ecx, ecx
sub eax, 3
jb 0x53802b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53809a
sar eax, 1
mov ebp, eax
jmp 0x538036
add ebx, ebx
jne 0x538036
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x538004
inc ecx
add ebx, ebx
jne 0x538044
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x538004
add ebx, ebx
jne 0x538051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x538046
jne 0x538062
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x538046
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x538084
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x538076
jmp 0x537fc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x538084
add edi, ecx
jmp 0x537fc6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5380a2
cmp byte [edi], 0x11
jne 0x5380a2
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 0x5380a7
lea edi, [esi + 0x130000]
mov eax, dword [edi]
or eax, eax
je 0x53811f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19775c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1978d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5380d4
mov ecx, edi
jns 0x538103
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 + 0x1978dc]
or eax, eax
je 0x538119
mov dword [ebx], eax
add ebx, 4
jmp 0x5380f1
call dword [esi + 0x1978ec]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x538150
cmp al, 0xef
ja 0x538143
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x538125
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x538132
mov ebp, dword [esi + 0x1978e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x538184
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x4030db
Capabilities:
Check os version

Disassembly:
push 0x11c
mov eax, 0x54dcbc
call fcn.00534de0
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.0040d265
xor edi, edi
mov dword [ebp - 4], edi
push str.M_Track_Eight_AudioDevMon
lea ecx, [esi + 0x28]
mov dword [esi], vtable.AudioDevMon.0
call fcn.0040301a
xor ebx, ebx
inc ebx
push 0x56ef68
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.0040301a
push str.Manages_device_settings_and_hot_plugging_for_M_Audio_M_Track_Eight_devices.
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.0040301a
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, vtable.MA::StringArrayT_wchar_t__char_.0
mov dword [esi + 0x4c], eax
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x6c], eax
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov edi, 0x114
push edi
mov dword [esi + 0x7c], eax
lea eax, [ebp - 0x124]
push 0
push eax
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 6
sbb al, al
inc al
cmp dword [ebp - 0x120], 6
mov byte [esi + 0x8c], al
jb 0x4031c7
cmp dword [ebp - 0x11c], ebx
jae 0x4031c9
xor ebx, ebx
mov byte [esi + 0x8d], bl
mov eax, esi
call fcn.00534d8f
ret
Function at 0x406051
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x74
mov eax, 0x54e0fc
call fcn.00534dad
mov edi, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0040af30
test eax, eax
je 0x4060c5
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [edx + 4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
push eax
lea eax, [ebp - 0x24]
push str.LaunchApp__:_signature_verification_failed_for_file__s
push eax
call fcn.00411470
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
add eax, 4
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
push eax
push edi
call fcn.00403070
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 0x24], vtable.MA::StringT_wchar_t__char_.0
lea ecx, [ebp - 0x20]
jmp 0x406172
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x80]
push 0
push eax
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
lea ecx, [ebp - 0x1c]
push dword [ebp + 0xc]
mov dword [ebp - 0x80], ebx
call fcn.00401704
mov dword [ebp - 4], 1
mov ecx, dword [esi + 4]
add ecx, 4
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x80]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, vtable.MA::StringT_wchar_t__char_.0
test eax, eax
je 0x40613d
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
jmp 0x406168
push str.CreateProcess_failed
lea ecx, [ebp - 0x14]
call fcn.0040301a
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040da99
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.00402ee1
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x18]
call fcn.00402ee1
call fcn.00534d7b
ret 8
Function at 0x40c1e2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [esi + 4]
push eax
push 4
push dword [ebp + 0xc]
push 0x40c25f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x40c20c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x40c4b1
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54ed4e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x59dbf0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
and dword [esp + 0x14], 0
lea ecx, [edi + 0x1c]
mov dword [edi], 0x5703c0
call fcn.00401988
mov eax, dword [edi]
push edi
mov eax, dword [eax + 4]
xor ebx, ebx
lea esi, [edi + 4]
push ecx
inc ebx
mov ecx, esi
mov dword [esp + 0x1c], ebx
mov dword [edi + eax], vtable.MA::LEventGatedThreader.0
call fcn.0040c1e2
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], ebx
mov eax, dword [eax]
lea ecx, [edi + 0xc]
mov dword [ecx], eax
call fcn.0040c9f8
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x28], 2
mov byte [edi + 0x10], 0
mov eax, dword [eax]
lea ecx, [edi + 0x14]
mov dword [ecx], eax
call fcn.0040c3e5
mov byte [esp + 0x28], 3
mov eax, dword [0x59eaec]
lea ecx, [edi + 0x18]
mov dword [ecx], eax
call fcn.00402104
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x413580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535beb
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x59dbf0]
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, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 0x42c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 4], 0xffffffff
setne al
mov byte [ebp - 0x430], al
test al, al
jne 0x4135db
mov ecx, edi
call fcn.00408796
mov esi, dword [edi + 4]
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x4136e6
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
mov dword [ebp - 0x428], 0x104
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebx]
push dword [ebp - 0x41c]
mov ecx, ebx
call dword [eax + 0x34]
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x4136e2
xor esi, esi
test eax, eax
je 0x4136e2
lea esp, [esp]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push dword [edi + 4]
mov dword [ebp - 0x420], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4136e6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x64]
lea ecx, [eax + esi*8]
push 0x7ffffffe
lea eax, [ebp - 0x418]
push eax
call fcn.00402f12
inc esi
cmp esi, dword [ebp - 0x41c]
jb 0x413690
xor esi, esi
jmp 0x4136eb
mov esi, 0x80004005
cmp byte [ebp - 0x430], 0
jne 0x41370a
mov ecx, dword [edi + 4]
cmp ecx, 0xffffffff
je 0x41370a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 4], 0xffffffff
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.00533cc8
mov esp, ebp
pop ebp
ret 4
Function at 0x413f50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x59dbf0]
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, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 0x428], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 4], 0xffffffff
setne al
mov byte [ebp - 0x42c], al
test al, al
jne 0x413fab
mov ecx, edi
call fcn.00408796
mov esi, dword [edi + 4]
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x4140bb
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
mov dword [ebp - 0x424], 0x104
mov dword [ebp - 0x41c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebx]
push dword [ebp - 0x41c]
mov ecx, ebx
call dword [eax + 0x34]
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x4140b7
xor esi, esi
test eax, eax
je 0x4140b7
lea esp, [esp]
lea eax, [ebp - 0x43c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push dword [edi + 4]
mov dword [ebp - 0x420], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4140bb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x64]
lea ecx, [eax + esi*8]
push 0x7ffffffe
lea eax, [ebp - 0x418]
push eax
call fcn.00402f12
inc esi
cmp esi, dword [ebp - 0x41c]
jb 0x414060
xor esi, esi
jmp 0x4140c0
mov esi, 0x80004005
cmp byte [ebp - 0x42c], 0
jne 0x4140df
mov ecx, dword [edi + 4]
cmp ecx, 0xffffffff
je 0x4140df
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 4], 0xffffffff
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.00533cc8
mov esp, ebp
pop ebp
ret 4
Function at 0x4182a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
cmp esi, 0xffffffff
je 0x4182ca
mov eax, dword [edi + 4]
push 0
mov eax, dword [eax + 4]
push esi
push dword [eax]
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
cmp eax, esi
jne 0x4182ee
mov eax, dword [edi + 4]
push dword [ebp + 0xc]
mov eax, dword [eax + 4]
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.MSVCR110.dll__read]
add esp, 0xc
pop edi
pop esi
cmp eax, 0xffffffff
je 0x41831e
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp + 0x10], str.Runtime_Error_:_lseek_:_MA::MAFile::Read_:_UtilitiesStorageMAFile.cpp_:_Line_255
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x593b68
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], vtable.MA::Exception_class_std::runtime_error_.0
mov dword [ebp - 4], vtable.MA::Exception_class_std::runtime_error_.1.0
call sub.MSVCR110.dll__CxxThrowException
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp + 0x10], str.Runtime_Error_:_read_:_MA::MAFile::Read_:_UtilitiesStorageMAFile.cpp_:_Line_262
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x593b68
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], vtable.MA::Exception_class_std::runtime_error_.0
mov dword [ebp - 4], vtable.MA::Exception_class_std::runtime_error_.1.0
call sub.MSVCR110.dll__CxxThrowException
int3

Function at 0x4189d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebx + 2]
push 0x5541d4
push eax
xor edi, edi
call dword [sym.imp.MSVCR110.dll_wcspbrk]
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x418a3d
lea ebx, [ebx]
mov ecx, eax
sub ecx, ebx
sar ecx, 1
xor eax, eax
movzx esi, word [ebx + ecx*2]
lea edi, [ebx + ecx*2]
push eax
push ebx
mov word [edi], ax
call edx
mov eax, dword [ebp + 8]
mov word [edi], si
mov edi, eax
add eax, 2
push 0x5541d4
push eax
call dword [sym.imp.MSVCR110.dll_wcspbrk]
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x418a00
cmp byte [ebp + 0xc], 0
jne 0x418a5e
push 0
push ebx
call edx
push 0
push ebx
call dword [sym.imp.MSVCR110.dll__waccess]
add esp, 8
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret
test edi, edi
je 0x418a89
xor eax, eax
sub edi, ebx
sar edi, 1
push eax
movzx esi, word [ebx + edi*2]
push ebx
mov word [ebx + edi*2], ax
call dword [sym.imp.MSVCR110.dll__waccess]
add esp, 8
mov word [ebx + edi*2], si
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret