joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.LEN40E0
push 0x40bc58
push str._s_hs_sDevice_ParametersEDID_OVERRIDE
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x18
cmp eax, 0x100
jl 0x40105c
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
push 2
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401041
or dword [0x40ea38], 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push edi
xor edi, edi
mov esi, 0x40b9d8
lea esp, [esp]
push edi
push 0x40bcac
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x10
cmp eax, 0x100
jge 0x401199
test edi, edi
je 0x401112
cmp byte [esi], 0
jne 0x401112
mov edx, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x401130
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401137
mov eax, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
mov ecx, dword [ebp - 0x108]
push 0x80
push esi
push 3
push 0
lea eax, [ebp - 0x104]
push eax
push ecx
call ebx
test eax, eax
jne 0x401175
or dword [0x40ea38], 1
sub esi, 0xffffff80
inc edi
cmp esi, 0x40bbd8
jl 0x4010a0
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], 0xfffffffe
mov ecx, dword [ebp - 4]
mov eax, dword [0x40ea38]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004020bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
mov edx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
Function at 0x4011c0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.LEN40E0
push 0x40bc58
push str._s_hs_sDevice_Parameters
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x18
cmp eax, 0x100
jl 0x40121c
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x108]
push ecx
push 2
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40125f
add eax, 0xfffffffe
cmp eax, 1
jbe 0x40124c
or dword [0x40ea38], 0xfffffffe
mov eax, dword [0x40ea38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
push str.EDID_OVERRIDE
push eax
call esi
test eax, eax
je 0x4012b6
add eax, 0xfffffffe
cmp eax, 1
jbe 0x4012bd
mov ecx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4012fd
or dword [0x40ea38], esi
mov eax, dword [0x40ea38]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
or dword [0x40ea38], 1
mov edx, dword [ebp - 0x108]
push str.EDID
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x401311
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401318
mov eax, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4012fd
or dword [0x40ea38], esi
mov eax, dword [0x40ea38]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
or dword [0x40ea38], 1
mov ecx, dword [ebp - 0x108]
push str.EDID_RECOVERY
push ecx
call esi
test eax, eax
je 0x40133b
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401342
or dword [0x40ea38], 0xfffffffe
jmp 0x401342
or dword [0x40ea38], 1
mov eax, dword [ebp - 0x108]
call fcn.00401e40
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004020bf
mov esp, ebp
pop ebp
ret
Function at 0x401360
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push str.LEN40E0
push 0x40bc58
push str._s_hs
mov ebx, 0x100
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.004023ca
add esp, 0x14
cmp eax, ebx
jl 0x4013b8
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x108]
push ecx
push 8
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4013ea
add eax, 0xfffffffe
cmp eax, 1
jbe 0x4014dc
jmp 0x4014d5
mov eax, dword [ebp + 8]
sub eax, 0
push esi
push edi
je 0x4014a0
dec eax
je 0x40144c
dec eax
jne 0x4014c2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea ebx, [ebx]
mov edx, dword [ebp - 0x108]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
push edx
mov dword [ebp - 0x10c], ebx
call edi
test eax, eax
jne 0x401490
lea eax, [ebp - 0x104]
push eax
call fcn.004011c0
add esp, 4
inc esi
jmp 0x401410
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
mov eax, dword [ebp - 0x108]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
push eax
mov dword [ebp - 0x10c], ebx
call edi
test eax, eax
jne 0x401490
lea ecx, [ebp - 0x104]
push ecx
call section..text
add esp, 4
inc esi
jmp 0x401454
cmp eax, 0x103
je 0x4014c2
or dword [0x40ea38], 0xfffffffe
jmp 0x4014c2
mov edx, dword [ebp - 0x108]
push edx
lea ecx, [ebp - 0x104]
xor edx, edx
call fcn.00401df0
add esp, 4
cmp eax, 1
jne 0x4014c2
or dword [0x40ea38], eax
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
test eax, eax
je 0x4014dc
or dword [0x40ea38], 0xfffffffe
mov ecx, dword [ebp - 4]
mov eax, dword [0x40ea38]
xor ecx, ebp
pop ebx
call fcn.004020bf
mov esp, ebp
pop ebp
ret
Function at 0x4018f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, str.Default_Monitor
mov eax, str.LEN40E0
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401930
test dl, dl
je 0x40192c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401930
add eax, 2
add ecx, 2
test dl, dl
jne 0x401910
xor eax, eax
jmp 0x401935
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4019fe
lea eax, [ebp - 0x108]
push eax
push 8
push 0
push str.SYSTEMCurrentControlSetControlClass4d36e968_e325_11ce_bfc1_08002be10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401982
add eax, 0xfffffffe
cmp eax, 1
jbe 0x4019fe
or dword [0x40ea38], 0xfffffffe
mov eax, dword [0x40ea38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea esp, [esp]
mov eax, dword [ebp - 0x108]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
push eax
mov dword [ebp - 0x10c], 0x100
call edi
test eax, eax
jne 0x4019d3
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
call fcn.004014f0
add esp, 4
inc esi
jmp 0x401990
mov esi, 0xfffffffe
cmp eax, 0x103
je 0x4019e5
or dword [0x40ea38], esi
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4019fc
or dword [0x40ea38], esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x40ea38]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
Function at 0x403880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479270
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49e074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004501dd
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0044e8f3
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fbf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40fcd6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40fcc5
jg 0x40fc30
test edx, edx
je 0x40fcc5
nop dword [eax]
call fcn.00403840
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40fc84
jg 0x40fc47
test esi, esi
je 0x40fc84
cmp ebx, eax
jg 0x40fc57
jl 0x40fc51
cmp edi, esi
jae 0x40fc57
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00451db0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40fca9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40fcbf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x40fc30
jl 0x40fcbf
test edi, edi
jne 0x40fc30
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40fcf8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40fcfa
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40fd78
jg 0x40fd0d
test esi, esi
je 0x40fd78
test eax, eax
jl 0x40fd52
jg 0x40fd17
test ebx, ebx
je 0x40fd52
cmp edi, eax
jg 0x40fd27
jl 0x40fd21
cmp esi, ebx
jae 0x40fd27
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00451db0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x40fd55
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40fd78
jg 0x40fd5f
test esi, esi
je 0x40fd78
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40fd78
push eax
push esi
push 1
push edx
call fcn.0045dc29
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4102c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x49e074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4102f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41032c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41032c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c7
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x410413
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x410354
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 0x410387
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045af05
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.004501c7
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x410413
cmp eax, 1
jle 0x4103e6
cmp eax, 3
jne 0x410413
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0045af05
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.004501c7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x410403
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045dc29
add esp, 0x10
cmp edi, eax
jne 0x410413
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x410317
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004501c7
mov esp, ebp
pop ebp
ret 4
Function at 0x411d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x49e074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x411e2a
cmp byte [esi + 0x3d], 0
je 0x411e2a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x411e18
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x411de0
sub eax, 1
je 0x411de4
sub eax, 2
jne 0x411e18
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c7
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x411e01
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045dc29
add esp, 0x10
cmp edi, eax
jne 0x411e18
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c7
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004501c7
mov esp, ebp
pop ebp
ret
Function at 0x418690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47acb7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49e074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 3
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
lea edi, [ebx + 0x34]
mov byte [ebp - 4], 9
lea ecx, [edi + 4]
mov dword [ebp - 0x10], edi
call fcn.0043f630
push ecx
mov dword [edi], vtable.CryptoPP::Integer.0
push 2
mov dword [edi + 8], 2
call fcn.0042b080
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
lea edi, [ebx + 0x48]
mov byte [ebp - 4], 0xa
lea ecx, [edi + 4]
mov dword [ebp - 0x10], edi
call fcn.0043f630
push ecx
mov dword [edi], vtable.CryptoPP::Integer.0
push 2
mov dword [edi + 8], 2
call fcn.0042b080
mov dword [edi + 0xc], eax
mov ecx, eax
mov dword [edi + 0x10], 0
mov eax, ebx
mov dword [ecx + 4], 0
mov ecx, dword [edi + 0xc]
mov dword [ecx], 0
mov byte [ebx + 0x5c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b789
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x49e074]
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 eax, dword [ebp + 8]
lea ebx, [edi + 0x34]
push ebx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xc8], 0
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 0xcc], 0
push eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42230b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x1c]
mov esi, eax
cmp esi, 0x3e5
jne 0x42232f
push 1
lea eax, [ebp - 0xc8]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x422381
mov eax, dword [ebp - 0xc8]
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.004501c7
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xcc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov edx, esi
lea ecx, [ebp - 0x7c]
call fcn.00422190
push eax
mov edx, str.Write_Fail_:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.00412e50
add esp, 4
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00420ee0
push 0x49b95c
lea eax, [ebp - 0x40]
push eax
call fcn.00452bae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov edx, esi
lea ecx, [ebp - 0xac]
call fcn.00422190
push eax
mov edx, str.Write_Fail_:
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call fcn.00412e50
add esp, 4
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00420ee0
push 0x49b95c
lea eax, [ebp - 0x64]
push eax
call fcn.00452bae
int3
Function at 0x4291b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, esi
mov dword [esp + 0xc], edx
shr eax, 2
mov ebp, ecx
push edi
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x429269
cmp eax, 8
jb 0x429240
mov ecx, eax
mov ebx, ebp
and ecx, 0xfffffff8
lea eax, [edx + 0x10]
xorps xmm3, xmm3
xorps xmm2, xmm2
sub ebx, edx
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebp + edi*4]
add edi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [ebx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, ecx
jb 0x4291f0
mov eax, dword [esp + 0x14]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
cmp edi, eax
jae 0x429269
lea ecx, [edx + edi*4]
mov esi, ebp
sub esi, edx
mov edx, eax
sub edx, edi
mov edi, eax
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
or ebx, eax
sub edx, 1
jne 0x429251
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
shl edi, 2
sub esi, edi
jne 0x42927d
pop edi
pop esi
test ebx, ebx
pop ebp
sete al
pop ebx
add esp, 0xc
ret
add edx, edi
mov eax, ebx
mov dword [esp + 0x10], edx
add ebp, edi
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
xor edi, edi
or dl, al
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
mov dword [esp + 0x14], edx
test esi, esi
je 0x429354
cmp esi, 0x20
jb 0x429335
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, ebp
and ecx, 0xffffffe0
sub edx, eax
xorps xmm3, xmm3
mov dword [esp + 0x18], edx
xorps xmm2, xmm2
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebx - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [edi + ebp + 0x10]
add edi, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, ecx
jb 0x4292d0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov ebx, dword [esp + 0x10]
cmp edi, esi
jae 0x429354
sub ebp, ebx
lea ecx, [edi + ebx]
sub esi, edi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x429344
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 0xc
ret
Function at 0x431e20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cc99
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x49e074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
lea ecx, [edi + 4]
call fcn.0043f630
push ecx
mov dword [edi], vtable.CryptoPP::Integer.0
push 2
mov dword [edi + 8], 2
call fcn.0042b080
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
push 1
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, ebx
push dword [ebp + 0xc]
mov edx, dword [ebx]
push edi
mov dword [ebp - 0x10], 1
call dword [edx + 0x30]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc