joyce8/EMBER2024-capa huggingface dataset:
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 [0x4c0e24]
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], 0x40
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 str._02X
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
Function at 0x489305
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x40
push edi
jae 0x489318
xor eax, eax
jmp 0x4894ce
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x48932a
xor eax, eax
jmp 0x4894cd
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x4894ca
add esi, ebx
cmp dword [esi], 0x4550
jne 0x4894ca
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x4894ca
test al, 2
je 0x4894ca
cmp word [esi + 0x14], 0xe0
jne 0x4894ca
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004860d3
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x4894ca
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x4893b2
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x4893ac
cmp esi, dword [ebp + 0xc]
jae 0x4893ac
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x48939e
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x4893ed
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x4894ca
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.0041286c
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add eax, 0xf8
mov dword [edx], eax
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x38]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x54]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
add esp, 0xc
mov esi, eax
imul esi, ebx
add esi, dword [edi]
xor eax, eax
cmp word [ecx + 6], ax
mov dword [ebp - 4], eax
jbe 0x4894c5
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x489450
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x489494
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.0041286c
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp dword [eax + 8], ecx
jae 0x489494
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
lea eax, [ecx + eax - 1]
xor edx, edx
div dword [ebp - 8]
imul eax, dword [ebp - 8]
jmp 0x4894aa
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add dword [ebp + 0xc], 0x28
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x489440
xor eax, eax
inc eax
jmp 0x4894cc
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x48b0f3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x7c]
push 0x132f
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi + 0x70]
mov edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
je 0x48b1ad
test edi, edi
jl 0x48b1ad
cmp edi, dword [esi + 0x78]
jge 0x48b1ad
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x48b145
push 0
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x7c], edi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax]
test eax, eax
je 0x48b15c
push 5
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
je 0x48b170
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x4aecc0
lea ecx, [ebp - 4]
call fcn.00446497
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.0043ddea
push str..Select
lea ecx, [ebp - 4]
call fcn.0043ddea
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.00440266
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00437e1a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x48bf97
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0xfffffffffffffff0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x48bfc2
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x18]
call edi
push 5
push dword [esi + 0x18]
call edi
pop edi
pop esi
ret
Function at 0x492567
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x492585
cmp ax, 0x42
je 0x492585
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x492719
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret