joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e56e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x28]
lea ecx, [esi + 8]
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x4f304c
mov dword [esi + 4], eax
call fcn.00457400
push 0xffffffffffffffff
push 0xffffffffffffffff
xor ebx, ebx
lea ecx, [esi + 0xc]
push edi
mov dword [esp + 0x24], ebx
mov dword [ecx], ebx
call fcn.004461b0
mov edx, dword [esp + 0x30]
lea ecx, [esi + 0x10]
push edx
mov byte [esp + 0x1c], 1
call fcn.00457400
mov eax, dword [esp + 0x2c]
lea edi, [esi + 0x14]
push eax
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.00457400
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [edi + 4], ebx
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24

Function at 0x43b200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e56e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x2c]
lea ecx, [esi + 8]
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x4f304c
mov dword [esi + 4], eax
call fcn.00457400
push 0xffffffffffffffff
push 0xffffffffffffffff
xor ebp, ebp
lea ecx, [esi + 0xc]
push edi
mov dword [esp + 0x28], ebp
mov dword [ecx], ebp
call fcn.004461b0
mov edx, dword [esp + 0x34]
lea ecx, [esi + 0x10]
push edx
mov byte [esp + 0x20], 1
call fcn.00457400
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edi, [esi + 0x14]
push eax
mov ecx, edi
mov byte [esp + 0x20], 2
call fcn.00457400
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [edi + 4], ebx
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebp
pop edi
mov dword [esi + 0x3c], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x43f210
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x43f310
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x43f330
mov al, byte [0x519468]
and al, 0xfb
push 4
push str.SeDebugPrivilege
mov byte [0x519468], al
call fcn.00420c19
add esp, 8
ret

Function at 0x440200
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ax, word [0x518dc4]
test ax, ax
jne 0x440232
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [0x519004]
pop ecx
ret
push 0
movzx edx, ax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push 0
or edx, 0x20019
push edx
push 0
push 0
push 0
push eax
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x440299
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4402a0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ax, word [0x518dc4]
test ax, ax
jne 0x4402d2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [0x519290]
pop ecx
ret
push 0
movzx edx, ax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push 0
or edx, 0x20006
push edx
push 0
push 0
push 0
push eax
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x440339
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x440340
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ax, word [0x518dc4]
test ax, ax
jne 0x440363
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call dword [0x519294]
pop ecx
ret
movzx edx, ax
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
or edx, 2
push edx
push 0
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4403ac
mov edx, dword [esp + 0x10]
mov eax, dword [esp]
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4418e0
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
je 0x441911
mov eax, dword [ecx]
cmp eax, 1
je 0x4418ef
test eax, eax
jne 0x441911
neg eax
sbb eax, eax
and eax, 0xffffffc0
add eax, 0x80
or eax, 0x17
push eax
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
ret
mov eax, dword [ecx]
test eax, eax
mov edx, 5
jge 0x441934
mov dword [ecx], 0
mov eax, dword [ecx]
mov edx, dword [eax*4 + 0x4f4210]
push edx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
ret
cmp eax, 0xd
jae 0x441942
mov eax, dword [ecx]
mov edx, dword [eax*4 + 0x4f4210]
push edx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x441f50
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x1c
xor eax, eax
push ebx
mov dword [esp + 0x10], eax
xor ecx, ecx
push edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
push str.Shell_TrayWnd
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
dec eax
dec ebx
inc edi
cmp edi, eax
mov dword [esp + 8], eax
jge 0x441ff0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [esp + 0x20]
inc esi
cmp esi, ebx
jge 0x441fe7
lea esp, [esp]
push esi
push edi
call dword [sym.imp.USER32.dll_SetCursorPos]
push 0
call ebp
add esi, 4
cmp esi, ebx
jl 0x441fd0
mov eax, dword [esp + 0x10]
add edi, 4
cmp edi, eax
jl 0x441fc3
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetCursorPos]
pop edi
pop ebx
add esp, 0x1c
ret

Function at 0x442360
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, ecx
jne 0x442370
lea edi, [esp + 0x14]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x4423a7
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x1000
push edx
push eax
mov dword [esi + 8], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], ecx
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x4423d1
mov ecx, dword [esi + 4]
lea edx, [eax + 1]
mov dword [esi + 8], edx
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0xc]
mov byte [eax], dl
mov dword [edi], 1
pop edi
mov eax, 1
pop esi
ret 0xc
mov dword [edi], 0
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x442430
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
inc dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
lea ecx, [eax + 1]
mov dword [esi + 0xc], ecx
mov cl, byte [esp + 8]
mov byte [eax + edx], cl
mov eax, dword [esi + 0xc]
cmp eax, 0x1000
jl 0x442470
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0xc], 0
mov eax, 1
pop esi
ret 4

Function at 0x442720
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
mov byte [esp + 0xb], 0x41
je 0x442763
mov esi, dword [esp + 0x10]
test bl, 1
je 0x442753
movsx ax, byte [esp + 0xb]
push esi
mov word [esi], ax
call fcn.004abec0
add esp, 4
test eax, eax
jne 0x44276a
mov cl, byte [esp + 0xb]
shr ebx, 1
inc cl
test ebx, ebx
mov byte [esp + 0xb], cl
jne 0x442738
pop esi
xor ax, ax
pop ebx
pop ecx
ret
movzx ax, byte [esp + 0xb]
pop esi
pop ebx
pop ecx
ret

Function at 0x4428f0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
xor edi, edi
push edi
lea eax, [esp + 0xc]
push eax
push 8
lea ecx, [esp + 0x1c]
push ecx
push edi
push edi
push 0x7405c
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call ebp
push edi
lea edx, [esp + 0xc]
push edx
push 0x18
push esi
push edi
push edi
push 0x70000
push ebx
mov dword [esp + 0x2c], eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call ebp
cmp dword [esp + 0xc], edi
je 0x442956
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop ebp
add esp, 0x10
ret
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push edi
push ecx
push edx
push eax
call fcn.004b08b0
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
push ecx
push edx
push eax
call fcn.004b08b0
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x442bd0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
xor eax, eax
push eax
mov dword [ebx], 0
mov ecx, 0x30
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0x100000
push esi
push 0
push 0
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x442c18
pop edi
pop esi
pop ebx
ret
mov edx, dword [esi + 4]
pop edi
mov eax, esi
pop esi
mov dword [ebx], edx
pop ebx
ret
Function at 0x442eb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x442f16
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [eax + eax + 2]
push ebp
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebp
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret

Function at 0x442f20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov edi, ecx
mov ecx, dword [edi]
push 0x40
push 0xc
push ecx
mov dword [esp + 0x1c], 0
lea esi, [edi + 4]
call ebx
lea edx, [esp + 0xc]
push edx
push 0x40
push 0x12
push esi
call ebx
mov ecx, dword [0x4f387c]
mov eax, esi
mov dword [eax], ecx
mov edx, dword [0x4f3880]
mov dword [eax + 4], edx
mov ecx, dword [0x4f3884]
mov dword [eax + 8], ecx
mov edx, dword [0x4f3888]
mov dword [eax + 0xc], edx
mov cx, word [0x4f388c]
mov edx, dword [esp + 0x14]
mov word [eax + 0x10], cx
lea eax, [esi + 0xe]
sub edx, eax
sub edx, 4
mov dword [eax], edx
mov edi, dword [edi + 0x18]
test edi, edi
je 0x442faa
push esi
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x442faa
mov dword [ecx], eax
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x443670
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov esi, edi
mov dword [eax], 0
mov ebp, 0x80
jbe 0x443727
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push ebx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4436e7
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4436d7
test ebp, ebp
jg 0x4436d6
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, esi
add edx, eax
add ebx, eax
mov dword [ecx], edx
sub edi, eax
jmp 0x44371e
dec ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
add edx, eax
add ebx, eax
mov dword [ecx], edx
sub edi, eax
jmp 0x44371e
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x443726
cmp esi, 0x200
jbe 0x443726
cmp edi, 0x200
jbe 0x44371c
add esi, 0x1ff
shr esi, 1
cmp esi, 0x200
jbe 0x44371e
and esi, 0xfffffe00
jmp 0x44371e
mov esi, edi
test edi, edi
ja 0x443695
pop ebx
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
xor ecx, ecx
cmp ecx, esi
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
ret
Function at 0x443810
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
lea eax, [esp]
push eax
mov dword [0x51944c], 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov cl, byte [esp + 0x11]
mov al, 0x80
test al, cl
je 0x44383b
or dword [0x51944c], 2
test byte [esp + 0x10], al
je 0x443848
or dword [0x51944c], 4
test byte [esp + 0x12], al
je 0x443855
or dword [0x51944c], 1
test byte [esp + 0x5b], al
mov ecx, 8
je 0x443866
or dword [0x51944c], ecx
test byte [esp + 0x5c], al
je 0x443872
or dword [0x51944c], ecx
add esp, 0x100
ret
Function at 0x4441a0
Capabilities:
Get disk information via ioctl

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x468
cmp eax, 2
push ebp
jb 0x444379
cmp eax, 3
jbe 0x4441c9
cmp eax, 5
jne 0x444379
mov ebp, 0x4efd88
jmp 0x4441ce
mov ebp, 0x4efd98
push esi
push edi
push 0x12
xor edi, edi
push edi
push edi
push ebp
call dword [0x519040]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4441f0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x468
ret
push ebx
xor ecx, ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x40], ecx
push edi
mov dword [esp + 0x48], ecx
push ebp
mov dword [esp + 0x50], ecx
mov eax, 0x1c
push edi
mov dword [esp + 0x58], ecx
push esi
xor ebx, ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x70], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x444348
jmp 0x444240
xor edi, edi
lea esp, [esp]
lea eax, [esp + 0x5c]
push eax
push ebx
push ebp
push edi
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
push edi
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x24], edi
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push esi
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44432f
cmp eax, 0x400
ja 0x44432f
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x6c]
push eax
push esi
mov dword [esp + 0x90], 6
mov dword [esp + 0x30], 0x1c
call edi
test eax, eax
je 0x44432f
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44432f
push 0
lea edx, [esp + 0x18]
push edx
push 0xc
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0x2d1080
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x444328
mov ecx, dword [esp + 0x47c]
cmp ecx, dword [esp + 0x54]
je 0x44435c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x34]
push edx
inc ebx
push ebx
push ebp
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x444237
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x468
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x2c]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x468
ret
xor eax, eax
pop ebp
add esp, 0x468
ret
Function at 0x444550
Capabilities:
Set environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e5a78
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
xor ecx, ecx
mov cl, byte [esi + 0xb]
push edi
mov edi, dword [esp + 0x18]
mov ax, word [edi]
and ecx, 0xf
cmp ax, 0x26
je 0x4445a6
test ecx, ecx
jne 0x4445a6
test ax, ax
je 0x4445db
mov eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
push 0x5194ec
mov dword [esp + 0x1c], 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.0041e64f
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8

Function at 0x4445f0
Capabilities:
Set environment variable

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call fcn.00444550
push esi
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
pop esi
ret 8
Function at 0x444a50
Capabilities:
Read file via mapping

Disassembly:
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
push edi
push edx
add eax, ebx
push eax
mov eax, dword [esp + 0x1c]
adc ecx, ebp
push ecx
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
jne 0x444a8c
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push ebx
and esi, 4
push ebp
or esi, 8
shr esi, 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x444e30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push ebx
movzx ebx, ax
mov ecx, eax
and ecx, 0x1000000
test ebx, ebx
mov dword [esp + 8], ecx
jne 0x444e71
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop ebx
add esp, 8
ret
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov al, bl
add edx, esi
xor al, 0xa
xor ebp, ebp
cmp esi, edx
push edi
mov byte [esp + 0x30], al
mov dword [esp + 0x10], edx
jae 0x444f0f
mov edi, dword [esp + 0x28]
jmp 0x444ea0
mov al, byte [esp + 0x30]
mov edx, dword [esp + 0x10]
mov edi, edi
cmp esi, edx
mov ecx, esi
jae 0x444eb3
mov dl, byte [esi]
inc esi
cmp al, dl
je 0x444eb3
cmp esi, dword [esp + 0x10]
jb 0x444ea6
cmp ecx, esi
mov eax, ecx
jae 0x444ec7
lea esp, [esp]
xor byte [eax], bl
inc eax
cmp eax, esi
jb 0x444ec0
mov eax, dword [esp + 0x2c]
sub eax, ebp
push eax
mov eax, dword [esp + 0x20]
push edi
mov edx, esi
sub edx, ecx
push edx
push ecx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x444ef8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x444f09
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
add ebp, eax
dec eax
js 0x444f09
inc eax
mov edi, edi
xor word [edi], bx
add edi, 2
dec eax
jne 0x444f00
cmp esi, dword [esp + 0x10]
jb 0x444e96
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
Function at 0x445890
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 4]
add esp, 8
ret

Function at 0x445f00
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
add ebp, 8
mov eax, dword [0x51927c]
push ebp
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x445f49
push 5
push 0x4f49d8
push 0x4f49e4
push eax
call edi
cmp eax, 4
je 0x445f17
cmp eax, 5
je 0x445f49
push 8
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 4], 0xaa55
mov dword [esi], ecx
lea eax, [esi + 8]
pop esi
pop ebp
pop ebx
ret

Function at 0x446c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push edi
mov edi, dword [esp + 0x214]
cmp word [edi], 0x7a
jbe 0x446cf7
cmp word [edi + 2], 0x3a
jne 0x446cf7
cmp word [edi + 4], 0
jne 0x446cf7
mov eax, dword [esp + 0x220]
test eax, eax
mov word [esp + 4], 0
je 0x446c56
mov dword [eax], 0
push esi
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov cx, word [edi]
cmp cx, word [esp + 8]
jne 0x446cba
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
cmp esi, 4
jbe 0x446cba
cmp dword [esp + 0x21c], esi
jae 0x446c98
mov eax, esi
pop esi
pop edi
add esp, 0x20c
ret
mov ecx, dword [esp + 0x220]
push esi
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.004acbce
add esp, 0xc
lea eax, [esi - 1]
pop esi
pop edi
add esp, 0x20c
ret
mov ecx, dword [esp + 0x21c]
mov eax, 4
cmp ecx, eax
jb 0x446c8f
mov dx, word [edi]
mov eax, dword [esp + 0x220]
pop esi
mov word [eax], dx
mov word [eax + 2], 0x3a
mov word [eax + 4], 0x5c
mov word [eax + 6], 0
mov eax, 3
pop edi
add esp, 0x20c
ret
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 0x218]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
pop edi
add esp, 0x20c
ret