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

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x46bd89
mov esi, edi
mov edi, eax
jmp 0x46bd8b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x46bd9b
mov eax, ebx
jmp 0x46bda5
push eax
push ebx
call fcn.0041ad90
add esp, 8
test eax, eax
jne 0x46bdad
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x46bdc9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x46bdb4
cmp eax, dword [esi + 4]
jge 0x46bde0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x46bdd0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x46be01
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x46bdfe
dec eax
test eax, eax
jg 0x46bdf0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x472a37
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0054c3e0
mov eax, dword [0x661204]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x472ba4
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.00424d50
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.00424e50
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00483340
push ebp
call fcn.00424d50
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.00424e50
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00483340
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x472a53
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.0054c3c9
add esp, 0xa0
ret
Function at 0x4992f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e37d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x661204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.00498500
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
call fcn.00499f80
mov edi, eax
push 1
push 1
lea ecx, [edi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x4993aa
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x18]
push edi
cmp eax, dword [edi + 0x1c]
je 0x4993a8
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [eax - 4]
add dword [edi + 0x1c], 0xfffffffc
mov dword [ebp - 0x10], eax
call ebx
mov eax, dword [ebp - 0x10]
jmp 0x4993b8
call ebx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 0
call fcn.00499f80
mov edi, eax
push 1
push 1
lea ecx, [edi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x499404
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x18]
push edi
cmp eax, dword [edi + 0x1c]
je 0x499402
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [eax - 4]
add dword [edi + 0x1c], 0xfffffffc
mov dword [ebp - 0x10], eax
call ebx
mov eax, dword [ebp - 0x10]
jmp 0x499412
call ebx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x6c], eax
mov al, byte [ebp + 0x10]
mov byte [esi + 0x70], al
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x54], eax
add eax, ecx
mov dword [esi + 0x58], eax
mov al, byte [ebp + 0x14]
mov byte [esi + 0x28], al
mov eax, dword fs:[0x2c]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov ecx, dword [eax]
mov dword [esi + 0x50], 0
mov byte [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov eax, dword [0x670da0]
cmp eax, dword [ecx + 4]
jle 0x499499
push 0x670da0
call fcn.0054c843
add esp, 4
cmp dword [0x670da0], 0xffffffff
jne 0x499499
call fcn.00498660
push 0x5e8970
call fcn.0054cbbd
push 0x670da0
call fcn.0054c804
add esp, 8
cmp dword [0x670dc0], 0
jne 0x4994a7
call fcn.00499b50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x499b50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword fs:[0x2c]
mov esi, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [0x670da0]
cmp eax, dword [ecx + 4]
jg 0x499b89
push esi
mov ecx, 0x670db0
call fcn.00498980
pop esi
mov esp, ebp
pop ebp
ret
push 0x670da0
call fcn.0054c843
add esp, 4
cmp dword [0x670da0], 0xffffffff
jne 0x499b79
call fcn.00498660
push 0x5e8970
call fcn.0054cbbd
push 0x670da0
call fcn.0054c804
add esp, 8
jmp 0x499b79

Function at 0x49a330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov byte [esi + 4], 0
call fcn.00499f80
mov edi, eax
push 1
push 1
lea ecx, [edi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x49a38f
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x18]
push edi
cmp eax, dword [edi + 0x1c]
je 0x49a38d
mov eax, dword [edi + 0x1c]
mov dword [ebp - 8], eax
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
mov dword [ebp - 4], ecx
mov dword [edi + 0x1c], eax
call ebx
mov eax, dword [ebp - 4]
jmp 0x49a39d
call ebx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov byte [esi + 0xc], 1
call fcn.00499f80
mov edi, eax
push 1
push 1
lea ecx, [edi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x49a3e5
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x18]
push edi
cmp eax, dword [edi + 0x1c]
je 0x49a3e3
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
mov dword [ebp - 4], ecx
mov dword [edi + 0x1c], eax
call ebx
mov eax, dword [ebp - 4]
jmp 0x49a3f3
call ebx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
call fcn.00499f80
mov edi, eax
push 1
push 1
lea ecx, [edi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x49a437
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x18]
push edi
cmp eax, dword [edi + 0x1c]
je 0x49a435
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
mov dword [ebp - 4], ecx
mov dword [edi + 0x1c], eax
call ebx
mov eax, dword [ebp - 4]
jmp 0x49a445
call ebx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
push 0
push 0x49a2c0
mov dword [esi + 0x18], 0x499260
mov dword [esi + 0x1c], eax
call fcn.005cb170
add esp, 0xc
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49aa40
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x49ab9e
lea ecx, [esi*8]
mov eax, 0x2aaaaaab
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [esi*8]
lea eax, [ecx + ecx*2]
add eax, eax
sub edx, eax
sub edx, 2
je 0x49aa84
sub edx, 2
jne 0x49aa87
add ecx, 2
jmp 0x49aa87
add ecx, 3
mov eax, dword [ebp + 0x14]
inc ecx
cmp dword [eax], ecx
jge 0x49aa9b
mov dword [eax], ecx
mov eax, 0xfffffff0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x55555556
imul esi
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [eax + eax*2]
xor eax, eax
test ecx, ecx
jle 0x49ab34
dec ecx
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 4], eax
lea eax, [eax + eax*2]
mov dword [ebp - 8], eax
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
movzx eax, byte [eax + 0x5ea8c0]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
movzx eax, byte [eax + 0x5ea8c0]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
movzx eax, byte [eax + 0x5ea8c0]
mov byte [edi + 2], al
movzx eax, byte [esi + 0x5ea8c0]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x49aad0
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
cmp eax, esi
jge 0x49ab8f
movzx edx, byte [ebx]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, esi
jge 0x49ab49
movzx ecx, byte [ebx + 1]
jmp 0x49ab4b
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
movzx eax, byte [eax + 0x5ea8c0]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
movzx eax, byte [eax + 0x5ea8c0]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], esi
jge 0x49ab84
and ecx, 0xf
mov al, byte [ecx*4 + 0x5ea8c0]
mov byte [edi + 2], al
jmp 0x49ab88
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov ecx, dword [ebp + 0x14]
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [ecx], eax
mov byte [edi], 0
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49b390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call fcn.0049e130
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b3c2
sub ecx, edx
sar ecx, 1
je 0x49b48e
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x49b3e1
mov eax, dword [0x650ab8]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x49b400
push esi
mov ecx, 7
mov esi, str.PuddingDesktop
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
pop esi
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x49b425
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x49b454
lea eax, [ebp - 0x20c]
push eax
call fcn.0049f670
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x49b462
xor ecx, ecx
jmp 0x49b47f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b470
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0049ee20
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret 4

Function at 0x49b4a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call fcn.0049e130
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b4d2
sub ecx, edx
sar ecx, 1
je 0x49b59e
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x49b4f1
mov eax, dword [0x650ab8]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x49b510
push esi
mov ecx, 0xa
mov esi, str.PuddingDesktop.users
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
pop esi
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x49b535
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x49b564
lea eax, [ebp - 0x20c]
push eax
call fcn.0049f670
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x49b572
xor ecx, ecx
jmp 0x49b58f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b580
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0049ee20
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret 4
Function at 0x49b7e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e39f2
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], 0
call fcn.005b9c20
lea eax, [edi + 0xb4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x49b863
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x49b8a9
mov eax, dword [esi]
jmp 0x49b8ab
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x810], cx
je 0x49b8d1
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b8c2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.0049ee20
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 1
jb 0x49b8fb
mov eax, dword [esi]
jmp 0x49b8fd
mov eax, esi
mov ecx, ebx
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49b926
test dx, dx
je 0x49b922
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49b926
add eax, 4
add ecx, 4
test dx, dx
jne 0x49b900
xor eax, eax
jmp 0x49b92b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49b992
cmp byte [edi + 1], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x49b967
call fcn.0049b630
push eax
mov ecx, esi
call fcn.0049b1a0
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jb 0x49b992
inc ecx
push ecx
jmp 0x49b981
call fcn.0049b790
push eax
mov ecx, esi
call fcn.0049b1a0
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x49b992
inc eax
push eax
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.0049ef70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49bb40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 8
lea eax, [esi + 0x24]
jb 0x49bb61
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.0049f160
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49bb9b
lea eax, [ebp - 0x20c]
push eax
call fcn.0049f670
add esp, 4
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x49bba4
mov eax, dword [str.Related.ini]
mov dword [ecx], eax
mov eax, dword [0x5eac38]
mov dword [ecx + 4], eax
mov eax, dword [0x5eac3c]
mov dword [ecx + 8], eax
mov eax, dword [0x5eac40]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5eac44]
mov dword [ecx + 0x10], eax
mov eax, dword [0x5eac48]
mov dword [ecx + 0x14], eax
cmp word [ebp - 0x20c], 0
jne 0x49bbed
xor ecx, ecx
jmp 0x49bc05
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bbf6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x9c]
call fcn.0049ee20
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret
Function at 0x49c2b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 8
lea eax, [esi + 0x24]
jb 0x49c2d1
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.0049f160
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49c30b
lea eax, [ebp - 0x20c]
push eax
call fcn.0049f670
add esp, 4
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x49c314
mov eax, dword [str.Config.ini]
mov dword [ecx], eax
mov eax, dword [0x5eac80]
mov dword [ecx + 4], eax
mov eax, dword [0x5eac84]
mov dword [ecx + 8], eax
mov eax, dword [0x5eac88]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5eac8c]
mov dword [ecx + 0x10], eax
mov ax, word [0x5eac90]
mov word [ecx + 0x14], ax
cmp word [ebp - 0x20c], 0
jne 0x49c35f
xor ecx, ecx
jmp 0x49c37f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c370
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x3c]
call fcn.0049ee20
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret

Function at 0x49c440
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], 0
jne 0x49c48d
xor ecx, ecx
jmp 0x49c4a5
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c496
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
add esi, 0x114
push eax
mov ecx, esi
call fcn.0049ee20
push 1
push 0x650ab8
mov ecx, esi
call fcn.0049e9a0
cmp dword [esi + 0x14], 8
jb 0x49c4d2
mov eax, dword [esi]
jmp 0x49c4d4
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49c4ed
push 0x11
push str.C:Program_Files_
mov ecx, esi
call fcn.0049ee20
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret
Function at 0x49d5e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x66baa0]
test al, al
jne 0x49d683
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x49d67e
lea eax, [ebp - 0x20c]
push eax
call fcn.005c2181
lea eax, [ebp - 0x20c]
push str.config_systemprofile
push eax
call fcn.005b8fd5
add esp, 0xc
test eax, eax
jne 0x49d669
lea eax, [ebp - 0x20c]
push str.cocuments_and_settingslocalService
push eax
call fcn.005b8fd5
add esp, 8
test eax, eax
je 0x49d67e
mov al, 1
mov byte [0x66baa0], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret
mov al, byte [0x66baa0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret
Function at 0x49f4a0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfa4
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xfa4]
push esi
push edi
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, 0x17
lea edi, [ebp - 0xfa0]
mov esi, str.Program_FilesInternet_Exploreriexplore.exe
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49f4e3
lea edi, [ebp - 0xfa4]
sub eax, esi
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x49f500
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 1
push 0
push 0
push ebx
mov ecx, eax
and ecx, 3
push str.open
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
cmp eax, 0x20
ja 0x49f545
lea eax, [ebp - 0xfa4]
push eax
call fcn.0049f890
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret

Function at 0x49f670
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x49f680
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054c502
add esp, 4
mov ebx, eax
sub eax, esi
nop
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [eax + esi - 2], cx
test cx, cx
jne 0x49f6b0
xor esi, esi
mov dword [ebp + 8], 1
test edi, edi
js 0x49f709
nop dword [eax]
cmp word [ebx + esi*2], 0x5c
jne 0x49f6fd
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49f6f4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x49f71a
mov eax, 0x5c
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x49f6d0
mov dword [ebp + 8], 1
push ebx
call fcn.0054c50b
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
mov dword [ebp + 8], 0
call fcn.0054c50b
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret