joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x412ba5
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x412bd3
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x412c48
mov ecx, 1
jmp 0x412c48
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x412be3
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412c12
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x412c48
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x412c24
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x412c35
mov dword [ebp - 4], esi
test esi, esi
jne 0x412c39
jmp 0x412c3d
test esi, esi
je 0x412c3d
test eax, eax
ja 0x412beb
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x412ca8
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4181e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x418205
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x418233
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x4182a8
mov ecx, 1
jmp 0x4182a8
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x418243
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x418272
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x4182a8
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x418284
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x418295
mov dword [ebp - 4], esi
test esi, esi
jne 0x418299
jmp 0x41829d
test esi, esi
je 0x41829d
test eax, eax
ja 0x41824b
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x418308
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x41a350
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x41d340
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x7c]
test esi, esi
mov dword [ebp - 0xc], edi
je 0x41d4fc
mov edx, dword [0x4f5120]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x4fdae8]
jge 0x41d38f
mov eax, dword [ebx]
test eax, eax
jne 0x41d3d0
mov dword [edi + 0x4fdae8], 1
jmp 0x41d3d0
push ebx
call fcn.004080c0
add esp, 4
test eax, eax
jne 0x41d3ca
cmp dword [edi + 0x4fdae4], 0
je 0x41d4dc
mov dword [edi + 0x4fdae8], 0
push 0xffffffffffffffff
push dword [edi + 0x4fdae4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.004080c0
add esp, 4
mov edx, dword [0x4f5120]
cmp edx, 1
je 0x41d4c8
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x41d43f
mov eax, dword [0x4f5120]
cmp eax, 1
je 0x41d424
cmp eax, 2
jge 0x41d3ff
mov dword [edi + 0x4fdae8], 0
jmp 0x41d415
mov dword [edi + 0x4fdae8], 0
push dword [edi + 0x4fdae4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edi + 0x4fdaf8]
push dword [edi + 0x4fdaf4]
call fcn.004080a0
add esp, 8
mov eax, dword [0x4f5120]
jmp 0x41d3ee
mov edx, dword [esi]
test edx, edx
je 0x41d44b
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x41d456
mov dword [eax], edx
jmp 0x41d45c
mov dword [edi + 0x4fdae0], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x4f5120]
cmp eax, 1
je 0x41d4ad
cmp eax, 2
jge 0x41d481
mov dword [edi + 0x4fdae8], 0
jmp 0x41d497
mov dword [edi + 0x4fdae8], 0
push dword [edi + 0x4fdae4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.00408660
push esi
call fcn.00408660
add esp, 8
jmp 0x41d415
push dword [edi + 0x4fdaf8]
push dword [edi + 0x4fdaf4]
call fcn.004080a0
add esp, 8
mov eax, dword [0x4f5120]
jmp 0x41d470
lea eax, [edi + 0x4fdaf4]
push eax
call fcn.00408070
add esp, 4
jmp 0x41d3d9
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x4fdae4], eax
mov dword [edi + 0x4fdae8], 0
jmp 0x41d3b3
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x41d510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.0042b290
mov ebx, dword [ebp + 8]
cmp dword [0x5033e0], 0
jne 0x41d537
test ebx, ebx
je 0x41d52c
mov eax, dword [ebx]
jmp 0x41d52e
xor eax, eax
push eax
call fcn.00468280
add esp, 4
test ebx, ebx
je 0x41d53f
mov eax, dword [ebx]
jmp 0x41d541
xor eax, eax
push eax
call fcn.004b8150
add esp, 4
jmp 0x41d524
Function at 0x426c70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x42dd60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]

Function at 0x42dd6c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], edi
mov edx, eax
mov dword [ecx], 0
cmp dword [0x5033e0], 0
je 0x42de43
cmp dword [ebp + 0x20], 2
je 0x42dda3
cmp dword [ebp + 0x20], 1
jne 0x42ddb2
mov eax, 0xffffffff
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x42ddc2
cmp dword [ebp + 0x20], 0xfffffffa
je 0x42df08
cmp dword [ebp + 0x20], 0
je 0x42df14
xor ecx, ecx
xor edi, edi
cmp dword [ebp + 0x18], 0
je 0x42ddf7
cmp dword [ebp + 0x1c], 0
je 0x42ddf7
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.004b7f00
push edi
call fcn.004b8070
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x42de43
push edi
push esi
push ebx
call fcn.004b7fa0
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp esi, 0xffffffff
mov dword [eax], esi
je 0x42df38
push 0
push edi
push 2
push 0x4d058c
call fcn.004b7f60
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov eax, 1
mov byte [esi + ebx], 0xa
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
inc dword [edx]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [edi], 0
je 0x42de6b
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x42de70
mov edi, 0x20000
cmp esi, edi
jbe 0x42dee4
cmp dword [ebp + 0x20], 0
je 0x42dee4
test ecx, ecx
je 0x42de88
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x42de8d
mov edi, 0x20000
mov dword [ebp - 0x10], edx
push 0
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ded2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
add ebx, edx
sub esi, edx
add dword [ecx], edx
cmp dword [ebp + 0x24], 0
je 0x42dec7
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 0x13c]
test edx, edx
jne 0x42decc
mov edx, 0x20000
cmp esi, edx
ja 0x42ded2
mov edi, esi
test esi, esi
je 0x42defb
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jne 0x42defb
test eax, eax
jne 0x42de90
jmp 0x42defb
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, edx
mov ecx, 1
jmp 0x42ddd6
mov dword [ebp - 0x10], edx
call fcn.004b8190
mov edx, dword [ebp - 0x10]
mov edi, eax
cmp dword [0x5033e0], 0
je 0x42ddfb
mov ecx, 1
jmp 0x42ddd0
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4400d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x4400f5
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x440123
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x440198
mov ecx, 1
jmp 0x440198
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x440133
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x440162
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x440198
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x440174
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x440185
mov dword [ebp - 4], esi
test esi, esi
jne 0x440189
jmp 0x44018d
test esi, esi
je 0x44018d
test eax, eax
ja 0x44013b
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x4401f8
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x473a50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f6eb0]
jne 0x473a5a
repz ret
jmp fcn.0048af20

Function at 0x47fd00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47fd38
push str._path___NULL_
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.00470bc0
add esp, 0x14
cmp eax, 1
jne 0x47fd38
int3
cmp dword [ebp - 8], 0
jne 0x47fd79
call fcn.00469f00
mov dword [eax], 0
call fcn.00469ed0
mov dword [eax], 0x16
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str._path___NULL_
call fcn.004705f0
add esp, 0x14
mov eax, 0x16
jmp 0x47fe51
mov edx, dword [ebp + 0xc]
and edx, 0xfffffff9
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0xc], edx
jne 0x47fda9
push str.__amode___6____0_
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.00470bc0
add esp, 0x14
cmp eax, 1
jne 0x47fda9
int3
cmp dword [ebp - 0xc], 0
jne 0x47fde7
call fcn.00469f00
mov dword [eax], 0
call fcn.00469ed0
mov dword [eax], 0x16
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str.__amode___6____0_
call fcn.004705f0
add esp, 0x14
mov eax, 0x16
jmp 0x47fe51
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x47fe12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00469cc0
add esp, 4
call fcn.00469ed0
mov eax, dword [eax]
jmp 0x47fe51
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x47fe1e
xor eax, eax
jmp 0x47fe51
mov eax, dword [ebp - 4]
and eax, 1
je 0x47fe4f
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x47fe4f
call fcn.00469f00
mov dword [eax], 5
call fcn.00469ed0
mov dword [eax], 0xd
call fcn.00469ed0
mov eax, dword [eax]
jmp 0x47fe51
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40e840
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5779a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x240
push esi
push edi
push 0x27
mov edi, ecx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.enRi1SCkbxBDwNwFRAtJJiQhhCQoErMTwVnBgc
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
call fcn.0042d600
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push 0x18
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push str.Znd0DeTY0MNQkWSJAAWiFBI
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
call fcn.0042d600
push 0x104
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
sub esp, 0x18
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0042e9e0
lea ecx, [ebp - 0x14]
call fcn.00445090
add esp, 0x18
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x14]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40e92b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x40e95c
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0
push 0x5904f4
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov dword [edi + 0x110], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x40e992
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e988
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9dd
push ecx
push edx
call fcn.0054db34
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x40e9c8
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e9be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9dd
push ecx
push edx
call fcn.0054db34
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00552a0f
int3
Function at 0x41ef00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579605
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
push edi
push 0x27
mov dword [ebp - 0x28], ecx
xorps xmm0, xmm0
push str.cWhOsYiIHgKBYGACTwHaLTgNkIwEYxHRYeeGis
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
call fcn.0042d600
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.aEQ3XZxsw1VhMdoNw
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.0042d600
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0xf003f
push 0
sub esp, 0x18
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x24], 4
mov ecx, esp
mov esi, 3
push eax
call fcn.0042e9e0
lea ecx, [ebp - 0x1c]
call fcn.00445090
add esp, 0x18
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov dword [ebp - 0x20], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41efee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x41f04f
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.0042e9e0
lea ecx, [ebp - 0x20]
call fcn.00445090
add esp, 0x18
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41f040
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
test eax, eax
cmove esi, dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x110], esi
cmp ecx, 8
jb 0x41f08e
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f084
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f0d9
push ecx
push edx
call fcn.0054db34
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x41f0c4
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f0ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f0d9
push ecx
push edx
call fcn.0054db34
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00552a0f
int3
Function at 0x425760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579c26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.0042e8d0
add eax, 0x10
mov dword [esi + 8], eax
lea edi, [esi + 0x10]
mov dword [edi + 0x24], 0
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x4257bd
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0042e8d0
add eax, 0x10
mov dword [esi + 0x38], eax
lea edi, [esi + 4]
mov byte [ebp - 4], 4
push edi
push 0xf003f
push 0
push dword [ebx]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
jne 0x425870
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [esi + 0x38]
push dword [edi]
call ebx
test eax, eax
jne 0x425843
mov eax, dword [ebp + 0x10]
cmp eax, 3
je 0x42582b
cmp eax, 4
je 0x42582b
cmp eax, 0xb
jne 0x425843
cmp dword [ebp + 0xc], 4
jne 0x425843
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [esi + 0x38]
push dword [edi]
call ebx
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x42585b
mov edx, dword [ecx]
lea eax, [ebp + 0x14]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x34
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RGJ14aTYHtEgA36FgcQtZBUUnGmQMhGh1k9DQUMnKgcR
lea ecx, [ebp - 0x38]
call fcn.0042ed90
push ebx
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.0042e9e0
lea ecx, [ebp + 0xc]
call fcn.00445090
add esp, 0x18
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00405750
push 0x5bf210
lea eax, [ebp - 0x20]
push eax
call fcn.0054fa3a
int3

Function at 0x429a40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579f5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00537e15
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 eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x429acb
push eax
push esi
call fcn.00537c57
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00537549
int3