joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd5f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4bd624
mov eax, esi
call fcn.004c1b70
cmp byte [esi + 0x40], 0
je 0x4bd61c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4bd6d5
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4bd6b4
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4bd6ac
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4bd658
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
lea esi, [esi]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4bd670
xor bl, bl
jmp 0x4bd6d5
cmp edi, 2
je 0x4bd6aa
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4bd648
cmp edi, 3
je 0x4bd688
cmp edi, 1
jne 0x4bd648
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4bd648
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4bd648
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4bd6cc
cmp dword [esi + 0x14], 0xcc
je 0x4bd6cc
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004bda10
lea esi, [esi]
mov eax, esi
call fcn.004bd6e0
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x4da9b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x4da9c6
jmp 0x4daa00
mov eax, dword [0x578110]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x170]
cmp eax, dword [edx + 0x24]
je 0x4da9db
jmp 0x4daa00
mov eax, dword [0x578110]
cmp byte [eax + 0x11c], 0
je 0x4da9eb
jmp 0x4daa00
mov eax, dword [0x578500]
mov edx, dword [0x578500]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, dword [0x578500]
mov edx, dword [0x578500]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
je 0x4daa1c
jmp 0x4daafa
mov eax, dword [0x578110]
cmp byte [eax + 0x11c], 0
je 0x4daa2f
jmp 0x4daafa
mov eax, dword [0x578500]
mov edx, dword [0x578500]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.005509f0
mov eax, dword [0x578110]
cmp dword [eax + 0x170], 0
jne 0x4daa54
jmp 0x4daac0
push 0x10
push 0
mov eax, dword [0x578110]
mov eax, dword [eax + 0x170]
push dword [eax + 0x254]
mov eax, dword [0x578110]
mov eax, dword [eax + 0x170]
push dword [eax + 0x248]
mov eax, dword [0x578110]
mov eax, dword [eax + 0x170]
push dword [eax + 0x12c]
push 0
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_SetWindowPos
mov eax, dword [0x578110]
mov eax, dword [eax + 0x170]
call fcn.004fc090
test al, al
jne 0x4daaad
jmp 0x4daac0
push 0
mov eax, dword [0x578110]
call fcn.004216d0
push eax
call sub.user32.dll_ShowWindow
nop
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x578110]
call fcn.00424c10
jmp 0x4dab98
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x4dab05
jmp 0x4dab52
mov eax, dword [ebp - 4]
mov edx, dword [0x578110]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
je 0x4dab1b
jmp 0x4dab52
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x578110]
call fcn.00424c10
jmp 0x4dab98
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x4dab5d
jmp 0x4dab98
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
jne 0x4dab71
jmp 0x4dab98
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [eax + 0xc], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x578500]
mov edx, dword [0x578500]
mov edx, dword [edx]
call dword [edx + 0x8c]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e1840
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
jne 0x4e186e
jmp 0x4e18dc
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jg 0x4e188a
jmp 0x4e18dc
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
xor eax, eax
push fcn.004e1820
push ebp
push 0x4145c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004e1820
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e1fe0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004e1fc0
push ebp
push 0x4145c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4e2033
jmp 0x4e20b0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.0046b8c0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.0046b810
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.0046bfd0
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.0046d480
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4e2107
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.004e1fa0
push ebp
push 0x4145c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004e1fa0
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004e1fc0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50d710
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x50d72b
jmp 0x50d738
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x50d740
jmp 0x50d748
jmp 0x50d7fa
xor eax, eax
push 0x50d7d7
push ebp
push 0x414940
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov edx, 0
call fcn.0040d380
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x50d7b9
jmp 0x50d7cc
cmp dword [ebp - 8], 0
jne 0x50d7c1
jmp 0x50d7cc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x50d7fa
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x550e40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.00550e20
push ebp
push 0x4145c0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040aa10
cmp dword [ebp - 0xc], 0
jg 0x550e8c
jmp 0x550eac
mov eax, dword [ebp - 0xc]
lea eax, [eax + 1]
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x550e9f
mov eax, 0x5ef2f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
nop
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040aa10
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
call fcn.0040b340
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x550ed5
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x550ee1
mov eax, 0x5ef2f0
call fcn.0042fa00
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00550e20
mov esp, ebp
pop ebp
ret
Function at 0x552540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x5de5d0
call fcn.0040ea90
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00552530
push ebp
push 0x4145c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x34]
mov edx, 0
call fcn.00408b80
mov eax, dword [ebp - 0xc]
mov edx, fcn.004deb80
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov dx, 0
call fcn.004094d0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x30]
call fcn.00408b80
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.005504b0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00552bd0
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
je 0x552645
jmp 0x552664
mov eax, dword [ebp - 4]
call fcn.00500fb0
test al, al
je 0x552653
jmp 0x552664
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00552530
mov esp, ebp
pop ebp
ret
Function at 0x570cf0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x41111b]
shl eax, 2
mov dword [0x41111f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00406990
pop edx
call fcn.00405d2c
call fcn.00406994
push 0
call fcn.00407640
pop ecx
push 0x4110c4
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x411123], eax
push 0
jmp fcn.0040e224
Function at 0x406684
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x407aab
mov eax, dword [0x41217c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x407ab8
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x407ae5
je 0x407af7
sub ecx, 0x100
je 0x407b05
sub ecx, 0x100
je 0x407b0c
sub ecx, 0x100
je 0x407afe
jmp 0x407b13
sub ecx, 0x600
je 0x407b0c
sub ecx, 0x100
je 0x407af7
jmp 0x407b13
mov edi, 1
jmp 0x407b18
mov edi, 2
jmp 0x407b18
mov edi, 4
jmp 0x407b18
mov edi, 5
jmp 0x407b18
mov edi, 3
test byte [ebp + 0xd], 1
je 0x407b3f
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x411be8]
test al, 0x80
je 0x407b38
mov ebx, 0x80
jmp 0x407b51
mov ebx, 1
jmp 0x407b51
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x407b51
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x407b63
je 0x407b6c
dec eax
je 0x407b75
jmp 0x407b7e
mov dword [ebp - 4], 0x80000000
jmp 0x407b8d
mov dword [ebp - 4], 0x40000000
jmp 0x407b8d
mov dword [ebp - 4], 0xc0000000
jmp 0x407b8d
push 1
call fcn.00408e9c
pop ecx
mov ebx, eax
jmp 0x407c7d
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x407ba9
sub eax, 0x10
je 0x407bb0
sub eax, 0x10
je 0x407bb9
sub eax, 0x10
je 0x407bc2
jmp 0x407bc2
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x407bc9
mov dword [ebp - 8], 1
jmp 0x407bc9
mov dword [ebp - 8], 2
jmp 0x407bc9
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x407c36
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x407c2b
test byte [ebp + 0xd], 1
je 0x407c26
mov ebx, 0x50
jmp 0x407c2b
mov ebx, 2
push ebx
call fcn.00408e9c
pop ecx
mov ebx, eax
jmp 0x407c7d
mov edi, esi
push edi
call fcn.004079fc
pop ecx
test eax, eax
je 0x407c4a
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x407c56
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00408be0
add esp, 8
mov ebx, eax
inc eax
jne 0x407c7d
push 4
call fcn.00408e9c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4024e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bc45
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x5c41c0]
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 esi, ecx
mov dword [ebp - 0x854], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x85c], edi
mov dword [ebp - 0x858], 0
xor eax, eax
mov dword [ebp - 4], 1
push 0x81e
push eax
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x832]
push eax
call fcn.0052f810
add esp, 0xc
lea ecx, [ebp - 0x834]
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0x820
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x834], ax
jne 0x40258c
xor ecx, ecx
jmp 0x4025a4
lea ecx, [ebp - 0x834]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402595
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x834]
mov ecx, edi
push eax
call fcn.004036c0
xor eax, eax
mov dword [ebp - 0x858], 1
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x84c]
mov dword [ebp - 0x838], 7
mov dword [ebp - 0x83c], 0
mov word [ebp - 0x84c], ax
call fcn.00402ed0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x84c]
mov ebx, dword [ebp - 0x838]
lea ecx, [ebp - 0x84c]
mov edx, dword [ebp - 0x84c]
cmp ebx, 8
cmovae eax, edx
cmovae ecx, edx
mov dword [ebp - 0x850], eax
mov eax, dword [ebp - 0x83c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x84c]
cmovae ecx, edx
cmp ecx, eax
je 0x402652
push fcn.0052db0b
push dword [ebp - 0x850]
mov edx, ecx
lea ecx, [ebp - 0x850]
push eax
call fcn.004042f0
mov ebx, dword [ebp - 0x838]
add esp, 0xc
mov edx, dword [ebp - 0x84c]
mov eax, dword [esi]
mov esi, dword [eax]
cmp esi, eax
je 0x4026c7
mov ebx, dword [ebp - 0x854]
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x10]
push eax
push edi
lea eax, [ebp - 0x84c]
push eax
call fcn.00402730
cmp byte [esi + 0xd], 0
jne 0x4026b7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40269c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4026b7
mov edi, edi
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x402690
jmp 0x4026b7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4026b5
cmp esi, dword [eax + 8]
jne 0x4026b5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4026a5
mov esi, eax
cmp esi, dword [ebx]
jne 0x402660
mov ebx, dword [ebp - 0x838]
mov edx, dword [ebp - 0x84c]
cmp ebx, 8
jb 0x4026d5
push edx
call fcn.00407eec
add esp, 4
xor eax, eax
mov dword [ebp - 0x838], 7
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x83c], 0
mov word [ebp - 0x84c], ax
jb 0x402703
push dword [ebp + 0xc]
call fcn.00407eec
add esp, 4
mov eax, edi
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.0052d978
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4027a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bc7b
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5c41c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x113]
push 0x103
push 0
push eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x120], 0x104
mov dword [ebp - 0x124], 3
mov byte [ebp - 0x114], 0
call fcn.0052f810
add esp, 0xc
call fcn.004081fd
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x402827
push 0x80004005
call fcn.00404dc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.Control_PanelAppearance
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402892
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push str.SchemeLangID
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 0x114]
push eax
movzx eax, byte [ebp - 0x113]
push eax
lea eax, [ebp - 0x118]
push str._02X_02X
push eax
call fcn.00404d80
mov esi, dword [ebp - 0x118]
xor eax, eax
mov dword [edi + 0x14], 7
add esp, 0x10
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [esi], ax
jne 0x4028d8
xor ecx, ecx
jmp 0x4028ef
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4028e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004036c0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402919
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052d978
mov esp, ebp
pop ebp
ret 4
Function at 0x402a30
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c41c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0x100
call fcn.0052f810
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402aca
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push str.Common_Desktop
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x204], ax
jne 0x402aea
xor ecx, ecx
jmp 0x402b02
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402af3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x204]
mov ecx, esi
push eax
call fcn.004036c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0052d978
mov esp, ebp
pop ebp
ret 4

Function at 0x402b30
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c41c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0x100
call fcn.0052f810
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402bca
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push str.Common_Startup
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x204], ax
jne 0x402bea
xor ecx, ecx
jmp 0x402c02
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402bf3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x204]
mov ecx, esi
push eax
call fcn.004036c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0052d978
mov esp, ebp
pop ebp
ret 4