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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push esi
push edi
mov edi, eax
mov eax, dword [edi]
push eax
call ebp
mov ecx, dword [edi + 4]
push ecx
mov esi, eax
call ebp
mov edi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x10], eax
jmp 0x46c584
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call ebp
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x46c580
xor eax, eax
lea ecx, [eax + 0x10]
nop
mov edx, edi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x14]
sub eax, 0x61c88647
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x20]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x1c]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
sub ecx, 1
jne 0x46c5a0
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
mov ebx, dword [esp + 0x2c]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0x14
ret

Function at 0x46cec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x601e8e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.CResultSet.0
push esi
mov dword [esp + 0x18], 2
call fcn.0046cf50
lea eax, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.00472380
mov eax, dword [esi + 0x24]
xor edi, edi
cmp eax, edi
je 0x46cf19
push eax
call fcn.005d2367
add esp, 4
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov eax, dword [esi + 4]
cmp eax, edi
mov dword [esi], vtable.DataBuf.0
je 0x46cf3b
push eax
call fcn.005d28c2
add esp, 4
mov dword [esi + 4], edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x46e650
Capabilities:
Hide graphical window

Disassembly:
push ecx
cmp eax, 0x404
push esi
jg 0x46e711
je 0x46e6ca
cmp eax, 0x202
jl 0x46e779
cmp eax, 0x203
jle 0x46e67c
cmp eax, 0x205
jne 0x46e779
cmp byte [edi + 0x141c], 0
je 0x46e690
lea esi, [edi + 0x1424]
call fcn.004a9e70
mov eax, dword [edi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [edi + 4]
push 0
push 0x12c
push 0x66f
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [edi + 4]
push 0x68c
push eax
jmp 0x46e773
cmp byte [edi + 0x1420], 0
jne 0x46e6ff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x1414]
cmp eax, 0x1374
ja 0x46e6ff
cmp byte [edi + 0x141f], 0
mov byte [edi + 0x141c], 0
je 0x46e6ff
push 1
mov esi, edi
call fcn.0047da10
mov ecx, dword [edi + 4]
push 0x6a2
mov byte [edi + 0x1420], 0
push ecx
jmp 0x46e773
cmp eax, 0x405
jne 0x46e779
cmp byte [edi + 0x141f], 0
je 0x46e73e
push 1
mov esi, edi
call fcn.0047da10
mov eax, dword [esp + 0xc]
mov dword [eax], 0
mov eax, 1
pop esi
pop ecx
ret 4
mov edx, dword [edi + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [edi + 4]
push 0
push 0x12c
push 0x66f
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [edi + 4]
push 0x68c
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esp + 0xc]
mov dword [eax], 0
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x46f4c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x6099ef
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
push 0x74
mov edi, ecx
mov ebx, edx
call fcn.005d2776
add esp, 4
mov dword [esp + 0x1c], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x280], esi
je 0x46f522
push eax
call fcn.004fdc60
mov esi, eax
or ebp, 0xffffffff
test esi, esi
mov dword [esp + 0x280], ebp
je 0x46f5f2
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x280], 1
mov eax, dword [edi + 0x14b0]
push eax
push 0x629d1c
lea edi, [esp + 0x28]
call fcn.0040ac80
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x629d34
call fcn.00409dd0
push 0
lea edx, [esp + 0x20]
push edx
mov eax, edi
push eax
push esi
mov eax, ebx
mov byte [esp + 0x290], 2
call fcn.004fdfa0
mov byte [esp + 0x280], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f5bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x280], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f5e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.004fdd60
push esi
call fcn.005d2367
add esp, 4
lea ebx, [esp + 0x14]
call fcn.0047a980
mov dword [esp + 0x280], 3
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x46f637
lea eax, [ecx - 1]
test eax, eax
jl 0x46f6ec
cmp eax, ecx
jg 0x46f6ec
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x46f637
push 0x5c
mov edi, ebx
call fcn.0040af90
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, 0x626838
call fcn.0040aab0
mov ecx, dword [esp + 0x20]
add esp, 8
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, ebp
je 0x46f681
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push edx
push 0x625c98
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f6a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x280], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x46f6c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.005d28b3
add esp, 0x270
ret
push 0x80070057
call fcn.00403650
int3
Function at 0x46fc20
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x5fbb90
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, edx
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x24]
push eax
call fcn.00409dd0
mov dword [esp + 0x1c], 0
mov ecx, dword [ebx + 0x1058]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push ecx
call esi
mov edx, dword [ebx + 0x1060]
push 1
push edx
call esi
mov eax, dword [ebx + 0x105c]
push 0
push eax
call esi
cmp edi, 0xffffffff
je 0x46fc9d
mov ecx, dword [ebx + 0x1060]
push 0
push edi
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x24]
push edx
call fcn.0046fac0
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0x16
jle 0x46fd07
mov eax, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
call fcn.0041a270
lea edi, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.0040ab90
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fcf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x629f88
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040aee0
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x1058]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fd41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x46fd60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, eax
mov eax, dword [ebx + 0x1058]
push 0
push eax
call esi
mov ecx, dword [ebx + 0x1060]
push 0
push ecx
call esi
mov edx, dword [ebx + 0x105c]
push 1
push edx
call esi
mov eax, dword [ebx + 0x105c]
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.0046fac0
pop esi
pop ebx
ret
Function at 0x475180
Capabilities:
Create process on windows

Disassembly:
push eax
push 0
push ecx
push edx
push 0x625c98
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x4759d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x5fa900
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6687b8]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [0x668114]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x475a59
call fcn.0040f010
mov esi, eax
jmp 0x475b3f
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x475a75
call fcn.0040f010
jmp 0x475b36
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x475a8e
call fcn.0040f010
jmp 0x475b36
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x475ac4
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x475ab2
lea eax, [ebp]
call fcn.00476d50
lea esi, [ebp - 0x1c]
call fcn.0040eed0
mov eax, 0x8007000e
jmp 0x475b52
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00475b80
mov dword [ebp - 4], 1
jmp 0x475aec
mov esi, dword [ebp]
test esi, esi
jne 0x475afa
mov esi, 0x8007000e
jmp 0x475b38
call dword [0x668114]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x475b1b
call fcn.0040f010
jmp 0x475b36
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00475bc0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x475b50
lea eax, [ebp]
call fcn.00476d50
nop
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 + 0x404]
xor ecx, ebp
call fcn.005d28b3
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x476dc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x476dd3
push 0x80004005
call fcn.00403650
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x476de0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x476f60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x476fce
test ecx, ecx
je 0x476fc0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x476fdc
test ecx, ecx
je 0x477081
push ecx
jmp 0x47707b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x47704e
jmp 0x477010
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00476f60
mov edi, eax
test edi, edi
jne 0x47709d
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x477010
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x477065
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x477081
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005d28b3
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4770ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x477083
Function at 0x478190
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5fd0a0
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
mov ecx, 0x6244e0
call fcn.00409dd0
lea edi, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0047ac70
lea edi, [esp + 0x20]
mov byte [esp + 0x18], 1
call fcn.0040ab90
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47820a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x47824f
lea eax, [edx - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478239
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x10
ret 4
jle 0x478279
lea ecx, [eax - 1]
test ecx, ecx
jl 0x478318
cmp ecx, eax
jg 0x478318
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x478279
push 0x5c
lea edi, [esp + 0x24]
call fcn.0040af90
push 0x10
push str.FramePicQQShow_
lea ecx, [esp + 0x28]
push ecx
call fcn.0040aee0
mov edx, dword [esp + 0x20]
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [esp + 0x20]
mov edi, ebp
call fcn.0040ab90
mov eax, dword [ebx + 0x130]
push eax
push str._u_with_bkg.png
call fcn.0040e190
add esp, 8
lea eax, [esp + 0x20]
mov edi, esi
call fcn.0040ab90
mov ecx, dword [ebx + 0x130]
push ecx
push str._u_without_bkg.png
call fcn.0040e190
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4782ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x10
ret 4
push 0x80070057
call fcn.00403650
int3
Function at 0x478430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov ebx, eax
push edi
lea edi, [ebx + 0x180]
lea esi, [ebx + 0x184]
push edi
call fcn.00478190
test eax, eax
je 0x478506
mov eax, dword [edi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call edi
cmp eax, 0xffffffff
jne 0x47850f
call fcn.0040f010
cmp eax, esi
jl 0x478506
mov eax, dword [ebx + 0x19c]
mov ecx, dword [ebx + 0x194]
push esi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4784b7
call fcn.0040f010
push esi
push esi
lea esi, [ebx + 0x190]
call fcn.0046bad0
push 0
push 0x80
push 2
push 0
push 1
mov dword [ebx + 0x1a0], 0
mov eax, dword [ebx + 0x184]
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
jne 0x478518
call fcn.0040f010
test eax, eax
jge 0x47851c
mov eax, dword [esp + 0xc]
test eax, eax
je 0x478506
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xc], eax
jmp 0x47848f
mov edi, eax
jmp 0x478520
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x1b4]
mov ecx, dword [ebx + 0x1ac]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x478545
call fcn.0040f010
push 0
push 0
lea esi, [ebx + 0x1a8]
call fcn.0046bad0
test edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x1b8], 0
je 0x47856b
push edi
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x478576
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x478d30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 8]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp], 4
je 0x478d6d
mov eax, 0xd
add esp, 8
ret 8

Function at 0x478d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
test edi, edi
jne 0x478d8f
push 0x80004005
call fcn.00403650
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edi
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x478e07
mov ecx, dword [edi]
test ecx, ecx
jbe 0x478e02
mov edx, dword [esp]
test edx, edx
jbe 0x478dfd
cmp edx, 2
jbe 0x478dee
cmp edx, 7
jne 0x478dfd
test cl, 1
jne 0x478dfd
shr ecx, 1
cmp ecx, 1
jb 0x478dfd
cmp word [esi + ecx*2 - 2], 0
jne 0x478dfd
cmp ecx, 1
jbe 0x478e07
cmp word [esi + ecx*2 - 4], 0
jmp 0x478dfb
test cl, 1
jne 0x478dfd
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x478e07
mov eax, 0xd
mov word [esi], 0
pop ecx
ret 8
Function at 0x478e10
Capabilities:
Set registry value

Disassembly:
test esi, esi
jne 0x478e1e
push 0x80004005
call fcn.00403650
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
add eax, 1
add eax, eax
push eax
mov eax, dword [edx]
push esi
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x478e90
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.005da970
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x478ee5
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
je 0x478f0e
cmp dword [esp + 8], 6
jne 0x478f0e
cmp dword [esp + 0xc], 0
jne 0x478f0e
mov eax, 1
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005d28b3
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
xor eax, eax
call fcn.005d28b3
add esp, 0x120
ret

Function at 0x478f30
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.005da970
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x478f85
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
je 0x478f97
cmp dword [esp + 8], 6
jne 0x478f97
mov eax, 1
cmp dword [esp + 0xc], eax
jae 0x478f99
xor eax, eax
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.005d28b3
add esp, 0x120
ret
Function at 0x479730
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x214], eax
test esi, esi
mov eax, dword [esp + 0x21c]
jne 0x479766
xor eax, eax
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.005d28b3
add esp, 0x218
ret
push ebx
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x479815
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x479815
push 0x20a
push eax
lea edx, [esp + 0x16]
push edx
mov word [esp + 0x18], ax
call fcn.005da970
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edi
push ebx
mov dword [esp + 0x20], 0x20b
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47980a
push 0x103
lea edx, [esp + 0x10]
push edx
push esi
call fcn.005d31ba
mov eax, dword [esp + 0x10]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.005d28b3
add esp, 0x218
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005d28b3
add esp, 0x218
ret

Function at 0x479830
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5f8728
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 8], edi
jne 0x47986a
push 0x80004005
call fcn.00403650
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x1c]
add eax, 1
add eax, eax
push eax
push esi
push 1
push ebx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x479890
mov ebx, 1
mov eax, ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret