joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43943d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x449314]
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 ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
add eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0
push 2
push str.PublishedAppOrDesktopName
push str.SOFTWAREPoliciesCitrixICA_clientBidirectional_Content_Redirection
push ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xffffffff
test eax, eax
je 0x4124c5
call fcn.00401a40
test al, al
je 0x4124c5
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 2
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00401650
mov edx, dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x41246f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412465
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412465
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00435eb6
add esp, 8
push 1
push dword [ebx]
mov dword [ebp - 0x18], 0
mov ecx, edi
push esi
push str.publishedAppOrDesktopName
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [edi]
push str.ICA_Client_bidirectional_content_redirection
push 1
call dword [eax + 0xc]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4124c5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4124a5
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x2c], ecx
je 0x4124c8
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x2c], ecx
jmp 0x4124c8
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x449ff8]
test edx, edx
je 0x412501
mov eax, dword [edx]
mov edi, dword [edx + 4]
or eax, edi
je 0x412501
test byte [edx + 8], 2
je 0x412501
cmp byte [edx + 0xf], 9
jb 0x412501
push ecx
push esi
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push 0x43d7ec
push 0x34
push edi
push dword [edx]
call fcn.0041c1a0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x412510
shr ecx, 1
mov eax, 1
mov dword [ebx], ecx
jmp 0x412512
xor eax, eax
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.0043624e
mov esp, ebp
pop ebp
ret 8
Function at 0x4125c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439480
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1fe
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x22c], 0x1fe
lea eax, [ebp - 0x22c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 2
push str.PublishedAppOrDesktopNameType
push str.SOFTWAREPoliciesCitrixICA_clientBidirectional_Content_Redirection
push ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], 0xffffffff
test eax, eax
je 0x412746
call fcn.00401a40
test al, al
je 0x412746
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], ebx
mov byte [ebp - 0x228], bl
push 2
lea eax, [ebp - 0x228]
mov dword [ebp - 4], ebx
push eax
call fcn.00401650
mov edx, dword [ebp - 0x214]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4126cc
mov ecx, dword [ebp - 0x228]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4126c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4126c2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00435eb6
add esp, 8
push 1
push 0xff
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], 0
push ecx
push str.publishedAppOrDesktopNameType
mov dword [ebp - 0x214], 0xf
mov ecx, esi
mov byte [ebp - 0x228], 0
mov eax, dword [esi]
push str.ICA_Client_bidirectional_content_redirection
push 1
call dword [eax + 0xc]
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x412746
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412720
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x22c], ecx
je 0x41274c
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x22c], ecx
jmp 0x41274c
mov ecx, dword [ebp - 0x22c]
mov edx, dword [0x449ff8]
test edx, edx
je 0x412794
mov eax, dword [edx]
mov esi, dword [edx + 4]
or eax, esi
je 0x412794
test byte [edx + 8], 2
je 0x412794
cmp byte [edx + 0xf], 9
jb 0x412794
push ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x234]
push dword [ebp - 0x230]
push 0x43d7ec
push 0x33
push esi
push dword [edx]
call fcn.0041c1a0
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x4127aa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov ebx, eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret
Function at 0x4154d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41558c
cmp byte [esi + 0x3d], 0
je 0x41558c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41557a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x415541
sub eax, 1
je 0x415545
sub eax, 2
jne 0x41557a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x415563
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x41557a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0043624e
mov esp, ebp
pop ebp
ret
Function at 0x416230
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43973d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x449314]
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 eax, dword [ebp + 8]
lea edx, [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
push edx
mov dword [ebp - 0x48], eax
push 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push 0x40000001
sub eax, ecx
mov dword [ebp - 0x44], 0
push eax
push ecx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x4163cb
mov eax, dword [ebp - 0x44]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x416313
cmp eax, 0x7fffffff
ja 0x4163f4
lea edi, [eax + eax]
cmp edi, 0x1000
jb 0x4162e6
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x4163f9
push eax
call fcn.00435e86
add esp, 4
test eax, eax
je 0x4163c5
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4162f9
test edi, edi
je 0x4162f7
push edi
call fcn.00435e86
add esp, 4
mov ebx, eax
jmp 0x4162f9
xor ebx, ebx
push edi
push 0
lea esi, [edi + ebx]
mov dword [ebp - 0x1c], ebx
push ebx
mov dword [ebp - 0x14], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], esi
mov edi, ebx
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
push edx
push ebx
push 0x40000001
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [ebp - 4], 1
push eax
push ecx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x4163fe
mov ebx, dword [ebp - 0x4c]
mov ecx, edi
xor eax, eax
mov dword [ebx], 0
lea edx, [ecx + 2]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416360
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, ebx
call fcn.00403d70
test edi, edi
je 0x4163a5
sub esi, edi
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x41639b
mov ecx, dword [edi - 4]
add esi, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4163c5
mov edi, ecx
push esi
push edi
call fcn.00435eb6
add esp, 8
mov eax, ebx
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.0043624e
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push str.CryptBinaryToStringW_failed_
lea ecx, [ebp - 0x28]
call fcn.00402fa0
push 0x117
push str.bytes_to_base64
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0041b150
call fcn.00416020
call fcn.00402370
push str.CryptBinaryToStringW_failed_
lea ecx, [ebp - 0x40]
call fcn.00402fa0
push 0x11c
push str.bytes_to_base64
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0041b150
int3
Function at 0x4165d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4397a5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x449314]
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, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x416607
mov eax, dword [esi]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov edi, eax
test edi, edi
jne 0x416633
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.0043624e
mov esp, ebp
pop ebp
ret 4
push esi
push str.RegDeleteTreeW_
lea eax, [ebp - 0x28]
push eax
call fcn.004094f0
push str.__failed_
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00409480
push 0xad
push str.delete_key
push edi
push eax
mov byte [ebp - 4], 1
call fcn.0041b150
int3
Function at 0x418aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439cdd
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x449314]
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 dword [ebp - 0x78], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov eax, ebx
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x74], 0
jb 0x418aeb
mov eax, dword [ebx]
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x418b10
cmp esi, 0xea
jne 0x418c48
mov eax, dword [ebp - 0x74]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test eax, eax
je 0x418b92
cmp eax, 0x7fffffff
ja 0x418c82
cmp eax, 0x1000
jb 0x418b6c
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x418c87
push ecx
call fcn.00435e86
add esp, 4
test eax, eax
je 0x418c42
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x418b77
push eax
call fcn.00435e86
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x7c]
push eax
push 0
push esi
lea edi, [esi + eax]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], edi
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [ebp - 4], 2
jb 0x418ba3
mov eax, dword [ebx]
lea ecx, [ebp - 0x74]
push ecx
push esi
push 0
push 0
push eax
mov eax, dword [ebp - 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x418c8c
mov ebx, dword [ebp - 0x80]
mov ecx, esi
mov dword [ebx], eax
lea edx, [ecx + 2]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418be0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.00403d70
test esi, esi
je 0x418c22
sub edi, esi
cmp edi, 0x1000
jb 0x418c18
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x418c42
mov esi, ecx
push edi
push esi
call fcn.00435eb6
add esp, 8
mov eax, ebx
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.0043624e
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push str.RegQueryValueExW_
lea eax, [ebp - 0x28]
push eax
call fcn.004094f0
push str.__failed_
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00409480
push 0xbf
push str.get_value
push esi
push eax
mov byte [ebp - 4], 1
call fcn.0041b150
call fcn.00416010
call fcn.00402370
push ebx
push str.RegQueryValueExW_
lea eax, [ebp - 0x58]
push eax
call fcn.004094f0
push str.__failed_
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.00409480
push 0xc4
push str.get_value
push dword [ebp - 0x78]
mov byte [ebp - 4], 4
push eax
call fcn.0041b150
int3
Function at 0x419160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x419190
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4191c0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4191c0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4192b8
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4191e9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41921d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x419279
sub eax, 1
je 0x419279
sub eax, 2
jne 0x4192b8
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040a480
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x419297
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4192b8
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x4192b8
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4
Function at 0x41a970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a010
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x449314]
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 ebx, ecx
mov dword [ebp - 0x8c], ebx
mov esi, dword [ebp + 0xc]
mov edx, esi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
add eax, eax
cmp dword [esi + 0x14], 8
jb 0x41a9bb
mov edx, dword [esi]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x41a9c5
mov ecx, dword [edi]
push eax
push edx
push 1
push 0
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
jne 0x41a9f8
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.0043624e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x28]
add ecx, 4
push ecx
push str.RegSetValueExW_
push eax
call fcn.004094f0
push edi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00409420
push str.__REG_SZ__
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.00409480
push esi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
call fcn.00409420
push str.__failed_
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
push eax
call fcn.00409480
push 0xcd
push str.set_value
push ebx
push eax
mov byte [ebp - 4], 4
call fcn.0041b150
int3

Function at 0x41aa70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a07b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x449314]
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 ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41aab6
mov eax, dword [edi]
push 4
lea ecx, [ebp - 0xa4]
push ecx
push 4
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xa8], eax
test eax, eax
jne 0x41aaf4
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.0043624e
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0xa4]
lea eax, [ebp - 0x28]
push eax
call fcn.0041b250
mov esi, eax
lea ecx, [ebx + 4]
mov dword [ebp - 4], 0
push ecx
push str.RegSetValueExW_
lea eax, [ebp - 0x40]
push eax
call fcn.004094f0
push edi
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.00409420
push str.__REG_DWORD__
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
call fcn.00409480
push esi
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
push eax
call fcn.00409400
push str.__failed_
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 4
push eax
call fcn.00409480
push 0xd4
push str.set_value
push dword [ebp - 0xa8]
mov byte [ebp - 4], 5
push eax
call fcn.0041b150
int3
Function at 0x41b9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x41b9e4
jl 0x41b9d8
test esi, esi
jne 0x41b9e4
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x41b9fd
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x41ba3b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x41ba3b
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x41ba41
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x41bac0
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x41ba6a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp + 8]
cmp edi, 0xfff
jbe 0x41baac
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x41bad3
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x41ba80
test edx, edx
je 0x41bac0
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41baf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41bb15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x41bb36
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41bb38
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x41bbb6
jg 0x41bb4b
test esi, esi
je 0x41bbb6
test ecx, ecx
jl 0x41bb99
jg 0x41bb55
test eax, eax
je 0x41bb99
cmp edi, ecx
jg 0x41bb67
jl 0x41bb5f
cmp esi, eax
jae 0x41bb67
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [ebp - 4]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x41bbb6
jg 0x41bb9c
test esi, esi
je 0x41bbb6
jmp 0x41bb9c
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41bbb6
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x424d30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x65b
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x424d52
mov dword [ebp - 8], 0
jmp 0x424d8c
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x424c80
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x424d8c
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret