joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004833
Capabilities:
Print debug messages
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x40bc]
mov eax, 0x413c
call fcn.1001e1c0
mov eax, dword [0x10028500]
xor eax, ebp
mov dword [ebp + 0x40b8], eax
mov eax, dword [0x10029210]
push ebx
push esi
push edi
lea ecx, [ebp - 0x54]
push ecx
push 0x8004667e
xor ebx, ebx
push eax
mov esi, eax
mov dword [ebp - 0x54], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0x20
mov edi, eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x100048e9
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x80], 0x20
je 0x100048e9
mov dword [ebp - 0x50], ebx
push 0x3fff
lea eax, [ebp - 0x4b]
push ebx
push eax
mov byte [ebp - 0x4c], bl
call fcn.10016310
add esp, 0xc
push ebx
push 0x4000
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
je 0x10004911
cmp eax, 0xffffffff
je 0x10004911
inc dword [ebp - 0x50]
cmp dword [ebp - 0x50], 0x20
jl 0x100048b1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
xor eax, eax
mov ecx, dword [ebp + 0x40b8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b28c
add ebp, 0x40bc
leave
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push 0x103
lea eax, [ebp + 0x3fb5]
push ebx
push eax
mov byte [ebp + 0x3fb4], bl
call fcn.10016310
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp + 0x3fb4]
push str.SocketLibs_PerfectClose___d
push eax
call fcn.1000c7bc
add esp, 0xc
lea eax, [ebp + 0x3fb4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
inc eax
jmp 0x100048f9

Function at 0x10004967
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1000499d
mov edi, 0x100040a0
mov eax, edi
test eax, eax
je 0x1000499d
push 1
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi + 4], eax
mov eax, ecx
jmp 0x1000499f
xor eax, eax
pop edi
pop ebx
ret

Function at 0x100049a2
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x100049ad
pop edi
ret
cmp dword [edi], eax
je 0x100049f6
cmp dword [edi + 4], eax
je 0x100049f6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2710
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100049e6
push 1
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor eax, eax
inc eax
pop edi
ret
Function at 0x100049fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x10028500]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.10016310
mov edi, dword [ebp + 0x90]
lea eax, [ebp - 0x80]
add esp, 0xc
xor ecx, ecx
sub edi, eax
mov esi, 0xcc
lea eax, [ebp + ecx - 0x80]
mov dl, byte [edi + eax]
xor dl, 0x27
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x10004a41
push esi
lea eax, [ebp - 0x80]
push eax
push dword [0x10029210]
call fcn.100047c2
mov ecx, dword [ebp + 0x84]
add esp, 0xc
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
neg eax
pop esi
call fcn.1000b28c
add ebp, 0x88
leave
ret

Function at 0x10004c27
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10028500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x3f
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x43]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x44], 0
call fcn.10016310
push 0x40
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.10004f74
lea eax, [ebp - 0x44]
push 0x40
push eax
push eax
mov eax, 0x10023ed8
call fcn.10004efd
add esp, 0x24
cmp dword [ebp + 0x10], 1
jne 0x10004cbe
mov ebx, esi
mov dword [ebp - 0x68], 0x10
push 8
pop ecx
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x24]
call fcn.10004e30
pop ecx
xor eax, eax
mov cl, byte [ebp + eax - 0x44]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 0x20
jb 0x10004c9b
push 8
pop ecx
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x44]
add ebx, 0x30
dec dword [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
jne 0x10004c84
jmp 0x10004d07
mov dword [ebp - 0x68], 0xf
lea ebx, [esi + 0x2d0]
push 8
pop ecx
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x44]
call fcn.10004e30
pop ecx
xor eax, eax
mov cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, 0x20
jb 0x10004ce2
dec dword [ebp - 0x68]
push 8
pop ecx
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x24]
sub ebx, 0x30
cmp dword [ebp - 0x68], 0
rep movsd dword es:[edi], dword [esi]
jge 0x10004ccb
lea eax, [ebp - 0x44]
push 0x40
push eax
push eax
mov eax, 0x10023f18
call fcn.10004efd
mov edx, dword [ebp - 0x6c]
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
xor esi, esi
mov bl, byte [ebp + esi - 0x44]
mov ecx, esi
and ecx, 7
mov eax, esi
shl bl, cl
shr eax, 3
add eax, edx
or byte [eax], bl
inc esi
cmp esi, 0x40
jb 0x10004d26
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b28c
leave
ret
Function at 0x10004da3
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10028500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x44], 0
call fcn.10016310
push 0x40
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.10004f74
lea eax, [ebp - 0x44]
push 0x38
push eax
push eax
mov eax, str.91__
call fcn.10004efd
add esp, 0x24
xor esi, esi
movsx ebx, byte [esi + 0x10024010]
lea eax, [ebp - 0x44]
call fcn.10004f40
lea eax, [ebp - 0x28]
call fcn.10004f40
push 0x30
lea eax, [ebp - 0x44]
push eax
push edi
mov eax, 0x10023fe0
call fcn.10004efd
add esp, 0xc
inc esi
add edi, 0x30
cmp esi, 0x10
jl 0x10004ded
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b28c
leave
ret

Function at 0x10004e30
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10028500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x2f
lea eax, [ebp - 0x33]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x34], 0
call fcn.10016310
push 0x30
lea eax, [ebp - 0x34]
push edi
push eax
mov eax, 0x10023f58
call fcn.10004efd
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
add esp, 0x18
xor ecx, ecx
sub esi, eax
lea eax, [ebp + ecx - 0x34]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x30
jb 0x10004e77
mov ebx, edi
lea esi, [ebp - 0x32]
xor edi, edi
mov dword [ebp - 0x3c], 8
mov al, byte [esi - 1]
mov cl, byte [esi - 2]
add al, al
add al, byte [esi]
add cl, cl
add cl, byte [esi + 3]
add al, al
add al, byte [esi + 1]
movsx ecx, cl
add al, al
add al, byte [esi + 2]
add ecx, edi
movsx eax, al
shl ecx, 4
push 4
lea eax, [eax + ecx + 0x10024020]
push eax
push ebx
call fcn.10004f74
add esp, 0xc
add edi, 4
add esi, 6
add ebx, 4
dec dword [ebp - 0x3c]
jne 0x10004e94
push 0x20
push dword [ebp - 0x38]
mov eax, 0x10023f88
push dword [ebp - 0x38]
call fcn.10004efd
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b28c
leave
ret
Function at 0x10007a6e
Capabilities:
Enumerate processes on remote desktop session host
Print debug messages

Disassembly:
push 0x80
mov eax, 0x10020ccf
call fcn.1000e406
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
xor edi, edi
push 1
push edi
push edi
xor bl, bl
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], edi
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x10007c1d
xor ebx, ebx
mov dword [ebp - 0x48], ebx
cmp dword [ebp - 0x38], edi
jbe 0x10007c0d
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
lea esi, [ecx + eax]
mov eax, dword [esi + 8]
mov ecx, str.explorer.exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10007aee
cmp dx, di
je 0x10007aea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10007aee
add eax, 4
add ecx, 4
cmp dx, di
jne 0x10007ac8
xor eax, eax
jmp 0x10007af3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x10007bef
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0xc]
mov dword [ebp - 0x44], edi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x10007c02
mov eax, dword [esi + 4]
push dword [ebp - 0x44]
lea esi, [ebp - 0x88]
mov dword [ebp - 0x8c], eax
call fcn.10008277
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x34], eax
mov eax, esi
push eax
lea esi, [ebp - 0x30]
call fcn.10005fb5
push edi
push 1
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.100028f6
lea eax, [ebp - 0x6c]
push eax
call fcn.1000265c
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.10007c41
test al, al
je 0x10007bbd
mov esi, dword [ebp - 0x50]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x4c], eax
cmp dword [esi + 0xc], eax
jbe 0x10007b82
call fcn.1000c68f
mov eax, dword [ebp - 0x5c]
mov esi, dword [esi]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x60], eax
jbe 0x10007b94
call fcn.1000c68f
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x6c]
cmp ebx, dword [ebp - 0x5c]
jbe 0x10007ba4
call fcn.1000c68f
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
push edi
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x4c]
push esi
push dword [ebp - 0x4c]
call fcn.10008a46
xor edi, edi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x10007bd5
push str.LocalFree___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esi, [ebp - 0x6c]
call fcn.10002695
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea esi, [ebp - 0x30]
call fcn.100028f6
mov ebx, dword [ebp - 0x48]
add dword [ebp - 0x3c], 0x10
inc ebx
mov dword [ebp - 0x48], ebx
cmp ebx, dword [ebp - 0x38]
jb 0x10007ab7
jmp 0x10007c0d
push str.ConvertSidToStringSid___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x40]
call sub.WTSAPI32.dll_WTSFreeMemory
cmp ebx, dword [ebp - 0x38]
sete bl
jmp 0x10007c28
push str.WTSEnumerateProcesses___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, bl
call fcn.1000e489
ret
Function at 0x1000802e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020934
mov eax, dword fs:[0]
push eax
mov eax, 0x1084
call fcn.1001e1c0
mov eax, dword [0x10028500]
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 eax, dword [ebp + 0xc]
mov ebx, edx
push str._Password
lea esi, [ebp - 0x1058]
mov edi, ecx
mov dword [ebp - 0x103c], eax
mov dword [ebp - 0x1038], ebx
mov byte [ebp - 0x102d], 0
mov dword [ebp - 0x1034], 0x1000
call fcn.10008277
push eax
lea eax, [ebp - 0x1090]
push ebx
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.1000894a
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x100080b5
mov eax, dword [eax + 4]
jmp 0x100080b8
add eax, 4
lea ecx, [ebp - 0x1034]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x103c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push 1
lea esi, [ebp - 0x1090]
mov ebx, eax
call fcn.100028f6
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp - 0x1058]
call fcn.100028f6
test ebx, ebx
jne 0x10008180
mov eax, dword [ebp - 0x1038]
push 0xffffffffffffffff
push edi
call fcn.10005fdb
and dword [ebp - 0x1018], ebx
xor eax, eax
mov dword [ebp - 0x1014], 7
mov word [ebp - 0x1028], ax
inc ebx
mov dword [ebp - 4], ebx
push dword [ebp - 0x1034]
lea eax, [ebp - 0x1010]
push eax
lea esi, [ebp - 0x1074]
call fcn.1000453a
add edi, 0x38
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.100081a2
push 0
push ebx
mov ecx, esi
mov byte [ebp - 0x102e], al
call fcn.10002d68
cmp byte [ebp - 0x102e], 0
je 0x10008172
mov byte [ebp - 0x102d], bl
push 0
push ebx
lea esi, [ebp - 0x102c]
call fcn.100028f6
mov al, byte [ebp - 0x102d]
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.1000b28c
leave
ret 8
Function at 0x100081a2
Capabilities:
Encrypt data using dpapi
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x100081c2
mov eax, dword [ebp + 0xc]
call fcn.10008297
mov bl, 1
jmp 0x1000826f
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.10008d3d
pop ecx
test al, al
je 0x10008264
mov edx, dword [esi + 0x18]
lea eax, [esi + 4]
cmp edx, 0x10
jb 0x100081e4
mov ecx, dword [eax]
jmp 0x100081e6
mov ecx, eax
cmp byte [ecx], 2
jne 0x10008248
mov ecx, dword [esi + 0x14]
dec ecx
mov dword [ebp - 0x10], ecx
cmp edx, 0x10
jb 0x100081f9
mov eax, dword [eax]
inc eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x10008241
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
shr eax, 1
call fcn.10005a71
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x1000823d
push str.LocalFree___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov bl, 1
jmp 0x10008253
push str.CryptUnprotectData___failed
jmp 0x1000824d
push str.unsupported_encyption_type
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x1000826f
push str.RevertToSelf___failed
jmp 0x10008269
push str.utility::impersonate_user___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x10008d3d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x1fffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x10008dd2
push esi
lea eax, [ebp - 8]
push eax
push 0xe
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10008dc1
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x10008daf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x10008d9d
mov bl, 1
jmp 0x10008da8
push str.ImpersonateLoggedOnUser___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 4]
call esi
jmp 0x10008dba
push str.DuplicateToken___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 8]
call esi
jmp 0x10008dcc
push str.OpenProcessToken___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call esi
pop esi
jmp 0x10008ddd
push str.OpenProcess___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x1000b28c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10028500]
jne 0x1000b296
repz ret
jmp fcn.100115d5
Function at 0x1001cd1d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100144f2
and dword [ebp - 4], 0
cmp dword [0x10046320], 0
mov ebx, eax
jne 0x1001cdce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001ce7f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001ce7f
push eax
call fcn.10014480
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10046320], eax
call esi
push eax
call fcn.10014480
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10046324], eax
call esi
push eax
call fcn.10014480
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10046328], eax
call esi
push eax
call fcn.10014480
pop ecx
mov dword [0x10046330], eax
test eax, eax
je 0x1001cdce
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10014480
pop ecx
mov dword [0x1004632c], eax
mov eax, dword [0x1004632c]
cmp eax, ebx
je 0x1001ce26
cmp dword [0x10046330], ebx
je 0x1001ce26
push eax
call fcn.100144fb
push dword [0x10046330]
mov esi, eax
call fcn.100144fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001ce26
test edi, edi
je 0x1001ce26
call esi
test eax, eax
je 0x1001ce1d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001ce1d
test byte [ebp - 0xc], 1
jne 0x1001ce26
or dword [ebp + 0x10], 0x200000
jmp 0x1001ce5f
mov eax, dword [0x10046324]
cmp eax, ebx
je 0x1001ce5f
push eax
call fcn.100144fb
pop ecx
test eax, eax
je 0x1001ce5f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001ce5f
mov eax, dword [0x10046328]
cmp eax, ebx
je 0x1001ce5f
push eax
call fcn.100144fb
pop ecx
test eax, eax
je 0x1001ce5f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10046320]
call fcn.100144fb
pop ecx
test eax, eax
je 0x1001ce7f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001ce81
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x474f00
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 0x474f42
call fcn.0047a885
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x474f42
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474f39
xor eax, eax
jmp 0x474f4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474f50
pop edi
pop esi
pop ebx
ret 4

Function at 0x47adb5
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 0x47ade3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ae01
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ad1b
jmp 0x47ae01
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ae01
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ad1b
test edi, edi
mov eax, edi
jne 0x47adeb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6d07670c
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section._RDATA
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xdf91bd1
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x41a831
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov eax, dword [ebx + 4]
test eax, eax
je 0x41a844
pop ebx
leave
ret
push esi
xor ecx, ecx
mov esi, dword fs:[ecx + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
mov eax, dword [esi + 8]
add esp, 0xfffffffc
mov dword [ebp - 0xc], eax
push 0x706165
push 0x48657461
push 0x636f6c6c
push 0x416c7452
lea ecx, [esp]
push ecx
push eax
call fcn.0041a87d
jmp 0x41a96d
mov dword [ebx + 4], eax
add esp, 0x10
push 0
push 0x706165
push 0x48656572
push 0x466c7452
lea eax, [esp]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041a87d
mov dword [ebx + 8], eax
add esp, 0x14
pop esi
pop ebx
leave
ret

Function at 0x41a87d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0xc
push ebp
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41a8a0
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x41a8a0
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x41a8aa
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret 8
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x20], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebx
cmp ecx, ebx
ja 0x41a8ec
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0xc
ret 8
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x41a94e
mov ecx, ebx
lea ebx, [ebx]
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x41a949
mov eax, dword [esp + 0x24]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x41a934
test dl, dl
je 0x41a930
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x41a934
add ecx, 2
add eax, 2
test dl, dl
jne 0x41a914
xor eax, eax
jmp 0x41a939
sbb eax, eax
or eax, 1
test eax, eax
je 0x41a95a
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, eax
jb 0x41a901
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret 8
mov eax, dword [esp + 0x18]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0xc
ret 8