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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, 0x200
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00492f10
and dword [ebp - 0xc], 0
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
call fcn.0043b675
cmp eax, esi
pop ecx
pop ecx
jl 0x44a840
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x44a843
mov dword [ebp - 8], esi
lea eax, [esi + esi + 0x200]
push eax
lea ecx, [ebp - 4]
call fcn.0043dc74
mov edi, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
add edi, 0x200
push dword [ebp + 0xc]
and edi, 0xfffffe00
push dword [ebp + 8]
lea ebx, [edi + esi]
call fcn.0043908b
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x44a91e
cmp edx, dword [ebp + 0x10]
jne 0x44a91e
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x44a91e
push esi
push ebx
push edi
call fcn.004128b6
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x44a8c6
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x1ce]
push eax
call fcn.004128b6
add esp, 0xc
dec esi
push 0
push dword [ebp + 0x10]
neg esi
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xffff55ab
add esi, 0xaa55
mov word [ebx + 0x1fe], si
call fcn.0043908b
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x44a91e
cmp edx, dword [ebp + 0x10]
jne 0x44a91e
push dword [ebp - 8]
push ebx
push edi
call fcn.0043e050
add esp, 0xc
test eax, eax
jne 0x44a91e
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea ecx, [ebp - 4]
call fcn.00437e1a
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x44ae0c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x134
mov ecx, edi
call fcn.0043ddc3
push 0xca
lea ecx, [ebp - 0x10]
call fcn.0043dd9c
mov eax, dword [ebp + 0x18]
movzx esi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov edi, dword [edi]
test esi, esi
sete bl
neg esi
sbb esi, esi
and esi, 0x19
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov byte [ebp + 0x1b], 0
lea ebx, [ebx + ebx - 1]
mov edx, esi
je 0x44aee1
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x44aee1
and dword [ebp - 4], 0xfffffffc
jmp 0x44aee1
test edx, edx
jl 0x44aee6
xor eax, eax
mov ecx, edx
inc eax
shl eax, cl
movsx esi, bl
mov cl, dl
add edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
add cl, 0x41
test edx, eax
mov byte [ebp + 0x17], cl
je 0x44aede
cmp dword [ebp - 8], 0
je 0x44aeb0
movsx ax, cl
push eax
call fcn.00492567
test eax, eax
pop ecx
je 0x44aede
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x44aec4
mov ax, word [ebp + 0xc]
test ax, ax
je 0x44aec4
mov word [edi], ax
inc edi
inc edi
movsx ax, cl
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0x1b], 1
je 0x44aede
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x44ae76
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00437e1a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x44b0fb
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x44b13e
push esi
push 0xd
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov esi, eax
test esi, esi
je 0x44b137
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push eax
mov ecx, edi
call fcn.004464ff
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.DLL_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x44b97b
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.0043dc74
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 0x44b9f6
mov dword [ebp + 0x18], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x14], ebx
jl 0x44bae9
jle 0x44bae0
cmp dword [ebp + 0x18], ebx
jne 0x44ba1c
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x44ba1c
jg 0x44b9f2
cmp dword [ebp + 0x10], eax
jbe 0x44ba1c
xor cl, cl
jmp 0x44ba1e
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.004951f0
mov dword [ebp - 8], eax
jmp 0x44b9ce
mov cl, 1
cmp dword [ebp + 0x14], ebx
jl 0x44ba35
jg 0x44ba2e
cmp dword [ebp + 0x10], 0x10000000
jbe 0x44ba35
mov esi, 0x10000000
jmp 0x44ba38
mov esi, dword [ebp + 0x10]
cmp cl, bl
mov edx, dword [ebp + 0xc]
mov eax, esi
je 0x44baac
movzx esi, word [ebp + 0x1c]
sub esi, dword [ebp + 0x18]
cmp ebx, dword [ebp + 0x14]
jl 0x44ba57
jg 0x44ba54
cmp esi, dword [ebp + 0x10]
jbe 0x44ba57
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0043908b
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.004128b6
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0043908b
movzx eax, word [ebp + 0x1c]
add esp, 0x1c
mov edx, edi
jmp 0x44bab6
cmp dword [ebp + 0x1c], ebx
je 0x44bab6
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 0x44b9dd
jl 0x44bae9
cmp dword [ebp + 0x10], ebx
ja 0x44b9dd
lea ecx, [ebp - 0xc]
call fcn.00437e1a
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c8eb
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x44c903
test byte [ecx + 9], 0xf
jne 0x44c903
pop ebp
jmp fcn.0044c7f3
pop ebp
jmp fcn.0044bafc

Function at 0x44c909
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 0x44c9cc
cmp esi, edi
je 0x44c92f
mov dword [ebp - 4], esi
jmp 0x44c935
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax], di
mov esi, eax
je 0x44c9c5
push ebx
mov ebx, esi
jmp 0x44c94b
cmp ax, 0x3d
je 0x44c955
inc esi
inc esi
mov ax, word [esi]
cmp ax, di
jne 0x44c945
cmp dword [ebp + 0xc], edi
je 0x44c972
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.004130ae
jmp 0x44c9b5
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.004464b4
mov ecx, dword [ebp - 4]
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 8]
call fcn.0040f3c5
test eax, eax
jne 0x44c9a7
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea eax, [esi + 2]
push eax
push ebx
call fcn.004130ae
lea ecx, [ebp - 8]
call fcn.00437e1a
xor edi, edi
jmp 0x44c9b5
inc esi
inc esi
cmp word [esi], di
jne 0x44c9b3
inc esi
inc esi
cmp word [esi], di
jne 0x44c941
mov eax, dword [ebp - 0xc]
pop ebx
push eax
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
pop edi
pop esi
leave
ret
Function at 0x44cce4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00445ad2
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x44cd5e
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 0x44cd4e
cmp ebx, 2
je 0x44cd5e
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4c0fb8
call fcn.0044a03b
pop ebx
leave
ret
Function at 0x44d8ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x44d956
cmp dword [ebp + 0xc], edi
jne 0x44d8d7
mov eax, 0x80070057
jmp 0x44da4a
cmp dword [0x4c1368], edi
jle 0x44da48
push edi
push 0x8000080
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44d918
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, edi
jne 0x44da4a
jmp 0x44da72
push edi
lea eax, [ebp + 8]
push eax
push dword [0x4c1368]
push dword [0x4c1b68]
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4c1b68]
cmp eax, edi
mov dword [0x4c1368], edi
je 0x44d94b
call fcn.00437e03
mov dword [0x4c1b68], edi
jmp 0x44da48
cmp dword [ebp + 0x10], edi
je 0x44da63
push dword [ebp + 0x10]
call fcn.00413918
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x44da72
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sub esi, dword [ebx]
sub eax, dword [ebx + 4]
cmp esi, edi
mov dword [ebp - 0x10], eax
jle 0x44da4f
cmp eax, edi
jle 0x44da4f
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [0x4c0e4c]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [0x4c0e50]
cmp esi, dword [ebp - 8]
jne 0x44d9c2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x44da4f
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.0043d6c9
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x44da72
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], edi
call dword [0x4c0e28]
push 2
push dword [ebp + 8]
call dword [0x4c0e5c]
push dword [ebp - 0x10]
push esi
push edi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x4c0e2c]
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]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.0044d566
add esp, 0xc
cmp ebx, edi
mov esi, eax
je 0x44da3a
push ebx
call dword [sym.imp.GDI32.DLL_DeleteObject]
cmp dword [ebp - 4], edi
je 0x44da48
push dword [ebp - 4]
call dword [fcn.004c0e24]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push 1
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0044d566
add esp, 0xc
mov esi, eax
jmp 0x44da3a
push edi
push ebx
call fcn.0043d6c9
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
jne 0x44da20
xor eax, eax
inc eax
jmp 0x44da4a
Function at 0x45fd8e
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043ff76
lea eax, [ebp + 8]
push eax
call fcn.00437e65
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.0043dd9c
push 0x14
lea ecx, [ebp - 4]
call fcn.0043dd9c
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4afda0
mov dword [ebp - 8], edi
call fcn.0043fbfd
add esp, 0xc
push 1
push 0x2c
pop esi
movzx ebx, al
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044edb8
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.004408ab
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x45fe22
add dword [ebp + 8], 2
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044edb8
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004408ab
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x45fe4b
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 8]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044edb8
push eax
call fcn.00440af8
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x45fe5d
mov esi, 0x80070057
jmp 0x45ff34
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x45fe6e
cmp ebx, edi
jne 0x45fe6e
cmp word [eax], di
je 0x45fe53
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.0043ddc3
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x10], edi
call fcn.0041161a
push dword [ebp - 0xc]
mov edi, eax
call fcn.0041161a
pop ecx
pop ecx
xor ecx, ecx
cmp ebx, ecx
mov dword [ebp + 8], eax
jne 0x45febb
cmp dword [ebp - 8], ecx
jne 0x45febb
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateHardLinkW]
jmp 0x45fede
cmp dword [ebp - 8], 2
je 0x45fee6
cmp ebx, ecx
jne 0x45fee6
push edi
call fcn.004925aa
neg eax
sbb eax, eax
neg eax
push eax
push edi
push dword [ebp + 8]
call fcn.0043bf14
add esp, 0x10
test eax, eax
je 0x45ff2c
xor eax, eax
jmp 0x45ff32
cmp word [edi], cx
jne 0x45fef4
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x45fede
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.0043e52f
push esi
push dword [ebp + 8]
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.0043be10
add esp, 0x18
jmp 0x45fede
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
lea ecx, [ebp - 4]
call fcn.00437e1a
lea ecx, [ebp - 0xc]
call fcn.00437e1a
lea ecx, [ebp - 0x1c]
call fcn.00437e1a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x45ff55
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 0x46007e
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0043dd9c
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x460076
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 0x460066
cmp word [edi], si
je 0x460066
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.00446497
push 0x4a754c
lea ecx, [ebp - 4]
call fcn.0043ddea
push edi
lea ecx, [ebp - 4]
call fcn.0043ddea
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 [0x4c0bc8]
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 0x46005e
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0045ff55
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x46005e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.00437e1a
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x45ffac
pop edi
lea ecx, [ebp - 0x18]
call fcn.00437e1a
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x46b7d2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
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 0x46b802
mov esi, eax
xor eax, eax
xor edx, edx
cmp dword [ebp + 0x24], edx
mov ecx, 0xba
lea edi, [ebp - 0x2f8]
mov dword [ebp - 0x2fc], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 0x288], pe_nt_image_headers32
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xcc], edx
je 0x46b856
mov dword [ebp - 0xcc], 0x40000000
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2e4], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x25c]
push eax
call fcn.004128b6
and word [ebp + esi*2 - 0x25c], 0
add esp, 0xc
mov esi, 0x4c175c
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x4c0bcc
push 0x10000
lea eax, [ebp - 0x2fc]
push eax
push 0x46adf5
push 0x20000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x46b8e6
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp + 0x24], 0x270f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x260], eax
jne 0x46b8e6
push 0
call edi
dec dword [ebp + 0x24]
jns 0x46b8c1
jmp 0x46b8db
push 1
call edi
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x260], eax
je 0x46b8d7
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 0x46b91c
cmp esi, edi
je 0x46b927
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x14]
mov ecx, 0x4c0fb8
call fcn.00413b53
cmp esi, edi
je 0x46b927
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
movzx eax, byte [ebp - 0xcc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46f769
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4c1b94
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.0044ddce
mov ebp, dword [sym.imp.USER32.DLL_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x46f7ae
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.DLL_GetWindowLongW]
test eax, 0x10000000
je 0x46f7ae
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 0x46f7c2
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x46f7da
push 1
push edi
call fcn.00491854
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x486545
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.DLL_CryptAcquireContextW]
test eax, eax
jne 0x486570
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x48665c
push esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptCreateHash]
test eax, eax
jne 0x4865a0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov eax, esi
jmp 0x48665b
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_CryptHashData]
test eax, eax
jne 0x4865c7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_CryptDestroyHash]
jmp 0x48658f
mov esi, dword [sym.imp.ADVAPI32.DLL_CryptGetHashParam]
push ebx
push 4
pop eax
push edi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0043dc74
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push dword [ebp - 8]
call esi
mov esi, dword [ebp + 0x18]
push 0x4a75aa
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x48663d
movzx eax, byte [esi + ebx]
push eax
push 0x4aee20
push dword [ebp - 0x10]
call dword [sym.imp.USER32.DLL_wsprintfA]
add dword [ebp - 0x10], 2
add esp, 0xc
inc esi
cmp esi, dword [ebp - 4]
jb 0x48661d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_CryptDestroyHash]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
lea ecx, [ebp - 0x18]
call fcn.00437e1a
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x486bc1
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.0043ddc3
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 0x487a5c
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 0x487ab9
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.DLL_CheckTokenMembership
test eax, eax
jne 0x487ab0
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