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

Disassembly:
lea eax, [ecx + 0x18]
push esi
lea esi, [edx - 0x61c88647]
mov dword [eax], edx
add edx, 0x3c6ef372
mov dword [ecx + 0x1c], esi
mov dword [ecx + 0x4018], 0x587c4
mov dword [ecx + 0x401c], 0xfff
mov dword [ecx + 0x20], edx
mov ecx, 3
pop esi
mov edx, dword [eax + 4]
xor edx, dword [eax]
add eax, 4
xor edx, ecx
xor edx, 0x9e3779b9
mov dword [eax + 8], edx
inc ecx
cmp ecx, 0x1000
jl 0x10002b72
ret

Function at 0x10002c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ecx + 8]
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
cmp eax, dword [ecx + 4]
jne 0x10002c94
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 3
jle 0x10002d32
mov esi, dword [ecx + 0x401c]
inc esi
and esi, 0xfff
mov dword [ecx + 0x401c], esi
mov eax, dword [ecx + esi*4 + 0x18]
mov edx, 0x4911
mul edx
xor ebx, ebx
add eax, dword [ecx + 0x4018]
adc edx, ebx
mov dword [ecx + 0x4018], edx
mov edx, 0xfffffffe
sub edx, eax
mov dword [ecx + esi*4 + 0x18], edx
mov eax, dword [ecx + 0x401c]
mov edx, dword [ecx + eax*4 + 0x18]
lea eax, [ecx + 0x18]
lea esi, [edx - 0x61c88647]
mov dword [eax], edx
add edx, 0x3c6ef372
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x4018], 0x587c4
mov dword [ecx + 0x401c], 0xfff
mov dword [ecx + 0x1c], esi
mov edx, 3
mov esi, dword [eax + 4]
xor esi, edx
xor esi, dword [eax]
inc edx
xor esi, 0x9e3779b9
mov dword [eax + 0xc], esi
add eax, 4
cmp edx, 0x1000
jl 0x10002d12
mov dword [esp + 0xc], ebx
mov esi, dword [ecx + 0x401c]
inc esi
and esi, 0xfff
mov dword [ecx + 0x401c], esi
mov eax, dword [ecx + esi*4 + 0x18]
mov edx, 0x4911
mul edx
xor ebx, ebx
add eax, dword [ecx + 0x4018]
adc edx, ebx
inc dword [esp + 0xc]
mov dword [ecx + 0x4018], edx
mov edx, 0xfffffffe
sub edx, eax
mov dword [ecx + esi*4 + 0x18], edx
mov eax, dword [ecx + 0x401c]
mov eax, dword [ecx + eax*4 + 0x18]
and eax, dword [ecx]
xor edx, edx
cmp dword [ecx + 0x14], edx
jbe 0x10002d96
mov esi, dword [ecx + 0x10]
cmp eax, dword [esi]
je 0x10002c94
inc edx
add esi, 4
cmp edx, dword [ecx + 0x14]
jb 0x10002d85
xor edx, edx
cmp dword [ecx + 8], edx
jbe 0x10002db1
mov esi, dword [ecx + 0xc]
cmp eax, dword [esi]
je 0x10002c94
inc edx
add esi, 4
cmp edx, dword [ecx + 8]
jb 0x10002da0
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
pop edi
mov dword [esi + edx*4], eax
inc dword [ecx + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002dca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10002dd4
repz ret
jmp fcn.10003124
Function at 0x10005f12
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000322a
and dword [ebp - 0x14], 0
cmp dword [0x1001c7d8], 0
mov dword [ebp - 0x18], eax
jne 0x10005fc5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000606d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000606d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001c7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001c7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001c7e0], eax
call edi
push eax
call esi
mov dword [0x1001c7e8], eax
test eax, eax
je 0x10005fc5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001c7e4], eax
mov eax, dword [0x1001c7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000601e
cmp dword [0x1001c7e8], ecx
je 0x1000601e
push eax
call esi
push dword [0x1001c7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000601e
test ebx, ebx
je 0x1000601e
call edi
test eax, eax
je 0x10006015
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10006015
test byte [ebp - 8], 1
jne 0x1000601e
or dword [ebp + 0x10], 0x200000
jmp 0x10006051
mov eax, dword [0x1001c7dc]
cmp eax, dword [ebp - 0x18]
je 0x10006051
push eax
call esi
test eax, eax
je 0x10006051
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10006051
mov eax, dword [0x1001c7e0]
cmp eax, dword [ebp - 0x18]
je 0x10006051
push eax
call esi
test eax, eax
je 0x10006051
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001c7d8]
call esi
test eax, eax
je 0x1000606d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000606f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002dca
leave
ret
Function at 0x408930
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x431860]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
lea eax, [ebp - 0x154]
push 0
push eax
mov dword [ebp - 0x158], 0x44
call fcn.00411ca0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x158]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
mov dword [ebp - 0x12c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
call fcn.00408910
int3

Function at 0x4089c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x431860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov bl, dl
mov esi, ecx
mov byte [ebp - 0x130], 0
call fcn.00411ca0
mov al, byte [0x42cf9c]
movq xmm0, qword [str.pgH0BwW]
add esp, 0xc
mov byte [ebp - 0x1c], al
xor eax, eax
push str.X:.Trash_100
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], al
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x130]
xorps xmm0, xmm0
push 0x104
push eax
movq qword [ebp - 0x13], xmm0
call fcn.0040e3a9
add esp, 0xc
lea eax, [ebp - 0x130]
push str.ctfmon.exe
push 0x104
push eax
call fcn.0040e681
lea edx, [ebp - 0x24]
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x408a64
lea eax, [ebp - 0x14]
sub edx, ecx
push 0x10
push eax
lea ecx, [ebp - 0x24]
call fcn.004056c0
push str.0037
push esi
call fcn.0040e880
add esp, 0x10
cmp eax, esi
jne 0x408a95
test bl, bl
jne 0x408b24
push 0x42cd74
push esi
call fcn.0040e880
add esp, 8
lea ecx, [eax + 1]
lea edx, [ebp - 0x130]
call fcn.0040ab40
test al, al
je 0x408b24
push ecx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x130]
call fcn.0040bb90
add esp, 4
test eax, eax
jne 0x408b34
push 0x40
push eax
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - 0x178], 0x44
call fcn.00411ca0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x178]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x130]
push eax
push 0
mov dword [ebp - 0x14c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408b44
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d0ff
mov esp, ebp
pop ebp
ret
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00408930
call fcn.00408910
int3
Function at 0x420cac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041700a
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x420ce4
xor eax, eax
jmp 0x420d10
cmp esi, dword [ebp - 4]
je 0x420d0d
cmp dword [ebp + 0xc], 0
je 0x420d0d
push dword [edi + 0x9c]
call fcn.004208ba
push dword [edi + 0x9c]
mov esi, eax
call fcn.00412316
pop ecx
pop ecx
cmp esi, eax
je 0x420ce0
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x412910
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x418980], ecx
add edx, 1
cmp edx, 0x100
jb 0x412912
cmp edx, 0x800
jae 0x4129fb
mov edi, edi
mov eax, dword [edx*4 + 0x418580]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x418980]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41897c], eax
jb 0x4129d0
mov dword [0x41896c], 0x413050
call fcn.00412b40
test eax, eax
jne 0x412a18
mov dword [0x41896c], 0x412f70
ret

Function at 0x401020
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ebx
mov ebx, dword [eax + 4]
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x58d84e99
add edx, eax
sub edx, 0x6a
mov eax, dword [ebp - 8]
mov eax, 0x6bbe
mov eax, dword [eax + 0x3fb4ea]
push 0x5d58
call eax
mov ecx, 0xc6ef3720
add eax, eax
add edi, eax
sub esi, 0x74
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov edx, eax
shr edx, 5
mov esi, eax
shl esi, 4
xor edx, esi
mov esi, ecx
shr esi, 0xb
and esi, 3
add edx, dword [edi + esi*4]
mov esi, ecx
xor esi, eax
add edx, esi
sub ebx, edx
sub edi, 0xf1
sub esi, eax
mov eax, eax
add ecx, 0x61c88647
add eax, eax
add edx, eax
mov esi, dword [ebp + 8]
mov eax, ebx
shr eax, 5
mov edx, ebx
shl edx, 4
xor eax, edx
mov edx, ecx
and edx, 3
add eax, dword [esi + edx*4]
mov edx, ecx
xor edx, ebx
add eax, edx
sub dword [ebp - 4], eax
test ecx, ecx
jne 0x401061
xor edi, eax
mov ecx, dword [ebp - 0x43]
xor esi, dword [ebp - 0x42]
mov esi, 0x3562
mov esi, dword [esi + 0x3feb32]
push 0x54d9
call esi
add eax, eax
mov esi, 0
mov esi, 0
mov edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40102f
Capabilities:
Query environment variable

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 8], ebx
je 0x401052
push 0x104
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x401052
mov bl, 1
mov al, bl
pop ebx
ret

Function at 0x4018b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40191f
cmp dword [ebp + 0x10], 1
je 0x4018f7
cmp dword [ebp + 0x10], 2
je 0x4018f7
push 0xd
pop eax
jmp 0x40191f
mov eax, dword [ebp - 4]
test edi, edi
je 0x401919
test eax, eax
je 0x401914
test al, 1
jne 0x4018f2
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x401919
jmp 0x4018f2
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x401df9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x401e06
xor eax, eax
pop ebp
ret
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret

Function at 0x401e62
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
xor edi, edi
push eax
inc edi
push 0x2000000
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401edb
cmp dword [ebp + 8], esi
je 0x401edb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x8000008
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, esi
jne 0x401edf
xor eax, eax
jmp 0x401efd
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40210d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.004039d0
mov eax, dword [0x408020]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push esi
mov esi, dword [ebp + 0xf9c]
push edi
mov edi, dword [ebp + 0xf94]
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x788], ax
lea eax, [ebp + 0x78a]
push eax
call sub.MSVCR100.dll_memset
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [ebp + 0x788]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x788]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
je 0x4021a3
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x402212
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x405f64
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x7c]
test eax, eax
je 0x4021d1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402214
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xf98]
lea ecx, [ebp - 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402206
test dx, dx
je 0x402202
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402206
add eax, 4
add ecx, 4
test dx, dx
jne 0x4021e0
xor eax, eax
jmp 0x40220b
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
call fcn.004039b4
add ebp, 0xf8c
leave
ret

Function at 0x402428
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x404a90
call fcn.00403a3b
mov eax, dword [ebp + 8]
push 0x104
push eax
xor edi, edi
push edi
push edi
xor ecx, ecx
push 0x4052bc
mov word [eax], cx
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x40249c
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.00403938
pop ecx
pop ecx
push edi
push esi
call fcn.00404710
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.004035ea
push eax
push esi
push 0x405868
call fcn.00403938
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x402495
ret
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x40254d
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x4024f9
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x402460
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x40254d
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x40254d
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x402460
mov eax, esi
call fcn.00403a71
ret
Function at 0x403434
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x408020]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0040182f
mov ebx, eax
cmp ebx, esi
je 0x4034a7
lea ecx, [ebp - 0x74]
call fcn.00401814
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004039b4
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4034bf
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403434
cmp eax, esi
jne 0x4034f1
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x4034af
lea ecx, [ebp - 0x74]
call fcn.00401814
push dword [ebp - 0x78]
mov ecx, edi
call fcn.004017a5
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401814
mov eax, esi
jmp 0x40348d
Function at 0x403774
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.004039d0
mov eax, dword [0x408020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x7fe
push esi
push eax
mov word [ebp - 0x1044], ax
lea eax, [ebp - 0x1042]
push eax
call sub.MSVCR100.dll_memset
push ebx
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x1044]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll__vsnwprintf_s]
add esp, 0x20
test eax, eax
jns 0x4037d6
xor eax, eax
mov word [ebp - 0x846], ax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.004036f2
push 0x40634c
lea eax, [ebp - 0x44]
push 0x20
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
xor eax, eax
push esi
push eax
mov word [ebp - 0x844], ax
lea eax, [ebp - 0x842]
push eax
call sub.MSVCR100.dll_memset
add esp, 0x2c
mov eax, edi
push 2
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x403826
sub eax, edx
sar eax, 1
cmp eax, 6
jbe 0x403876
mov ecx, 0x406350
lea eax, [edi + eax*2 - 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403868
test dx, dx
je 0x403864
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403868
add eax, 4
add ecx, 4
test dx, dx
jne 0x403842
xor eax, eax
jmp 0x40386d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403876
xor esi, esi
inc esi
jmp 0x403878
xor esi, esi
lea eax, [ebp - 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x40387e
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, str.Error:
test esi, esi
jne 0x40389c
mov eax, 0x406370
lea ecx, [ebp - 0x1044]
push ecx
push eax
lea esi, [edi + edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, edi
push 0xffffffffffffffff
push eax
lea eax, [ebp + esi - 0x844]
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
add esp, 0x20
test eax, eax
jns 0x4038ee
xor eax, eax
movzx ecx, word [eax + 0x40639c]
mov word [ebp + eax - 0x4e], cx
add eax, ebx
test cx, cx
jne 0x4038db
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x844]
push eax
call sub.MSVCR100.dll_memcpy
lea edi, [ebp - 0x844]
add esp, 0xc
sub edi, 2
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x40390b
lea eax, [ebp - 0x844]
mov esi, 0x4063a4
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004039b4
leave
ret

Function at 0x4039b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408020]
jne 0x4039be
repz ret
jmp fcn.00403e8e
Function at 0x43b673
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
dec ebx
mov ebx, 0xbc345c39
add esi, esi
call fcn.0043b6b7
sub ebx, esi
xor dword [ecx], edi
mov ebx, 0x1ec8fa60
sub esi, 0xc557ba42
add esi, 0xb152cf9c
inc ecx
sub ebx, ebx
sub esi, 0x2d018697
cmp ecx, eax
jne fcn.0043b673
dec ebx
or esi, ebx
push 0x619df5e8
pop esi
ret