joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401163
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, dword [ebp + 0x10]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 1]
mov byte [ebp - 8], al
mov dword [ebp - 0xc], 0
jmp 0x40118d
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jge 0x401286
mov eax, dword [ebp - 4]
and eax, 0xff
add eax, 1
cdq
mov ecx, 0x20a
idiv ecx
mov byte [ebp - 4], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x437cc0]
xor ecx, ecx
mov cl, byte [eax + edx]
mov eax, ecx
mov edx, dword [ebp - 8]
and edx, 0xff
add eax, edx
cdq
mov ecx, 0x20a
idiv ecx
mov byte [ebp - 8], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [0x437cc0]
add eax, edx
push eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [0x437cc0]
add edx, ecx
push edx
call fcn.0040129c
add esp, 8
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [0x437cc0]
xor edx, edx
mov dl, byte [ecx + eax]
mov eax, edx
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [0x437cc0]
xor ebx, ebx
mov bl, byte [edx + ecx]
add eax, ebx
cdq
mov ecx, 0x20a
idiv ecx
mov byte [ebp - 0x10], dl
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov ecx, dword [0x437cc0]
mov al, byte [eax]
xor al, byte [ecx + edx]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], al
jmp 0x401184
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 8]
mov byte [ecx + 1], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40381d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x40382d
mov al, 1
jmp 0x4038a5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, 1
test eax, eax
je 0x4038a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jb 0x40385b
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
jbe 0x40385d
jmp 0x4038a3
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x403899
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4038a1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403836
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x409911
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x437068
cmp edx, dword [eax]
je 0x409933
add eax, 8
inc ecx
cmp eax, 0x4370f8
jl 0x409924
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x437068]
jne 0x409a61
mov eax, dword [0x439cf0]
cmp eax, 1
je 0x409a3b
test eax, eax
jne 0x409964
cmp dword [0x436ba4], 1
je 0x409a3b
cmp edx, 0xfc
je 0x409a61
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40999b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409b00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405a40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4099de
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405a40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f5ac
push edi
call fcn.0040ad30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409b00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409b10
lea eax, [ebp - 0xa0]
push 0x42f58c
push eax
call fcn.00409b10
push dword [esi + 0x43706c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409b10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ac99
add esp, 0x2c
pop edi
jmp 0x409a61
lea eax, [ebp + 8]
lea esi, [esi + 0x43706c]
push 0
push eax
push dword [esi]
call fcn.00405a40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x411d51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x411d73
cmp dword [edi + 0x3c], 0
jne 0x411d73
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00424bfb
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00411da0
pop edi
pop esi
pop ebx
ret 8

Function at 0x411dee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00424bfb
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411e1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00411e32
pop edi
pop esi
pop ebx
ret 8
Function at 0x100049e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079ebb
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.10037ea0
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x2000
push 0
lea eax, [ebp - 0x2010]
push eax
call fcn.10054b00
add esp, 0xc
lea ecx, [ebp - 0x2018]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x2024], eax
cmp dword [ebp - 0x2024], 0
je 0x10004a50
cmp dword [ebp - 0x2024], 0x1fff
jbe 0x10004a57
xor eax, eax
jmp 0x10004bde
lea eax, [ebp - 0x2010]
push eax
mov ecx, dword [ebp - 0x2024]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10004a7b
xor eax, eax
jmp 0x10004bde
lea eax, [ebp - 0x201c]
push eax
lea ecx, [ebp - 0x2020]
push ecx
push 0x1007ea9c
lea edx, [ebp - 0x2010]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x10004aa5
xor eax, eax
jmp 0x10004bde
cmp dword [ebp + 0x18], 0
je 0x10004abc
mov eax, dword [ebp - 0x2020]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2030], ecx
jmp 0x10004acb
mov edx, dword [ebp - 0x2020]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2030], eax
mov ecx, dword [ebp - 0x2030]
mov dword [ebp - 0x202c], ecx
cmp dword [ebp + 0x18], 0
je 0x10004aee
mov edx, dword [ebp - 0x2020]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2034], eax
jmp 0x10004afd
mov ecx, dword [ebp - 0x2020]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x2034], edx
mov eax, dword [ebp - 0x2034]
mov dword [ebp - 0x2028], eax
cmp dword [ebp + 0xc], 0
je 0x10004b1a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x202c]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
je 0x10004b2b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2028]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x10004bd9
push 4
lea ecx, [ebp - 0x2014]
call fcn.100062d0
lea ecx, [ebp - 0x2014]
call fcn.10002d70
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2028]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x2028]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x202c]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x202c]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push 0x1007eaa0
lea ecx, [ebp - 0x2014]
push ecx
call fcn.100046a0
add esp, 0x18
lea ecx, [ebp - 0x2014]
call fcn.100034b0
push eax
push 0x104
mov edx, dword [ebp + 0x14]
push edx
call fcn.10005990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2014]
call fcn.10003140
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
Function at 0x100050a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
jne 0x100050ea
mov eax, dword [ebp - 0x23c]
jmp 0x100051f1
push 0x22c
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.10054b00
add esp, 0xc
mov dword [ebp - 0x234], 0x22c
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10005139
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
jmp 0x100051f1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
cmp ecx, dword [ebp - 0x22c]
je 0x100051c3
push 4
lea ecx, [ebp - 8]
call fcn.100062d0
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.100065e0
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp + 8]
call fcn.10006730
push eax
lea ecx, [ebp - 8]
call fcn.10003400
movzx ecx, al
test ecx, ecx
je 0x100051b8
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 8]
call fcn.100034b0
mov ecx, eax
call fcn.10003d50
test eax, eax
jne 0x100051ae
mov dword [ebp - 0x23c], 1
jmp 0x100051b8
lea ecx, [ebp - 8]
call fcn.100034c0
jmp 0x10005169
cmp dword [ebp - 0x23c], 0
je 0x100051c3
jmp 0x100051de
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10005145
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret

Function at 0x10005520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x10005533
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10005568
call fcn.100039f0
jmp 0x1000557e
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x1000557c
push 0x26
call fcn.100069b0
add esp, 4
jmp 0x1000557e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret 8
Function at 0x10005de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10005e04
xor eax, eax
jmp 0x10005e84
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10005e1b
xor eax, eax
jmp 0x10005e84
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x10005e67
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x10005e67
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x10005e3e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x10005e73
xor eax, eax
jmp 0x10005e84
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x10005e81
xor eax, eax
jmp 0x10005e84
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1000c1c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.1000c0e0
add esp, 4
test eax, eax
jne 0x1000c1e1
xor eax, eax
jmp 0x1000c1fa
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000c410
add esp, 4
test eax, eax
jne 0x1000c1f5
xor eax, eax
jmp 0x1000c1fa
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1000c410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 1
push 0x10081a40
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1000c43c
jmp 0x1000c4a2
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 4
xor ecx, ecx
mov byte [ebp - 0x11], cl
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push str.AutoRun_Interval
lea ecx, [ebp - 0x11]
call fcn.1000be80
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1000c481
jmp 0x1000c4a2
cmp dword [ebp - 8], 0
jbe 0x1000c49e
cmp dword [ebp - 8], 0x14
jae 0x1000c49e
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.1000c4c0
add esp, 8
mov dword [ebp - 0x18], eax
xor eax, eax
jne 0x1000c427
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret

Function at 0x1000c9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x1000c9b3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000c9f6
mov eax, dword [ebp - 0x10]
jmp 0x1000ca5c
cmp dword [ebp - 8], 1
je 0x1000ca09
cmp dword [ebp - 8], 2
je 0x1000ca09
mov eax, 0xd
jmp 0x1000ca5c
cmp dword [ebp + 0xc], 0
je 0x1000ca50
cmp dword [ebp - 0xc], 0
je 0x1000ca3f
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x1000ca36
mov edx, dword [ebp - 0xc]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x1000ca3d
mov eax, 0xd
jmp 0x1000ca5c
jmp 0x1000ca50
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 0xc]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000d3a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.10037ea0
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x100822d8]
mov word [ebp - 0x4004], ax
push 0x3ffe
push 0
lea ecx, [ebp - 0x4002]
push ecx
call fcn.10054b00
add esp, 0xc
mov dword [ebp - 0x4014], 0
mov dword [ebp - 0x4008], 0
cmp dword [ebp + 8], 0
je 0x1000d3fa
cmp dword [ebp + 0xc], 0
jne 0x1000d401
xor eax, eax
jmp 0x1000d4ff
lea edx, [ebp - 0x4008]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x4014], eax
cmp dword [ebp - 0x4014], 0
je 0x1000d42c
cmp dword [ebp - 0x4014], 0x3fff
jbe 0x1000d433
xor eax, eax
jmp 0x1000d4ff
lea ecx, [ebp - 0x4004]
push ecx
mov edx, dword [ebp - 0x4014]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1000d4fd
lea ecx, [ebp - 0x400c]
push ecx
lea edx, [ebp - 0x4010]
push edx
push 0x100822dc
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1000d4fd
mov ecx, dword [ebp + 0x10]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.10054b00
add esp, 0xc
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x100822e0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000d650
add esp, 0x1c
mov eax, 1
jmp 0x1000d4ff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
Function at 0x1000d760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
jne 0x1000d784
xor al, al
jmp 0x1000d824
cmp dword [ebp + 0xc], 0
jne 0x1000d791
xor al, al
jmp 0x1000d824
cmp dword [ebp + 0x10], 0
jne 0x1000d79e
xor al, al
jmp 0x1000d824
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1000d7b4
xor al, al
jmp 0x1000d824
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
push 0x40
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d7e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
xor al, al
jmp 0x1000d824
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10054000
add esp, 0xc
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d822
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
xor al, al
jmp 0x1000d824
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
Function at 0x1000eea0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a406
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
lea ecx, [ebp - 0x638]
call fcn.100062d0
push 0
lea ecx, [ebp - 0x638]
call fcn.1000b980
mov dword [ebp - 4], 0
push 0x2001f
push 0x10082898
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x638]
call fcn.1000c8f0
mov dword [ebp - 0x644], eax
cmp dword [ebp - 0x644], 0
jne 0x1000f087
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.10054b00
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
push 0x104
lea edx, [ebp - 0x420]
push edx
call fcn.10005990
xor eax, eax
mov byte [ebp - 0x63d], al
lea ecx, [ebp - 0x63d]
call fcn.1000eda0
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 4
lea ecx, [ebp - 0x62c]
call fcn.100062d0
lea ecx, [ebp - 0x62c]
call fcn.10002d70
mov byte [ebp - 4], 1
push str._autorun
lea eax, [ebp - 0x420]
push eax
push str.__s___s
lea ecx, [ebp - 0x62c]
push ecx
call fcn.100046a0
add esp, 0x10
push 0x208
push 0
lea edx, [ebp - 0x628]
push edx
call fcn.10054b00
add esp, 0xc
mov dword [ebp - 0x63c], 0x104
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x628]
push ecx
push str.Bluewhale
lea ecx, [ebp - 0x638]
call fcn.1000c9a0
mov dword [ebp - 0x644], eax
lea edx, [ebp - 0x628]
push edx
lea ecx, [ebp - 0x62c]
call fcn.10003d50
test eax, eax
je 0x1000f054
push 1
lea ecx, [ebp - 0x62c]
call fcn.100034b0
push eax
push str.Bluewhale
lea ecx, [ebp - 0x638]
call fcn.10011580
mov dword [ebp - 0x648], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x62c]
call fcn.10003140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x638]
call fcn.1000bd00
mov eax, dword [ebp - 0x648]
jmp 0x1000f0a9
mov dword [ebp - 0x64c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x638]
call fcn.1000bd00
mov eax, dword [ebp - 0x64c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret

Function at 0x10010de0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ecx + 0x100a5038]
test edx, edx
jne 0x10010e1a
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
push 0x100a5038
push 2
call sub.Secur32.dll_GetUserNameExW
mov eax, 0x100a5038
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret