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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4061bd
pop dword [ebp - 0x50]
mov eax, 0x6c30413d
sub eax, 0x6befdf80
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x1c1508e4
add dword [ebp - 0x60], 0x323d3c67
mov dword [ebp - 0x5c], 0x345d624c
add dword [ebp - 0x5c], 0xfdd5e9f9
mov dword [ebp - 0x58], 0x794dde53
sub dword [ebp - 0x58], 0x2d019a25
mov dword [ebp - 0x54], 0xb0911311
add dword [ebp - 0x54], 0x4f6eecef
lea eax, [ebp - 0x60]
push eax
mov eax, 0x3be626b6
sub eax, 0x3ba5b572
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x393198f1
sub dword [ebp - 0x60], 0xc4bf2f9b
mov dword [ebp - 0x5c], 0x2f915386
sub dword [ebp - 0x5c], 0xee24f211
mov dword [ebp - 0x58], 0x18bdfb68
sub dword [ebp - 0x58], 0xb54e8efc
mov dword [ebp - 0x54], 0x865ab3f1
add dword [ebp - 0x54], 0x79a54c0f
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3806d
push 0
call eax
mov ecx, 0x4a4c
xor edi, edi
add edi, eax
mov ebx, 0xd1a78afe
add ebx, 0x2e9bd502
add ebx, dword [ebp - 0x50]
mov edx, 0xfb69be4a
add edx, 0x563b4bef
xor dword [ebp - 0x18], 0x81b84871
mov esi, dword [ebx]
sub dword [ebp - 8], 0xf5b472e5
xor esi, edx
mov dword [edi], esi
xor dword [ebp - 0x40], edx
add edi, 0x6bd224ad
sub edi, 0x6bd224a9
add ebx, 0xceefb2c0
add ebx, 0x31104d44
loop 0x4062d6
add eax, 0x11c03
mov ebx, eax
add eax, 0x5829f390
sub eax, 0x5829f38b
mov ecx, 0xa73e3f1f
sub ecx, 0xa6fe3f1f
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x402d53
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00402ec2
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
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 - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00576000
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
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 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
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 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409b38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x409b47
pop dword [ebp - 0x2c]
mov eax, 0x409b47
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x1558b289
sub dword [ebp - 0x3c], 0xc7066d3e
mov dword [ebp - 0x38], 0x22860cf7
add dword [ebp - 0x38], 0xfad3f4e
mov dword [ebp - 0x34], 0xd31e0ed
add dword [ebp - 0x34], 0x3f1a6341
mov dword [ebp - 0x30], 0x6bccbe7d
add dword [ebp - 0x30], 0x94334183
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x203bef60
add eax, 0xe004e0f4
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xcdafc581
add dword [ebp - 0x3c], 0xa6c2a3d5
mov dword [ebp - 0x38], 0xed1e7684
sub dword [ebp - 0x38], 0xabb2150f
mov dword [ebp - 0x34], 0x4b54b3da
sub dword [ebp - 0x34], 0xe7e5476e
mov dword [ebp - 0x30], 0x4658483e
add dword [ebp - 0x30], 0xb9a7b7c2
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3dd02
push 0
call eax
mov ecx, 0xb04ab821
add ecx, 0x4fb5a0f4
mov edi, eax
mov edx, 0x2e3a0f82
sub edx, 0x2df85f82
add edx, dword [ebp - 0x2c]
mov esi, 0xa5acfb85
sub esi, 0xbc35e074
sub dword [ebp - 0x24], 0xdc7bb223
mov ebx, dword [edx]
add dword [ebp - 8], esi
add ebx, esi
xor dword [ebp - 0x20], ebx
mov dword [edi], ebx
mov dword [ebp - 0x14], 0xa71d8113
add edi, 0x681f0dd6
add edi, 0x97e0f22e
add edx, 0xb5fedbb4
add edx, 0x4a012450
loop 0x409c5f
add eax, 0x8cbd7271
add eax, 0x7343e4b6
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x1014784
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x101f6a0
call fcn.01014994
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x102c3c8
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x101453b
cmp eax, esi
jne 0x101452e
xor esi, esi
inc esi
mov ebx, esi
jmp 0x101453e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1014515
xor esi, esi
inc esi
mov eax, dword [0x102c3c4]
cmp eax, esi
jne 0x1014551
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1014580
mov eax, dword [0x102c3c4]
test eax, eax
jne 0x101457a
mov dword [0x102c3c4], esi
push 0x100123c
push 0x1001230
call fcn.0101447a
pop ecx
pop ecx
test eax, eax
je 0x1014580
jmp 0x10146a8
mov dword [0x1029754], esi
mov eax, dword [0x102c3c4]
cmp eax, esi
jne 0x10145a4
push 0x100122c
push 0x1001220
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x102c3c4], 2
test ebx, ebx
jne 0x10145b0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x102c3cc], 0
je 0x10145d4
push 0x102c3cc
call fcn.01014909
pop ecx
test eax, eax
je 0x10145d4
push 0
push 2
push 0
call dword [0x102c3cc]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1014630
test al, al
je 0x10145ee
cmp dword [ebp - 0x1c], 0
jne 0x1014630
mov al, byte [esi]
test al, al
je 0x10145fe
cmp al, 0x20
ja 0x10145fe
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10145ee
test byte [ebp - 0x3c], 1
je 0x101460a
movzx eax, word [ebp - 0x38]
jmp 0x101460d
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1029750], eax
cmp dword [0x1029744], 0
jne 0x1014684
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x101463f
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1014652
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10145db
cmp dword [0x1029754], 0
jne 0x1014693
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1029750]
jmp 0x10146b4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010149d9
ret
call fcn.01014b7f
jmp 0x10144db
Function at 0x101a679
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2000000
push 0
push 0x1003684
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101a6d9
push edi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x101a6d9
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x101a6d9
xor eax, eax
inc eax
jmp 0x101a6db
xor eax, eax
leave
ret 0x10

Function at 0x101a7fd
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x2000000
xor edi, edi
push edi
push 0x1003684
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101a873
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10036a0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101a86a
cmp dword [ebp - 0xc], 4
jne 0x101a86a
cmp dword [ebp - 0x10], edi
je 0x101a86a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1021290], edi
xor eax, eax
jmp 0x101a8b2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1021290], edi
jge 0x101a8ad
lea eax, [ebp - 0x34]
push eax
mov dword [0x1021290], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x101a8ad
cmp word [ebp - 0x14], 5
jb 0x101a8ad
call fcn.0101a6e4
test eax, eax
je 0x101a8ad
emms
mov dword [0x1021290], 1
mov eax, dword [0x1021290]
pop edi
leave
ret

Function at 0x101a8ba
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1021020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x101a903
inc eax
jmp 0x101a940
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x101a934
cmp dword [ebp - 0x94], 4
ja 0x101a930
jne 0x101a940
cmp dword [ebp - 0x90], 0xa
jb 0x101a940
mov ecx, 0x55d
cmp word [ebp - 0x8c], cx
jb 0x101a940
xor eax, eax
jmp 0x101a940
xor eax, eax
cmp dword [ebp - 0x88], 2
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010147ad
leave
ret
Function at 0x101a951
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1021020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x101a9ae
cmp dword [ebp - 0x88], 2
jne 0x101a9ae
cmp dword [ebp - 0x94], 5
jb 0x101a9ae
xor eax, eax
inc eax
jmp 0x101a9b0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010147ad
leave
ret

Function at 0x101aff7
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [0x1029a90], eax
jne 0x101b091
push ebx
push esi
push edi
mov esi, 0x1003858
xor edi, edi
push esi
inc edi
push eax
mov dword [0x1029a90], edi
mov dword [ebp - 4], eax
call fcn.0101b0ea
push esi
push 0
mov ebx, eax
call fcn.0101b0ea
add esp, 0x10
mov esi, eax
test ebx, ebx
je 0x101b041
test esi, esi
je 0x101b041
cmp ebx, esi
jne 0x101b044
mov dword [ebp - 4], edi
test ebx, ebx
je 0x101b04f
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test esi, esi
je 0x101b05e
cmp esi, ebx
je 0x101b05e
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 4], 0
pop ecx
je 0x101b08e
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1003800
call esi
push 0x10037a0
call esi
push 0x1003748
call esi
push 0x1003718
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101b174
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
mov dword [ebp - 0x14], eax
cmp edx, eax
jae 0x101b297
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, dword [ebp + 0x14]
jae 0x101b27b
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x101b1cd
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
mov dword [ebp + 0xc], edx
cmp edx, dword [ebp - 0x14]
jb 0x101b1ab
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x101d72b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1021020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xdc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0xec]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebx + 8]
push eax
xor esi, esi
push esi
push esi
push 0x1011878
push ecx
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0xf0], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xf4], esi
cmp dword [ebx + 0x171c], esi
jbe 0x101d8f3
lea eax, [ebx + 0x55c]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x101d8d1
mov edi, dword [ebx + eax*4 + 0x2318]
mov eax, dword [ebp - 0xf4]
inc eax
push eax
push 0x1011864
lea eax, [ebp - 0xcc]
push 0x64
push eax
mov dword [ebp - 0x104], edi
call fcn.0101bdf2
add esp, 0x10
push esi
lea eax, [ebp - 0xf8]
push eax
push esi
push 0x20019
push esi
push esi
push esi
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x100]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x101d8d1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xdc]
push eax
push esi
push esi
push 0x101184c
push dword [ebp - 0xf8]
mov dword [ebp - 0x108], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xf0]
push eax
lea eax, [edi + 0x2b74]
push eax
push esi
push esi
push 0x1011834
push dword [ebp - 0xf8]
mov dword [ebp - 0xf0], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
add edi, 0x43c
pop ecx
lea esi, [ebp - 0xdc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x101d891
push 4
pop ecx
lea edi, [ebp - 0xec]
lea esi, [ebp - 0xdc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x101d8c3
lea eax, [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x104]
add eax, 0x2b78
push eax
push 0
push 0
push 0x1011810
push dword [ebp - 0xf8]
mov dword [ebp - 0xf0], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc dword [ebp - 0xf4]
mov eax, dword [ebp - 0xf4]
add dword [ebp - 0xfc], 0x234
cmp eax, dword [ebx + 0x171c]
jb 0x101d7a9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010147ad
leave
ret 4
Function at 0x101d909
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push 2
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jl 0x101da39
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, esi
call fcn.0101b92a
mov dword [esi + 4], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov ecx, esi
call fcn.0101bf8d
mov eax, dword [esi + 4]
cmp eax, 1
je 0x101d966
cmp eax, 3
je 0x101d966
cmp eax, 2
jne 0x101d978
mov ecx, esi
call fcn.0101c119
cmp eax, ebx
jge 0x101d978
mov byte [esi + 0x21], 1
mov dword [esi + 0x24], eax
cmp dword [esi + 4], 1
jne 0x101d9c9
push ebx
push ebx
push 0x400
push dword [esi + 0xc]
mov byte [esi + 0x18], 1
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x101d9bb
push ebx
push ebx
push dword [esi + 0xc]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x101d9c2
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0x18], bl
jne 0x101d994
jmp 0x101d9c9
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0x20
call sub.d3d9.dll_Direct3DCreate9
mov dword [esi + 0x2340], eax
cmp eax, ebx
jne 0x101d9e3
mov dword [esi + 0x24], 0x82000001
jmp 0x101da33
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
cmp eax, ebx
jge 0x101d9f3
mov dword [esi + 0x24], eax
jmp 0x101da33
mov ecx, esi
call fcn.0101c516
cmp eax, ebx
jl 0x101d9ee
xor edx, edx
cmp dword [esi + 0x233c], ebx
jbe 0x101da2c
lea ecx, [esi + 0x2318]
mov eax, dword [ecx]
cmp byte [eax + 0x2b71], bl
jne 0x101da37
cmp byte [eax + 0x2b73], bl
jne 0x101da37
inc edx
add ecx, 4
cmp edx, dword [esi + 0x233c]
jb 0x101da0e
mov dword [esi + 0x24], 0x82000003
mov byte [esi + 0x21], 1
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0xa94c4c
Capabilities:
Parse pe header

Disassembly:
mov eax, 8
call fcn.00b5e1fc
mov eax, dword [esp + 0x10]
dec eax
jne 0xa94d2a
mov eax, dword [0x10121d34]
test eax, eax
jne 0xa94d03
push esi
push 0x100cc558
mov dword [0x10121d34], 1
call dword [0x100cc0bc]
add esp, 4
test eax, eax
je 0xa94cef
mov dl, byte [eax]
xor ecx, ecx
cmp dl, 0x7e
push edi
sete cl
mov edi, ecx
lea edx, [esp + 8]
push edx
push 0x100cc550
lea esi, [edi + eax]
push esi
call dword [0x100cc0b8]
add esp, 0xc
test eax, eax
jne 0xa94ccb
push eax
push eax
push esi
call dword [0x100cc0b4]
add esp, 0xc
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jmp 0xa94cd3
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
test edi, edi
pop edi
je 0xa94cf4
call fcn.00a9784c
mov ecx, dword [esp + 4]
mov esi, dword [esp + 8]
not ecx
not esi
and eax, ecx
and edx, esi
jmp 0xa94cf4
call fcn.00a9784c
or ah, 4
mov dword [0x1012407c], edx
mov dword [0x10124078], eax
pop esi
mov ecx, dword [esp + 0xc]
cmp word [ecx], 0x5a4d
jne 0xa94d2a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xa94d2a
cmp ecx, dword [eax + 0x34]
je 0xa94d2a
mov dword [0x10121d38], 1
mov eax, 1
add esp, 8
ret 0xc
Function at 0xa9fdd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.00b5e1fc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0xa9fd97
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0xa9fda9
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0xa9ff4f
push esi
call fcn.00b0237c
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0xa9fddf
push 0x100ccb5c
push 0x68
push 0x100ccb44
call fcn.00a94f4c
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0xa9fe3c
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.00af952c
add esp, 0xc
test eax, eax
je 0xa9ff42
mov eax, dword [esp + 0x98]
push ebp
push eax
push edi
call fcn.00af96dc
add esp, 0xc
test eax, eax
je 0xa9ff42
lea esi, [ebx + 0x4c]
lea ecx, [ebx + 0x50]
push esi
push ecx
push edi
call fcn.00af980c
add esp, 0xc
test eax, eax
je 0xa9ff42
jmp 0xa9fe7b
test ebp, ebp
jl 0xa9fe48
cmp ebp, 0x80
jle 0xa9fe5c
push 0x100ccb1c
push 0x75
push 0x100ccb44
call fcn.00a94f4c
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x4c]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0xa9fea0
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x50]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0xa9fea9
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x1c]
push ebp
push esi
push edi
call fcn.00af952c
add esp, 0xc
test eax, eax
je 0xa9ff42
push esi
call fcn.00b0237c
lea edx, [esp + 0x14]
push eax
push edx
push edi
call fcn.00af96dc
add esp, 0x10
test eax, eax
je 0xa9ff42
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0xa9fef0
lea edi, [ebx + 0x34]
push ebp
push esi
push edi
call fcn.00af952c
add esp, 0xc
test eax, eax
je 0xa9ff42
push esi
call fcn.00b0237c
lea edx, [esp + 0x14]
push eax
push edx
push edi
call fcn.00af96dc
add esp, 0x10
test eax, eax
je 0xa9ff42
lea eax, [ebx + 0x1c]
add ebx, 4
push eax
push ebx
call fcn.00af98ac
add esp, 8
test eax, eax
jne 0xa9ff58
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
test eax, eax
je 0xa9ff2e
jmp 0xa9fea7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret