joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411e5b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x413074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x68
lea eax, [ebp - 0x67c]
mov ebx, ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
and dword [ebp - 0x684], eax
xor edi, edi
mov dword [ebp - 0x68c], eax
xor esi, esi
push 0x1a
pop eax
mov dword [ebp - 0x688], eax
lea edx, [ebp - 0x680]
mov ecx, esi
call fcn.00408914
cmp dword [ebp - 0x680], 3
jne 0x411ec5
inc edi
mov dword [ebp + esi*4 - 0x67c], 1
inc esi
cmp esi, 0x19
jle 0x411ea3
mov dword [ebp - 0x680], edi
xor edi, edi
cmp dword [ebp + edi*4 - 0x67c], 0
je 0x411fb7
xor eax, eax
lea edx, [ebp - 0x614]
push ecx
mov ecx, edi
mov word [ebp - 0x20c], ax
call fcn.004089a9
push 0
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov eax, edx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
lea eax, [edi + 0x41]
movzx eax, ax
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x6a
call fcn.00411b52
add esp, 0xc
lea ecx, [ebp - 0x40c]
mov esi, eax
mov edx, 0x100
push esi
call fcn.004075b9
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
lea eax, [ebp - 0x40c]
push eax
push 0
push 0x143
push 0x3e7
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
mov esi, eax
push esi
push 0x151
push 0x3e7
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edx, dword [ebp - 0x684]
mov ecx, dword [0x41357c]
inc edx
mov dword [ebp - 0x684], edx
cmp ecx, edi
je 0x411fa9
mov eax, dword [ebp - 0x688]
cmp eax, 0x1a
je 0x411fa9
cmp eax, 2
jge 0x411fbd
cmp ecx, 0x1b
je 0x411fa9
cmp ecx, 0x1a
jne 0x411fbd
mov dword [ebp - 0x68c], esi
mov dword [ebp - 0x688], edi
jmp 0x411fbd
mov edx, dword [ebp - 0x684]
inc edi
cmp edi, 0x19
jle 0x411ed3
test dx, dx
je 0x41202c
mov edi, 0x3e7
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
movzx esi, ax
mov eax, dword [ebp - 0x68c]
or esi, 0x10000
push eax
push 0x14e
push edi
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push esi
push edi
mov esi, 0x111
push esi
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x680], 1
mov eax, dword [ebp - 0x688]
mov dword [0x41357c], eax
jne 0x412027
push 0
push 1
push esi
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
jmp 0x41202e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004124d0
leave
ret
Function at 0x4124c0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x412d30
call fcn.00412b1c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x413598
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4122de
cmp eax, esi
jne 0x4122d1
xor esi, esi
inc esi
mov edi, esi
jmp 0x4122e1
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x4122b5
xor esi, esi
inc esi
cmp dword [0x41359c], esi
jne 0x4122f3
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x41232d
cmp dword [0x41359c], ebx
jne 0x412327
mov dword [0x41359c], esi
push 0x401178
push 0x40116c
call fcn.00412418
pop ecx
pop ecx
test eax, eax
je 0x41232d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x412402
mov dword [0x4130c4], esi
cmp dword [0x41359c], esi
jne 0x412350
push 0x401168
push 0x401150
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x41359c], 2
test edi, edi
jne 0x41235d
xor eax, eax
mov ecx, 0x413598
xchg dword [ecx], eax
cmp dword [0x4135a8], 0
je 0x412389
push 0x4135a8
call fcn.00412950
pop ecx
test eax, eax
je 0x412389
push ebx
push 2
push ebx
mov esi, dword [0x4135a8]
mov ecx, esi
call dword [0x414340]
call esi
push dword [0x4130d0]
push dword [0x4130cc]
push dword [0x4130c8]
call fcn.004087ce
add esp, 0xc
mov dword [0x4130c0], eax
cmp dword [0x4130d8], 0
jne 0x4123e7
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x4130c4], 0
jne 0x4123fb
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4130c0]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00412a59
jmp 0x412299

Function at 0x412820
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x412d70
call fcn.00412b1c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x412880
cmp eax, 0xffffffff
je 0x412880
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x412879
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x412879
cmp edx, 0x10000000
jae 0x412879
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x412876
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412900
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41293e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x412936
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x412940
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x412926
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x412a20
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412a4f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412a4f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001610
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1000166a
mov eax, dword [esp]
cmp al, 1
jne 0x10001664
shr eax, 8
cmp al, 1
jne 0x10001664
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100018e6
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
or eax, 0xffffffff
xor ecx, esp
call fcn.100018e6
add esp, 0x194
ret

Function at 0x100052d6
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100081ea
push ebx
push esi
call fcn.10008116
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100080aa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10008197
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100081e9
push edi
push eax
call fcn.10006551
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100081b7
call fcn.10006517
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100081e8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100080aa
add esp, 0x20
test eax, eax
jne 0x100081d6
push edi
call fcn.10006517
jmp 0x100081de
push ebx
call fcn.10006517
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10008457
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa60
push 0x1000fa58
push str.FlsAlloc
push 0x1f
call fcn.10008373
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000848b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e130]
call esi
jmp 0x10008491
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100084d5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa70
push 0x1000fa68
push str.FlsGetValue
push 0x21
call fcn.10008373
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000850c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10008514
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa78
push 0x1000fa70
push str.FlsSetValue
push 0x22
call fcn.10008373
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000854e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000d510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d53d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000d53d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x103d4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.103d41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x103d407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103d406a
add dl, dl
jne 0x103d4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103d40dc
xor eax, eax
add dl, dl
jne 0x103d4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103d417d
add dl, dl
jne 0x103d40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103d40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103d40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103d40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103d40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103d4075
mov eax, 1
add dl, dl
jne 0x103d40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103d40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103d40e1
sub eax, ebx
mov ebx, 1
jne 0x103d4128
mov ecx, 1
add dl, dl
jne 0x103d410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103d4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103d4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103d4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103d413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103d414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103d4136
cmp eax, 0x7d00
jae 0x103d416d
cmp eax, 0x500
jb 0x103d4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103d4075
cmp eax, 0x7f
ja 0x103d4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103d4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103d419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x103d4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406c20
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x406c39
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x406d19
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0xc]
push 0x4d0e28
push eax
call fcn.0049f012
add esp, 0xc
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push 0x4d0e40
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push 0x4d0e58
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push 0x4d0e6c
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push 0x4d0e7c
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push 0x4d0e98
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d02
lea eax, [esp + 8]
push 0x4d0ebc
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
jne 0x406d20
test esi, esi
je 0x406d0c
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 8], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
add esp, 0x20c
ret 8

Function at 0x406d40
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
cmp dword [0x4ea678], 0
push ebx
push esi
push edi
jne 0x406dc8
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
push dword [0x4e8ccc]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x406dbe
nop dword [eax + eax]
mov eax, dword [0x4e4808]
cmp eax, 0xffffffff
je 0x406d8f
test eax, eax
je 0x406dd1
call esi
mov ecx, dword [0x4e4808]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x406dd1
mov edx, 1
mov dword [0x4e47f0], 0
mov ecx, 0x8000012f
call fcn.004015e0
push dword [0x4e8ccc]
mov dword [0x4e47f0], 1
call edi
test eax, eax
je 0x406d70
mov dword [0x4ea678], 1
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100261a
Capabilities:
Terminate process

Disassembly:
push 0x272b
push 2
call fcn.010037dd
push 0x272f
push 2
call fcn.010037dd
add esp, 0x10
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x10032d3
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003a08
call fcn.01003484
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1005464
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10030e8
cmp eax, esi
jne 0x10030db
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10030eb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10030c2
xor esi, esi
inc esi
mov eax, dword [0x1005460]
cmp eax, esi
jne 0x10030fe
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003139
mov eax, dword [0x1005460]
test eax, eax
jne 0x1003133
mov dword [0x1005460], esi
push 0x100116c
push 0x1001160
call fcn.0100303f
pop ecx
pop ecx
test eax, eax
je 0x1003139
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1003203
mov dword [0x1005100], esi
mov eax, dword [0x1005460]
cmp eax, esi
jne 0x100315d
push 0x100115c
push 0x1001154
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1005460], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100316a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1005468], ebx
je 0x100318b
push 0x1005468
call fcn.010033f9
pop ecx
test eax, eax
je 0x100318b
push ebx
push 2
push ebx
call dword [0x1005468]
push dword [0x10050e8]
push dword [0x10050ec]
push dword [0x10050e4]
call fcn.010026fd
add esp, 0xc
mov dword [0x10050fc], eax
cmp dword [0x10050f0], ebx
jne 0x10031e9
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1005100], ebx
jne 0x10031f7
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10050fc]
call fcn.010034c9
ret
call fcn.010035d1
jmp 0x10030a0

Function at 0x100395c
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
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 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
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10039cd
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10039bb
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], ebx
je 0x10039cd
mov al, 1
jmp 0x10039cf
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010032ed
leave
ret 4
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x38da1415
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x21d167ea
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4025c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
push 0x422910
push 0x422920
call fcn.00402cc0
add esp, 8
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
call fcn.0040c5e5
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40263e
mov ecx, dword [ebp + 0x14]
add ecx, 4
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00401040
add esp, 8
mov eax, dword [ebp - 8]
mov cx, word [ebp + 0xc]
mov word [eax], cx
mov edx, dword [ebp - 8]
movzx eax, word [edx]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 8]
mov word [ecx], ax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 8]
mov word [ecx + 2], ax
jmp 0x402661
push 0x42292c
push 0x42293c
call fcn.00402cc0
add esp, 8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x4026e9
push 0
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4026aa
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x422960
push str.__s__Error__send_data_packet_error:__ld_0x_X
call fcn.00402cc0
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4026bc
push 0x4229a0
push str.__s__send_data_packet_ok
call fcn.00402cc0
add esp, 8
cmp dword [ebp - 8], 0
je 0x4026ce
mov edx, dword [ebp - 8]
push edx
call fcn.0040c3d6
add esp, 4
push str.SendDataPacket
push 0x4229dc
call fcn.00402cc0
add esp, 8
xor eax, eax
cmp dword [ebp - 4], 0xffffffff
setne al
mov esp, ebp
pop ebp
ret
Function at 0x402b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4272ac]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x124], 0
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push str.SOFTWAREHTCUSBPassThrough
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x402be8
mov dword [ebp - 4], 4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0
push 0
push str.Enable
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x402bde
cmp dword [ebp - 0x11c], 0
jbe 0x402bde
mov dword [0x429230], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x429230], 0
jne 0x402bf6
jmp 0x402cb2
push 0x104
lea edx, [ebp - 0x118]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x118]
push eax
call fcn.00401000
add esp, 8
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x402c33
mov ecx, dword [ebp - 0x124]
mov byte [ecx], 0
lea edx, [ebp - 0x230]
push edx
call fcn.00402af0
add esp, 4
push 0x422fb0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x118]
push ecx
push str._s_s__s.log
push 0x104
lea edx, [ebp - 0x118]
push edx
call fcn.0040c410
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x429220], eax
cmp dword [0x429220], 0
je 0x402cb2
push str.Dec__7_2012
push str.LoggerInitial
push str.__s__MODULE_BUILD_DATE:__s
call fcn.00402cc0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040c30d
mov esp, ebp
pop ebp
ret
Function at 0x402cc0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4272ac]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x429230], 0
je 0x402ce5
cmp dword [0x429220], 0
jne 0x402cea
jmp 0x402e7a
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
push 0xfa
lea ecx, [ebp - 0x428]
push ecx
call fcn.0040c81a
add esp, 0x10
movzx edx, word [ebp - 6]
push edx
movzx eax, word [ebp - 8]
push eax
movzx ecx, word [ebp - 0xa]
push ecx
movzx edx, word [ebp - 0xc]
push edx
movzx eax, word [ebp - 0xe]
push eax
movzx ecx, word [ebp - 0x12]
push ecx
push str._02d__02d__02d:_02d:_02d:_06d
push 0xfa
lea edx, [ebp - 0x328]
push edx
call fcn.0040c410
add esp, 0x24
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x328]
push ecx
push str._IPT___S__S
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.00403aa0
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x42c]
add edx, 1
mov dword [ebp - 0x430], edx
mov eax, dword [ebp - 0x42c]
mov cl, byte [eax]
mov byte [ebp - 0x431], cl
add dword [ebp - 0x42c], 1
cmp byte [ebp - 0x431], 0
jne 0x402d9c
mov edx, dword [ebp - 0x42c]
sub edx, dword [ebp - 0x430]
mov dword [ebp - 0x438], edx
push 0
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
lea edx, [ebp - 0x328]
push edx
mov eax, dword [0x429220]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x43c], ecx
mov edx, dword [ebp - 0x43c]
add edx, 1
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x43c]
mov cl, byte [eax]
mov byte [ebp - 0x441], cl
add dword [ebp - 0x43c], 1
cmp byte [ebp - 0x441], 0
jne 0x402e0a
mov edx, dword [ebp - 0x43c]
sub edx, dword [ebp - 0x440]
mov dword [ebp - 0x448], edx
push 0
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
lea edx, [ebp - 0x428]
push edx
mov eax, dword [0x429220]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x224]
push ecx
push 2
push 0x42303c
mov edx, dword [0x429220]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c30d
mov esp, ebp
pop ebp
ret