joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f4b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x1000f4fb
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0x18], 2
jne 0x1000f523
mov eax, dword [esp + 0xc]
cmp eax, 5
jb 0x1000f523
jne 0x1000f523
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1000f523
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret

Function at 0x1000f530
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x1000f57b
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
mov ecx, 2
cmp eax, ecx
jne 0x1000f5a7
mov eax, dword [esp + 0xc]
cmp eax, 5
jb 0x1000f5a7
jne 0x1000f5a7
cmp dword [esp + 0x10], ecx
jne 0x1000f5a7
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret

Function at 0x1000f5c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x1000f60b
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
mov ecx, 2
cmp eax, ecx
jne 0x1000f637
mov eax, dword [esp + 0xc]
cmp eax, 5
jb 0x1000f637
jne 0x1000f637
cmp dword [esp + 0x10], ecx
jae 0x1000f637
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret

Function at 0x1000f6d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push esi
lea eax, [esp + 0xa0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x9c
push ecx
call esi
test eax, eax
jne 0x1000f726
lea edx, [esp + 8]
mov dword [esp + 8], 0x94
push edx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0xc0
ret
cmp dword [esp + 0xc], 6
jne 0x1000f73a
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
jae 0x1000f73c
xor eax, eax
pop edi
pop esi
add esp, 0xc0
ret
Function at 0x1000ff40
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x128
test eax, eax
jne 0x1000ff59
xor al, al
add esp, 0x128
ret 4
push ebx
push ebp
push 0
push 0xa
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000ffdf
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000ffd8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esp + 0x13c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000ffc7
mov eax, dword [esp + 0x18]
mov bl, 1
push eax
push 0
push 0x1f0fff
call esi
test eax, eax
je 0x1000ffc7
push 1
push eax
call edi
test eax, eax
setne bl
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000ff92
pop edi
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebp
pop ebx
add esp, 0x128
ret 4

Function at 0x1000fff0
Capabilities:
Set tcp connection state

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push edi
push 0x18
call esi
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
xor ebx, ebx
push 1
push eax
push edi
mov dword [esp + 0x18], ebx
call sub.iphlpapi.dll_GetTcpTable
cmp eax, 0x7a
jne 0x1001002e
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x10]
push ecx
call esi
add esp, 8
mov edi, eax
lea edx, [esp + 0xc]
push 1
push edx
push edi
call sub.iphlpapi.dll_GetTcpTable
test eax, eax
jne 0x10010098
cmp dword [edi], ebx
jle 0x100100a7
push ebp
mov ebp, dword [esp + 0x1c]
lea esi, [edi + 4]
cmp dword [esi], 5
jne 0x1001008b
mov ax, word [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call ebp
test eax, eax
je 0x1001008b
push esi
mov dword [esi], 0xc
call sub.iphlpapi.dll_SetTcpEntry
test eax, eax
je 0x1001008b
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
push str.failed_to_delete_tcp_connection_0x_x:_d_
push 4
call fcn.1000be40
add esp, 0x10
mov eax, dword [edi]
inc ebx
add esi, 0x14
cmp ebx, eax
jl 0x1001004b
pop ebp
jmp 0x100100a7
push str.failed_to_get_tcp_connection_table
push 4
call fcn.1000be40
add esp, 8
test edi, edi
je 0x100100b5
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x100101e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x100101f6
pop edi
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push str.5314
push esi
call edi
test eax, eax
jne 0x10010218
push 5
push str.2314
push esi
call edi
test eax, eax
je 0x1001022f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001022f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x1001023b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
ret
cmp word [eax], 1
jne 0x10010253
cmp word [eax + 2], 0xffff
jne 0x10010253
push 0xfa
add eax, 0x1e
jmp 0x1001025b
push 0xfa
add eax, 0x16
push eax
push 0x10057bd4
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, 1
pop esi
ret

Function at 0x100102d0
Capabilities:
Create thread

Disassembly:
mov dword [0x10057dd4], 1
call fcn.100101e0
push 0
push 0
push 0
push 0x10010280
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x10014940
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
call dword [eax + 0x1c]
test eax, eax
jne 0x10014a17
cmp dword [esi + 0x10], 0xffffffff
je 0x10014a17
mov ecx, dword [esi + 8]
push ebx
mov dword [esi + 0x54], edi
call fcn.10013ce0
mov ecx, dword [esi + 8]
mov ebx, eax
call fcn.10013930
mov ecx, dword [esi + 8]
add ebx, eax
mov dword [esp + 0x18], ebx
call fcn.10013930
mov ecx, dword [esi + 8]
mov ebx, eax
call fcn.10013830
sub eax, ebx
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], eax
push edi
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
mov edx, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
xor ecx, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, edi
mov dword [esi + 0x50], eax
je 0x100149e6
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 8]
push edx
call fcn.100139b0
mov eax, dword [esi + 0x24]
push eax
call ebx
cmp dword [esi + 0x50], edi
jne 0x10014a0c
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x3e5
je 0x10014a0c
mov dword [esi + 0xc], 1
call edi
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x54], eax
push ecx
call ebx
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop esi
add esp, 0x10
ret
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
Function at 0x10014b70
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [esp + 8], 0
mov eax, dword [esi]
call dword [eax + 0x1c]
test eax, eax
jne 0x10014c85
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x10014c85
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea edi, [esi + 0x14]
mov dword [esp + 0x10], edx
push 0
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x20]
push 1
push ecx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x10014be9
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10014c14
mov edx, dword [esi + 0x24]
mov dword [esp + 8], 0xfffffffe
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10014c4c
cmp eax, 0x102
jne 0x10014c6f
mov edx, dword [esi + 0x24]
mov dword [esp + 8], 0xfffffffc
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x10014c6f
mov dword [esp + 8], 0xfffffffd
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0xc
Function at 0x10014c90
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], 0
test eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x10014da3
test ecx, ecx
jbe 0x10014da3
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x10014da3
test eax, eax
je 0x10014da3
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x10014cef
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x10
ret 0xc
lea edi, [esi + 0x28]
push 0
push edi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 1
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x10014d74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10014d2d
mov dword [esi + 0xc], 1
mov dword [esp + 8], 0xfffffffe
jmp 0x10014d74
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10014d51
cmp eax, 0x102
jne 0x10014d74
mov dword [esp + 8], 0xfffffffc
jmp 0x10014d74
mov edx, dword [esi + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x10014d74
mov dword [esp + 8], 0xfffffffd
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x10014d99
mov edi, dword [esi + 0x48]
mov eax, ecx
cdq
add edi, eax
mov dword [esi + 0x48], edi
mov eax, dword [esi + 0x4c]
adc eax, edx
mov dword [esi + 0x4c], eax
pop edi
mov eax, ecx
pop esi
add esp, 0x10
ret 0xc
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0xc

Function at 0x100158b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
lea eax, [esp + 0x9c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0xb4], 1
je 0x1001594a
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x9c
push ecx
call esi
test eax, eax
pop edi
jne 0x10015913
lea edx, [esp + 4]
mov dword [esp + 4], 0x94
push edx
call esi
mov eax, 1
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0x14]
mov ecx, 2
cmp eax, ecx
jne 0x1001594a
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x1001594a
jne 0x1001594a
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1001594a
cmp word [esp + 0x98], cx
jae 0x1001594a
mov eax, 1
pop esi
add esp, 0xc0
ret
xor eax, eax
pop esi
add esp, 0xc0
ret
Function at 0x100013e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov edx, dword [0x100099f7]
sub edx, 0x33fb77b1
mov dword [ebp - 4], edx
test dword [ebp - 4], 0x20
je 0x1000142d
mov eax, dword [ebp - 4]
xor eax, ecx
mov dword [0x1000c214], eax
mov word [ebp - 0x1c], 0x4bfe
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
mov word [ebp - 0x24], FilterInstanceFindClose
push ecx
cmp dword [ebp - 4], 0
je 0x1000142d
lea edx, [ebp - 8]
mov dword [ebp - 0x1c], 0x5aff96f4
push edx
mov edx, dword [0x1000c214]
sub edx, eax
mov dword [0x1000c214], edx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x24], 0xae
push eax
mov dword [ebp - 0x2c], eax
push 0x10009859
mov byte [ebp - 0x1c], 0x5a
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceW]
test dword [ebp - 4], 1
jne 0x10001467
push ecx
call fcn.10001646
add esp, 4
mov ecx, dword [ebp - 4]
sub ecx, 0xf6c9260
push ecx
mov word [ebp - 0x2c], 0x7565
call fcn.10001646
mov word [ebp - 0x2c], 0x9309
add esp, 4
mov eax, dword [ebp - 4]
add eax, 0xf0936d05
push eax
mov dword [ebp - 0x2c], ecx
and ecx, dword [ebp - 4]
call fcn.10001646
add esp, 4
mov dword [ebp - 0x24], edx
call fcn.10002e24
mov edx, dword [ebp - 4]
add edx, 0xf0936d71
push edx
mov dword [ebp - 0x2c], 0x360ced3
mov edx, dword [ebp - 4]
add edx, 0xf0936cbe
push edx
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x1c], 0x69
mov eax, dword [ebp - 4]
sub eax, 0xf6c920b
push eax
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 4]
sub edx, 0xf6c91fe
push edx
mov dword [ebp - 0x2c], edx
call fcn.100061a1
add esp, 0x10
call fcn.10001dd1
mov dword [ebp - 0x24], eax
mov esp, ebp
pop ebp
ret
Function at 0x1000150c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov edx, dword [0x100099f7]
sub edx, 0x1cd0ec47
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xd968e21a
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], str._m_te:
mov edx, dword [0x100099f3]
add edx, 0x37c07a54
mov dword [ebp - 0x14], edx
call fcn.100074ec
mov byte [ebp - 0x24], 0x55
mov dword [ebp - 0x40], eax
mov edx, dword [0x100099f7]
cmp edx, dword [ebp - 0x2c]
je 0x1000163b
call fcn.10003455
mov byte [ebp - 0x38], 0xb7
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x2c], 0
jne 0x10001583
push 0x239efbad
push eax
push 0x1471165f
call fcn.1000202a
add esp, 6
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x100099f3]
sub ecx, 0xc83f98ab
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x10], 0x61
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
xor edx, edx
div dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 0x10], 0xb7
mov cl, byte [edx + eax]
push ecx
cmp dword [ebp - 0x2c], 0
jne 0x100015d0
push ecx
call fcn.1000224b
add esp, 2
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x20]
mov al, byte [edx]
mov word [ebp - 0x24], 0x94ba
push eax
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x20]
push ecx
mov dword [ebp - 0x1c], 0xe88dfb85
call fcn.1000202a
add esp, 0xc
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [0x1000c210]
mov dword [0x1000c214], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x2c]
sub ecx, 0x26971e64
add edx, ecx
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xcf2e
cmp ecx, dword [0x100099f7]
je 0x100015ed
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jb 0x100015a8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x38], 0xd3
mov esp, ebp
pop ebp
ret
Function at 0x10004d23
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov ecx, dword [0x100099f3]
sub ecx, 0x27f8c8bd
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
sub eax, 0xa046cfe2
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x60], 0xba
push eax
lea ecx, [ebp - 0x38]
push ecx
mov byte [ebp - 0x50], 0x34
mov eax, dword [ebp - 0x40]
add eax, 0x5fb93012
push eax
mov byte [ebp - 0x58], 0x41
mov word [ebp - 0x60], 0x3fc2
mov eax, dword [ebp - 0x40]
sub eax, 0xa046cfee
push eax
test dword [0x100099f3], 0x8000
je 0x10004df8
mov dword [ebp - 0x50], ecx
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov ecx, dword [ebp - 0x40]
add ecx, 0x5fb93013
cmp eax, ecx
jne 0x10004e2f
mov eax, dword [0x1000c214]
imul eax, dword [ebp - 0x50]
mov dword [0x1000c210], eax
mov eax, dword [ebp - 0x40]
add eax, 0x5fb93013
push eax
mov byte [ebp - 0x64], 0x9f
cmp dword [ebp - 0x40], 0
jne 0x10004dd0
push 0x7dc70dd5
lea edx, [ebp - 0x64]
push edx
push 0xd1bb0038
lea ecx, [ebp - 0x48]
push ecx
call fcn.10007454
add esp, 0xe
mov edx, dword [ebp - 0x58]
add edx, eax
mov dword [ebp - 0x58], edx
test dword [ebp - 0x40], 0x80
je 0x10004d43
mov dword [ebp - 0x50], edx
push str.VTZ1PwAlpXg3W3T4AQ4MfhlhZ74hl.rtf
cmp dword [ebp - 0x40], 0
jne 0x10004df8
call fcn.1000289e
mov byte [ebp - 0x48], 0xbf
push str.hxo41k
call dword [sym.imp.kernel32.dll_MoveFileExA]
test eax, eax
mov dword [ebp - 0x58], 0xd85641cb
je 0x10004e2a
push str.i2PASuYQ10ZBK.dat
mov word [ebp - 0x48], 0x4bbf
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov dword [ebp - 0x58], 0x53cb445f
mov dword [ebp - 0x48], eax
jmp 0x10004e52
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 0x60], 0x2f
mov byte [ebp - 0x64], 0xc6
mov edx, dword [ebp - 0x40]
add edx, 0x5fb93026
push edx
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x64], 0x743f92f
call fcn.10002e24
mov dword [ebp - 0x58], 0x32a6fb6f
mov esp, ebp
pop ebp
ret

Function at 0x432000
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6180360c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..text_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6cd76a68
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401a70
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x400
call fcn.00410964
add esp, 4
mov esi, eax
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401ace
push esi
call fcn.00412221
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push 0x400
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401b0d
push esi
call fcn.00412221
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401ab3
push edi
xor edi, edi
cmp dword [esi], ebx
jbe 0x401b5f
lea ebx, [esi + 4]
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401b72
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x401b46
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00412221
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00411d2c
mov esp, ebp
pop ebp
ret

Function at 0x402dc0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [edi + 4]
push esi
push eax
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x402e15
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push 0
push ecx
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov esp, ebp
pop ebp
ret 8