joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406747
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x18c
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x406761
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041d740
add esp, 0xc
mov dword [ebp + esi - 0x44], 0x1000000
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.0040653c
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041d740
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov byte [ebp + 0x6b], 0
mov dword [ebp + 0x4c], eax
xor esi, esi
mov byte [ebp + 0x6f], 0
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
mov edi, dword [ebp + esi + 0x4c]
test edi, edi
je 0x40682d
lea eax, [ebp + 0x6f]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp + 0x6b]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.0040653c
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041d740
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x20]
xor byte [ebp + ecx], al
inc ecx
cmp ecx, ebx
jb 0x40681b
sub edi, 1
jne 0x4067de
push ebx
lea eax, [ebp]
push eax
push dword [ebp + esi + 0x40]
call fcn.0041d740
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x4067d6
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040dc6f
push ebx
lea eax, [ebp]
push eax
call fcn.0040dc6f
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.0040dc6f
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040dc6f
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20
Function at 0x408f33
Capabilities:
Move file

Disassembly:
mov eax, 0x42ef33
call fcn.0041c560
mov eax, 0x5024
call fcn.0041c630
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4030]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4090f2
cmp eax, ebx
jae 0x4090f2
push ebx
lea eax, [ebp - 0x5030]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4090f2
cmp eax, ebx
jae 0x4090f2
lea eax, [ebp - 0x4030]
push eax
call fcn.0040b4f8
mov dword [ebp + 8], eax
lea eax, [ebp - 0x5030]
push eax
call fcn.0040b4f8
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x4090f2
push edi
push dword [ebp + 8]
call fcn.004106e6
test eax, eax
je 0x4090f2
push edi
push esi
call fcn.0040b4f8
push eax
call fcn.004106e6
test eax, eax
jne 0x4090f2
mov word [ebp - 0x100c], ax
mov edi, ebx
test ax, ax
jne 0x409054
push 0x800
push esi
lea eax, [ebp - 0x100c]
push eax
call fcn.0040ed2b
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x100c]
push eax
call fcn.0040b4f8
push eax
call fcn.00403c97
add esp, 0x10
lea eax, [ebp - 0x100c]
push eax
call fcn.00409b05
test al, al
je 0x409039
xor eax, eax
mov word [ebp - 0x100c], ax
jmp 0x409040
mov ax, word [ebp - 0x100c]
add edi, 0x7b
cmp edi, 0x2710
jl 0x408fe7
test ax, ax
je 0x4090f2
mov edi, 0x800
lea eax, [ebp - 0x3030]
push edi
push esi
push eax
call fcn.0040ed2b
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x3030]
push eax
call fcn.0040b56e
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x3030]
push eax
call edi
test eax, eax
je 0x4090f2
lea ecx, [ebp - 0x2030]
call fcn.00409107
push esi
mov dword [ebp - 4], ebx
call fcn.00409b05
test al, al
jne 0x4090b9
push 0x12
push esi
lea ecx, [ebp - 0x2030]
call fcn.004091f7
mov bl, al
lea eax, [ebp - 0x3030]
push eax
lea eax, [ebp - 0x100c]
push eax
call edi
test bl, bl
je 0x4090e3
lea ecx, [ebp - 0x2030]
call fcn.004091a9
lea ecx, [ebp - 0x2030]
call fcn.004092f0
lea ecx, [ebp - 0x2030]
call fcn.0040913d
mov al, 1
jmp 0x4090f4
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4098ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
jne 0x4098e1
mov al, 1
jmp 0x4099cf
cmp dword [edi + 0xc], 1
jne 0x4098f2
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
push esi
and dword [esp + 0x18], 0
xor bl, bl
cmp dword [edi + 0xc], 0
je 0x409947
xor esi, esi
test ebp, ebp
je 0x409969
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x409917
mov eax, 0x4000
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add bl, 1
je 0x409969
add esi, 0x4000
cmp esi, ebp
jb 0x409907
jmp 0x409965
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x20]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x4099c7
cmp byte [edi + 0x14], 0
je 0x4099c7
cmp dword [edi + 0xc], 0
jne 0x4099c7
push 0
lea esi, [edi + 0x1e]
mov ecx, 0x43cbd8
push esi
call fcn.00406ad5
test al, al
je 0x4099ba
cmp dword [esp + 0x18], ebp
jae 0x4098f4
cmp dword [esp + 0x18], 0
jbe 0x4098f4
mov esi, dword [edi]
mov ecx, edi
push 0
call dword [esi + 0x10]
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb edx, 0
push edx
push eax
call dword [esi + 0xc]
jmp 0x4098f4
push esi
push 0
mov ecx, 0x43cbd8
call fcn.00406ccf
pop esi
mov al, bl
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
ret 8

Function at 0x409b19
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041c630
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409b5e
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040af43
test al, al
je 0x409b5e
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x409b8c
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041c630
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040b4dc
movzx eax, word [eax]
cmp eax, 0x2e
je 0x409bbd
cmp eax, 0x20
je 0x409bbd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409bf0
push esi
call fcn.00409b05
test al, al
jne 0x409c03
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.0040af43
test al, al
je 0x409c03
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409c03
cmp byte [ebp + 0xc], 0
je 0x409bff
push dword [ebp + 0x10]
push esi
call fcn.00409dc9
xor eax, eax
jmp 0x409c1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x409c18
cmp eax, 3
je 0x409c18
xor eax, eax
inc eax
jmp 0x409c1b
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40af43
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041c630
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x40af61
xor al, al
jmp 0x40b0e3
push esi
push edi
call fcn.0040b0f5
push edi
call fcn.00421845
pop ecx
push edi
mov esi, eax
call fcn.0040b121
test al, al
je 0x40b001
push edi
call fcn.0040b0f5
test al, al
je 0x40afb0
lea eax, [esi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40affa
mov esi, dword [ebp + 0xc]
push 4
push 0x430568
push esi
call fcn.00422d31
lea eax, [esi + 8]
push edi
push eax
call fcn.00421823
add esp, 0x14
jmp 0x40aff3
push 0x5c
pop eax
cmp word [edi], ax
jne 0x40affa
add edi, 2
cmp word [edi], ax
jne 0x40affa
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x40affa
mov esi, dword [ebp + 0xc]
push 4
push 0x430568
push esi
call fcn.00422d31
lea eax, [esi + 8]
push 0x430574
push eax
call fcn.00421823
lea eax, [esi + 0xe]
push edi
push eax
call fcn.00421823
add esp, 0x1c
mov al, 1
jmp 0x40b0e2
xor al, al
jmp 0x40b0e2
push ebx
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b0df
cmp eax, ebx
ja 0x40b0df
movzx eax, word [edi]
push eax
call fcn.0040b1fc
test al, al
je 0x40b06f
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x40b0df
mov esi, dword [ebp + 0xc]
push 4
push 0x430568
push esi
call fcn.00422d31
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00422d31
lea eax, [esi + 0xc]
push edi
push eax
call fcn.00421823
add esp, 0x20
jmp 0x40b0db
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040aacd
lea eax, [ebp - 0x1000]
push eax
call fcn.00421845
add eax, 4
add eax, esi
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40b0df
mov esi, dword [ebp + 0xc]
push 4
push 0x430568
push esi
call fcn.00422d31
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00421823
add esp, 0x14
cmp word [edi], 0x2e
jne 0x40b0d1
movzx eax, word [edi + 2]
push eax
call fcn.0040b1fc
test al, al
je 0x40b0d1
add edi, 4
push dword [ebp + 0x10]
push edi
push esi
call fcn.0040ecff
mov al, 1
jmp 0x40b0e1
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40bc9f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc eax
mov cl, bl
cmp esi, eax
jbe 0x40bcbc
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x40bcb4
cmp cl, byte [edx]
jne 0x40bcf7
push esi
push edx
push 0xffffffffffffffff
call fcn.00405bff
not eax
mov ecx, ebx
cmp dword [ecx + 0x43a02c], eax
jne 0x40bcdd
cmp dword [ecx + 0x43a028], esi
je 0x40bce8
add ecx, 0xc
inc ebx
cmp ecx, 0x48
jb 0x40bccd
jmp 0x40bcf7
imul eax, ebx, 0xc
mov ecx, dword [eax + 0x43a030]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
pop esi
pop ebx
ret 0xc
Function at 0x40db7a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x441e50]
test eax, eax
jne 0x40db95
mov ecx, 0x441e48
call fcn.0040dafb
mov eax, dword [0x441e50]
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ecx, esi
and ecx, 0xfffffff0
cmp byte [ebp + 0x14], dl
setne dl
cmp byte [ebp + 0x10], 0
je 0x40dbdf
test eax, eax
je 0x40dbfa
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x40dc1f
push str.CryptProtectMemory_failed
mov esi, 0x43cbd8
push esi
call fcn.00406b4e
pop ecx
pop ecx
mov ecx, esi
call fcn.00406c7e
push 2
mov ecx, esi
call fcn.00406b49
jmp 0x40dc1f
mov eax, dword [0x441e54]
test eax, eax
je 0x40dbfa
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x40dc1f
push str.CryptUnprotectMemory_failed
jmp 0x40dbc0
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x40dc1e
push edi
mov edi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x40dc10
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x40f7c6
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x40f841
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x40f976
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x40f81d
push str.CreateThread_failed
push 0x43cbd8
call fcn.00406b4e
pop ecx
pop ecx
mov ecx, 0x43cbd8
call fcn.00406c7e
push 2
mov ecx, 0x43cbd8
call fcn.00406b49
mov dword [edi], ebp
inc dword [esi + 0x84]
mov eax, dword [0x441e60]
test eax, eax
je 0x40f837
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x40f7d6
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x4178a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call ebx
mov edi, dword [esp + 0x38]
mov ebp, eax
mov ecx, dword [edi]
lea eax, [esp + 0x10]
push eax
push edi
call dword [ecx + 0x48]
test eax, eax
js 0x4178d7
cmp dword [esp + 0x10], 0
jne 0x41791f
call ebx
sub eax, ebp
cmp eax, 0x7d0
ja 0x41791f
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4178c1
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4178c1
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [eax + 0x48]
mov ebx, eax
test ebx, ebx
js 0x41798d
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x417985
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x4317ac
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x417977
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
js 0x41796d
mov eax, dword [esp + 0x14]
push dword [esp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
test ebx, ebx
js 0x41798d
test ecx, ecx
jne 0x4179de
xor ebp, ebp
cmp dword [esi + 8], ebp
je 0x4179de
cmp dword [esi + 0x18], ebp
jne 0x4179de
cmp dword [esi + 0x14], ebp
je 0x4179de
push dword [esi + 0x14]
mov ecx, esi
call fcn.00417ed1
mov edi, eax
test edi, edi
je 0x4179de
push 0x204
push ebp
push ebp
push ebp
push ebp
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.00421860
pop ecx
pop edi
not ebx
pop esi
shr ebx, 0x1f
pop ebp
mov al, bl
pop ebx
add esp, 0x24
ret 8
Function at 0x41b3ed
Capabilities:
Hide graphical window

Disassembly:
and dword [0x442100], 0
push 1
push dword [esp + 8]
mov byte [0x4420f4], 1
mov byte [0x4420f5], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401263
cmp dword [0x44910c], 0
jne 0x41b42d
cmp byte [0x4420fa], 0
je 0x41b436
cmp dword [0x4420f0], 0
jne 0x41b449
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41b549
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041c630
cmp byte [0x449118], 0
je 0x41b5d3
cmp word [0x455808], 0
je 0x41b5d3
push esi
lea eax, [ebp - 0x1008]
push eax
push 0x455808
call fcn.0041a204
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b5d2
push dword [ebp + 8]
call fcn.00421845
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41b5d9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041c630
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040eb20
mov esi, eax
test esi, esi
je 0x41b631
movzx ecx, word [esi]
push ecx
jmp 0x41b61c
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040ec17
test al, al
jne 0x41b615
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403420
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x45193c]
push ebx
push 0
push 2
mov dword [esp + 0x9b8], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x88]
push ecx
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x90], 0x128
xor ebx, ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x403476
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x9ac]
call fcn.00423a21
add esp, 0x9b0
ret
xor eax, eax
jmp 0x403480
mov cl, byte [esp + eax + 0xac]
mov byte [esp + eax + 0x1b0], cl
inc eax
test cl, cl
jne 0x403480
push esi
mov esi, dword [esp + 0x9bc]
lea eax, [esp + 0x1b4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4034c6
test cl, cl
je 0x4034c2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4034c6
add eax, 2
add esi, 2
test cl, cl
jne 0x4034a2
xor eax, eax
jmp 0x4034cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4034d4
mov ebx, 1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x8c]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x403587
mov eax, ebx
shl eax, 6
push ebp
lea edx, [esp + 0xb4]
lea ebp, [esp + eax + 0x1b8]
sub eax, edx
push edi
lea edi, [esp + eax + 0x1bc]
lea esp, [esp]
lea eax, [esp + 0xb8]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x403517
mov esi, dword [esp + 0x9c4]
mov eax, ebp
lea ebx, [ebx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403554
test cl, cl
je 0x403550
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403554
add eax, 2
add esi, 2
test cl, cl
jne 0x403530
xor eax, eax
jmp 0x403559
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40356f
mov eax, dword [esp + 0x9c]
mov dword [esp + ebx*4 + 0x14], eax
inc ebx
add ebp, 0x40
add edi, 0x40
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x94]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403510
pop edi
pop ebp
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x9b4]
pop esi
mov eax, ebx
pop ebx
call fcn.00423a21
add esp, 0x9b0
ret
Function at 0x40d480
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x45193c]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d5a2
lea ecx, [esp + 8]
call fcn.0040d360
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x40d5a6
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40d550
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0040d480
mov edi, eax
test edi, edi
jne 0x40d5ca
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40d512
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d569
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d588
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00423a21
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40d5b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00423a21
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d5d9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.00423a21
add esp, 0x118
ret 4
Function at 0x40dab0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40dac2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x410f40
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x4508e0]
mov eax, 0xa61fcc17
imul ecx
push ebx
mov ebx, dword [0x4508ec]
add edx, ecx
imul ebx, ebx, 0x185
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebp
push esi
mov esi, dword [0x4508d0]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [0x4508d4]
sub edx, esi
cmp eax, 0x132b600
lea ebp, [edx + edi + 0xd7]
mov dword [str._r_____r_____n], ebp
je 0x410fb1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
mov edi, edi
push 0x3e8
call edi
dec esi
jne 0x410fa0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [0x4508e8]
mov eax, 0x49e28fbb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x73d0e82d
imul ecx
sub edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
mov esi, dword [0x4508e4]
mov edx, esi
imul edx, edx, 0x315
sub eax, edx
mov edx, dword [0x4508cc]
add eax, ebp
lea eax, [edx + eax - 0x30e]
mov dword [0x4508cc], eax
mov eax, dword [0x462c5c]
mov edx, eax
inc eax
test edx, edx
mov dword [0x462c5c], eax
jle 0x41104d
mov eax, 0x97012e03
imul esi, esi, 0x1a8
imul edi
add edx, edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add esi, edx
mov edx, dword [0x4508d8]
add eax, esi
sub eax, ebx
pop edi
sub eax, edx
pop esi
add eax, 0x4f2
pop ebp
mov dword [0x4508d0], eax
mov eax, 1
pop ebx
ret
mov eax, 0x197b05f9
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x21d814d3
imul edi
sub edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
mov ecx, dword [0x4508ec]
sub eax, esi
lea edx, [eax + ecx - 0x30e]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x410b10
push 0
push 0
mov dword [0x462970], 0
mov dword [0x4508d4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4508e0]
mov esi, dword [0x4508dc]
mov eax, 0x60f25deb
imul esi, esi, 0x377
imul ecx
mov eax, dword [0x4508e8]
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508d0]
imul edx, edx, 0x1a8
sub esi, ecx
add esi, eax
pop edi
lea eax, [edx + esi - 0x15c]
pop esi
pop ebp
mov dword [0x4508d8], eax
mov eax, 1
pop ebx
ret