joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x787b7a05
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x445186
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.00447ff0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x445160
mov ebx, dword [esp + 4]
mov eax, dword [0x457334]
test eax, eax
je 0x4451e0
xor ecx, ecx
mov edx, dword [0x457338]
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xcecd21fd
je 0x4451ba
mov esi, ecx
xor esi, 1
and ecx, 1
lea ecx, [esi + ecx*2]
cmp ecx, eax
jb 0x4451a0
jmp 0x4451e0
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x4451e0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 5
push 4
push dword [0x45733c]
push eax
call fcn.004484c0
add esp, 0x1c
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x445305
mov dword [esp + 0x10], edi
push dword [esp + 0xc]
call fcn.00444fb0
add esp, 4
mov edi, eax
mov ebp, dword [esp + 0xc]
mov dword [esp + 4], 0x787b7a05
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x445256
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.00447ff0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x445230
mov ebx, dword [esp + 4]
mov eax, dword [0x457334]
test eax, eax
je 0x4452a1
xor ecx, ecx
mov edx, dword [0x457338]
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xcecd21fd
je 0x445280
inc ecx
cmp eax, ecx
jne 0x445270
jmp 0x4452a1
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x4452a1
push 0
push ebp
push edi
push 5
push 4
push dword [0x45733c]
push eax
call fcn.004484c0
add esp, 0x1c
mov ebx, eax
test ebx, ebx
js 0x4452fc
mov eax, dword [esp + 0x28]
mov ebx, dword [edi]
mov ecx, edi
nop
nop
nop
mov edx, dword [ecx + ebx + 0x3c]
add ecx, ebx
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, word [edx + ebx]
movzx esi, word [eax + ebx]
test bp, bp
je 0x4452d5
add ebx, 2
cmp bp, si
je 0x4452c0
cmp bp, si
je 0x4452e7
mov ebx, dword [ecx]
test ebx, ebx
jne 0x4452b0
mov ebx, 0xc0000225
jmp 0x4452fc
mov eax, dword [ecx + 0x44]
mov edx, dword [esp + 0x10]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xdc]
mov dword [edx + 0xc], eax
xor ebx, ebx
push edi
call fcn.00445090
add esp, 4
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x403720
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433004]
jne 0x40372a
repz ret
jmp fcn.004042c0
Function at 0x403a50
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x1c], 8
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], edi
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
jae 0x403a97
lea eax, [ebp + 8]
push 0x473130
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.0044fd24
add esp, 0xc
test eax, eax
je 0x403ace
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [ebp + 8]
push 0x473138
rep movsd dword es:[edi], dword [esi]
call fcn.0044fd6b
add esp, 0x20
jmp 0x403b35
mov ecx, dword [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.00450072
add esp, 0x10
cmp eax, edi
je 0x403b1f
nop
lea ecx, [ebp - 0x404]
push ecx
mov esi, ebx
call fcn.004038b0
mov edx, dword [ebp - 0x408]
push edx
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.00450072
add esp, 0x10
cmp eax, edi
jne 0x403af0
mov ecx, ebx
call fcn.00403960
mov ecx, dword [ebp - 0x408]
push ecx
call fcn.004500fc
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x403b47
mov edx, dword [ebp + 8]
push edx
call fcn.0044e60d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
lea eax, [ebx + 0x68]
xor ecx, ebp
pop ebx
call fcn.0044e488
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x407be0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c149
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], cx
xor edx, edx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
mov byte [ebp - 4], 2
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x407c54
lea eax, [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push 0x100
lea ecx, [ebp - 0x21c]
push ecx
push 3
lea edx, [ebp - 0x1c]
push edx
push eax
call fcn.00450207
add esp, 0x24
push ebx
push 0x473064
lea ecx, [ebp - 0x238]
call fcn.00401740
lea eax, [ebp - 0x1c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407c90
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x238]
call fcn.00412040
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407cb7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x238]
call fcn.00412040
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x407ce4
lea eax, [ebp + 8]
lea ecx, [ebp - 0x4c4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407dc2
mov ecx, 0x4746a0
lea eax, [ebp - 0x498]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407d2e
cmp dx, bx
je 0x407d2a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407d2e
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x407d08
xor eax, eax
jmp 0x407d33
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x407dc2
mov ecx, 0x4746a4
lea eax, [ebp - 0x498]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407d6c
cmp dx, bx
je 0x407d68
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407d6c
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x407d46
xor eax, eax
jmp 0x407d71
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x407dc2
test byte [ebp - 0x4c4], 0x10
je 0x407dc2
lea edx, [ebp - 0x498]
push edx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.00414c90
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040ebb0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x25c], 8
jb 0x407dc2
mov edx, dword [ebp - 0x270]
push edx
call fcn.0044e60d
add esp, 4
lea eax, [ebp - 0x4c4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407cf4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x407dfb
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0044e60d
add esp, 4
xor edx, edx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
cmp dword [ebp + 0x1c], esi
jb 0x407e25
mov eax, dword [ebp + 8]
push eax
call fcn.0044e60d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
Function at 0x410c30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b338
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x496d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [esi + 0x54], 0
jne 0x410d23
mov eax, dword [ebp + 8]
push 0x40
push eax
push ecx
call fcn.0043e00c
add esp, 0xc
test eax, eax
je 0x410d23
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
mov edx, dword [0x49becc]
lea edi, [ebp + 8]
mov eax, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.00411ec0
push eax
mov dword [ebp - 4], 0
call fcn.004155b0
add esp, 4
push eax
mov ecx, esi
call fcn.00410f20
mov ecx, edi
call fcn.00401f70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x410dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46af78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x496d50]
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
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x410efc
cmp byte [edi + 0x4a], bl
je 0x410efc
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x410ef0
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x410e50
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x410e68
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x410e91
dec eax
je 0x410e95
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x410eeb
jmp 0x410ef7
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x410ea5
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x410ece
cmp ebx, 0x10
jae 0x410eb4
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004509aa
add esp, 0x10
cmp esi, eax
jne 0x410ee8
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x410ef4
test esi, esi
jne 0x410e5c
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004102f0
jmp 0x410e56
lea ecx, [ebp - 0x2c]
call fcn.0040e0d0
xor al, al
jmp 0x410efe
lea ecx, [ebp - 0x2c]
call fcn.0040e0d0
mov al, 1
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.0044e488
mov esp, ebp
pop ebp
ret
Function at 0x411dd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46abfb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x496d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0043df02
push 4
mov dword [ebp - 4], 0
call fcn.0044e9d2
mov edi, eax
add esp, 4
test edi, edi
je 0x411e50
call fcn.0043a1b1
mov dword [edi], eax
call fcn.0043a06b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00439fa0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x411e46
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00439fc8
jmp 0x411e52
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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 0x419680
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4196be
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x214]
push eax
push 0x20119
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4196eb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea edi, [esi + eax*2]
je 0x41970d
mov ecx, 0x5c
mov word [edi], cx
add edi, 2
xor edx, edx
mov word [edi], dx
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x214]
push 0
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0
push eax
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4197a3
jmp 0x419750
lea edx, [ebp - 0x210]
mov ecx, edi
call fcn.00419630
push esi
push ebx
call fcn.00419680
add esp, 8
test eax, eax
je 0x4197a3
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x214]
push 0
push 0
push 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push ecx
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x419750
xor edx, edx
mov word [edi - 2], dx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0044e488
mov esp, ebp
pop ebp
ret
Function at 0x4197e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00465d50
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
lea ecx, [ebp - 0x2008]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4198fd
mov dword [ebp - 0x200c], 0x2000
test edi, edi
je 0x419841
push 0x1000
push edi
call fcn.00450f59
add esp, 8
lea edx, [ebp - 0x200c]
push edx
mov edx, dword [ebp - 0x2008]
lea ebx, [eax + eax + 2]
lea eax, [ebp - 0x2004]
push eax
lea ecx, [ebp - 0x2010]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4198aa
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2008]
push ebx
push edi
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4198fd
mov edx, dword [ebp - 0x2008]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4198fd
lea eax, [ebp - 0x2004]
push edi
push eax
call fcn.0044fbdb
add esp, 8
test eax, eax
je 0x4198fd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2008]
push ebx
push edi
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4198fd
mov eax, dword [ebp - 0x2008]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2008]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0044e488
mov esp, ebp
pop ebp
ret
Function at 0x419920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b7f2
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.00465d50
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2020], eax
mov edi, edx
push eax
mov dword [ebp - 0x2018], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
push 0x473064
mov ecx, esi
mov dword [ebp - 0x2024], esi
mov word [esi], dx
call fcn.00401740
lea eax, [ebp - 0x2014]
push eax
push 0x20019
push 0
push ebx
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x2020], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4199e8
lea ecx, [ebp - 0x201c]
push ecx
mov ecx, dword [ebp - 0x2018]
lea edx, [ebp - 0x2010]
push edx
mov edx, dword [ebp - 0x2014]
lea eax, [ebp - 0x2028]
push eax
push edi
push ecx
push edx
mov dword [ebp - 0x201c], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebp - 0x2014]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x419a20
lea eax, [ebp - 0x2010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419a02
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x2010]
push ecx
mov ecx, esi
call fcn.00401740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret

Function at 0x419a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419aaa
test esi, esi
je 0x419a79
push 0x1000
push esi
call fcn.00450f59
add esp, 8
mov ecx, dword [ebp + 8]
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 4]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x419ab4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x419ac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ecx
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419b1b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x419b25
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x419b30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419b86
mov edx, dword [ebp + 8]
push 4
push edx
push 3
push eax
mov eax, dword [ebp - 4]
push 0x479368
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x419b90
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42bd90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c39b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x496d50]
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
push 0x104
lea eax, [ebp - 0x218]
mov edi, edx
push eax
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x238], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebx
jne 0x42bf00
cmp dword [ebp + 0xc], ebx
je 0x42bee9
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
push 0x43
push 0x48cd00
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
call fcn.00401740
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42be21
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x234]
call fcn.00412040
push 0x17
mov eax, 0x48cd88
call fcn.00412040
push 0x48cdb8
push ecx
push edi
push 0x49ae58
call fcn.00414730
add esp, 0xc
push eax
call fcn.00414730
add esp, 8
mov esi, eax
push esi
call fcn.0042ee30
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x42be94
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x42be94
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x42beb3
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x42beac
or eax, 4
push ebx
push eax
call fcn.00402d10
mov edx, dword [ebp + 8]
cmp dword [edx + 0x354], ebx
jne 0x42bee2
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x42bed3
lea eax, [ebp - 0x234]
push 0x40
push 0x484af4
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.004516a6
xor eax, eax
push ebx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
push 0x473064
jmp 0x42bf17
xor ecx, ecx
push eax
lea edx, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00401740
mov eax, esi
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.0044e488
mov esp, ebp
pop ebp
ret