joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x23d42728
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x7b1d6af4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4010d0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20c
mov eax, dword [0x43481c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dl, 1
lea ebx, [ebx]
movzx eax, dl
mov cl, dl
and cl, 0x80
mov byte [ebp + eax - 0x104], bl
mov byte [ebp + ebx - 0x204], dl
inc ebx
neg cl
sbb cl, cl
mov al, dl
and cl, 0x1b
add al, al
xor cl, al
xor dl, cl
cmp ebx, 0x100
jl 0x4010f0
mov cl, 1
mov edx, 0x4703e0
movzx eax, cl
shl eax, 0x18
mov dword [edx], eax
mov al, cl
and al, 0x80
add edx, 4
neg al
sbb al, al
and al, 0x1b
add cl, cl
xor cl, al
cmp edx, 0x470408
jl 0x401125
mov dword [0x470c20], 0x63
mov dword [0x46dd6c], 0
pushfd
xor edx, edx
inc edx
popfd
nop
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov al, byte [ecx]
mov cl, al
rol cl, 1
xor al, cl
rol cl, 1
xor al, cl
rol cl, 1
xor al, cl
rol cl, 1
xor cl, al
xor cl, 0x63
movzx eax, cl
mov dword [edx*4 + 0x470c20], eax
mov dword [eax*4 + 0x46dbe0], edx
inc edx
cmp edx, 0x100
jl 0x401160
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 0x20c], ebx
push edi
pop edi
mov dl, byte [esi + 0x470c20]
mov cl, dl
mov al, dl
and cl, 0x80
neg cl
sbb cl, cl
add al, al
and cl, 0x1b
xor cl, al
movzx eax, cl
movzx ecx, dl
mov edx, eax
shl edx, 8
xor edx, ecx
shl edx, 8
xor edx, ecx
shl edx, 8
xor edx, eax
mov al, byte [esi + 0x46dbe0]
xor edx, ecx
mov dword [esi + 0x46dfe0], edx
ror edx, 8
mov dword [esi + 0x46e3e0], edx
ror edx, 8
mov dword [esi + 0x46e7e0], edx
ror edx, 8
mov dword [esi + 0x46ebe0], edx
test al, al
je 0x401278
movzx eax, al
movzx ecx, byte [ebp + eax - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, ecx
cdq
idiv ebx
movzx eax, byte [ebp - 0xf7]
add eax, ecx
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv ebx
movzx eax, byte [ebp - 0xfb]
add eax, ecx
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv dword [ebp - 0x20c]
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf6]
add eax, ecx
cdq
mov ecx, 0xff
idiv ecx
movzx eax, byte [ebp + edx - 0x204]
jmp 0x401284
sub ebx, ebx
sub edi, edi
mov dword [ebp - 0x208], ebx
sub eax, eax
shl eax, 8
xor eax, dword [ebp - 0x208]
add esi, 4
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edi
mov dword [esi + 0x46efdc], eax
ror eax, 8
mov dword [esi + 0x46f3dc], eax
mov ebx, 0xff
ror eax, 8
mov dword [esi + 0x47041c], eax
ror eax, 8
mov dword [esi + 0x47081c], eax
cmp esi, 0x400
jl 0x4011b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411784
mov esp, ebp
pop ebp
ret
Function at 0x4061c0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x431ed8
push 0x4199f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43481c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40626d
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x28]
jmp 0x40626d
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00411784
push ebp
pop esp
pop ebp
ret

Function at 0x406290
Capabilities:
Get session user name
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x431ef8
push 0x4199f0
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x43481c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
sub ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.00413d60
add esp, 0xc
mov dword [ebp - 0x12c], 0x104
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
or eax, eax
je 0x406369
pushal
popal
push 6
pop edx
mov dword [ebp - 0x130], edx
lea esi, [ebp - 0x120]
or ecx, 0xffffffff
mov dword [ebp - 0x124], esi
mov eax, edx
dec edx
mov dword [ebp - 0x130], edx
test eax, eax
je 0x406349
movzx eax, byte [esi]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x430778]
inc esi
jmp 0x40631f
not ecx
xor ebx, ebx
cmp ecx, 0x39b5d60d
sete bl
jmp 0x406363
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00411784
mov esp, ebp
pop ebp
ret
Function at 0x4073a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push esp
pop ebp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
or eax, eax
jne 0x4073b9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
pop esi
test esi, esi
je 0x4073f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4073f0
lea ebx, [ebx]
cmp esi, edx
jae 0x4073f4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4073e0
cmp esi, edx
jb 0x4073fb
pop esi
pop edi
sub eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
push esi
pop eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407410
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
push esp
pop ebp
push 0xfffffffffffffffe
push 0x431ff8
push 0x4199f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x43481c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
nop
push 0
nop
pop ebx
push 0xa
pop ecx
push esi
pop esi
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x19]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429748
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push edx
pop esi
mov dword [ebp - 0x1c], ecx
sub ebx, ebx
mov edx, 0x435c18
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040a580
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x40a17d
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040a2d0
mov edi, dword [ebp - 0x28]
or eax, eax
jne 0x40a16d
test edi, edi
je 0x40a17d
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push str.__s_
push eax
mov byte [ebp - 4], 3
call fcn.004071c0
mov esi, dword [ebp - 0x14]
push esi
pop ecx
add esp, 0xc
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a120
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 2
push 0
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
lea edx, [esi - 0x10]
or esi, 0xffffffff
inc ebx
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
or eax, eax
jg 0x40a170
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a170
or esi, 0xffffffff
or edi, edi
je 0x40a180
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a180
or esi, 0xffffffff
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40a1c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
push ebx
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x40a360
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429780
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x43481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
xor edi, edi
mov edx, 0x436038
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
call fcn.0040a580
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
je 0x40a497
push 5
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x20], edi
or edi, edi
je 0x40a497
push 0x17
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
pop esi
mov dword [ebp - 0x24], eax
or esi, esi
je 0x40a48e
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov eax, dword [ebp - 0x18]
or eax, eax
je 0x40a47a
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x11]
push ecx
push eax
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x30], 0
call fcn.00407ab0
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
sub eax, ebx
cmp eax, dword [ebp - 0x18]
jne 0x40a472
test ebx, ebx
je 0x40a472
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
or eax, eax
je 0x40a472
cmp dword [ebx + 4], 2
je 0x40a472
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 8]
push 2
push dword [ebx]
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea ecx, [ebp - 0x34]
call fcn.004079b0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a4c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a4c6
test esi, esi
je 0x40a4d1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x40a4dc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x40a820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4298da
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x43481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
pop esi
mov dword [ebp - 0x10], esi
push 0
call fcn.00410d85
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 byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40a8c2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], str.bad_locale_name
call fcn.004122fb
push 0x431ea8
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
call fcn.004144cb
push eax
push esi
call fcn.0041101c
add esp, 8
push esi
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40bd30
Capabilities:
Set registry value

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
push esi
mov edx, 0x436250
lea ecx, [ebp - 4]
sub ebx, ebx
call fcn.0040a580
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], ebx
je 0x40bdee
sub esi, esi
push edi
lea esp, [esp]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0
sub ecx, ecx
push 2
test esi, esi
push 0
setne cl
push 0
push 0
push eax
mov dword [ebp - 8], 0
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bde0
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test edx, edx
jne 0x40bda1
lea eax, [edx + 0xd]
jmp 0x40bdce
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bda6
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0x430ed8
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test edi, edi
je 0x40bde0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
inc esi
cmp esi, 2
jl 0x40bd60
pop edi
lea esi, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40be08
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
push ebx
pop eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40df40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x429867
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x430e7c
mov dword [edi + 0x60], 0x430ec0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], 0x430ecc
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0040f630
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x430e70
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
push esi
pop ecx
call fcn.0040f6e0
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], 0x430e34
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x46c71c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
push ebp
pop esp
pop ebp
ret 4
Function at 0x40f010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429a58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x43481c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x43481c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40f164
cmp byte [ebx + 0x45], 0
je 0x40f164
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40f070
xor al, al
jmp 0x40f166
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x40f0b0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40f0f1
dec eax
je 0x40f0f5
sub eax, 2
je 0x40f14b
xor bl, bl
jmp 0x40f14d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x40f12c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.004129f5
add esp, 0x10
cmp esi, eax
jne 0x40f0ed
cmp byte [ebx + 0x45], 0
je 0x40f14b
test esi, esi
jne 0x40f0b0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040ec30
jmp 0x40f0b0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x40f160
push dword [esp + 0x18]
call fcn.0041177f
add esp, 4
mov al, bl
jmp 0x40f166
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00411784
push ebp
pop esp
pop ebp
ret
Function at 0x4102a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429db8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, 0x46b058
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040a580
mov edx, 0x46b034
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040a580
mov byte [ebp - 4], 2
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
push 0x6a
pop ecx
pushal
popal
mov byte [ebp - 4], 3
call fcn.00407260
test eax, eax
je 0x410327
push 0x6a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406d30
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x4103e5
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
je 0x4103e5
cmp dword [esi - 0xc], 0
je 0x4103e5
xor ebx, ebx
lea ecx, [ecx]
xor ecx, ecx
test ebx, ebx
setne cl
sub esp, 8
mov dword [ebp - 0x28], 0
push 2
sub esp, 8
mov dword [ebp - 0x24], 0
push eax
add ecx, 0x80000001
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
call fcn.00410220
test eax, eax
jne 0x4103bb
push esi
pop eax
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410390
mov edi, dword [ebp - 0x28]
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4103be
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x4103d0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
inc ebx
mov dword [ebp - 0x24], 0
cmp ebx, 2
jge 0x4103e5
mov eax, dword [ebp - 0x18]
jmp 0x410350
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x410405
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
or ecx, ecx
jg 0x410425
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x410443
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x410770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4107e1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4107af
cmp eax, 2
jne 0x4107cb
mov ecx, dword [ebp + 0x10]
or esi, esi
je 0x4107db
or ecx, ecx
je 0x4107d6
test cl, 1
jne 0x4107cb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4107db
pop edi
nop
push 0xd
nop
pop eax
pop esi
pop ebp
ret 0xc
sub eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x419019
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x43481c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00418ff5
push eax
pop edi
pop ecx
test edi, edi
je 0x4191bb
push ebx
push 3
call fcn.004197bf
pop ecx
cmp eax, 1
je 0x419163
push 3
call fcn.004197bf
pop ecx
or eax, eax
jne 0x41906d
cmp dword [0x46b8d0], 1
je 0x419163
cmp esi, 0xfc
je 0x4191ba
push str.Runtime_Error__n_nProgram:
push 0x314
push 0x46b8d8
call fcn.0041e98b
add esp, 0xc
sub ebx, ebx
or eax, eax
jne 0x4191c9
push 0x104
push 0x46b90a
push ebx
mov word [0x46bb12], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x2fb
or eax, eax
jne 0x4190d5
push str._program_name_unknown_
push esi
push 0x46b90a
call fcn.0041e98b
add esp, 0xc
or eax, eax
jne 0x4191c9
push 0x46b90a
call fcn.00416a15
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41911b
push 0x46b90a
call fcn.00416a15
lea ecx, [eax*2 + 0x46b894]
push ecx
pop eax
sub eax, 0x46b90a
push 3
sar eax, 1
push 0x42e9b8
sub esi, eax
push esi
push ecx
call fcn.00421bca
add esp, 0x14
or eax, eax
jne 0x4191c9
push 0x42e9c0
push 0x314
mov esi, 0x46b8d8
push esi
call fcn.00421b5e
add esp, 0xc
or eax, eax
jne 0x4191c9
push edi
push 0x314
push esi
call fcn.00421b5e
add esp, 0xc
test eax, eax
jne 0x4191c9
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.00421c88
add esp, 0xc
jmp 0x4191ba
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
pop esi
test esi, esi
je 0x4191ba
cmp esi, 0xffffffff
je 0x4191ba
sub ebx, ebx
mov ecx, ebx
mov al, byte [edi + ecx*2]
mov byte [ebp + ecx - 0x1f8], al
cmp word [edi + ecx*2], bx
je 0x419193
inc ecx
cmp ecx, 0x1f4
jb 0x41917a
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00414440
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00411784
leave
ret
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041a0f4
int3