joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da7f1
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x5c928a
call fcn.00496753
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
xor ebx, ebx
push 0x22c
push ebx
push eax
mov edi, ebx
call fcn.004e1330
add esp, 0xc
lea ecx, [ebp - 0x40]
push esi
call fcn.00446660
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
call fcn.004db4ab
pop ecx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4da846
jmp 0x4da8e7
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4da8d2
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x4da87c
mov eax, ebx
jmp 0x4da889
lea eax, [ebp - 0x248]
push eax
call fcn.004e608a
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446930
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004db4ab
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00450800
lea ecx, [ebp - 0x28]
push ebx
push 1
test eax, eax
je 0x4da8d8
mov byte [ebp - 4], bl
call fcn.00446840
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4da85f
jmp 0x4da8e0
xor edi, edi
inc edi
call fcn.00446840
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00446840
mov eax, edi
call fcn.004966fd
ret

Function at 0x4dab5b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.004e1330
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 0xa
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00495c0c
mov esp, ebp
pop ebp
ret

Function at 0x4dabb2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.004e1330
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
pop esi
jb 0x4dac08
cmp dword [ebp - 0x118], 2
jb 0x4dac08
xor eax, eax
inc eax
jmp 0x4dac12
cmp dword [ebp - 0x11c], 0xa
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret
Function at 0x4dac94
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x358
mov eax, 0x5c9352
call fcn.00496753
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2ac]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x5e6e28
push SysReAllocStringLen
mov dword [ebp - 0x2ac], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4dacd6
xor al, al
jmp 0x4daef6
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004e1330
add esp, 0xc
mov dword [ebp - 0x2b0], 0x104
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b4], 1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2b4]
push eax
push ebx
push str.URL_Protocol
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4daccf
xor eax, eax
mov dword [ebp - 0x264], 7
mov edi, str.tencent:__QQForwardFile__subcmdForwardFromOsMenuinParam
mov dword [ebp - 0x268], ebx
push edi
mov word [ebp - 0x278], ax
call fcn.004e608a
pop ecx
push eax
push edi
lea ecx, [ebp - 0x278]
call fcn.00446930
lea eax, [ebp - 0x2a8]
mov dword [ebp - 4], ebx
push eax
call fcn.004da37c
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 1
push eax
call fcn.004d8e5a
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00466e30
add esp, 0x14
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push 1
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x364]
push 0x40
push 0x20
push eax
mov byte [ebp - 4], 3
call fcn.004d7db1
mov eax, dword [ebp - 0x364]
mov byte [ebp - 4], 4
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x358], 6
je 0x4dadfd
xor esi, esi
jmp 0x4daeb1
push 0x5e6ed0
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.0046fd50
add esp, 0xc
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
cmovae ecx, dword [ebp - 0x248]
add eax, eax
push ebx
push eax
push ecx
lea ecx, [ebp - 0x364]
mov byte [ebp - 4], 5
call fcn.004dc912
lea ecx, [ebp - 0x364]
call fcn.004dc022
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x230]
call fcn.0044ee80
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x230]
call fcn.00447260
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.004dda5d
pop ecx
xor esi, esi
lea ecx, [ebp - 0x230]
push esi
push 1
mov bl, 1
call fcn.00446840
push esi
push 1
lea ecx, [ebp - 0x248]
call fcn.00446840
lea ecx, [ebp - 0x364]
call fcn.004d81f8
push esi
push 1
lea ecx, [ebp - 0x260]
call fcn.00446840
push esi
push 1
lea ecx, [ebp - 0x290]
call fcn.00446840
push esi
push 1
lea ecx, [ebp - 0x2a8]
call fcn.00446840
push esi
push 1
lea ecx, [ebp - 0x278]
call fcn.00446840
mov al, bl
call fcn.004966fd
ret
Function at 0x4daf80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
mov ebx, 0xf013f
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push SysReAllocStringLen
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x4db058
lea eax, [ebp - 8]
push eax
push ebx
push edi
push str.SoftWare
push dword [ebp - 4]
call esi
test eax, eax
je 0x4dafd9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4db058
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x4daffd
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4db04e
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4db01b
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4db049
push dword [ebp + 0x18]
call fcn.004e608a
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x18]
push 1
push edi
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4db05f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov ebx, 0xf013f
mov dword [ebp - 0xc], edi
push ebx
push edi
push str.SoftWare
push SysReAllocStringLen
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4db11c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4db0bd
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4db11b
push edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x4db0e3
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x4db119
push dword [ebp + 0x14]
call fcn.004e608a
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4db438
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.004e1330
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
pop esi
jg 0x4db49b
cmp dword [ebp - 0x118], 2
jg 0x4db49b
xor eax, eax
inc eax
jmp 0x4db49d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret

Function at 0x4db84c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4db8c3
push edi
push dword [ebp + 0xc]
call fcn.004e608a
pop ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
lea eax, [ebp - 8]
mov byte [ebp - 1], 0xff
push eax
push 1
lea eax, [ebp - 1]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 8]
mov byte [ebp - 1], 0xfe
push eax
push 1
lea eax, [ebp - 1]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
lea eax, [edi + edi]
push eax
push dword [ebp + 0xc]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4dbbcf
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5c94fe
call fcn.00496753
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4dbccf
cmp byte [ebx + 0x3d], 0
je 0x4dbccf
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4dbc09
xor al, al
jmp 0x4dbcd1
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.004641f0
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4dbc67
sub eax, 1
je 0x4dbc6b
dec eax
sub eax, 1
je 0x4dbcbd
xor bl, bl
jmp 0x4dbcbf
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4dbca3
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004ea5c2
add esp, 0x10
cmp esi, eax
jne 0x4dbc63
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x4dbcbd
test esi, esi
jne 0x4dbc2d
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00464250
jmp 0x4dbc27
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00446a80
mov al, bl
jmp 0x4dbcd1
mov al, 1
call fcn.004966fd
ret
Function at 0x4dbe5f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x4dbe6f
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x4dbeaf
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebx
ret

Function at 0x4dbf1f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4dbf28
pop esi
ret
Function at 0x4dc22e
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x5c958a
call fcn.00496753
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x4dc25a
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x4dc3bb
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4dc288
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4dc288
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x4dc3bb
cmp dword [esi + 0x4c], 0
je 0x4dc3b9
mov ecx, esi
call fcn.004dbf60
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x4dc2b8
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.004d7d2f
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x4dc3b9
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.004641f0
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x4dc3ad
cmp eax, 1
jg 0x4dc392
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x4dc363
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.004ea5c2
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x4dc3ad
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x4dc38d
test edx, edx
jne 0x4dc2e3
cmp dword [ebp - 0x18], 0x20
jae 0x4dc3ad
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.00464250
jmp 0x4dc2e0
mov ebx, dword [ebp + 8]
jmp 0x4dc3ad
cmp eax, 3
jne 0x4dc3ad
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.004d7d2f
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00446a80
mov eax, ebx
call fcn.004966fd
ret 4

Function at 0x4dc44d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x4dc464
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x4dcd63
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4dce1c
push esi
call fcn.004e608a
pop ecx
test eax, eax
je 0x4dce1c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4dce18
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x4dce18
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004e1330
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004e664e
pop ecx
pop ecx
test eax, eax
je 0x4dce1c
lea eax, [ebp - 0x20c]
push eax
call fcn.004dcd63
pop ecx
test al, al
je 0x4dce1c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
jmp 0x4dce1e
mov al, 1
jmp 0x4dce1e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00495c0c
mov esp, ebp
pop ebp
ret

Function at 0x4ddba6
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfe0
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xfa4]
push edi
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Program_FilesInternet_Exploreriexplore.exe
push 0x5e7588
call fcn.004e608a
pop ecx
lea ecx, [ebp - 0xfa4]
lea eax, [ecx + eax*2]
push eax
call fcn.004e67ab
lea eax, [ebp - 0xfa4]
push esi
push eax
call fcn.004eb8ca
push 0x3c
xor edi, edi
lea eax, [ebp - 0xfe0]
push edi
push eax
call fcn.004e1330
add esp, 0x1c
mov dword [ebp - 0xfdc], 0x200
xor eax, eax
mov dword [ebp - 0xfcc], esi
inc eax
mov ecx, str.open
mov dword [ebp - 0xfd4], ecx
push eax
push edi
push edi
push esi
push ecx
push edi
mov dword [ebp - 0xfc4], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4ddc57
push edi
push edi
lea eax, [ebp - 0xfa4]
push edi
push eax
call fcn.004d8761
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00495c0c
mov esp, ebp
pop ebp
ret 4
Function at 0x4ddd3f
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4ddd87
xor eax, eax
jmp 0x4dde71
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004e1330
add esp, 0xc
mov dword [ebp - 0x41c], 0x104
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x6e478c
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4dde53
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004e1330
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.004eb8ca
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ddd80
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.004e67ab
pop ecx
pop ecx
jmp 0x4dde6e
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.004e67ab
pop ecx
pop ecx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00495c0c
mov esp, ebp
pop ebp
ret 4
Function at 0x4ddea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor ebx, ebx
push 0x208
push ebx
push eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x21c], ebx
call fcn.004e1330
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
push 0x20019
push ebx
push str.http
push SysReAllocStringLen
call esi
test eax, eax
je 0x4ddf12
xor eax, eax
jmp 0x4ddfbb
lea eax, [ebp - 0x210]
push eax
push 0x20019
push ebx
push str.shell
push dword [ebp - 0x218]
call esi
test eax, eax
jne 0x4ddf0b
lea eax, [ebp - 0x214]
push eax
push 0x20019
push ebx
push str.opencommand
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x4ddf0b
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], 1
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 0x6e478c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x214]
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004f6351
push edi
push eax
call fcn.004e39b6
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495c0c
mov esp, ebp
pop ebp
ret 4
Function at 0x4df19b
Capabilities:
Get disk information

Disassembly:
push 0x4e0
mov eax, 0x5c9acf
call fcn.00496753
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4e0]
mov ebx, dword [ebp + 0xc]
xor edi, edi
push edi
xor eax, eax
mov dword [ebp - 0x4ec], edi
push 0x6e478c
mov dword [ebp - 0x4cc], 7
mov dword [ebp - 0x4d0], edi
mov word [ebp - 0x4e0], ax
call fcn.00446930
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4df2d1
lea eax, [ebp - 0x4c8]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4df2d1
mov dword [ebp - 0x4e4], edi
cmp word [ebp - 0x4c8], di
je 0x4df2d1
and dword [ebp - 0x4e8], 0
lea edi, [ebp - 0x4c8]
push 0x5e7298
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4df2a5
push 0x5e72a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4df2a5
mov ax, word [edi]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x4e8]
push 0x64
mov ax, word [ebp + eax - 0x4c6]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4df34f
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0xe0]
push edi
push eax
push ebx
call fcn.004f7758
add esp, 0xc
test eax, eax
je 0x4df2f7
mov eax, dword [ebp - 0x4e4]
lea edi, [ebp - 0x4c8]
add eax, 4
mov dword [ebp - 0x4e4], eax
add eax, eax
add edi, eax
mov dword [ebp - 0x4e8], eax
xor eax, eax
cmp word [edi], ax
jne 0x4df227
xor edi, edi
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.0044edb0
push edi
push 1
lea ecx, [ebp - 0x4e0]
call fcn.00446840
mov eax, esi
call fcn.004966fd
ret 8
cmp word [ebp - 0x18], 0
jne 0x4df302
xor eax, eax
jmp 0x4df30c
lea eax, [ebp - 0x18]
push eax
call fcn.004e608a
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.00446ed0
lea edi, [ebx + edi*2]
xor ebx, ebx
cmp word [edi], bx
jne 0x4df32a
mov eax, ebx
jmp 0x4df331
push edi
call fcn.004e608a
pop ecx
push eax
push edi
lea ecx, [ebp - 0x4e0]
call fcn.00446ed0
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.0044edb0
push ebx
jmp 0x4df2e0
xor ecx, ecx
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], ecx
mov word [esi], ax
push ecx
jmp 0x4df2e0