joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000236c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100023af
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, 0x53b
mov dword [0x1000641c], esi
push str.ws2_32
mov word [0x10006018], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
push 0x10002318
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
pop esi
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x10002490
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10006004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
pop ebx
push ebx
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov esi, eax
mov dword [ebp - 0x18], 0x5dc
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push str.raw.githubusercontent.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x1bb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
mov word [ebp - 0x14], bx
call dword [sym.imp.WS2_32.dll_connect]
push ecx
push ecx
push dword [sym.imp.WS2_32.dll_recv]
push dword [sym.imp.WS2_32.dll_send]
push esi
call fcn.1000104e
add esp, 0x14
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str._r_n_r_n
push dword [0x10006478]
call dword [sym.imp.VCRUNTIME140.dll_strstr]
push 0xa
lea ecx, [ebp - 0x1c]
add eax, 4
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov ecx, dword [ebp - 4]
add esp, 0x14
mov dword [edi], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100028ba
leave
ret
Function at 0x40125b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4012b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012b1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4012a3
cmp esi, ecx
jae 0x4012b1
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401291
cmp esi, ecx
jae 0x4012b1
cmp word [esi], 0
je 0x4012b1
mov eax, esi
jmp 0x4012b3
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401ab6
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0x8004ffff
lea ebx, [edi + 0x14]
je 0x401afc
xor esi, esi
cmp dword [edi + 0x18], esi
je 0x401ae4
push esi
mov ecx, ebx
call fcn.00402abd
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x18]
jne 0x401ace
mov ecx, ebx
call fcn.00402ae2
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [edi + 0x20]
call fcn.00402f65
mov ecx, dword [edi + 0x24]
push 0x10
pop esi
sub ecx, esi
call fcn.00401412
mov ecx, dword [edi + 0x20]
sub ecx, esi
call fcn.00401412
mov ecx, ebx
call fcn.00402ae2
mov ecx, dword [edi + 0xc]
sub ecx, esi
call fcn.00401412
mov ecx, dword [edi + 8]
sub ecx, esi
call fcn.00401412
mov ecx, dword [edi + 4]
pop edi
sub ecx, esi
pop esi
pop ebx
jmp fcn.00401412
Function at 0x401fab
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 8], ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401fd8
xor al, al
jmp 0x40206c
push ebx
push esi
call fcn.0040142a
push eax
lea ecx, [ebp - 4]
call fcn.00403209
mov esi, dword [ebp - 4]
xor ebx, ebx
inc ebx
mov edx, 0x104
mov ecx, ebx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x40200d
push edx
lea ecx, [ebp - 4]
call fcn.00403285
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push 0
push 0x437314
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov dword [ebp + 8], eax
call fcn.00402f16
mov eax, dword [ebp + 8]
test eax, eax
je 0x40205e
cmp eax, 0x6f
je 0x40205e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40205e
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
add ecx, 0x20
call fcn.00402e31
jmp 0x402060
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.00401412
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x402070
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x402086
xor al, al
leave
ret
push ebx
push esi
push edi
call fcn.0040142a
push eax
lea ecx, [ebp - 4]
call fcn.00403209
mov esi, dword [ebp - 4]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4020ba
push edx
lea ecx, [ebp - 4]
call fcn.00403285
mov esi, dword [ebp - 4]
push esi
xor ebx, ebx
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov edi, eax
call fcn.00402f16
test edi, edi
js 0x402144
push esi
lea ecx, [ebp - 4]
call fcn.00402ebb
push 0x437184
lea ecx, [ebp - 4]
call fcn.00402bab
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40210c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402139
push str.Temp
lea ecx, [ebp - 4]
call fcn.00402bab
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.00401fab
test al, al
je 0x402139
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x24]
call fcn.00402e31
mov bl, 1
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401412
lea ecx, [esi - 0x10]
call fcn.00401412
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4021e2
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.00417a50
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x437328
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4022e2
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402ebb
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x14]
call fcn.00402b1e
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.00401412
push 0x437180
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4022e2
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4022e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4022e2
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4022e2
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.00402498
pop ecx
test eax, eax
jne 0x4022d8
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4022e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041761e
leave
ret
Function at 0x402498
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x43e018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x9c], eax
push edi
mov edi, ecx
cmp esi, 0xd
jae 0x4024c8
or eax, 0xffffffff
jmp 0x40265d
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x40247c
push eax
xor ebx, ebx
mov dword [ebp - 0x90], 0x40248a
push ecx
mov edx, edi
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
call fcn.0040fd82
xor eax, eax
mov dword [ebp - 0x58], ebx
inc eax
mov dword [ebp - 0x34], ebx
add edi, 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
sub esi, 0xd
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [edi]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], esi
call fcn.004286af
add esp, 0xc
mov dword [ebp - 0x84], ebx
mov edi, eax
lea eax, [ebp - 0x84]
mov edx, edi
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x7c]
add eax, 8
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0040fc24
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x94]
push dword [ebp - 0x6c]
push eax
call dword [ebp - 0x90]
push dword [ebp - 0x68]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x6c], ebx
push eax
call dword [ebp - 0x90]
add esp, 0x10
mov dword [ebp - 0x68], ebx
test esi, esi
je 0x402597
or ebx, 0xffffffff
jmp 0x402650
mov edx, dword [edi]
lea ecx, [edi + 4]
mov eax, dword [ecx]
push 4
pop esi
add ecx, esi
mov dword [ebp - 0x98], eax
push edx
mov dword [ebp - 0x80], edx
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x88], eax
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x8c], eax
mov ebx, dword [ecx]
add ecx, esi
mov dword [ebp - 0x84], ecx
call fcn.004286af
mov edx, dword [ebp - 0x88]
mov esi, eax
pop ecx
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x8c]
push esi
push ebx
mov ebx, dword [ebp - 0x98]
lea eax, [ecx + edx]
add eax, ebx
add eax, dword [ebp - 0x84]
push eax
push ecx
mov ecx, dword [ebp - 0x84]
lea eax, [edx + ebx]
add eax, ecx
push eax
push edx
lea eax, [ebx + ecx]
mov edx, ebx
push eax
call fcn.0040fdf4
add esp, 0x20
xor ebx, ebx
test eax, eax
je 0x40261b
inc ebx
jmp 0x402645
push ebx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x80]
push esi
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402642
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0xa0], eax
je 0x402645
or ebx, 0xffffffff
test esi, esi
je 0x402650
push esi
call fcn.0042843a
pop ecx
test edi, edi
je 0x40265b
push edi
call fcn.0042843a
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041761e
leave
ret
Function at 0x4027f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x43e018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
lea ecx, [ebp - 0x214]
call fcn.00402e89
mov ecx, dword [ebp - 0x214]
mov eax, dword [eax]
lea ecx, [ecx - 0x10]
mov esi, dword [eax - 0xc]
call fcn.00401412
test esi, esi
jne 0x4028d0
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00417a50
add esp, 0xc
lea eax, [ebp - 0x20c]
mov edi, 0x104
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4028d0
cmp eax, edi
jae 0x4028d0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareBraveSoftwarePromo
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4028d0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push str.StubInstallerPath
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4028d0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041761e
leave
ret

Function at 0x403614
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.004036ac
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4036a4
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40369d
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x403694
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403694
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x4036a6
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004036ac
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x403837
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x403895
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403895
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x403895
cmp dword [edx + ecx], 0x4550
jne 0x403895
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x403880
mov edi, 0x8664
cmp ax, di
je 0x403895
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x403895
add ecx, 0xc
cmp esi, ecx
jae 0x403897
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x40389d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40228
call fcn.00428330
mov eax, dword [0x43e018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40218]
push edi
xor ebx, ebx
mov dword [ebp - 0x40214], 1
push ebx
push eax
mov edi, ecx
lea eax, [ebp - 0x4020c]
push 0x200
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403ab5
cmp dword [ebp - 0x40218], 0x200
jne 0x403ab5
push 4
lea eax, [ebp - 0x4010b]
push 0x437414
push eax
call fcn.00428788
add esp, 0xc
test eax, eax
jne 0x40391f
inc eax
mov byte [esi], al
jmp 0x403ab7
push 5
lea eax, [ebp - 0x4010b]
push str.ustar
push eax
call fcn.00428788
add esp, 0xc
test eax, eax
jne 0x403ab5
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00403232
add eax, 0x10
lea ecx, [ebp - 0x40210]
push 0x4377e8
mov dword [ebp - 0x40210], eax
call fcn.00403ac8
lea eax, [ebp - 0x4020c]
push eax
lea ecx, [ebp - 0x40210]
call fcn.00403ac8
mov esi, dword [ebp - 0x40210]
push ebx
push pe_nt_image_headers32
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40224], eax
cmp eax, 0xffffffff
je 0x403aa9
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0042169c
add esp, 0xc
mov dword [ebp - 0x40220], eax
push 1
push ebx
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x40220]
mov ecx, edx
neg ecx
add eax, edx
and ecx, 0x1ff
add ecx, eax
mov dword [ebp - 0x40228], ecx
test edx, edx
je 0x403a55
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp edx, eax
jae 0x4039f7
mov eax, edx
mov dword [ebp - 0x4021c], edx
push ebx
lea ecx, [ebp - 0x40218]
push ecx
push eax
lea eax, [ebp - 0x4000c]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a4f
push ebx
lea eax, [ebp - 0x40218]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403a4f
mov edx, dword [ebp - 0x40220]
sub edx, dword [ebp - 0x4021c]
mov dword [ebp - 0x40220], edx
jne 0x4039e0
jmp 0x403a55
mov byte [ebp - 0x40214], bl
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x40214], bl
je 0x403a8c
cmp byte [edi + 8], bl
je 0x403a7d
lea eax, [ebp - 0x40210]
push eax
lea ecx, [edi + 0xc]
call fcn.00402b1e
mov eax, dword [edi + 0x18]
test eax, eax
je 0x403a8c
push esi
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
mov eax, dword [ebp - 0x40228]
cmp eax, 0xffffffff
je 0x403aa3
push ebx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov bl, byte [ebp - 0x40214]
lea ecx, [esi - 0x10]
call fcn.00401412
mov al, bl
jmp 0x403ab7
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041761e
leave
ret 4
Function at 0x403b16
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00403232
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00417a50
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x403b77
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.004033e9
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x403bd8
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403bc5
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x403bc8
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
lea ecx, [esi - 0x10]
call fcn.00401412
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4096ef
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
xor edx, edx
push edi
xor edi, edi
push edi
mov eax, dword [ebx + 0x88]
push 0x80
cmp dword [eax + 0x30], edi
setne dl
lea edx, [edx*2 + 2]
push edx
push edi
push edi
push 0x40000000
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4097a7
mov eax, dword [ebx + 0x88]
cmp dword [eax + 0x30], edi
je 0x4097b7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4097b0
cmp eax, 0x7fffffff
ja 0x4097b0
mov edx, dword [ebx + 0x88]
push edi
cmp eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [ebp - 4], ecx
setg cl
cmp eax, dword [edx + 0x34]
setne al
or cl, al
je 0x409797
push 0x80
push 2
push edi
push edi
push 0x40000000
mov dword [edx + 0x34], edi
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp esi, ebx
je 0x409792
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
cmp esi, 0xffffffff
jmp 0x4097a5
push edi
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4097ba
call fcn.00413541
mov edi, eax
jmp 0x4097c4
mov edi, 0x80004005
jmp 0x4097c4
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 8]
mov ecx, esi
or esi, 0xffffffff
mov dword [eax], ecx
cmp esi, 0xffffffff
je 0x4097d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ab24
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov edi, ecx
mov edx, dword [eax]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edx - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
push str.gupdate
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x40ab80
call fcn.00413541
jmp 0x40aba4
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.0040a456
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov esi, dword [ebp - 0x24]
test eax, eax
js 0x40ac48
push ebx
push edi
lea ecx, [ebp - 0x18]
call fcn.00412bba
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.0040b0ac
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40abff
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.00402b1e
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
call fcn.00402b1e
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x34]
call fcn.0040b02a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xffff
push eax
lea ecx, [edi + 0x40]
call fcn.0040af83
jmp 0x40ac3f
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
push ebx
call fcn.00402abd
mov ecx, eax
call fcn.00402e31
push ebx
lea ecx, [edi + 0x34]
call fcn.0040b005
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x40ac30
push dword [ebp + 8]
mov ecx, eax
push dword [ebp - 0x20]
push esi
call fcn.0040b0e2
push ebx
lea ecx, [edi + 0x40]
call fcn.00402abd
mov dword [eax], 0xffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
pop ebx
lea ecx, [ebp - 0x24]
call fcn.0040528f
pop edi
pop esi
leave
ret 0xc
Function at 0x410274
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x4102aa
lea esi, [edi + 4]
test esi, esi
je 0x4102aa
call fcn.0041025b
test al, al
je 0x4102aa
mov ecx, edi
call fcn.0041025b
test al, al
je 0x4102aa
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x4102ac
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x411876
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.00402f65
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00417a50
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x411910
movzx ecx, bl
cmp ecx, 0x26
jne 0x4118d4
mov edx, str.ProgramFiles
jmp 0x4118de
cmp ecx, 0x1c
jne 0x4118ff
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00411ae9
push eax
mov ecx, esi
call fcn.00402e31
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.00401412
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x41190c
xor eax, eax
inc eax
jmp 0x41192e
mov eax, edi
jmp 0x41192e
lea eax, [ebp - 0x20c]
push eax
call fcn.0041fcb3
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004030c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041761e
leave
ret

Function at 0x412cc3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x412d04
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x412d04
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x412cdf
xor al, al
jmp 0x412d06
mov al, 1
pop esi
leave
ret 4