joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x4b3038], bl
jne 0x44f4ce
lea eax, [ebp - 8]
mov byte [0x4b3038], 1
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
call sub.gdiplus.dll_GdiplusStartup
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
je 0x44f50d
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x44f60e
lea eax, [ebp - 4]
mov dword [esi], 0x402118
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
jmp 0x44f610
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44f5ef
cmp eax, 2
je 0x44f5ef
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.00450801
mov edi, dword [ebp - 0x10]
test al, al
je 0x44f597
push dword [ebp - 0xc]
push dword [0x4b7114]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x44f597
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.0048df60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 1
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x44f5a9
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x44f5a2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x44f636
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x44f5d7
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [esi], 0x402118
mov dword [ebp - 0xc], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
jmp 0x44f5d9
mov esi, ebx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
je 0x44f610
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x44f610
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x44f60e
push dword [ebp + 8]
mov ecx, eax
push dword [0x4b7114]
call fcn.0044eaba
mov esi, eax
jmp 0x44f610
mov esi, ebx
test esi, esi
je 0x44f5a2
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x44f62b
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450551
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push ebx
push 0xb
push ebx
lea edi, [esi + 4]
mov ecx, edi
call fcn.004508d9
push ebx
push ecx
mov eax, esp
push ebx
push ebx
push ebx
push ecx
mov dword [eax], ebx
lea ecx, [esi + 0x24]
mov eax, esp
mov dword [eax], ebx
push dword [edi]
call fcn.0044f912
push dword [esi + 0x28]
mov ecx, esi
call fcn.00451e22
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
test byte [esi + 0x50], 1
push ebx
pop ecx
cmovne eax, ecx
mov dword [esi + 0x4c], eax
xor eax, eax
push 0x256
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x256]
push ebx
push eax
call fcn.00448cc7
add esp, 0xc
lea eax, [ebp - 0x258]
push 0x12b
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4505f6
lea eax, [ebp - 0x258]
mov ecx, esi
push eax
call fcn.00451e22
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x45060b
push 3
pop eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x58], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450ea7
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esi + 0x2fc]
test ecx, ecx
je 0x450eeb
call fcn.00452cd4
mov ecx, dword [esi + 0x2fc]
call fcn.00453251
mov ecx, dword [esi + 0x2fc]
call fcn.00452be3
xor eax, eax
pop esi
ret 0x10

Function at 0x45953a
Capabilities:
Hide graphical window

Disassembly:
push esi
push 5
push dword [ecx + 4]
jmp 0x45954e
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x459542
pop esi
ret
Function at 0x4598ea
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x58]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x459936
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
jmp 0x459961
shr ecx, 2
test cl, 1
je 0x459969
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov ecx, eax
movzx eax, si
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x459998
push 1
xor esi, esi
push esi
push esi
push dword [edi + 0x28]
push 0x40382c
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x459998
or byte [edi + 0x5c], 2
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459eb1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x7fe
mov word [ebp - 0x834], ax
mov esi, ecx
lea eax, [ebp - 0x832]
push ebx
push eax
call fcn.00448cc7
add esp, 0xc
lea eax, [ebp - 0x834]
push 0x400
push eax
push dword [esi + 0x68c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x834]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00418f70
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00461ab8
add esp, 0xc
lea ecx, [ebp - 0x34]
xor edi, edi
inc edi
push ebx
push edi
call fcn.00419f60
mov eax, dword [ebp - 4]
test eax, eax
jne 0x459f49
mov dword [esi + 0x6b4], ebx
jmp 0x459f64
cmp eax, edi
jne 0x459f59
mov dword [esi + 0x6b4], 3
jmp 0x459f64
cmp eax, 2
jne 0x459f64
mov dword [esi + 0x6b4], edi
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [esi + 0x694]
push dword [esi + 4]
call fcn.00463e6c
lea eax, [ebp - 0x834]
push eax
call fcn.00416740
add esp, 0x10
lea ecx, [esi + 0x6bc]
push eax
lea eax, [ebp - 0x834]
push eax
call fcn.0041a8b0
mov ecx, esi
call fcn.004599a1
push ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00419f60
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x461544
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push ebx
push esi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00417ce0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00418f20
lea ecx, [ebp - 0x34]
call fcn.00419080
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.00418870
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 7
lea ecx, [ebp - 0x34]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
push 0xffffffffffffffff
cmp word [eax], 0x22
jne 0x4615ad
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x3c]
add eax, 2
push eax
jmp 0x4615b6
push dword [ebp - 0x3c]
xor eax, eax
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x1c]
push eax
call fcn.00419cb0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00419040
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00419f60
lea eax, [ebp - 0x1c]
push eax
push 3
push eax
call fcn.0042b1e0
call fcn.004613e5
push 0x38
mov esi, eax
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00448cc7
add esp, 0x18
mov dword [ebp - 0x88], 0x3c
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x84], 0x40
cmovae eax, dword [ebp - 0x4c]
cmp dword [ebp - 8], 8
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x412cf4
mov dword [ebp - 0x6c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
jne 0x46167b
push 0xffffffffffffffff
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x46167b
mov ecx, dword [ebp + 0xc]
mov bl, 1
test ecx, ecx
je 0x46167b
mov eax, dword [ebp - 4]
mov dword [ecx], eax
test esi, esi
je 0x461686
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00419f60
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00419f60
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4619a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push esi
push eax
call fcn.00448cc7
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0048f62c
add esp, 0x18
cmp word [ebp - 0x21e], 0x3a
jne 0x4619fb
cmp word [ebp - 0x21c], 0x5c
jne 0x4619fb
xor eax, eax
mov word [ebp - 0x21a], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop esi
test eax, eax
je 0x461a83
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.004911ce
movss xmm1, dword [0x404d48]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm1
mulss xmm0, xmm1
movss dword [eax], xmm0
call fcn.004911ce
movss xmm1, dword [0x404d48]
mov eax, dword [ebp + 0x10]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm1
mulss xmm0, xmm1
movss dword [eax], xmm0
mov al, 1
jmp 0x461a8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x462018
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push dword [ebp + 0xc]
push ebx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x400
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x46208e
push 0x104
lea eax, [ebp - 0x244]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x462081
lea eax, [ebp - 0x244]
push eax
call fcn.00416740
pop ecx
push eax
lea eax, [ebp - 0x244]
mov ecx, esi
push eax
call fcn.0041ba30
jmp 0x462087
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x10], ebx
je 0x46210a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x5c
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0042ec30
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, 0xffffffe8
cmp esi, eax
je 0x4620c0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00419cb0
push 0x412bf4
lea ecx, [ebp - 0x3c]
call fcn.00418f70
push 0x404c1c
lea ecx, [ebp - 0x24]
call fcn.00418f70
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
call fcn.0042b2c0
add esp, 0x10
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.00419f60
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.00419f60
lea ecx, [ebp - 0xc]
call fcn.0041a100
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462113
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push edi
push 0
push 2
or edi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov esi, eax
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.00448cc7
add esp, 0xc
mov dword [ebp - 0x22c], 0x22c
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x462183
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x224], ebx
je 0x46217c
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x462161
jmp 0x462182
mov edi, dword [ebp - 0x214]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x463193
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4631a1
mov eax, dword [eax]
push 1
push 0
push eax
push 0x404a38
push 0x40382c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret

Function at 0x463d14
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 5
push dword [ebp + 8]
jmp 0x463d2b
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x463d1f
pop esi
pop ebp
ret
Function at 0x46756e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x4675a9
test al, 8
jne 0x4675a9
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4675a9
or byte [esi + 0xc], 4
mov cl, byte [esi + 0xc]
test eax, 0x21000000
jne 0x4675a9
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x4675c6
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.004675d6
jmp 0x4675d1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x469bc1
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ebx
cmp dword [eax + 0x10], ebx
jne 0x469bec
xor al, al
jmp 0x469cff
cmp dword [eax + 0x14], 8
jb 0x469bf4
mov eax, dword [eax]
movzx eax, word [eax]
push esi
push edi
mov esi, 0x4051e4
lea edi, [ebp - 0x14]
push ebx
push ebx
push 3
movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x4c], esi
cmp esi, 0xffffffff
jne 0x469c2d
xor al, al
jmp 0x469cfd
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push 0x28
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], ebx
push eax
push 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push eax
push 0x2d1400
push esi
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x469c66
mov edi, dword [ebp - 0x2c]
jmp 0x469cee
call fcn.0041f500
cmp eax, 2
jg 0x469cde
push 4
pop ebx
push 2
push 0x93
push 0x405168
lea ecx, [ebp - 0x104]
call fcn.0041f5a0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4051f4
push dword [ebp - 0x50]
lea eax, [ebp - 0x14]
push 0x405220
push eax
lea eax, [esi + 8]
push 0x405230
push eax
call fcn.0041b5a0
pop ecx
pop ecx
push eax
call fcn.0041fe10
pop ecx
pop ecx
push eax
call fcn.0041b5a0
pop ecx
pop ecx
push eax
call fcn.0041cd70
pop ecx
pop ecx
push eax
call fcn.0041b5a0
pop ecx
pop ecx
mov ecx, eax
call fcn.00420020
mov esi, dword [ebp - 0x4c]
test bl, 4
je 0x469cee
lea ecx, [ebp - 0x104]
call fcn.0041f5f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, 7
sete al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00491511
mov esp, ebp
pop ebp
ret
Function at 0x46a921
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.0048e9a0
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
mov esi, edi
push esi
lea eax, [ebp - 0x104]
push 0x405444
push eax
call fcn.0048e8c0
add esp, 0xc
lea eax, [ebp - 0x104]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37c8], eax
cmp eax, 0xffffffff
je 0x46ab0a
mov dword [ebp - 0x37c4], edi
xor eax, eax
lea edi, [ebp - 0x37c0]
stosd dword es:[edi], eax
push 0x2710
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x33cc]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x37c0], edi
mov dword [ebp - 0x37bc], edi
call fcn.00448cc7
add esp, 0xc
lea eax, [ebp - 0x37c4]
push edi
mov edi, dword [ebp - 0x37c8]
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push 0xc
lea eax, [ebp - 0x37c0]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46ab01
lea eax, [ebp - 0xcbc]
push eax
push 0
push dword [ebp - 0x33c0]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046ab27
lea eax, [ebp - 0x8d4]
push eax
push 0
push dword [ebp - 0x33bc]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046ab27
lea eax, [ebp - 0x37b4]
push eax
push 0
push dword [ebp - 0x33b8]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046ab27
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x33b4]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046ab27
add esp, 0x40
cmp byte [0x4b54e0], 0
jne 0x46aac7
movsx eax, byte [ebp - 0x4ec]
push eax
call fcn.004932f9
pop ecx
test eax, eax
jne 0x46aa81
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.004932f9
pop ecx
test eax, eax
je 0x46aac7
xor eax, eax
cmp byte [ebp - 0x4ec], 0x20
jne 0x46aa97
inc eax
cmp byte [ebp + eax - 0x4ec], 0x20
je 0x46aa8c
lea ecx, [ebp - 0x4ec]
mov edx, 0x4b54e0
add ecx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x46aaa6
xor ecx, ecx
mov al, byte [ebp + ecx - 0x8d4]
mov byte [ecx + 0x4b58e0], al
inc ecx
test al, al
jne 0x46aab2
xor ebx, ebx
inc ebx
push 0x2710
lea eax, [ebp - 0x33cc]
push 0
push eax
call fcn.00448cc7
add esp, 0xc
lea eax, [ebp - 0x37c4]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push ecx
push ecx
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc esi
cmp esi, 0x10
jl 0x46a941
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491511
mov esp, ebp
pop ebp
ret

Function at 0x46ac72
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.00448cc7
and dword [esi + 0x44], 0
add esp, 0xc
and dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
pop esi
ret
Function at 0x46b8ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46b982
push esi
xor ecx, ecx
mov eax, 0x19000
push 2
pop edx
mov dword [ebp - 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048e965
mov esi, eax
mov eax, dword [ebp - 4]
add eax, eax
push eax
push ebx
push esi
call fcn.00448cc7
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
push esi
sbb al, al
lea ebx, [eax + 1]
call fcn.00416740
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.0041a8b0
push esi
call fcn.0048e960
pop ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46baf9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x46bb2c
xor al, al
jmp 0x46bb60
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46bb55
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46c495
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b5f58]
mov ecx, eax
inc eax
mov dword [0x4b5f58], eax
test ecx, ecx
je 0x46c4c0
xor eax, eax
jmp 0x46c546
push ebx
mov ebx, dword [ebp + 8]
mov dword [fcn.0048f292], 0x48f292
mov dword [fcn.0048e888], 0x48e888
mov dword [fcn.00494519], 0x494519
mov dword [fcn.004949cb], 0x4949cb
mov dword [fcn.00494a7e], 0x494a7e
test bl, 2
je 0x46c52a
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46c533
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x46c522
shr eax, 8
cmp al, 2
je 0x46c52a
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x46c533
call fcn.0041deb0
test eax, eax
je 0x46c538
push 2
pop eax
jmp 0x46c545
mov dword [0x4b5f5c], ebx
call fcn.00477717
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491511
mov esp, ebp
pop ebp
ret