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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [esp + 0x2c]
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x10], eax
xor edi, edi
test esi, esi
je 0x52347c
mov ebp, dword [esp + 0x30]
test ebp, ebp
jne 0x52338a
mov ebp, dword [esi]
test ebp, ebp
je 0x52347c
mov eax, dword [esi + 0x14]
and eax, 4
jne 0x52347c
cmp byte [ebp], 0
je 0x52347c
lea ebx, [esp + 7]
push 9
push ebx
push dword [esp + 0x30]
call fcn.0059f690
add esp, 0xc
mov edi, 2
test eax, eax
jne 0x52347c
push ebx
push ebp
push str._s._s.tmp
call fcn.00579a80
add esp, 0xc
test eax, eax
je 0x523434
push 0x65ce7f
mov dword [esp + 4], eax
push eax
call fcn.0057a350
add esp, 8
test eax, eax
je 0x52343b
mov ebx, eax
push eax
push 1
push 0x75
push str._Your_alt_svc_cache._https:__curl.se_docs_alt_svc.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n
call fcn.005fd8f2
add esp, 0x10
mov esi, dword [esi + 4]
nop dword [eax + eax]
test esi, esi
je 0x523445
mov ecx, dword [esi]
mov esi, dword [esi + 8]
mov edx, ebx
call fcn.005234a0
test eax, eax
je 0x523410
mov edi, eax
push ebx
call fcn.005fcd83
add esp, 4
mov esi, dword [esp]
jmp 0x523465
mov edi, 0x1b
jmp 0x52347c
mov edi, 0x17
mov esi, dword [esp]
jmp 0x523472
push ebx
call fcn.005fcd83
add esp, 4
push ebp
mov esi, dword [esp + 4]
push esi
call fcn.0059f750
add esp, 8
mov edi, 0x17
test eax, eax
je 0x523470
push esi
call fcn.005f7cfa
add esp, 4
jmp 0x523472
xor edi, edi
push esi
call dword [0x7c3880]
add esp, 4
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005db451
mov eax, edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5242e0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [esp + 0x38]
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x1c], eax
test esi, esi
je 0x524470
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jne 0x524309
mov ebx, dword [esi + 0x10]
mov ecx, dword [esp + 0x34]
xor edi, edi
test ebx, ebx
je 0x52440f
mov eax, dword [esi + 0x14]
and eax, 2
jne 0x52440f
cmp byte [ebx], 0
je 0x52440f
lea esi, [esp + 0x13]
push 9
push esi
push ecx
call fcn.0059f690
add esp, 0xc
mov edi, 2
test eax, eax
jne 0x524472
push esi
push ebx
push str._s._s.tmp
call fcn.00579a80
add esp, 0xc
test eax, eax
je 0x5243b8
push 0x65ce7f
mov dword [esp + 4], eax
push eax
call fcn.0057a350
add esp, 8
test eax, eax
je 0x5243c2
mov ebp, eax
push eax
push 1
push 0x6f
push str._Your_HSTS_cache._https:__curl.se_docs_hsts.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n
call fcn.005fd8f2
add esp, 0x10
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
nop dword [eax]
test esi, esi
je 0x5243d0
mov ecx, dword [esi]
mov esi, dword [esi + 8]
mov edx, ebp
call fcn.00524490
test eax, eax
je 0x524390
mov edi, eax
push ebp
call fcn.005fcd83
add esp, 4
mov esi, dword [esp + 0x38]
mov ebx, dword [esp]
jmp 0x5243f4
mov edi, 0x1b
jmp 0x524472
mov edi, 0x17
mov esi, dword [esp + 0x38]
mov ebx, dword [esp]
jmp 0x524401
push ebp
call fcn.005fcd83
add esp, 4
push ebx
mov ebx, dword [esp + 4]
push ebx
call fcn.0059f750
add esp, 8
mov edi, 0x17
test eax, eax
mov esi, dword [esp + 0x38]
je 0x5243ff
push ebx
call fcn.005f7cfa
add esp, 4
jmp 0x524401
xor edi, edi
push ebx
call dword [0x7c3880]
add esp, 4
mov ecx, dword [esp + 0x34]
cmp dword [ecx + 0x1f0], 0
je 0x524472
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov ebp, dword [esi]
test ebp, ebp
je 0x524472
lea ebx, [esp + 8]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, ebp
mov ebp, dword [ebp + 8]
mov esi, ecx
mov edx, ebx
lea edi, [esp + 7]
push edi
push dword [eax]
call fcn.00524560
add esp, 8
mov edi, eax
test eax, eax
jne 0x524472
cmp byte [esp + 7], 0
jne 0x524472
add dword [esp + 8], 1
test ebp, ebp
mov ecx, esi
jne 0x524440
xor edi, edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005db451
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x524560
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push edi
push esi
sub esp, 0x48
mov edi, edx
mov esi, ecx
mov ebx, dword [esp + 0x58]
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x24], eax
push eax
call fcn.005fef10
add esp, 4
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov edx, ecx
xor edx, 0x7fffffff
mov ebx, eax
not ebx
or ebx, edx
jne 0x5245c4
mov word [esp + 0x38], 0x64
mov dword [esp + 0x34], 0x6574696d
mov dword [esp + 0x30], 0x696c6e75
jmp 0x52460c
mov edx, esp
push edx
push ecx
push eax
call fcn.0059fe10
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x524638
mov eax, dword [esp + 0x10]
add eax, 1
mov ecx, 0x76c
add ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x10]
push dword [esp + 0x18]
push eax
push ecx
push str._d_02d_02d__02d:_02d:_02d
push 0x12
push edx
call fcn.005798c0
add esp, 0x24
mov ebx, dword [esp + 0x5c]
lea eax, [esp + 0x24]
push dword [esi + 0x1f4]
push edi
push eax
push esi
call dword [esi + 0x1f0]
add esp, 0x10
test eax, eax
setne byte [ebx]
xor ecx, ecx
cmp eax, 2
mov ebx, 0x2b
cmovne ebx, ecx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005db451
mov eax, ebx
add esp, 0x48
pop esi
pop edi
pop ebx
ret
Function at 0x5263c0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x18], eax
xor ebp, ebp
test edx, edx
je 0x5265b3
mov edi, edx
mov ebx, ecx
mov ecx, edx
call fcn.00525b90
push dword [esp + 0x30]
push 0x66d97e
call fcn.005fee30
add esp, 8
test eax, eax
mov dword [esp + 8], eax
je 0x526424
lea esi, [esp + 0xf]
push 9
push esi
push ebx
call fcn.0059f690
add esp, 0xc
mov ecx, 2
test eax, eax
je 0x5264a4
mov ebp, ecx
jmp 0x5265b3
xor esi, esi
push 1
call fcn.005e4e6b
add esp, 4
mov ebx, eax
push eax
push 1
push 0x83
push str._Netscape_HTTP_Cookie_File_n_https:__curl.se_docs_http_cookies.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n_n
call fcn.005fd8f2
add esp, 0x10
mov eax, dword [edi + 0x404]
test eax, eax
je 0x526544
mov dword [esp], ebx
shl eax, 2
push eax
push 1
call dword [0x7c388c]
add esp, 8
test eax, eax
je 0x52658d
mov ebx, eax
mov dword [esp + 4], esi
xor esi, esi
xor eax, eax
jmp 0x52648a
add eax, 1
cmp eax, 0x100
je 0x5264db
mov ecx, dword [edi + eax*4]
jmp 0x526492
mov ecx, dword [ecx]
test ecx, ecx
je 0x526480
cmp dword [ecx + 0x14], 0
je 0x526490
mov dword [ebx + esi*4], ecx
add esi, 1
jmp 0x526490
push esi
push dword [esp + 0x34]
push str._s._s.tmp
call fcn.00579a80
add esp, 0xc
test eax, eax
je 0x526575
mov esi, eax
push 0x65ce7f
push eax
call fcn.0057a350
add esp, 8
test eax, eax
jne 0x526430
jmp 0x52656e
push 0x526750
push 4
push esi
push ebx
call fcn.005fe4b0
add esp, 0x10
test esi, esi
je 0x526531
xor ebp, ebp
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, dword [ebx + ebp*4]
call fcn.00526680
test eax, eax
je 0x52657f
mov edi, eax
push eax
push 0x671890
push dword [esp + 8]
call fcn.00579ac0
add esp, 0xc
push edi
call dword [0x7c3880]
add esp, 4
add ebp, 1
cmp esi, ebp
jne 0x526500
push ebx
call dword [0x7c3880]
add esp, 4
xor ebp, ebp
mov esi, dword [esp + 4]
mov ebx, dword [esp]
cmp dword [esp + 8], 0
je 0x5265a9
push ebx
call fcn.005fcd83
add esp, 4
push dword [esp + 0x30]
push esi
call fcn.0059f750
add esp, 8
test eax, eax
je 0x5265a9
push esi
call fcn.005f7cfa
add esp, 4
mov ebp, 0x17
jmp 0x5265a9
mov ecx, 0x1b
jmp 0x52641d
push ebx
call dword [0x7c3880]
add esp, 4
mov esi, dword [esp + 4]
mov ebp, 0x1b
cmp dword [esp + 8], 0
je 0x5265a9
mov eax, dword [esp]
test eax, eax
je 0x5265a9
push eax
call fcn.005fcd83
add esp, 4
push esi
call dword [0x7c3880]
add esp, 4
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005db451
mov eax, ebp
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x526630
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
test edx, edx
jle 0x526676
push ebx
push edi
push esi
mov esi, edx
mov edi, ecx
add esi, ecx
mov eax, 0x1505
nop word cs:[eax + eax]
nop dword [eax]
mov ebx, eax
shl ebx, 5
add ebx, eax
movsx eax, byte [edi]
add edi, 1
push eax
call fcn.0052afa0
add esp, 4
movzx eax, al
xor eax, ebx
cmp edi, esi
jb 0x526650
movzx eax, al
pop esi
pop edi
pop ebx
ret
mov eax, 5
ret
Function at 0x528d40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x7c3824]
xor ecx, ebp
mov dword [esp + 0x19c], ecx
mov dword [esp + 0xc], 0x80
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm0
lea ecx, [esp + 0xc]
lea esi, [esp + 0x10]
push ecx
push esi
push eax
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x528dd5
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x9c]
push 0x100
push eax
push esi
call fcn.00589dd0
add esp, 0xc
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x528e17
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esp + 0x14]
push esi
call fcn.00528bb0
add esp, 0x10
test al, al
jne 0x528e20
call fcn.005f3508
lea ecx, [esp + 0x9c]
push 0x100
push ecx
push dword [eax]
call fcn.00589dd0
add esp, 0xc
mov esi, eax
call fcn.005f3508
push esi
push dword [eax]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.0051ed60
add esp, 0x10
mov ecx, dword [esp + 0x19c]
xor ecx, ebp
call fcn.005db451
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x529730
Capabilities:
Set socket configuration

Disassembly:
push esi
sub esp, 0x10
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4020
mov dword [esp + 4], 0
mov dword [esp], 4
mov eax, dword [0x7d0d10]
cmp eax, 2
je 0x5297df
test eax, eax
jne 0x52979c
sub esp, 0x14
movaps xmm0, xmmword [0x631bd0]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.0057e0b0
add esp, 0x14
test al, al
je 0x529792
mov dword [0x7d0d10], 2
jmp 0x5297df
mov dword [0x7d0d10], 1
mov esi, dword [esp + 0x18]
mov eax, esp
lea ecx, [esp + 4]
push eax
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_getsockopt]
test eax, eax
jne 0x5297c7
cmp dword [esp + 4], 0x4020
jg 0x5297df
lea eax, [esp + 8]
push 4
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.005db451
add esp, 0x10
pop esi
ret
Function at 0x529f20
Capabilities:
Set socket configuration

Disassembly:
push esi
sub esp, 0x108
mov esi, ecx
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x104], eax
mov dword [esp], 1
mov eax, esp
push 4
push eax
push 1
push 6
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jns 0x529f7a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea ecx, [esp + 4]
push 0x100
push ecx
push eax
call fcn.00589dd0
add esp, 0xc
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0051ec50
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005db451
add esp, 0x108
pop esi
ret

Function at 0x529f90
Capabilities:
Set socket configuration

Disassembly:
push edi
push esi
sub esp, 0x18
mov edi, edx
mov esi, ecx
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x14], eax
movzx eax, byte [ecx + 0x730]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
push 8
push 0xffff
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
js 0x52a042
mov dword [esp + 4], 1
push dword [esi + 0x6c8]
call fcn.005286d0
add esp, 4
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
push dword [esi + 0x6cc]
call fcn.005286d0
add esp, 4
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, esp
lea ecx, [esp + 4]
push 0
push 0
push eax
push 0
push 0
push 0xc
push ecx
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x52a051
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.0051ec50
add esp, 0x10
jmp 0x52a051
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.0051ec50
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005db451
add esp, 0x18
pop esi
pop edi
ret
Function at 0x52b538
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov dword [esi - 4], esp
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x52c030
mov eax, dword fs:[0]
mov dword [esi], eax
mov dword fs:[0], esi
mov ecx, edi
call fcn.0043fd32
mov dword [esi + 8], 0
lea ecx, [ebp - 0x24]
push 0x104
push edi
call fcn.0044a5d6
lea esi, [ebp - 0x24]
mov ecx, esi
call fcn.0044a5dc
xor ecx, ecx
push eax
push ecx
push ecx
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
mov ecx, esi
call fcn.0044a5e4
cmp edi, 0x80004005
jne 0x52b5de
lea ecx, [ebp - 0x24]
push 0x104
push dword [ebp + 8]
call fcn.0044a5d6
lea esi, [ebp - 0x24]
mov ecx, esi
call fcn.0044a5dc
xor ecx, ecx
push eax
push 1
push ecx
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
call fcn.0044a5e4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x53e04a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
sub esp, 0x20
mov esi, ecx
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.00401ac4
mov dword [esp], 0
mov ecx, esi
call fcn.0053da14
sub esp, 4
test al, al
je 0x53e0a4
mov ecx, dword [esp + 0x2c]
call fcn.005405e8
mov ecx, dword [esi]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
sete bl
jmp 0x53e0a6
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005db451
mov eax, ebx
add esp, 0x20
pop esi
pop ebx
ret 4

Function at 0x53e32a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5412f0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, edi
push 1
call fcn.0053da14
test al, al
je 0x53e479
mov ecx, dword [ebp + 8]
call fcn.005405e8
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
mov dword [edi + 0x30], eax
mov al, 1
or ecx, 2
cmp ecx, 2
je 0x53e47b
mov dword [ebp - 0x2c], esp
push eax
sub esp, 0x30
mov eax, esp
mov dword [ebp - 0x20], eax
lea ebx, [eax + 0x28]
lea esi, [ebp - 0xc4]
mov dword [ebp - 0x30], edi
mov ecx, edi
push 1
push esi
call fcn.0053d95a
mov dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp - 0x28], ebx
push ebx
call fcn.004415d4
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], ecx
push dword [ebp + 8]
call fcn.004028e6
lea ecx, [ebp - 0x90]
call fcn.0043fd32
lea ecx, [ebp - 0x70]
call fcn.0043fd32
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x50]
push str.Cant_delete_value__s_from_key__s
call fcn.00401278
mov dword [ebp - 0x10], 3
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xa4]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
lea esi, [ebp - 0xa4]
mov dword [ecx + 4], esi
call fcn.00540600
add esp, 0x34
mov esp, dword [ebp - 0x2c]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x50]
call fcn.0043fda0
lea ecx, [ebp - 0x70]
call fcn.0043fda0
lea ecx, [ebp - 0x90]
call fcn.0043fda0
lea ecx, [ebp - 0xc4]
call fcn.0043fda0
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x53e4f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x541300
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, edi
push 0
call fcn.0053da14
mov ecx, eax
xor eax, eax
test cl, cl
je 0x53e63b
mov ecx, dword [ebp + 8]
call fcn.005405e8
xor ecx, ecx
lea edx, [ebp - 0x30]
push ecx
push ecx
push edx
push ecx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x53e638
mov dword [ebp - 0x28], esp
push eax
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x24], eax
lea ebx, [eax + 8]
lea esi, [ebp - 0xc4]
mov dword [ebp - 0x2c], edi
mov ecx, edi
push 1
push esi
call fcn.0053d95a
mov dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp - 0x20], ebx
push ebx
call fcn.004415d4
lea ecx, [ebp - 0x90]
call fcn.0043fd32
lea ecx, [ebp - 0x70]
call fcn.0043fd32
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x50]
push str.Cant_read_value_of_key__s
call fcn.00401278
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xa4]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
lea esi, [ebp - 0xa4]
mov dword [ecx + 4], esi
call fcn.0049cae0
add esp, 0x14
mov esp, dword [ebp - 0x28]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x50]
call fcn.0043fda0
lea ecx, [ebp - 0x70]
call fcn.0043fda0
lea ecx, [ebp - 0x90]
call fcn.0043fda0
lea ecx, [ebp - 0xc4]
call fcn.0043fda0
xor eax, eax
jmp 0x53e63b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x53e6b6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x94
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x541310
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, edi
push 1
call fcn.0053da14
test al, al
je 0x53e739
mov esi, edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.00449cae
lea ebx, [eax + eax]
add ebx, 2
mov ecx, edi
call fcn.00443c3a
mov edi, eax
mov ecx, dword [ebp + 8]
call fcn.005405e8
push ebx
push edi
mov edi, esi
mov esi, dword [ebp + 8]
push 1
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x53e801
mov dword [ebp - 0x28], esp
push eax
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x24], eax
lea ecx, [eax + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], edi
mov edx, edi
push esi
call fcn.00540770
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.0043fd32
lea ecx, [ebp - 0x6c]
call fcn.0043fd32
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x4c]
push str.Cant_set_value_of__s
call fcn.00401278
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xa0]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
lea esi, [ebp - 0xa0]
mov dword [ecx + 4], esi
call fcn.00492b51
add esp, 0x28
mov esp, dword [ebp - 0x28]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x4c]
call fcn.0043fda0
lea ecx, [ebp - 0x6c]
call fcn.0043fda0
lea ecx, [ebp - 0x8c]
call fcn.0043fda0
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov al, 1
jmp 0x53e7ed
Function at 0x53e842
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x541320
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, esi
push 0
call fcn.0053da14
test al, al
je 0x53ea40
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x78]
mov dword [ebx], 4
mov ecx, esi
call fcn.005405e8
lea ecx, [ebp - 0x30]
push ebx
push edi
mov edi, dword [ebp - 0x2c]
push ecx
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x53e974
mov dword [ebp - 0x28], esp
push eax
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x24], eax
lea ebx, [eax + 8]
lea esi, [ebp - 0x98]
mov ecx, edi
push 1
push esi
call fcn.0053d95a
mov dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp - 0x20], ebx
push ebx
call fcn.004415d4
lea ecx, [ebp - 0x74]
call fcn.0043fd32
lea ecx, [ebp - 0x54]
call fcn.0043fd32
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0xb8]
push str.Cant_read_value_of_key__s
call fcn.00401278
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xcc]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
lea esi, [ebp - 0xcc]
mov dword [ecx + 4], esi
call fcn.0049cae0
add esp, 0x14
mov esp, dword [ebp - 0x28]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0xb8]
call fcn.0043fda0
jmp 0x53ea25
mov ecx, dword [ebp - 0x30]
and ecx, 0xfffffffe
mov al, 1
cmp ecx, 4
je 0x53ea42
mov dword [ebp - 0x28], esp
push eax
sub esp, 0x40
mov ebx, esp
lea ecx, [ebx + 0x24]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
call fcn.00540800
mov dword [ebp - 0x24], ebx
lea ecx, [ebx + 4]
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x34], ecx
mov edx, edi
push esi
call fcn.00540770
add esp, 4
lea ecx, [ebp - 0x98]
call fcn.0043fd32
lea ecx, [ebp - 0x74]
call fcn.0043fd32
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x54]
push str.Registry_value___s__is_not_numeric__but_of_type__s_
call fcn.00401278
mov dword [ebp - 0x10], 5
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xb8]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0xb8]
mov dword [eax], esi
call fcn.0044a26b
add esp, 0x44
mov esp, dword [ebp - 0x28]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x54]
call fcn.0043fda0
lea ecx, [ebp - 0x74]
call fcn.0043fda0
lea ecx, [ebp - 0x98]
call fcn.0043fda0
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8