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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x116c180]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004f74ef
mov dword [ebp - 0x14], eax
cmp dword [0x1191574], edi
jne 0x502dd3
push 0x800
push edi
push 0x1146c08
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x502d60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x502eb3
push 0x1146c08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x502eb3
push 0x1146c20
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x502eb3
push eax
call ebx
push 0x1146c2c
push esi
mov dword [0x1191574], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1146c3c
push esi
mov dword [0x1191578], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1146c50
push esi
mov dword [0x119157c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1191584], eax
test eax, eax
je 0x502dd0
push 0x1146c6c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1191580], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x502df8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x502deb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x502e0d
push 4
pop eax
jmp 0x502eb5
cmp dword [ebp - 0x14], edi
je 0x502e0d
push dword [0x1191574]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x502df2
mov eax, dword [0x1191580]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x502e6b
cmp dword [0x1191584], esi
je 0x502e6b
push eax
call ebx
push dword [0x1191584]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x502e6b
test eax, eax
je 0x502e6b
call ecx
test eax, eax
je 0x502e60
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 0x502e60
test byte [ebp - 8], 1
jne 0x502e6b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x502e9b
mov eax, dword [0x1191578]
cmp eax, esi
je 0x502e98
push eax
call ebx
test eax, eax
je 0x502e98
call eax
mov edi, eax
test edi, edi
je 0x502e98
mov eax, dword [0x119157c]
cmp eax, esi
je 0x502e98
push eax
call ebx
test eax, eax
je 0x502e98
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1191574]
call ebx
test eax, eax
je 0x502eb3
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x502eb5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3835
leave
ret
Function at 0x50be86
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50bebe
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.00509f14
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00509eec
jmp 0x50beca
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50d578
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 0x50d5ba
call fcn.00512ffa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50d5ba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50d5b1
xor eax, eax
jmp 0x50d5c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050d5c8
pop edi
pop esi
pop ebx
ret 4
Function at 0x2e001992
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2e03da4c]
jne 0x2e00199c
repz ret
jmp fcn.2e027a26

Function at 0x2e007f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x2e007f9f
pop dword [ebp - 0x24]
mov eax, 0x5a670709
sub eax, 0x2c66876a
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x895a6074
add dword [ebp - 0x34], 0xc4f7e4d7
mov dword [ebp - 0x30], 0xa7bd9861
sub dword [ebp - 0x30], 0x758a4c1c
mov dword [ebp - 0x2c], 0xf0c6083e
add dword [ebp - 0x2c], 0x5b863bf0
mov dword [ebp - 0x28], 0xc044b0f4
sub dword [ebp - 0x28], 0xc044b0f4
lea eax, [ebp - 0x34]
push eax
mov eax, 0xfe40ad3f
add eax, 0x2fc20301
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x8e224291
sub dword [ebp - 0x34], 0x19afd93b
mov dword [ebp - 0x30], 0x91a5cf98
add dword [ebp - 0x30], 0xafc691dd
mov dword [ebp - 0x2c], 0x75032a5b
sub dword [ebp - 0x2c], 0x1193bdef
mov dword [ebp - 0x28], 0x42d182a
add dword [ebp - 0x28], 0xfbd2e7d6
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xb86309ba
add eax, 0x759fa682
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3b143
push 0
call eax
mov ecx, 0x3872
xor edi, edi
add edi, eax
mov ebx, 0x2e04e800
add ebx, dword [ebp - 0x24]
mov esi, 0x65ffd263
mov dword [ebp - 0x18], 0xf7c89477
mov edx, dword [ebx]
add dword [ebp - 4], ecx
add edx, esi
xor dword [ebp - 0xc], 0xf7e2bfa4
mov dword [edi], edx
sub dword [ebp - 0x18], 0x6a44c722
add edi, 0x7543fa87
sub edi, 0x7543fa83
add ebx, 0x41144066
add ebx, 0xbeebbf9e
loop 0x2e0080b1
add eax, 0xf3cef89
add eax, 0xf0c3e512
xor ebx, ebx
add ebx, eax
add eax, 0x810a6056
add eax, 0x7ef59faf
mov ecx, 0x2e000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x2e010c88
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e028d1f
call fcn.2e001440
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call fcn.2e007f90
test ax, ax
je 0x2e010d3c
lea eax, [ebp - 0x14]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e010d3c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
mov edi, str.progid
push edi
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x2e010d30
mov eax, dword [ebp - 0x18]
inc eax
push eax
call fcn.2e007f90
pop ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call esi
test eax, eax
jne 0x2e010d24
push dword [ebp - 0x10]
call sub.MSVCR100.dll_strlen
pop ecx
mov ecx, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.2e007f90
push dword [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x1c]
mov eax, esi
call fcn.2e001489
ret
Function at 0x2e010d44
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2e028d4a
call fcn.2e0276dc
mov eax, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov byte [ebp - 0x2d], 0
cmp dword [eax + 0x10], edi
jbe 0x2e010e1f
push eax
lea ecx, [ebp - 0x2c]
call fcn.2e007f90
push esi
mov dword [ebp - 4], edi
call sub.MSVCR100.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.2e007f90
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x2e010d90
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e010e0f
lea eax, [ebp - 0x38]
push eax
push edi
mov esi, 0x2e02b538
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e010e06
mov eax, dword [ebp - 0x38]
inc eax
push eax
call fcn.2e007f90
mov edi, eax
pop ecx
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x38]
push eax
push edi
push 0
push 0
push esi
push dword [ebp - 0x34]
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e010dfb
push edi
call sub.MSVCR100.dll_strlen
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.2e007f90
mov byte [ebp - 0x2d], 1
push edi
mov byte [ebp - 4], 0
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.2e007f90
mov al, byte [ebp - 0x2d]
call fcn.2e02774b
ret 8

Function at 0x2e010e2a
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x2e028d77
call fcn.2e001440
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
push 0x80000001
call esi
cmp eax, ebx
je 0x2e010e62
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call esi
cmp eax, ebx
jne 0x2e010ecd
lea eax, [ebp + 8]
push eax
push ebx
mov esi, 0x2e02b538
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e010ec4
mov eax, dword [ebp + 8]
cmp eax, ebx
jl 0x2e010ec4
inc eax
push eax
call fcn.2e007f90
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp + 8]
push eax
push edi
push ebx
push ebx
push esi
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e010eb9
push edi
call sub.MSVCR100.dll_strlen
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push edi
call fcn.2e007f90
mov bl, 1
or dword [ebp - 4], 0xffffffff
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001489
ret 8
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x100062fa
pop dword [ebp - 0x38]
mov eax, 0x6087d802
add eax, 0xaf788af8
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x39f98
push 0
mov eax, 0x97c5bfc0
add eax, 0x783b80a4
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x4bcf
xor edx, edx
add edx, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x38]
mov esi, 0x52a53625
add esi, 0xa1db6c52
xor dword [ebp - 0x10], 0xe8fd0027
mov edi, dword [ebx]
add dword [ebp - 0x18], edi
sub edi, esi
sub dword [ebp - 0x1c], edx
mov dword [edx], edi
mov dword [ebp - 0x2c], 0x70458af0
add edx, 0xfcb1bd76
sub edx, 0xfcb1bd72
add ebx, 0x75552299
add ebx, 0x8aaadd6b
loop 0x1000634f
add eax, 0x1d0c557f
sub eax, 0x1d0b3370
mov ebx, eax
add eax, 5
mov ecx, 0x725e7209
add ecx, 0x9da18df7
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x1001a0b
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001e90
call fcn.01001ba4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003398
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10017c6
cmp eax, esi
jne 0x10017b9
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10017c9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10017a0
xor esi, esi
inc esi
mov eax, dword [0x1003394]
cmp eax, esi
jne 0x10017dc
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100180b
mov eax, dword [0x1003394]
test eax, eax
jne 0x1001805
mov dword [0x1003394], esi
push 0x10010d0
push 0x10010c4
call fcn.01001702
pop ecx
pop ecx
test eax, eax
je 0x100180b
jmp 0x100192f
mov dword [0x100305c], esi
mov eax, dword [0x1003394]
cmp eax, esi
jne 0x100182f
push 0x10010c0
push 0x10010b8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003394], 2
cmp dword [ebp - 0x20], ebx
jne 0x100183c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100339c], ebx
je 0x100185d
push 0x100339c
call fcn.01001b19
pop ecx
test eax, eax
je 0x100185d
push ebx
push 2
push ebx
call dword [0x100339c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100192f
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10018c7
cmp cx, bx
je 0x1001882
cmp dword [ebp - 0x1c], ebx
jne 0x10018c7
movzx ecx, word [eax]
cmp cx, bx
je 0x1001897
cmp cx, 0x20
ja 0x1001897
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001882
test byte [ebp - 0x40], 1
je 0x10018a3
movzx ecx, word [ebp - 0x3c]
jmp 0x10018a6
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003058], eax
cmp dword [0x100304c], ebx
jne 0x100190c
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10018d8
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100186c
cmp dword [0x100305c], ebx
jne 0x100191a
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003058]
jmp 0x100193b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001be9
ret
call fcn.01001cf1
jmp 0x1001763
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.10045294
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.10045294
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.10045294
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.10045294
mov esi, eax
test esi, esi
js 0x10025489
push dword [ebp - 0x18]
lea ecx, [edi + 8]
call fcn.10045294
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.10045294
mov esi, eax
test esi, esi
js 0x1002ed6e
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.10045294
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.10045294
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.10045294
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 0x1001a2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1001a2df
pop dword [ebp - 0x20]
mov eax, 0x96d92835
add eax, 0x79287aaa
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x4a545919
sub dword [ebp - 0x30], 0xfc0213ce
mov dword [ebp - 0x2c], 0x54de4a34
sub dword [ebp - 0x2c], 0x22aafdef
mov dword [ebp - 0x28], 0x1c0e6871
add dword [ebp - 0x28], 0x303ddbbd
mov dword [ebp - 0x24], 0x6c99986b
sub dword [ebp - 0x24], 0x6c99986b
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x3d7e97ec
sub dword [ebp - 0x30], 0xc90c2e96
mov dword [ebp - 0x2c], 0xbf3e56ca
sub dword [ebp - 0x2c], 0x7dd1f555
mov dword [ebp - 0x28], 0x7f84ad60
add dword [ebp - 0x28], 0xe3eabf0c
mov dword [ebp - 0x24], 0x9d7fc259
sub dword [ebp - 0x24], 0x9d7fc259
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x48eb1
push 0
call eax
mov ecx, 0xc2de253b
sub ecx, 0xc2ddd17e
xor esi, esi
add esi, eax
mov edx, 0xaf2d9194
add edx, 0x60d7bc6c
add edx, dword [ebp - 0x20]
mov edi, 0x6d9f5c23
add edi, 0x64ff8a61
add dword [ebp - 8], 0x9d573033
mov ebx, dword [edx]
xor ebx, edi
mov dword [esi], ebx
xor dword [ebp - 0xc], 0x584a5e4c
add esi, 0xb946079a
sub esi, 0xb9460796
add edx, 0x113abc2a
sub edx, 0x113abc26
loop 0x1001a3f9
add eax, 0x8ce8c5cc
add eax, 0x73187bfb
mov ebx, eax
add eax, 5
mov ecx, 0x9a523a9b
add ecx, 0x75adc565
add ecx, dword [ebp - 0x20]
call ebx
leave
ret