joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d2e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100370a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor esi, esi
push ecx
lea edx, [ebp - 0x218]
or eax, 0x2001f
push edx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.1000d560
mov ebx, eax
cmp ebx, esi
je 0x1000d358
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x1000d343
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x218]
push esi
push esi
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push esi
push eax
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000d3dc
lea esp, [esp]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.1000d2e0
mov ebx, eax
cmp ebx, esi
jne 0x1000d332
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x218]
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
push edx
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000d390
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x1000d3f3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
mov ebx, dword [ebp - 0x220]
mov eax, edi
mov dword [ebp - 0x214], esi
call fcn.1000d430
mov edi, eax
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x1000d419
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013396
mov esp, ebp
pop ebp
ret 4

Function at 0x1000d4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000d54e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1000d51d
cmp eax, 2
jne 0x1000d538
mov eax, dword [ebp - 4]
test esi, esi
je 0x1000d548
test eax, eax
je 0x1000d543
test al, 1
jne 0x1000d538
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x1000d548
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1000e710
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025378
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100370a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x38], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x1000e8ad
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x1000e783
xor eax, eax
lea ecx, [ebp + 8]
call fcn.10004100
mov edx, dword [ebp + 8]
push 0x2c
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1000e79f
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000e8ad
lea ecx, [ebp - 0x3c]
push ecx
push 0x24
lea edx, [ebp - 0x34]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x1000e7c2
push esi
call edi
push ebx
call edi
cmp dword [ebp - 0x30], 1
jne 0x1000e7ce
push esi
call edi
push ebx
call edi
cmp dword [ebp - 0x30], 3
jne 0x1000e847
mov eax, 0xcccccccd
mul dword [ebp - 0x1c]
shr edx, 3
cmp edx, 0x3e8
jae 0x1000e7ee
mov edx, 0x3e8
jmp 0x1000e7fb
cmp edx, 0x2710
jbe 0x1000e7fb
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
push eax
push 0x24
lea ecx, [ebp - 0x34]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1000e81f
push esi
call edi
push ebx
call edi
cmp dword [ebp - 0x30], 1
jne 0x1000e82b
push esi
call edi
push ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x38]
cmp eax, 0x7530
jbe 0x1000e841
push esi
call edi
push ebx
call edi
cmp dword [ebp - 0x30], 3
je 0x1000e7d4
lea edx, [ebp - 0x34]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1000e85e
push esi
call edi
push ebx
call edi
cmp dword [ebp - 0x30], 1
je 0x1000e8ad
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x3c]
push ecx
push 0x24
lea edx, [ebp - 0x34]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1000e88b
push esi
call edi
push ebx
call edi
cmp dword [ebp - 0x30], 1
je 0x1000e8ad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x38]
cmp eax, 0x7530
jbe 0x1000e8a7
push esi
call edi
push ebx
call edi
cmp dword [ebp - 0x30], 1
jne 0x1000e864
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000e8d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret
Function at 0x1000e910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
cmp byte [0x1003a22a], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x1000ea67
push 0x400
push 0
push 0x10039e20
call fcn.100157f0
push 0x800
push 0
push 0x10039620
call fcn.100157f0
push 0x2c
call fcn.100139d0
add esp, 0x1c
test eax, eax
je 0x1000e985
mov ecx, str.HIDE
lea esi, [eax + 4]
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x1000e965
mov dword [eax + 0x28], 3
mov dword [eax + 0x24], 1
mov dword [eax], 0
jmp 0x1000e987
xor eax, eax
push 0xa
push 0x8e
push ebx
mov dword [0x1003a22c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x1000ea67
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000ea67
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x1000ea67
push esi
call fcn.10013d8f
add esp, 4
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push eax
push ebx
call fcn.10016130
add esp, 0xc
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], 0
test esi, esi
je 0x1000ea53
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
push esi
mov dword [esp + 0x14], eax
add ebx, 8
call fcn.10013d8f
push esi
mov edi, eax
push ebx
push edi
call fcn.10016130
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea edx, [ecx + esi + 8]
mov dword [esp + 0x3c], esi
add ebx, esi
add esp, 0x10
lea esi, [esp + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
call fcn.1000f540
push eax
lea edi, [esp + 0x20]
call fcn.1000f0c0
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0xc], ecx
jb 0x1000e9f9
mov edx, dword [esp + 0x18]
push edx
call fcn.10013fff
add esp, 4
mov byte [0x1003a22a], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012080
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
test ebx, ebx
jle 0x100120b4
jmp 0x10012090
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x100120c4
inc esi
cmp esi, ebx
jge 0x100120b4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
jl 0x10012090
mov ecx, dword [ebp + 8]
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100120e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10013396
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100370a0]
jne 0x100133a0
repz ret
jmp fcn.100158b6

Function at 0x1001e065
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100370a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100170d3
and dword [ebp - 0x14], 0
cmp dword [0x10039604], 0
mov dword [ebp - 0x18], eax
jne 0x1001e118
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001e1c0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001e1c0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10039604], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10039608], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1003960c], eax
call edi
push eax
call esi
mov dword [0x10039614], eax
test eax, eax
je 0x1001e118
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10039610], eax
mov eax, dword [0x10039610]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001e171
cmp dword [0x10039614], ecx
je 0x1001e171
push eax
call esi
push dword [0x10039614]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001e171
test ebx, ebx
je 0x1001e171
call edi
test eax, eax
je 0x1001e168
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001e168
test byte [ebp - 8], 1
jne 0x1001e171
or dword [ebp + 0x10], 0x200000
jmp 0x1001e1a4
mov eax, dword [0x10039608]
cmp eax, dword [ebp - 0x18]
je 0x1001e1a4
push eax
call esi
test eax, eax
je 0x1001e1a4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001e1a4
mov eax, dword [0x1003960c]
cmp eax, dword [ebp - 0x18]
je 0x1001e1a4
push eax
call esi
test eax, eax
je 0x1001e1a4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10039604]
call esi
test eax, eax
je 0x1001e1c0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001e1c2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013396
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401060
Capabilities:
Encode data using xor

Disassembly:
push str.USERPROFILE
call fcn.0040404c
add esp, 4
xor ecx, ecx
mov dl, byte [eax + 3]
sub dl, 0x30
movsx eax, dl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
nop dword [eax]
movups xmm0, xmmword [ecx + 0x417300]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [ecx + 0x417300], xmm0
movups xmm0, xmmword [ecx + 0x417310]
xorps xmm0, xmm2
movups xmmword [ecx + 0x417310], xmm0
movups xmm0, xmmword [ecx + 0x417320]
xorps xmm1, xmm0
movups xmmword [ecx + 0x417320], xmm1
movups xmm0, xmmword [ecx + 0x417330]
xorps xmm0, xmm2
movups xmmword [ecx + 0x417330], xmm0
add ecx, 0x40
cmp ecx, 0x180
jb 0x401090
cmp ecx, 0x18f
jae 0x4010ff
nop word [eax + eax]
xor byte [ecx + 0x417300], dl
inc ecx
cmp ecx, 0x18f
jb 0x4010f0
xor eax, eax
ret

Function at 0x40190d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40194c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40194c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40194c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40194c
cmp dword [ecx + 0x74], 0xe
jbe 0x40194c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407726
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4077c3
push ebx
push esi
call fcn.004076ef
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407683
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407770
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4077c2
push edi
push eax
call fcn.004082a3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x407790
call fcn.00406266
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4077c1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407683
add esp, 0x20
test eax, eax
jne 0x4077af
push edi
call fcn.00406266
jmp 0x4077b7
push ebx
call fcn.00406266
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x408a20
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fe8
push 0x410fe0
push str.FlsAlloc
push 0x1f
call fcn.004088df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408a54
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f110]
call esi
jmp 0x408a5a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408a9e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410ff8
push 0x410ff0
push str.FlsGetValue
push 0x21
call fcn.004088df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408ad5
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408add
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411000
push 0x410ff8
push str.FlsSetValue
push 0x22
call fcn.004088df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b17
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f110]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40de80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xa1130
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0xb2340]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x110
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call sub.vcruntime140.dll_memset
add esp, 0xc
mov dword [esp + 4], 0x114
lea eax, [esp + 4]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
push dword [esp + 0x14]
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0xa7498
call fcn.000a1c30
add esp, 0x10
cmp dword [esp + 0x14], 2
jne 0xa11b9
cmp dword [esp + 8], 0xa
jne 0xa11ac
cmp dword [esp + 0xc], esi
jne 0xa11ac
push 0xa74c0
call fcn.000a1c30
add esp, 4
mov esi, 5
mov eax, dword [esp + 0x10]
mov dword [0xb237c], eax
test esi, esi
jne 0xa11c6
push 0xa74e4
call fcn.000a1c30
add esp, 4
push 0xa7500
call fcn.000a1c30
mov ecx, dword [esp + 0x11c]
add esp, 4
mov dword [0xb2378], esi
mov eax, esi
pop esi
xor ecx, esp
call fcn.000a59d2
add esp, 0x118
ret
Function at 0xa2170
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
cmp dword [0xb2380], 0
je 0xa2182
xor eax, eax
add esp, 0x20
ret
push ebx
push ebp
push esi
push edi
push 1
push 0
push 0
call fcn.000a23e0
add esp, 0xc
push 0
call dword [sym.imp.user32.dll_GetDC]
mov esi, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov edi, eax
push 0xe
push edi
call esi
push 0xc
push edi
call esi
push edi
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0xa21d2
push 0x10
push 0
push 0
push 0
push ebp
push 0
call dword [sym.imp.user32.dll_LoadImageW]
jmp 0xa21e6
push 0x192
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.user32.dll_LoadBitmapW]
mov ebx, eax
test ebx, ebx
jne 0xa21f7
pop edi
pop esi
pop ebp
lea eax, [ebx + 2]
pop ebx
add esp, 0x20
ret
lea eax, [esp + 0x18]
push eax
push 0x18
push ebx
call dword [sym.imp.gdi32.dll_GetObjectW]
mov esi, dword [sym.imp.user32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
sub edi, dword [esp + 0x1c]
mov ecx, eax
sub ecx, dword [esp + 0x20]
mov eax, edi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov edi, dword [sym.imp.user32.dll_SetWindowPos]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
test ebp, ebp
jne 0xa22df
push 0xfffffffffffffffc
push dword [0xb238c]
call dword [sym.imp.user32.dll_GetWindowLongW]
push 0xa2000
push 0xfffffffffffffffc
push dword [0xb238c]
mov dword [0xb2388], eax
call dword [sym.imp.user32.dll_SetWindowLongW]
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
push 0
push dword [0xb238c]
push 0
push 0
push 0
push 0
push 0x54000000
push 0xa7504
push 0xa7508
push 0
call dword [sym.imp.user32.dll_CreateWindowExW]
push 1
push 0x11
mov dword [0xb2384], eax
call dword [sym.imp.gdi32.dll_GetStockObject]
push eax
push 0x30
push dword [0xb2384]
call esi
mov eax, dword [esp + 0x1c]
push 0x34
push 0x1e
add eax, 0xffffff6a
push eax
mov eax, dword [esp + 0x2c]
add eax, 0xffffffc9
push eax
push 0xf
push 0
push dword [0xb2384]
call edi
jmp 0xa231b
mov eax, dword [0xb2384]
test eax, eax
je 0xa231b
push eax
call dword [sym.imp.user32.dll_DestroyWindow]
mov eax, dword [0xb2388]
mov dword [0xb2384], 0
test eax, eax
je 0xa231b
push eax
push 0xfffffffffffffffc
push dword [0xb238c]
call dword [sym.imp.user32.dll_SetWindowLongW]
mov dword [0xb2388], 0
push 0x15
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x1c]
push dword [esp + 0x24]
push 0
push dword [0xb238c]
call edi
push ebx
push 0
push 0x172
push dword [0xb238c]
call esi
push 5
push dword [0xb238c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0xb238c]
call dword [sym.imp.user32.dll_BringWindowToTop]
mov dword [0xb2380], 1
call fcn.000a2060
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0xa2b40
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.000a5be0
mov eax, dword [0xb2340]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push ebx
mov ebx, dword [esp + 0x2010]
push esi
push 0x5c
push eax
call sub.vcruntime140.dll_wcsrchr
add esp, 8
mov esi, eax
lea eax, [esp + 0x1008]
push 0x7ff
push eax
push 0xad89c
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
jle 0xa2c34
test esi, esi
je 0xa2c34
xor eax, eax
nop
movzx ecx, word [esp + eax + 0x1008]
lea eax, [eax + 2]
mov word [esp + eax + 6], cx
test cx, cx
jne 0xa2ba0
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0xa2bc0
mov eax, dword [0xad898]
lea edx, [esi + 2]
mov dword [edi], eax
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0xa2be0
lea edi, [esp + 0xc]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0xa2bf4
mov ecx, edx
lea eax, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.000a2a70
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.000a59d2
add esp, 0x2004
ret
mov ecx, dword [esp + 0x2008]
or eax, 0xffffffff
pop esi
pop ebx
xor ecx, esp
call fcn.000a59d2
add esp, 0x2004
ret
Function at 0xa52f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
xor edi, edi
xor esi, esi
test ebp, ebp
jle 0xa5339
mov eax, dword [esp + 0x70]
mov edx, dword [eax + esi*4]
mov eax, edx
lea ebx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xa5310
sub eax, ebx
sar eax, 1
inc eax
push 0x20
push edx
add edi, eax
call sub.vcruntime140.dll_wcschr
add esp, 8
test eax, eax
je 0xa5334
add edi, 2
inc esi
cmp esi, ebp
jl 0xa5303
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0xa5357
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa5346
sub ecx, edx
sar ecx, 1
add edi, ecx
lea eax, [edi*2 + 2]
push eax
call sub.ucrtbase.dll_malloc
mov esi, eax
add esp, 4
mov edx, esi
xor edi, edi
mov dword [esp + 0x10], edx
test ebp, ebp
jle 0xa53fb
mov ebx, dword [esp + 0x70]
nop dword [eax]
push 0x20
push dword [ebx + edi*4]
call sub.vcruntime140.dll_wcschr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0xa539e
mov eax, 0x22
mov word [esi], ax
add esi, 2
mov ecx, dword [ebx + edi*4]
mov edx, esi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0xa53a3
mov ecx, dword [ebx + edi*4]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa53c0
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
test ebp, ebp
je 0xa53e1
mov eax, 0x22
mov word [esi], ax
add esi, 2
mov eax, 0x20
inc edi
mov word [esi], ax
add esi, 2
cmp edi, dword [esp + 0x6c]
jl 0xa5380
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
test ebx, ebx
je 0xa5413
mov ecx, esi
sub ecx, ebx
movzx eax, word [ebx]
lea ebx, [ebx + 2]
mov word [ecx + ebx - 2], ax
test ax, ax
jne 0xa5403
xor eax, eax
xorps xmm0, xmm0
mov word [esi], ax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
movlpd qword [esp + 0x2c], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
mov dword [esp + 0x4c], 0x44
movups xmmword [esp + 0x3c], xmm0
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
jne 0xa549f
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0xadcf8
call fcn.000a1c30
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
push dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [esp + 0x18]
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret

Function at 0xa54c0
Capabilities:
Move file

Disassembly:
push ebx
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
xor esi, esi
push ebp
push dword [esp + 0x18]
call sub.ucrtbase.dll__wrename
mov edi, eax
add esp, 8
test edi, edi
je 0xa54f2
push 0
push 0x3e8
call ebx
inc esi
cmp esi, 3
jl 0xa54d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret