joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45524c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
movzx esi, word [ebp + 0x1c]
lea eax, [esi - 1]
cdq
push edi
not eax
not edx
push 0xa0000
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.00444e15
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add edi, 0x20000
xor ebx, ebx
and edi, 0xfffe0000
cmp dword [ebp + 0x1c], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
jne 0x4552c7
mov dword [ebp + 0x18], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x14], ebx
jl 0x4553ba
jle 0x4553b1
cmp dword [ebp + 0x18], ebx
jne 0x4552ed
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x4552ed
jg 0x4552c3
cmp dword [ebp + 0x10], eax
jbe 0x4552ed
xor cl, cl
jmp 0x4552ef
mov eax, dword [ebp + 0x18]
cdq
add eax, ecx
adc edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004b0c20
mov dword [ebp - 8], eax
jmp 0x45529f
mov cl, 1
cmp dword [ebp + 0x14], ebx
jl 0x455306
jg 0x4552ff
cmp dword [ebp + 0x10], 0x10000000
jbe 0x455306
mov esi, 0x10000000
jmp 0x455309
mov esi, dword [ebp + 0x10]
cmp cl, bl
mov edx, dword [ebp + 0xc]
mov eax, esi
je 0x45537d
movzx esi, word [ebp + 0x1c]
sub esi, dword [ebp + 0x18]
cmp ebx, dword [ebp + 0x14]
jl 0x455328
jg 0x455325
cmp esi, dword [ebp + 0x10]
jbe 0x455328
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0043fb25
add esp, 0x10
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [ebp + 0x1c]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
add eax, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.004145c5
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0043fb25
movzx eax, word [ebp + 0x1c]
add esp, 0x1c
mov edx, edi
jmp 0x455387
cmp dword [ebp + 0x1c], ebx
je 0x455387
and esi, dword [ebp - 0x28]
mov eax, esi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp + 0x10], esi
mov dword [ebp + 0x18], ebx
sbb dword [ebp + 0x14], ebx
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], ebx
jg 0x4552ae
jl 0x4553ba
cmp dword [ebp + 0x10], ebx
ja 0x4552ae
lea ecx, [ebp - 0xc]
call fcn.0043e825
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4567e7
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x4567ff
test byte [ecx + 9], 0xf
jne 0x4567ff
pop ebp
jmp fcn.004566ef
pop ebp
jmp fcn.004553cd

Function at 0x456805
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x4568c8
cmp esi, edi
je 0x45682b
mov dword [ebp - 4], esi
jmp 0x456831
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax], di
mov esi, eax
je 0x4568c1
push ebx
mov ebx, esi
jmp 0x456847
cmp ax, 0x3d
je 0x456851
inc esi
inc esi
mov ax, word [esi]
cmp ax, di
jne 0x456841
cmp dword [ebp + 0xc], edi
je 0x45686e
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, ebx
push 0xffffffffffffffff
sar eax, 1
push eax
lea eax, [esi + 2]
push eax
push ebx
call fcn.004151f5
jmp 0x4568b1
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.0044e844
mov ecx, dword [ebp - 4]
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 8]
call fcn.00410e94
test eax, eax
jne 0x4568a3
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea eax, [esi + 2]
push eax
push ebx
call fcn.004151f5
lea ecx, [ebp - 8]
call fcn.0043e825
xor edi, edi
jmp 0x4568b1
inc esi
inc esi
cmp word [esi], di
jne 0x4568af
inc esi
inc esi
cmp word [esi], di
jne 0x45683d
mov eax, dword [ebp - 0xc]
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop edi
pop esi
leave
ret

Function at 0x456b15
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0044e267
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x456b8f
and word [ebp - 0xc], 0
and word [ebp - 2], 0
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x456b7f
cmp ebx, 2
je 0x456b8f
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4dd0f0
call fcn.00452f19
pop ebx
leave
ret
Function at 0x457718
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
xor edi, edi
cmp ebx, esi
mov dword [ebp - 4], esi
jne 0x4577c5
cmp dword [ebp + 0xc], esi
jne 0x457742
mov eax, 0x80070057
jmp 0x4578d0
cmp dword [0x4dd4f0], esi
jle 0x4578ce
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x457783
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x4578d0
jmp 0x457901
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4dd4f0]
push dword [0x4ddd14]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4ddd14]
cmp eax, esi
mov dword [0x4dd4f0], esi
je 0x4578ce
call fcn.0043e748
mov dword [0x4ddd14], esi
jmp 0x4578ce
cmp dword [ebp + 0x10], esi
je 0x4578ec
push esi
push dword [ebp + 0x10]
call fcn.00415b6c
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x457901
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sub edi, dword [ebx]
sub eax, dword [ebx + 4]
cmp edi, esi
mov dword [ebp - 0x10], eax
jle 0x4578d5
cmp eax, esi
jle 0x4578d5
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [0x4dcf04]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [0x4dcf08]
cmp edi, dword [ebp - 8]
jne 0x457833
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x4578d5
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00444703
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x457901
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], esi
call dword [0x4dcf10]
push 2
push dword [ebp + 8]
call dword [0x4dcf18]
push dword [ebp - 0x10]
push edi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x4dcecc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 8], esi
je 0x4578a3
push dword [ebp + 8]
call dword [0x4dcf14]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004573d3
add esp, 0x10
cmp ebx, esi
mov edi, eax
je 0x4578c0
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 4], esi
je 0x4578ce
push dword [ebp - 4]
call dword [0x4dcec8]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 0x14]
push 1
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004573d3
add esp, 0x10
mov edi, eax
jmp 0x4578c0
push str.DISPLAY
push esi
push ebx
call fcn.00444703
mov ebx, eax
add esp, 0xc
cmp ebx, esi
jne 0x4578a3
xor eax, eax
inc eax
jmp 0x4578d0
Function at 0x457906
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
cmp dword [0x4dcf24], edi
mov ebx, ecx
mov dword [ebp - 0xc], ebx
jne 0x457932
push edi
push edi
call fcn.00415b6c
test eax, eax
pop ecx
pop ecx
jne 0x457932
or eax, 0xffffffff
jmp 0x457abe
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], edi
je 0x457943
mov ecx, dword [eax]
jmp 0x457945
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
jne 0x45795b
push 0x64
pop eax
cmp eax, 0x10000
push esi
jge 0x4579a4
mov esi, dword [0x4dcfa8]
movzx eax, ax
push str.IMAGE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x457988
or eax, 0xffffffff
jmp 0x457abd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 8
mov dword [ebp + 0xc], eax
jb 0x457980
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x4579ad
cmp ecx, edi
je 0x4579c8
mov eax, dword [eax]
mov dword [ebp + 0xc], ecx
cmp eax, edi
je 0x457980
lea ecx, [ebx + 0x2c]
push ecx
push dword [ebp + 0xc]
lea esi, [ebx + 0x28]
push eax
call fcn.00443c23
add esp, 0xc
mov dword [esi], eax
jmp 0x4579d3
lea esi, [ebx + 0x28]
push esi
push eax
call dword [0x4dced0]
mov eax, dword [esi]
cmp eax, edi
jne 0x4579e1
push 0xfffffffffffffffe
pop eax
jmp 0x457abd
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], edi
call dword [0x4dcee4]
mov eax, dword [ebp - 8]
shl eax, 4
push eax
lea ecx, [ebp + 8]
call fcn.00444e15
push dword [ebp - 8]
push dword [ebp + 8]
push dword [esi]
call dword [0x4dced4]
lea eax, [ebx + 0xc]
push eax
push dword [ebp + 8]
push dword [esi]
call dword [0x4dcee8]
cmp dword [ebx + 0xc], 1
ja 0x457a29
or edi, 0xffffffff
jmp 0x457ab3
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
mov edi, 0x5100
push edi
push dword [esi]
call dword [0x4dceec]
push dword [ebp - 4]
lea ecx, [ebp + 0xc]
call fcn.00444e15
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push dword [esi]
call dword [0x4dcef0]
mov edi, dword [ebp - 4]
push dword [ebx + 0xc]
add edi, 0xfffffff0
mov ecx, ebx
shr edi, 2
call fcn.0040fa49
xor esi, esi
xor ebx, ebx
test edi, edi
jbe 0x457a91
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + eax*4]
push ebx
shl esi, 1
call fcn.0040fa49
inc ebx
cmp ebx, edi
mov dword [eax], esi
jb 0x457a73
mov edi, dword [ebp - 0xc]
add edi, 0xc
jmp 0x457aa5
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0040fa49
mov dword [eax], esi
inc ebx
cmp ebx, dword [edi]
jb 0x457a99
mov edi, dword [edi]
lea ecx, [ebp + 0xc]
call fcn.0043e825
lea ecx, [ebp + 8]
call fcn.0043e825
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x463a20
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x90
push ebx
push esi
push edi
push 5
pop ecx
mov esi, str.__Volume
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1a
xor eax, eax
pop ecx
lea edi, [ebp - 0xe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x7c]
cmp eax, 4
mov byte [ebp + 0x6b], al
jbe 0x463a5a
mov byte [ebp + 0x6b], 0xff
jmp 0x463a71
lea eax, [ebp - 0x24]
push 1
push dword [ebp + 0x74]
mov dword [ebp + 0x7c], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00442320
add esp, 0xc
mov edi, dword [ebp + 0x78]
mov eax, dword [edi]
xor ebx, ebx
push ebx
push ebx
push edi
push dword [ebp + 0x7c]
mov word [eax], bx
call fcn.004146a6
add esp, 0x10
cmp byte [ebp + 0x6b], bl
jle 0x463bb7
mov eax, dword [edi]
cmp word [eax], bx
jne 0x463bb7
push 0x105
lea ecx, [ebp + 0x64]
call fcn.00444f8a
mov esi, dword [ebp + 0x64]
push 0x103
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp + 0x60], eax
je 0x463bab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
jne 0x463ad9
mov word [eax], bx
lea ecx, [ebp + 0x7c]
mov word [esi + 2], 0x3f
mov dword [ebp + 0x78], ebx
call fcn.00444df8
push ebx
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x7c]
push eax
push esi
push str.SYSTEMMountedDevices
push 0x80000002
call fcn.00449667
add esp, 0x18
cmp dword [ebp + 0x78], 0x18
jne 0x463b3a
push 8
push dword [ebp + 0x7c]
push str.DMIO:ID:
call fcn.0043e88e
add esp, 0xc
test eax, eax
jne 0x463b3a
mov eax, dword [ebp + 0x7c]
push 0x10
add eax, 8
push eax
push dword [ebp + 0x74]
call fcn.0044523e
add esp, 0xc
test eax, eax
jne 0x463b5e
lea ecx, [ebp + 0x7c]
call fcn.0043e825
push 0x103
push esi
push dword [ebp + 0x60]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x463ac5
jmp 0x463b8e
push ebx
push ebx
push edi
push esi
call fcn.004146a6
add esi, 0x14
add esp, 0x10
cmp byte [ebp + 0x6b], 2
mov dword [ebp + 0x5c], esi
jne 0x463b86
push ebx
push dword [ebp + 0x74]
lea eax, [ebp + 0x5c]
push eax
call fcn.00453fac
add esp, 0xc
lea ecx, [ebp + 0x7c]
call fcn.0043e825
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp byte [ebp + 0x6b], 2
jne 0x463ba1
xor eax, eax
jmp 0x463ba9
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebp + 0x64]
call fcn.0043e825
mov eax, ebx
jmp 0x463bd1
cmp byte [ebp + 0x6b], 2
jne 0x463bc9
mov eax, dword [edi]
cmp word [eax], bx
je 0x463bc9
push 2
pop eax
jmp 0x463bd1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x46b714
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x20]
call fcn.0044732d
lea eax, [ebp + 8]
push eax
call fcn.0043e7bd
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.00444f8a
push 0x14
lea ecx, [ebp - 8]
call fcn.00444f8a
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4cbba0
mov dword [ebp - 4], edi
call fcn.00446fac
add esp, 0xc
push 1
push 0x2c
pop esi
movzx ebx, al
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.00458b67
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00447e0d
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x46b7ab
add dword [ebp + 8], 2
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00458b67
push edi
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00447e0d
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x46b7d4
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 4]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00458b67
push eax
call fcn.004480a1
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x46b7e6
mov esi, 0x80070057
jmp 0x46b8f5
cmp dword [ebp - 4], edi
mov eax, dword [ebp - 8]
jne 0x46b7f7
cmp ebx, edi
jne 0x46b7f7
cmp word [eax], di
je 0x46b7dc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 8]
call fcn.00444fb1
mov eax, dword [ebp - 8]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.004132c6
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call fcn.004132c6
pop ecx
pop ecx
mov edi, eax
xor ecx, ecx
cmp word [edi], cx
je 0x46b7dc
cmp dword [ebp - 0x10], ecx
jne 0x46b84e
cmp dword [ebp - 4], ecx
jne 0x46b84e
push ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x46b89e
cmp dword [ebp - 4], 2
je 0x46b8a6
cmp dword [ebp - 0x10], ecx
jne 0x46b8a6
xor esi, esi
test byte [ebp - 4], 0x10
je 0x46b862
inc esi
push edi
call ebx
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x46b876
xor esi, esi
inc esi
and word [eax], 0
test esi, esi
jne 0x46b891
cmp dword [ebp - 4], 3
jne 0x46b891
push dword [ebp + 8]
call fcn.004ade73
mov esi, eax
neg esi
sbb esi, esi
pop ecx
neg esi
push esi
push dword [ebp + 8]
push edi
call fcn.00442b7d
add esp, 0xc
test eax, eax
je 0x46b8ed
xor eax, eax
jmp 0x46b8f3
mov eax, dword [ebp + 8]
cmp word [eax], cx
jne 0x46b8b7
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x46b89e
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [esi + 8]
push ecx
push 0x208
push eax
call fcn.004457e1
push esi
push edi
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.00442a79
add esp, 0x18
jmp 0x46b89e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 8]
call fcn.0043e825
lea ecx, [ebp - 0xc]
call fcn.0043e825
lea ecx, [ebp - 0x20]
call fcn.0043e825
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x46b916
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, esi
jne 0x46ba3f
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00444f8a
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x46ba37
push edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
shl eax, 2
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov word [edi], si
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x46ba27
cmp word [edi], si
je 0x46ba27
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0044e827
push 0x4c27f8
lea ecx, [ebp - 4]
call fcn.00444fd8
push edi
lea ecx, [ebp - 4]
call fcn.00444fd8
push esi
push dword [ebp + 0xc]
push esi
push esi
push 4
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 8]
push eax
movzx eax, word [0x4dcc20]
or eax, 0xf003f
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x46ba1f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0046b916
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x46ba1f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.0043e825
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x46b96d
pop edi
lea ecx, [ebp - 0x18]
call fcn.0043e825
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x47c1e7
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4ddd50
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.00457b79
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x47c22c
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x47c22c
push 0
push edi
inc ebx
call ebp
push dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
test ebx, ebx
je 0x47c240
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x47c258
push 1
push edi
call fcn.004aaefb
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x48469c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, eax
and eax, 2
and ebx, 1
mov dword [ebp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x4846cc
mov esi, eax
xor eax, eax
xor edx, edx
cmp dword [ebp + 0x24], edx
mov ecx, 0xcc
lea edi, [ebp - 0x340]
mov dword [ebp - 0x344], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 0x290], 0x40
mov byte [ebp - 0x24], dl
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd4], edx
je 0x484723
mov dword [ebp - 0xd4], 0x40000000
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x32c], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x264]
push eax
call fcn.004145c5
and word [ebp + esi*2 - 0x264], 0
add esp, 0xc
mov esi, 0x4dd8f4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4dcc24
push 0x10000
lea eax, [ebp - 0x344]
push eax
push 0x483fe5
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x4847b3
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x24], 0x270f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x268], eax
jne 0x4847b3
push 0
call edi
dec dword [ebp + 0x24]
jns 0x48478e
jmp 0x4847a8
push 1
call edi
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x268], eax
je 0x4847a4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0x1c]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
je 0x4847e9
cmp esi, edi
je 0x4847f4
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x14]
mov ecx, 0x4dd0f0
call fcn.004161d8
cmp esi, edi
je 0x4847f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0xd4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49b303
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [esp + 0x10]
mov esi, eax
lea eax, [esi + 2]
push eax
mov ecx, edi
call fcn.00444fb1
mov eax, dword [edi]
and word [eax], 0
mov edi, dword [edi]
inc esi
push esi
push edi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
ret

Function at 0x49c332
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49c38f
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x49c386
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret