joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fb70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x44fbbc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x44fbbc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x44fba6
push eax
call ebp
test ax, ax
jl 0x44fbb4
inc esi
add edi, 4
cmp esi, 6
jb 0x44fb98
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0044f870
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x455d70
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x455e13
test eax, eax
jbe 0x455e13
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x455e13
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x455dbe
xor esi, esi
jmp 0x455dc4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x455def
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00457d10
add esi, eax
push esi
mov ebx, esi
call fcn.00457d10
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x455dd0
pop ebp
test edi, edi
pop edi
jne 0x455e13
test ebx, ebx
je 0x455e13
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045dda0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x455f55
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45606d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45606d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046f332
mov esi, eax
test esi, esi
je 0x45606d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45606d
mov ecx, esi
call fcn.00455ec0
cmp edi, eax
jge 0x45606d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x455ff3
mov dword [esp + 0x34], 1
jmp 0x45604e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45606d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004554c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x457e30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x457e96
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x457e96
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x457e77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4589d0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00458b20
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4589f0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4589d1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00458b20
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4589f0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x458a20
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x458a77
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x458a8d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00458ab0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x458ab0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x458b40
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x458b89
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x459000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47c710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00458bb0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00458c30
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00458c30
lea ecx, [esi + 0xc]
call fcn.0046d8bc
lea ecx, [esi + 0x10]
call fcn.0046d8bc
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045b460
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045b460
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045b460
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046d931
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046d931
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x459ca8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47c938
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x459cb8
call fcn.0045a1d0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x459d9b
cmp byte [edi], 0
je 0x459d9b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x459cdd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004589d0
test eax, eax
jne 0x459cfd
push 0x5dce40
lea ecx, [esi + 0x38]
call fcn.0046da6e
jmp 0x459d9b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00458a20
test eax, eax
jne 0x459d2c
mov ecx, esi
call fcn.00458b20
push edi
add esi, 0x38
push 0x5dce1c
push esi
call fcn.0046b6a7
add esp, 0xc
jmp 0x459d9b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0045aa50
test eax, eax
je 0x459d94
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00459e70
test eax, eax
jne 0x459db0
push edi
lea eax, [esi + 0x38]
push 0x5dcdf8
push eax
call fcn.0046b6a7
add esp, 0xc
mov ecx, esi
call fcn.0045a1d0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x459e58
mov ecx, dword [0x5dd0b0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0046b6a7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00458ad0
test eax, eax
jne 0x459e1a
push 0x5dcddc
lea ecx, [esi + 0x38]
call fcn.0046da6e
jmp 0x459e2a
push 0xfa
mov ecx, esi
call fcn.0045aa50
test eax, eax
jne 0x459e47
mov ecx, esi
call fcn.0045a1d0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046d931
jmp 0x459d9b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046d931
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46fcd5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46fd0d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046dd8c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046dd64
jmp 0x46fd19
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4713cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47140d
call fcn.004770c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47140d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x471404
xor eax, eax
jmp 0x471415
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047141b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4775f5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x477623
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x477641
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047755b
jmp 0x477641
mov eax, dword [esi + 0x14]
test eax, eax
je 0x477641
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047755b
test edi, edi
mov eax, edi
jne 0x47762b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100367c
Capabilities:
Encode data using xor

Disassembly:
push 8
mov ecx, str._2__25o_9_
pop edx
cmp word [ecx], 0
mov eax, ecx
je 0x1003698
xor word [eax], 0x41
inc eax
inc eax
cmp word [eax], 0
jne 0x100368c
add ecx, 0x80
dec edx
jne 0x1003684
ret

Function at 0x10037da
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10037f1
xor eax, eax
jmp 0x10037fc
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
pop ebp
ret 4

Function at 0x10038a0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
mov edi, edi
push esi
mov esi, dword [0x1012200]
test esi, esi
je 0x100399e
push ebx
xor ebx, ebx
push edi
inc ebx
mov eax, dword [esi]
test eax, eax
je 0x1003988
push eax
push 0x1001508
call fcn.010036a7
pop ecx
pop ecx
push dword [esi]
call fcn.010037da
test eax, eax
je 0x1003975
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
je 0x10038fb
mov eax, dword [esi + 4]
mov dword [eax*4 + 0x10121ec], ebx
push 0x1001500
jmp 0x100397a
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x100392e
push 0x10014c4
call fcn.010036a7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100378f
push 0x10014c0
call fcn.010036a7
pop ecx
push dword [esi]
call edi
test eax, eax
jne 0x10038ea
push 0x1001450
call fcn.010036a7
pop ecx
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10038f4
push 0x1001424
mov dword [0x1012208], ebx
call fcn.010036a7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100378f
push 0x10014c0
jmp 0x100397a
push 0x1001404
call fcn.010036a7
pop ecx
push dword [esi]
call fcn.0100582a
pop ecx
mov edi, dword [esi + 8]
push esi
call fcn.0100582a
test edi, edi
pop ecx
mov esi, edi
jne 0x10038b6
pop edi
pop ebx
pop esi
ret
Function at 0x1003a04
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1011660]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x80000000
push eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
jne 0x1003a53
or eax, eax
jmp 0x1003b3d
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x1003b2e
cmp esi, 0x100000
ja 0x1003b2e
cmp dword [ebp + 0xc], esi
jae 0x1003b2e
cmp ebx, esi
jae 0x1003b2e
cmp dword [ebp + 0xc], ebx
jae 0x1003b2e
push esi
call fcn.0100598c
mov edi, eax
test edi, edi
pop ecx
jne 0x1003ab4
push esi
push 0x1001588
mov dword [0x1012208], 1
call fcn.010036a7
pop ecx
pop ecx
push 0xfffffffffffffffd
jmp 0x1003b30
push 0
lea eax, [ebp - 0x88]
push eax
push esi
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003b10
cmp dword [ebp - 0x88], esi
jne 0x1003b10
lea eax, [ebp - 0x78]
push eax
call fcn.0100e0b0
push dword [ebp + 0xc]
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0100e1a0
sub esi, ebx
push esi
add ebx, edi
push ebx
lea eax, [ebp - 0x78]
push eax
call fcn.0100e1a0
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call fcn.0100e2d0
push edi
call fcn.0100582a
pop ecx
xor esi, esi
jmp 0x1003b31
push esi
push dword [ebp - 0x84]
push 0x1001538
call fcn.010036a7
push edi
call fcn.0100582a
add esp, 0x10
push 0xfffffffffffffffc
jmp 0x1003b30
push 0xfffffffffffffffe
pop esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0100524b
leave
ret 0x10
Function at 0x1004109
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x20
push 0x1001918
call fcn.01005c28
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push 0x10018f0
mov edi, dword [ebp + 8]
push edi
call fcn.010039a5
test eax, eax
je 0x100414f
push edi
call fcn.01003b50
test eax, eax
je 0x100414f
mov dword [0x10121f8], 2
call fcn.01003805
mov eax, 0xfffffc17
jmp 0x1004252
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x28], edi
or eax, 0xffffffff
cmp edi, eax
je 0x1004252
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x200
jbe 0x1004248
cmp esi, 0x40000
jae 0x1004248
push ebx
push esi
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x10041b0
push 0xfffffffffffffffd
jmp 0x10041ce
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x10041d8
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffc
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004240
mov dword [ebp - 4], ebx
push ebx
push esi
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 0x2c]
push eax
call fcn.01003c2d
mov dword [ebp - 0x20], eax
mov esi, 0xfffffc17
cmp eax, esi
jne 0x10041fb
call fcn.01003805
or dword [ebp - 4], 0xffffffff
jmp 0x1004222
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x20], esi
jne 0x1004244
mov eax, esi
jmp 0x1004252
xor eax, eax
jmp 0x1004252
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffe
pop eax
call fcn.01005c63
ret 4
Function at 0x1004934
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1004955
leave
ret
push esi
lea eax, [ebp - 0xc]
push eax
push 0x1002090
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor esi, esi
test eax, eax
je 0x100499f
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100499f
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x10049b2
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1011660]
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1004a0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002128
jmp 0x1004a29
push esi
push dword [ebp - 0x10]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x1004a32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10020b8
call fcn.010036a7
pop ecx
pop ecx
jmp 0x1004a35
xor edi, edi
inc edi
cmp dword [ebp - 0x10], ebx
je 0x1004a43
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp edi, ebx
jne 0x1004a4d
cmp esi, ebx
je 0x1004a4d
mov dword [esi], ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0100524b
leave
ret 8

Function at 0x1004ae0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
cmp dword [0x101220c], 0
mov eax, dword [0x1011660]
mov dword [ebp - 4], eax
jne 0x1004b90
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1004b58
cmp eax, esi
jae 0x1004b58
push 0x1002210
mov ecx, 0x144
sub ecx, eax
push ecx
lea eax, [ebp + eax*2 - 0x28c]
push eax
call fcn.01004a85
test eax, eax
jl 0x1004b8f
lea eax, [ebp - 0x28c]
push 0x1002208
push eax
call fcn.01005f58
test eax, eax
pop ecx
pop ecx
mov dword [0x101220c], eax
jne 0x1004b61
jmp 0x1004b5d
mov eax, dword [0x101220c]
test eax, eax
je 0x1004b8f
push 0
push eax
call fcn.01005eca
lea eax, [ebp - 0x290]
push eax
call fcn.01005e8a
lea eax, [ebp - 0x290]
push eax
call fcn.01005e66
push eax
push 0x10021a0
call fcn.010036a7
add esp, 0x18
pop esi
mov ecx, dword [ebp - 4]
call fcn.0100524b
leave
ret
Function at 0x1004f6a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x1011660]
push esi
push edi
mov dword [ebp - 4], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x10025c0
mov esi, eax
call fcn.010036a7
test esi, esi
pop ecx
je 0x1005001
cmp esi, edi
jae 0x1005001
push 0x1002244
push edi
lea eax, [ebp - 0x28c]
push eax
call fcn.01004aa7
test eax, eax
jl 0x1005001
inc esi
add edi, 0x40
push ebx
sub edi, esi
lea esi, [ebp + esi*2 - 0x28c]
mov ebx, str._2__25o_9_
mov dword [ebp - 0x290], 8
push ebx
push edi
push esi
call fcn.01004a85
test eax, eax
jl 0x1004ff2
lea eax, [ebp - 0x28c]
push eax
call fcn.01004109
add ebx, 0x80
dec dword [ebp - 0x290]
jne 0x1004fda
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100524b
leave
ret

Function at 0x1005012
Capabilities:
Check os version
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x1011660]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
inc ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 4], eax
mov edi, ebx
jle 0x1005072
mov eax, dword [esi + edi*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x1005044
cmp cl, 0x2f
jne 0x100506c
movsx eax, byte [eax + 1]
push eax
call fcn.010063b7
cmp eax, 0x3f
pop ecx
je 0x10050f8
cmp eax, 0x48
je 0x10050f8
cmp eax, 0x56
jne 0x100506c
mov dword [0x1012204], ebx
inc edi
cmp edi, dword [ebp + 8]
jl 0x1005035
call fcn.01004ae0
push 0x47
pop ecx
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10051b1
cmp dword [ebp - 0x11c], 5
jne 0x10050cf
cmp dword [ebp - 0x118], 2
ja 0x10050cf
cmp dword [ebp - 0x118], 0
jne 0x100510a
cmp word [ebp - 0xc], 2
mov dword [0x101143c], 8
jae 0x100510a
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push 0x1002750
call fcn.010036a7
add esp, 0x14
jmp 0x10051bc
push 0x1002718
call fcn.0100627c
pop ecx
xor eax, eax
jmp 0x10051c6
push 0x1002708
push 0x10026f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100514b
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x100514b
cmp dword [ebp - 0x124], 0
je 0x100514b
push 0x10026a8
jmp 0x10051b6
call fcn.01004a63
test eax, eax
jne 0x100515b
push 0x1002650
jmp 0x10051b6
call fcn.0100367c
push 0x1003beb
push 0x30
push 0xa
push 0x1011440
call fcn.01006010
add esp, 0x10
call fcn.01004934
mov dword [0x10121fc], ebx
call fcn.0100461b
call fcn.010042d6
push 0x1002578
call fcn.010036a7
pop ecx
mov edx, 0x1002518
mov ecx, 0x80000002
call fcn.01004c77
call fcn.01004f6a
call fcn.010038a0
jmp 0x10051bc
push 0x1002614
call fcn.010036a7
pop ecx
call fcn.010036f2
mov eax, dword [0x1012208]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100524b
leave
ret