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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, dword [ebp + 8]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x440cd0
lea ecx, [esi + eax]
add ecx, 0xfffffffe
mov eax, esi
not eax
and eax, ecx
xor ecx, esi
add eax, eax
sub eax, ecx
mov ebx, eax
sar ebx, 1
cmp ebx, 0xfffffffb
jge 0x440cfc
mov eax, 0xffffffff
jmp 0x440cff
add eax, 0xa
push eax
call fcn.00408380
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
lea ecx, [ebx + 4]
mov word [eax + 8], 0
mov edx, eax
add edx, 8
movzx edi, word [esi]
test di, di
je 0x440d41
add esi, 2
nop
nop
mov word [edx], di
add edx, 2
movzx edi, word [esi]
add esi, 2
test di, di
jne 0x440d30
mov word [edx], 0
mov esi, 3
sub esi, ebx
and esi, 2
mov edx, ecx
and edx, 0xfffd
imul edx, esi
and ebx, 2
or ecx, 2
imul ecx, ebx
lea esi, [ecx + edx]
mov word [esp], si
add ecx, edx
add ecx, 2
mov word [esp + 2], cx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0x40
mov ecx, esp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x14151617
mov dword [esp + 0x24], 0
mov ecx, 0xc4aa0abc
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x3b55f564]
mov ebx, edx
and ebx, ecx
add bl, bl
sub dl, bl
movzx edx, dl
add edx, ecx
add dl, 0x54
mov byte [esp + ecx + 0x3b55f564], dl
inc ecx
cmp ecx, 0xc4aa0ac4
jne 0x440dc0
mov esi, dword [esp + 0x20]
mov ecx, dword [0x44ce38]
test ecx, ecx
je 0x440e39
xor edx, edx
mov edi, dword [0x44ce3c]
nop
nop
cmp dword [edi + edx*8], 0x1ce638e1
je 0x440e10
inc edx
cmp ecx, edx
jne 0x440e00
jmp 0x440e39
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
je 0x440e39
lea edx, [esp + 0x20]
lea esi, [esp + 8]
push edx
push esi
push 8
push ecx
push dword [0x44ce40]
mov edi, eax
call fcn.0043e410
add esp, 0x14
mov esi, eax
mov eax, edi
push eax
call fcn.00408390
add esp, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x440e4f
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x430c30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a5d0
push 0x435bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x44796c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x447968], ecx
shl ecx, 8
add ecx, edx
mov dword [0x447964], ecx
shr eax, 0x10
mov dword [0x447960], eax
call fcn.00434690
test eax, eax
jne 0x430c9a
push 0x1c
call fcn.00430dd0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00435900
call fcn.004358f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47a170], eax
call fcn.004354c0
mov dword [0x447924], eax
test eax, eax
je 0x430ccd
mov eax, dword [0x47a170]
test eax, eax
jne 0x430cd7
push 0xffffffffffffffff
call fcn.00434e20
add esp, 4
call fcn.00435210
call fcn.00435120
call fcn.00434df0
mov esi, dword [0x47a170]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x430db6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x430d1e
test al, al
je 0x430d1e
and eax, 0xff
push eax
call fcn.004350c0
add esp, 4
test eax, eax
je 0x430cf8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x430cf8
cmp byte [esi], 0x22
jne 0x430d27
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x430d37
cmp al, 0x20
ja 0x430d37
inc esi
mov dword [ebp - 0x64], esi
jmp 0x430d27
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x430d58
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x430d5d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00434e20
jmp 0x430d9b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x430d27
inc esi
mov dword [ebp - 0x64], esi
jmp 0x430db6
Function at 0x434e60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x44799c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x434e7f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x447998], 1
mov byte [0x447994], bl
jne 0x434ed9
mov ecx, dword [0x47a168]
test ecx, ecx
je 0x434ec7
mov esi, dword [0x47a164]
sub esi, 4
cmp esi, ecx
jb 0x434ec7
mov eax, dword [esi]
test eax, eax
je 0x434ec0
call eax
mov ecx, dword [0x47a168]
sub esi, 4
cmp esi, ecx
jae 0x434eb2
push 0x43b01c
push 0x43b014
call fcn.00434f10
add esp, 8
push 0x43b024
push 0x43b020
call fcn.00434f10
add esp, 8
test ebx, ebx
jne 0x434f00
push ebp
mov dword [0x44799c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x4354c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x447ab0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x435502
call edi
mov esi, eax
test esi, esi
je 0x4354ec
mov eax, 1
jmp 0x4354fd
call ebp
mov ebx, eax
test ebx, ebx
je 0x43560f
mov eax, 2
mov dword [0x447ab0], eax
cmp eax, 1
jne 0x4355a2
test esi, esi
jne 0x43551b
call edi
mov esi, eax
test esi, esi
je 0x43560f
cmp word [esi], 0
mov eax, esi
je 0x435535
add eax, 2
cmp word [eax], 0
jne 0x435523
add eax, 2
cmp word [eax], 0
jne 0x435523
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x435594
push edi
call fcn.00437c70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x435594
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x435586
push ebx
call fcn.00433d00
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x43560f
test ebx, ebx
jne 0x4355b3
call ebp
mov ebx, eax
test ebx, ebx
je 0x43560f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4355cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4355bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4355bb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00437c70
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4355ed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x435d10
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x43dce0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x435d34
add eax, 8
inc ebp
cmp eax, 0x43dd70
jb 0x435d25
cmp ecx, dword [ebp*8 + 0x43dce0]
jne 0x435edb
mov eax, dword [0x44792c]
cmp eax, 1
je 0x435e9d
test eax, eax
jne 0x435d60
cmp dword [0x43b994], 1
je 0x435e9d
cmp ecx, 0xfc
je 0x435edb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435d9b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x435de4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x43aa78
add ebx, ecx
push ebx
call fcn.00437db0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43aa58
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x43dce4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00437d20
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x47a060]
test eax, eax
je 0x435eae
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x435eb8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x43dce4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x436d40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x47a160]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x436eed
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x47a060]
lea edi, [ecx*4 + 0x47a060]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x436eed
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x436dae
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x436dbf
push 2
push ebp
push eax
call fcn.00436c80
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x436f1e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x436e69
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x436e1a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x436e07
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x436dea
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436f0f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x436e65
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x436de6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x436ede
mov eax, dword [esp + 0x18]
test eax, eax
je 0x436eb2
cmp eax, 5
jne 0x436e9b
mov dword [0x447958], eax
mov dword [0x447954], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00437580
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x436ed2
cmp byte [ebp], 0x1a
jne 0x436ed2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x447954], 0x1c
jmp 0x436ef7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x447954], 9
pop edi
pop esi
pop ebp
mov dword [0x447958], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x436e65
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436f4f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x436e69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x436e69
Function at 0x438fc0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00439510
mov eax, dword [0x47a160]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x439122
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x47a060]
test byte [edx + ecx*8 + 4], 1
je 0x439122
push 1
push ebp
push ebx
call fcn.00436c80
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x43912c
push 2
push ebp
push ebx
call fcn.00436c80
add esp, 0xc
cmp eax, 0xffffffff
je 0x43912c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4390c8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00439490
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x43906f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00436d40
add esp, 0xc
cmp eax, 0xffffffff
je 0x43908b
sub esi, eax
test esi, esi
jle 0x4390a1
jmp 0x439060
cmp dword [0x447958], 5
jne 0x43909e
mov dword [0x447954], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00439490
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00436c80
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x439109
push 0
push ecx
push ebx
call fcn.00436c80
add esp, 0xc
push ebx
call fcn.00437800
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x439109
mov dword [0x447954], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x447958], eax
push 0
push edi
push ebx
call fcn.00436c80
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x447954], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x405340
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
push 0
call fcn.005df3a4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405370
push 0x20019
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00405480
add esp, 0xc
mov ebp, eax
jmp 0x405374
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x40546e
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push 0
push edx
push 0
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40545f
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x4053ba
cmp eax, 2
je 0x4053ba
cmp eax, 6
je 0x4053ba
cmp eax, 7
jne 0x40545f
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.005e15b8
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push 0
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405456
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x405434
test eax, eax
mov esi, ebx
jbe 0x405434
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx + 8]
push edx
call fcn.005df5ba
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 1]
mov ecx, dword [esp + 0x18]
mov eax, esi
sub eax, ebx
cmp eax, ecx
jb 0x40540a
cmp ebp, dword [esp + 0x14]
je 0x405443
push ebp
call fcn.004054b0
add esp, 4
push ebx
call fcn.005e15e1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
call fcn.005e15e1
add esp, 4
cmp ebp, dword [esp + 0x14]
je 0x40546e
push ebp
call fcn.004054b0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4060a0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4060bb
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406113
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4060ef
push esi
call fcn.0044cf30
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x4060f1
xor eax, eax
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0x10

Function at 0x406120
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x40613b
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40617d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0x10

Function at 0x406190
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4061ab
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4061ed
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
lea eax, [esp + 0x10]
push 8
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0x14

Function at 0x406200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40629a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x406284
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.005e15b8
mov esi, eax
add esp, 4
test esi, esi
je 0x406284
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x4062b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x406314
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret 8

Function at 0x406320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40638c
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [esp + 8]
add esp, 0x10
ret 8
Function at 0x4064b0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f0318
push eax
mov eax, dword [0x687630]
mov dword fs:[0], esp
sub esp, 8
test eax, eax
je 0x4064ea
push str.CopyFile_1_______
push str.cmdtest
push 0xf
push 0x6875c4
call fcn.00431af0
add esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
push edi
mov ecx, esi
call fcn.005e1070
push str._NEW.txt
push str..txt
mov ecx, esi
call fcn.005de050
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.005e0fa7
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.005e0fa7
lea eax, [esp + 0x14]
push 0x6463d8
lea ecx, [esp + 0x34]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.005e117c
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.005e117c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.005e1020
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.005e0ee7
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005e0ee7
lea eax, [esp + 0x10]
push 0x6463d8
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.005e117c
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.005e1116
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.005e1020
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call fcn.005e0ee7
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005e0ee7
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
mov eax, dword [0x687630]
test eax, eax
je 0x40662e
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push esi
call fcn.004668d0
mov eax, dword [eax]
push edi
push eax
push str.CopyFile_1______s___d_
push str.cmdtest
push 0xf
push 0x6875c4
mov byte [esp + 0x38], 6
call fcn.00431af0
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.00467250
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.005e0ee7
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.005e0ee7
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret