joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d578
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d2c
mov dword [ebp - 0x14], eax
cmp dword [0x4365b8], esi
jne 0x40d66b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d5f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d74b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d74b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d74b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4365b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4365bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4365c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4365c8], eax
test eax, eax
je 0x40d668
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4365c4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d690
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d683
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6a5
push 4
pop eax
jmp 0x40d74d
cmp dword [ebp - 0x14], esi
je 0x40d6a5
push dword [0x4365b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d68a
mov eax, dword [0x4365c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d703
cmp dword [0x4365c8], edi
je 0x40d703
push eax
call ebx
push dword [0x4365c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d703
test eax, eax
je 0x40d703
call ecx
test eax, eax
je 0x40d6f8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d6f8
test byte [ebp - 8], 1
jne 0x40d703
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d733
mov eax, dword [0x4365bc]
cmp eax, edi
je 0x40d730
push eax
call ebx
test eax, eax
je 0x40d730
call eax
mov esi, eax
test esi, esi
je 0x40d730
mov eax, dword [0x4365c0]
cmp eax, edi
je 0x40d730
push eax
call ebx
test eax, eax
je 0x40d730
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4365b8]
call ebx
test eax, eax
je 0x40d74b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d74d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040e0
mov esp, ebp
pop ebp
ret
Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1002999d
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1002999d
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret

Function at 0x1002999d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x100299ac
pop dword [ebp - 0x20]
mov eax, 0x100299ac
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3e202
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x7c59da49
add ecx, 0x83a6647c
mov edx, eax
mov esi, 0x87c9937d
add esi, 0x883a2a83
add esi, dword [ebp - 0x20]
mov ebx, 0x1d01ea65
sub ebx, 0x1f74a115
mov edi, dword [esi]
mov dword [ebp - 0x14], 0x2c0a9863
add edi, ebx
sub dword [ebp - 8], eax
mov dword [edx], edi
xor dword [ebp - 0x1c], ebx
add edx, 0xfdad47db
add edx, 0x252b829
add esi, 4
loop 0x10029a01
add eax, 0xede7
mov ebx, eax
add eax, 5
mov ecx, 0xf0977064
sub ecx, 0xe0977064
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x100117db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x100117ea
pop dword [ebp - 0x14]
mov eax, 0x683a8640
sub eax, 0x58396e56
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xfe7813bf
add dword [ebp - 0x24], 0x4fda318c
mov dword [ebp - 0x20], 0xa6962f82
sub dword [ebp - 0x20], 0x7462e33d
mov dword [ebp - 0x1c], 0xc344d2f5
add dword [ebp - 0x1c], 0x89077139
mov dword [ebp - 0x18], 0x8aa6b2ce
sub dword [ebp - 0x18], 0x8aa6b2ce
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x8376c905
add dword [ebp - 0x24], 0xf0fba051
mov dword [ebp - 0x20], 0x7b672beb
sub dword [ebp - 0x20], 0x39faca76
mov dword [ebp - 0x1c], 0xc50ae541
add dword [ebp - 0x1c], 0x9e64872b
mov dword [ebp - 0x18], 0x9a757ce0
add dword [ebp - 0x18], 0x658a8320
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3dd5b
push 0
call eax
mov ecx, 0xf3eef495
sub ecx, 0xf3ee9929
xor ebx, ebx
add ebx, eax
mov edi, 0xb2e669b8
sub edi, 0xa2e377b8
add edi, dword [ebp - 0x14]
mov edx, 0x7ef27888
xor dword [ebp - 0x10], eax
mov esi, dword [edi]
add esi, edx
sub dword [ebp - 8], 0xe38e48df
mov dword [ebx], esi
add dword [ebp - 0xc], 0xf7ee5d4e
add ebx, 0x5bfeaa2
sub ebx, 0x5bfea9e
add edi, 4
loop 0x100118fe
add eax, 0xb18e990
sub eax, 0xb17890d
mov ebx, eax
add eax, 0x37f0b652
sub eax, 0x37f0b64d
mov ecx, 0xeb702e05
add ecx, 0x248fd1fb
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x1001c020
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, dword [esi + 0x289c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x292c], eax
call edi
sub eax, dword [esi + 0x28a0]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x2930], eax
mov eax, dword [esi + 0x2d50]
test eax, eax
je 0x1001c08f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x28a0]
push dword [esi + 0x289c]
push dword [esi + 0x2930]
push dword [esi + 0x292c]
push dword [esi + 0x2d50]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
call fcn.100117db
pop ecx
pop edi
pop esi
ret

Function at 0x1001e4ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10029008]
jne 0x1001e4f4
repz ret
jmp fcn.1001ea43
Function at 0x42a786
Capabilities:
Encode data using xor

Disassembly:
sar dword [edx], cl
in eax, 0x77
imul ecx, esi, 0xffffffa9
ret 0x79a5
sar dword [eax + edi - 0x12], 0x23
add eax, 0x58c66c1f
cmp ebx, ecx
xor al, 0x64
lahf
nop
test al, 0x1e
push ds
cld
jb 0x42a771
mov bh, 0xbd
mov cl, 0x7f
fnstenv [eax - 0x423806d7]
lahf
insb byte es:[edi], dx
aam 0xe
mov edx, 0x6e924eee
push 0xfffffffffffffff9
shr byte [ecx - 0x11], 0x8c
jns 0x42a7bf
pop ebp
add cl, byte [edx]
loope 0x42a7c3
pushfd
sahf
dec ecx
xor eax, 0x988adf9d
mov ds, esi
jecxz 0x42a6e6
scasd eax, dword es:[edi]
mov esp, 0xf9026ccc
and dword [edx - 0x37c63fa9], esi
sbb eax, 0x8d886e19
daa
jnp 0x42a7eb
outsb dx, byte [esi]
mov byte [ebp - 0x208b84d9], cl
ret
ffreep st(3)
sbb eax, 0x64bd72f
xor al, 0x4b
sub al, 0x28
insb byte es:[edi], dx
dec edi
jb 0x42a787
inc ebx
fisub dword [edi + ebx + 0x55]
outsb dx, byte [esi]
adc byte [edi - 0x544ceeb5], ah
mov ch, 0x34
nop
jnp 0x42a720
cmp byte [edx], al
pop ds
sbb bh, byte [ecx]
adc dword [ecx + 0x60aae40a], eax
lahf
rcl byte [ebx + 0x6fd3387e], cl
jne 0x42a731
jns 0x42a783
js 0x42a805
cmp dword [edx + 0x28], eax
or esi, dword [esi - 0x6d]
dec esp
and esi, dword [ebp + 0xf]
cmc
mov al, 0x4b
sbb eax, 0xac5a4ba6
dec ebx
pop edx
lodsb al, byte [esi]
enter 0xffffffffffffc326, 0x20
outsd dx, dword [esi]
adc esi, dword [ecx]
jo 0x42a7fe
ret
call [edx]
out 3, al
xlatb
cmp byte [ebp + 0x2e], ah
sahf
push dword [edx]
sbb dl, dl
in al, 0xa3
mov al, byte [edx - 0x75202810]
push eax
adc al, ch
out 0x42, eax
loop 0x42a78b
xchg ecx, ebp
loopne 0x42a815
pop es
dec eax
popal
or al, 0x96
and dword [ebx + 0x29], esp
xor byte [edx - 0x7a], ch
sub al, 0xca
je 0x42a784
cmp edx, ebp
loope 0x42a840
xor eax, 0x708afd26
stosb byte es:[edi], al
cmp esi, ecx
into
mul dword [eax + 0x3f7f32e2]
hlt
test dword [esi], edi
shr dword [edx + ebp*4 + 0x4e96c591], 0xba
sahf
adc esi, esi
int 0x6b
out dx, eax
div esp
ret 0x261b
xchg edx, eax
outsb dx, byte [esi]
jne 0x42a89a
inc edx
dec eax
invalid
jo 0x42a89d
aam 0xc6
sbb eax, 0x749b8637
fmul qword [ebx]
mov edi, 0x738da440
sahf
invalid
mov gs, word [eax + 0x21]
sbb cl, bl
xor bl, byte [esi + esi*2 + 0x62be4e9f]
jge 0x42a8ab
mov ss, word [eax - 0xb01a833]
shrd dword [eax], esp, 0x74
xchg ecx, eax
invalid
Function at 0x47fcd3
Capabilities:
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
stosd dword es:[edi], eax
ror dword [edi], 1
test eax, 0x9f2ad1ab
pushal
xchg esi, eax
mov esp, 0x3577ee1f
pop esi
mov dword [edi + 0xd], edi
adc dword [esi + 0x1da2578c], eax
or edx, dword [edi]
mov ch, dh
pushfd
or eax, 0x5c5ba76
xchg ebx, eax
cmpsb byte [esi], byte es:[edi]
lahf
cmp eax, 0x1d08117d
xchg ebx, eax
aad 0xa4
mov ss, word [eax - 0x5bd13b60]
insb byte es:[edi], dx
mov byte [0x9c2f410c], al
pop ebp
inc edi
lodsd eax, dword [esi]
popfd
or bl, byte [esi + 0x71f58221]
out 0x47, al
or al, 0x9f
mov ecx, dword [edx + 0x15]
cmp eax, 0xa55ae5ad
pushfd
xchg ecx, edx
mov edi, 0xa4b20f55
imul ecx, dword [ebp + ebx*4 - 0x3d313b01], 0xffffffc5
sbb ecx, 0xa3b0bdb2
aam 0x5f
mov ah, 0x39
test byte [ebp + eax*8 + 0x102330fb], ch
cmp edi, ecx
jle 0x47fd6b
in eax, 0x5f
clc
and eax, 0x826e843c
or eax, 0xc16c29b
test dl, bl
in al, dx
mov edi, 0x3f961287
aas
inc ebp
adc ebp, ecx
lea edx, [ebp + ebp*8 + 0x6dc64155]
mov edx, 0x54f1eb49
inc ebp
sbb byte [eax - 0x16efbd6], dh
aam 3
xchg edx, eax
outsd dx, dword [esi]
xor dword [edx], ebx
mov ch, 0xc3
arpl word [edx], cx
aam 0xbc
invalid
jmp 0x47fd5e

Function at 0x4ba3e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x10], eax
push str.tbutton2221
push str.TButton2221
call fcn.00417e10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4ba42b
lea edx, [ebp - 0x14]
push edx
mov eax, dword [0x4c7aac]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
jmp fcn.006f37ef
Function at 0x4bb91d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c4368
cmp edx, dword [eax]
je 0x4bb93f
add eax, 8
inc ecx
cmp eax, 0x4c43f8
jl 0x4bb930
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c4368]
jne 0x4bba6d
mov eax, dword [0x4c8cec]
cmp eax, 1
je 0x4bba47
test eax, eax
jne 0x4bb970
cmp dword [0x4c4294], 1
je 0x4bba47
cmp edx, 0xfc
je 0x4bba6d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb9a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bc300
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc790
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb9ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc790
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0b84
push edi
call fcn.004be660
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bc300
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc310
lea eax, [ebp - 0xa0]
push 0x4c0b64
push eax
call fcn.004bc310
push dword [esi + 0x4c436c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc310
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004be5d4
add esp, 0x2c
pop edi
jmp 0x4bba6d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c436c]
push 0
push eax
push dword [esi]
call fcn.004bc790
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x29a010c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x29a010d6
pop dword [ebp - 0x44]
mov eax, 0x6061ab9f
sub eax, 0x36c19ac9
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xfb91e0f4
add dword [ebp - 0x54], 0x52c06457
mov dword [ebp - 0x50], 0xc81958d4
sub dword [ebp - 0x50], 0x95e60c8f
mov dword [ebp - 0x4c], 0x7e9af490
add dword [ebp - 0x4c], 0xcdb14f9e
mov dword [ebp - 0x48], 0x5cd163f6
add dword [ebp - 0x48], 0xa32e9c0a
lea eax, [ebp - 0x54]
push eax
mov eax, 0x84e7d662
sub eax, 0x5b4695d6
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xfb36525f
sub dword [ebp - 0x54], 0x86c3e909
mov dword [ebp - 0x50], 0xffedf518
sub dword [ebp - 0x50], 0xbe8193a3
mov dword [ebp - 0x4c], 0xb0d2e1a3
add dword [ebp - 0x4c], 0xb29c8ac9
mov dword [ebp - 0x48], 0x5375b606
add dword [ebp - 0x48], 0xac8a49fa
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x34c7b
push 0
call eax
mov ecx, 0x19042269
add ecx, 0xe6fc0f8f
xor esi, esi
add esi, eax
mov edi, 0x60bc217c
sub edi, 0x371a017c
add edi, dword [ebp - 0x44]
mov edx, 0xca675282
add edx, 0x4df31d82
sub dword [ebp - 0x18], 0x57edb8b9
mov ebx, dword [edi]
add dword [ebp - 0x20], esi
xor ebx, edx
add dword [ebp - 0x28], edi
mov dword [esi], ebx
add dword [ebp - 0x14], 0xd7e3580
add esi, 0xed32f9c4
add esi, 0x12cd0640
add edi, 4
loop 0x29a011f5
add eax, 0xcee845ab
add eax, 0x31187508
mov ebx, eax
add eax, 5
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x100252cf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x10049fb4
call fcn.10046eeb
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0x800
mov dword [ebp - 0x18], eax
lea ebx, [edi + 0x14]
push ebx
push dword [edi + 0xc]
mov dword [ebp - 4], eax
call fcn.10040238
mov esi, eax
pop ecx
pop ecx
test esi, esi
jns 0x1002531e
push dword [edi + 0xc]
push esi
push 0x7d6
push 0x84e
call fcn.1003d19b
add esp, 0x10
jmp 0x10025489
cmp dword [edi + 4], 0
je 0x10025489
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.1003f5ed
and dword [edi + 4], 0
push 0x1002
mov byte [ebp - 4], 2
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
push eax
push 0
push 0x800
lea ecx, [ebp - 0x3c]
call fcn.10040238
mov esi, eax
test esi, esi
jns 0x10025389
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.1003f607
cmp dword [ebp - 0x10], 0
je 0x10025489
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x10], 0
jmp 0x10025489
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
lea ecx, [ebp - 0x3c]
test esi, esi
js 0x10025364
push 0x100057b0
push dword [ebp - 0x14]
push 0x100057d0
call fcn.10040238
mov esi, eax
test esi, esi
js 0x10025361
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp - 0x38]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100254bb
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x20]
push eax
push 0
push 0x100057e0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002543a
cmp dword [ebp - 0x1c], eax
jbe 0x1002543a
mov ebx, dword [sym.imp.MSVCR100.dll__wcsicmp]
push 0x1000580c
push dword [ebp - 0x38]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10025430
push 0x10005800
push dword [ebp - 0x38]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10025430
push 0x10005818
push dword [ebp - 0x38]
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10025437
mov dword [edi + 4], 1
lea ebx, [edi + 0x14]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.1003f607
cmp dword [ebp - 0x10], 0
mov byte [ebp - 4], 0
je 0x1002545d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x10], 0
cmp dword [edi + 4], 0
je 0x10025489
lea eax, [ebp - 0x18]
push eax
push 0x10009ddc
push 7
push 0
push ebx
call fcn.10040238
mov esi, eax
test esi, esi
js 0x10025489
push dword [ebp - 0x18]
lea ecx, [edi + 8]
call fcn.10040238
mov esi, eax
cmp dword [ebp - 0x14], 0
je 0x10025498
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x100254b3
xor ecx, ecx
lea eax, [ebp - 0x18]
xchg dword [eax], ecx
test ecx, ecx
je 0x100254b3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, esi
call fcn.10046fc3
ret
mov dword [edi + 4], 1
jmp 0x1002543a
Function at 0x1002ebed
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x1004aef9
call fcn.10046f54
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], eax
call fcn.1003f5ed
xor eax, eax
mov esi, 0x800
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
mov edi, eax
mov dword [ebp - 0x24], eax
push 0x1002
mov byte [ebp - 4], 1
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x50]
call fcn.10040238
mov esi, eax
test esi, esi
js 0x1002ed6e
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.10040238
mov esi, eax
pop ecx
pop ecx
test esi, esi
js 0x1002ed6e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
test esi, esi
js 0x1002ed6e
push 0x100057b0
push dword [ebp - 0x28]
lea ecx, [ebp - 0x50]
push 0x100057d0
call fcn.10040238
mov esi, eax
test esi, esi
js 0x1002ed6e
lea eax, [ebp - 0x24]
push eax
push 0x20019
push edi
push dword [ebp - 0x4c]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002ed43
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x34]
push eax
push edi
push 0x100057e0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002ed43
cmp dword [ebp - 0x2c], eax
jbe 0x1002ed43
mov edx, dword [ebp - 0x4c]
mov ecx, 0x1000580c
mov eax, edx
mov si, word [eax]
cmp si, word [ecx]
jne 0x1002ed03
test si, si
je 0x1002ecff
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x1002ed03
add eax, 4
add ecx, 4
test si, si
jne 0x1002ecdd
xor eax, eax
jmp 0x1002ed08
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1002ed40
mov eax, 0x10005818
mov cx, word [edx]
cmp cx, word [eax]
jne 0x1002ed37
test cx, cx
je 0x1002ed33
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x1002ed37
add edx, 4
add eax, 4
test cx, cx
jne 0x1002ed11
xor eax, eax
jmp 0x1002ed3c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1002ed43
xor edi, edi
inc edi
mov esi, edi
neg esi
sbb esi, esi
and esi, 0x7ff8ffa9
add esi, 0x80070057
js 0x1002ed6e
push dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push 0x1000837c
push 7
push 0
push eax
call fcn.10040238
mov esi, eax
cmp dword [ebp - 0x28], 0
je 0x1002ed7d
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jns 0x1002ed95
push ebx
push esi
push 0x7d6
push 0x89f
call fcn.1003d19b
add esp, 0x10
cmp dword [ebp - 0x24], 0
je 0x1002eda8
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x24], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.1003f607
mov eax, esi
call fcn.10046fd7
ret 8

Function at 0x1004413c
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 2
jne 0x10044161
cmp dword [esi + 0x20], 0
je 0x10044161
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_DeleteFileW]
push dword [esi + 0x20]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
and dword [esi + 0x20], 0
pop ecx
xor eax, eax
pop esi
ret
Function at 0x5656e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4e2015
lea edi, [esi - 0xe1015]
mov dword [edi + 0x14d568], 0x547fe1db
push edi
or ebp, 0xffffffff
jmp 0x56570a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x565711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x565700
mov eax, 1
add ebx, ebx
jne 0x565723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x565734
jne 0x565753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x565753
dec eax
add ebx, ebx
jne 0x565740
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x565718
add ebx, ebx
jne 0x56574f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5657a5
xor ecx, ecx
sub eax, 3
jb 0x56576b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5657da
sar eax, 1
mov ebp, eax
jmp 0x565776
add ebx, ebx
jne 0x565776
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x565744
inc ecx
add ebx, ebx
jne 0x565784
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x565744
add ebx, ebx
jne 0x565791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x565786
jne 0x5657a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x565786
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5657c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5657b6
jmp 0x565706
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5657c4
add edi, ecx
jmp 0x565706
pop esi
mov edi, esi
mov ecx, 0x43c2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5657e2
cmp byte [edi], 0x2d
jne 0x5657e2
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 0x5657e7
lea edi, [esi + 0x15e000]
mov eax, dword [edi]
or eax, eax
je 0x565856
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1654ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16553c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x565814
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x165544]
or eax, eax
je 0x565850
mov dword [ebx], eax
add ebx, 4
jmp 0x565831
call dword [esi + 0x165540]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x565887
cmp al, 0xef
ja 0x56587a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x56585c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x565869
mov ebp, dword [esi + 0x165548]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x1658e2]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5658d3
sub esp, 0xffffff80
jmp 0x4014c0