joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fcb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x48fce3
push esi
call fcn.00492da0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x48fcdc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x48fd69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x48fd52
mov eax, dword [esi + 8]
test eax, eax
je 0x48fd07
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x48fd4e
cmp eax, 2
je 0x48fd52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48fcfa
cmp eax, 3
je 0x48fd2d
cmp eax, 1
jne 0x48fcfa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x48fcfa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x48fcfa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0048fd90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x48fd78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0048fd90
add esp, 4
pop esi
ret

Function at 0x49c090
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x49c133
test eax, eax
jbe 0x49c133
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x49c133
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x49c0de
xor esi, esi
jmp 0x49c0e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x49c10f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044f8c0
add esi, eax
push esi
mov ebx, esi
call fcn.0044f8c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x49c0f0
pop ebp
test edi, edi
pop edi
jne 0x49c133
test ebx, ebx
je 0x49c133
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004bc3e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x49c275
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49c38d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49c38d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004cdd59
mov esi, eax
test esi, esi
je 0x49c38d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49c38d
mov ecx, esi
call fcn.0049c1e0
cmp edi, eax
jge 0x49c38d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x49c313
mov dword [esp + 0x34], 1
jmp 0x49c36e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49c38d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0049b750
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4a4230
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cb20
push 0x4bd810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.004bb9a0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a43e0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x4a4421
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x4a448e
cmp dword [esp + 0x1c], 2
jne 0x4a448e
cmp dword [esp + 0x10], 5
jne 0x4a448e
cmp dword [esp + 0x14], 1
jne 0x4a448e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a4478
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4a4469
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x4a4471
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x4a448e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x4a5020
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.004bc2c0
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.004bd629
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a51cd
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x4a51cd
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.004a51e0
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.004a51e0
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.004a51e0
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.004a51e0
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x4a51cd
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret
Function at 0x4a7390
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x56b894]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4a73a3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4a73e4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x56b93c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4a7416
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a741a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4a740b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4a7438
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a743c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4a742d
xor ecx, ecx
mov eax, 0x56b8a4
xor ebx, ebx
mov bl, byte [ecx + 0x56b94c]
cmp byte [esp + ebx + 0x14], 0
je 0x4a7467
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x56b964]
cmp byte [esp + ebx + 0x14], 0
je 0x4a747e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4a744e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a73d7
lea edx, [esp + 0x84]
push edx
call fcn.004a74c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4ce6fc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ce734
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cc73c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cc714
jmp 0x4ce740
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cfdee
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 0x4cfe30
call fcn.004d5ad8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cfe30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cfe27
xor eax, eax
jmp 0x4cfe38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cfe3e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d5fed
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 0x4d601b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d6039
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d5f53
jmp 0x4d6039
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d6039
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d5f53
test edi, edi
mov eax, edi
jne 0x4d6023
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x421430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x42144a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421440
mov eax, 1
add ebx, ebx
jne 0x421463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421458
jne 0x421474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421458
xor ecx, ecx
sub eax, 3
jb 0x421488
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4214fa
mov ebp, eax
add ebx, ebx
jne 0x421493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4214a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4214c4
inc ecx
add ebx, ebx
jne 0x4214b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4214a5
jne 0x4214c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4214a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4214e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4214d5
jmp 0x421446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4214e4
add edi, ecx
jmp 0x421446
pop esi
mov edi, esi
mov ecx, 0x393
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421502
cmp byte [edi], 1
jne 0x421502
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x421507
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421576
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x212b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21324]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421534
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2132c]
or eax, eax
je 0x421570
mov dword [ebx], eax
add ebx, 4
jmp 0x421551
call dword [esi + 0x21328]
mov ebp, dword [esi + 0x21330]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4215aa
sub esp, 0xffffff80
jmp 0x405930
Function at 0x401550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
test ebx, ebx
push edi
jle 0x40159f
mov edi, dword [esp + 0x10]
mov eax, dword [edi + esi*4]
push 0x40c3f0
push eax
call fcn.00402dd1
add esp, 4
push eax
call fcn.00402d6e
add esp, 8
test eax, eax
jne 0x401599
mov ecx, dword [edi + esi*4]
push ecx
push 0x40c3e8
push 0x40f088
call fcn.00402c68
add esp, 0xc
jmp 0x40159a
inc esi
inc esi
cmp esi, ebx
jl 0x401563
push 0x40c3e4
push 0x40f088
call fcn.00402c68
add esp, 8
push str.TEXT
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4015de
push str.Couldnt_load_usage_instructions__n
call fcn.00402c32
add esp, 4
pop edi
pop esi
pop ebx
ret
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ebx, [eax + eax + 2]
push ebx
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x40161d
push str.Out_of_memory_creating_UNICODE_buffer__n
call fcn.00402c32
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
ret
push ebx
push esi
push 0xffffffffffffffff
push edi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40164f
push esi
push 0x40c334
call fcn.00402c32
add esp, 8
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop edi
pop esi
pop ebx
ret
push str.Could_not_convert_resource__n
call fcn.00402c32
add esp, 4
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4017c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea eax, [esp]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 2
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x401876
mov ecx, dword [esp + 0x14]
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40186c
mov edx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40185a
mov ecx, dword [esp + 0x24]
mov word [esi + ecx*2], ax
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 4]
push eax
call esi
mov eax, 1
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
Function at 0x401ec0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov edi, edi
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov eax, dword [esp + 8]
cmp eax, 5
mov esi, 0xffff
jl 0x401f3d
push edi
push eax
call fcn.00401970
add esp, 8
test eax, eax
je 0x401f47
push 5
push str.regsvr32.exe__s_cnv6x70.dll
call dword [sym.imp.KERNEL32.dll_WinExec]
call fcn.00401ac0
mov esi, eax
test esi, esi
mov eax, 0x40f088
jne 0x401f17
mov eax, 0x40f068
push esi
push str._r_nexptapes.exe_exit_code___d._r_n
push eax
call fcn.00402c68
push 0x40f068
call fcn.00403555
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ecx
ret
push eax
push edi
call fcn.00401550
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4023f0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 8], eax
mov dword [esi], 0x40ca2c
mov dword [esi + 0xc], 0xffffffff
xor ecx, ecx
push edi
xor edi, edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
lea edx, [esi + 0x10]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
xor eax, eax
lea ecx, [esi + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push edi
mov dword [ecx + 0xc], eax
push edi
mov dword [ecx + 0x10], eax
push 3
mov dword [ecx + 0x14], eax
push edi
mov dword [ecx + 0x18], eax
push edi
mov dword [ecx + 0x1c], eax
mov edx, dword [esi + 8]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4024ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x400
push eax
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 0xc]
push edx
push 0x40ca54
push 0x40f088
call fcn.00402c68
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0xc
push eax
call edi
push 0x40c3e4
call edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x4026e0
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0x40caec
je 0x40270f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x402719
push eax
call edi
mov esi, dword [esi + 0xc]
test esi, esi
je 0x402723
push esi
call edi
pop edi
pop esi
ret
Function at 0x4036c3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x40cc58
call fcn.00403ac0
mov edi, 0x94
mov eax, edi
call fcn.00404f60
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x410544], ecx
mov eax, dword [esi + 4]
mov dword [0x410550], eax
mov edx, dword [esi + 8]
mov dword [0x410554], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x410548], esi
cmp ecx, 2
je 0x403723
or esi, 0x8000
mov dword [0x410548], esi
shl eax, 8
add eax, edx
mov dword [0x41054c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40375c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40375c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403774
cmp eax, 0x20b
je 0x403761
mov dword [ebp - 0x1c], edi
jmp 0x403788
cmp dword [ecx + 0x84], 0xe
jbe 0x40375c
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x403782
cmp dword [ecx + 0x74], 0xe
jbe 0x40375c
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00406730
pop ecx
test eax, eax
jne 0x4037b4
cmp dword [0x410528], 2
je 0x4037a1
call fcn.00406064
push 0x1c
call fcn.00405ebc
push 0xff
call fcn.00404957
pop ecx
pop ecx
call fcn.0040667f
mov dword [ebp - 4], edi
call fcn.004046a2
test eax, eax
jge 0x4037cd
push 0x1b
call fcn.00403615
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410ae0], eax
call fcn.00406558
mov dword [0x410520], eax
call fcn.004064b1
test eax, eax
jge 0x4037f3
push 8
call fcn.00403615
pop ecx
call fcn.00406274
test eax, eax
jge 0x403804
push 9
call fcn.00403615
pop ecx
push 1
call fcn.004049cc
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40381a
push eax
call fcn.00403615
pop ecx
mov eax, dword [0x410564]
mov dword [0x410568], eax
push eax
push dword [0x41055c]
push dword [0x410558]
call fcn.00401ec0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x403849
push esi
call fcn.00404b01
call fcn.00404b2d
jmp 0x40387b
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00403afb
ret