joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001150
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10001211
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x100011bb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x100011ef
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x100011ef
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x1000117e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10001220
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x100012d4
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10001277
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100012ba
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x10009030]
je 0x1000128e
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x100012a7
test al, 0x40
je 0x1000129e
mov ecx, dword [ebx + 0x20]
jmp 0x100012a5
test al, 0x80
je 0x100012ba
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x100012ba
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10001244
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10001940
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008108
push 0x10002ad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e8b3
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001160c
push ebx
push esi
call fcn.10011538
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100114cc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100115b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001160b
push edi
push eax
call fcn.1001252a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100115d9
call fcn.10010014
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001160a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100114cc
add esp, 0x20
test eax, eax
jne 0x100115f8
push edi
call fcn.10010014
jmp 0x10011600
push ebx
call fcn.10010014
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10011879
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.10011795
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100118ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x100118b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100118f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.10011795
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001192e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011936
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.10011795
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011970
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10016ff0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001701d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001701d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x692f20
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
or al, 0x93
mov ecx, 0x9cec0e28
cmc
int 0xa9
popal
je 0x401051
push edi
outsb dx, byte [esi]
dec edx
test al, 0x6e
sub ebx, esp
sbb byte [ebp - 0x68], cl
cld
and ebp, dword [ebx + 0x4c]
in eax, dx
jns 0x400fd2
xchg byte [edi], al
sar byte [esi - 0x43], 1
mov ah, 0x15
js 0x401094
invalid
jecxz 0x401095
insb byte es:[edi], dx
inc esi
imul esp, dword [esi], 0x728e5b10
int1
pop ss
popal
pop ebp
fsubr st(1)
jmp 0x4010d5
mov edi, ebp
shr dword [edi], cl
das
mov al, byte [0x8f8a92fc]
mov edi, 0x3b9610f5
or dh, ch
xor dl, byte [edx]
mov gs, word [eax]
or eax, 0x2403af39
out 0xdc, al
scasd eax, dword es:[edi]
insd dword es:[edi], dx
clts
push es
pop esi
lock add al, byte [esi + 0x2106b6d0]
mov al, byte [0x1e82de2a]
xchg al, dl
mov dh, 6
and dword [eax + 0x1e82de2a], esp
sal byte [esi + 0x2aa02106], 1
fiadd word [edx - 0x409a0ce2]
xor al, 0x24
mov ah, 0xa4
mov edi, 0xa4b42434
mov edi, 0xa4b42434
xchg edi, eax
push ebp
inc ecx
imul edi, ebp, 0x92779bd5
jecxz 0x401082
sbb esi, eax
bnd ja 0x401090
popal
mov byte [eax + 0x75], cl
mov bh, 0x93
jne 0x401072
xchg ebx, eax
cdq
retf
inc ebx
fnsave dword [ecx]
jb 0x4010b9
jecxz 0x401075
jne 0x401117
sti
sub al, 0x6f
pop esp
int1
xchg edx, eax
mov dword [ebx], 0xda970bc7
push ebp
cmp al, 0x34
cmp byte [edx + 0x27], ah
jbe 0x4010a0
cmovge ecx, ebx
cdq
retf
and eax, 0x166a0f59
call [ebx + 0x11]
shl byte [esi - 0x5b07bddc], 0xca
adc ebx, edi
mov bl, 0xcb
sbb dl, byte [ebx + 0x11]
fcompi st(7)
push es
mov edx, 0xc99be644
cmp dword [ebp - 0x547d469d], ecx
nop
pop esp
mov esp, ebp
iretd
Function at 0x4013e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.004016f0
call fcn.00401590
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x401418
jmp 0x4014b4
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x401417
cmp cl, 0x22
je 0x401470
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
je 0x401490
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x401490
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
jne 0x401450
jmp 0x401490
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test edx, eax
jne 0x401470
cmp cl, 0x22
je 0x4014f0
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x4014ae
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x4014a0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x4014d2
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004013b0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x401490
Function at 0x4077e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x407805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x407878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x40783a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x40786d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x40786b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x407831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4077fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x4034a0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x5398b0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5182fc
push eax
mov dword [edi], 1
call esi
mov dword [0x5398b8], eax
test eax, eax
jne 0x4034c7
xor al, al
pop esi
ret
mov ecx, dword [0x5398b0]
push 0x518308
push ecx
call esi
mov dword [0x5398bc], eax
test eax, eax
je 0x4034c3
mov edx, dword [0x5398b0]
push 0x518310
push edx
call esi
mov dword [0x5398c0], eax
test eax, eax
je 0x4034c3
mov eax, dword [0x5398b0]
push 0x518320
push eax
call esi
mov dword [0x5398c4], eax
test eax, eax
je 0x4034c3
mov ecx, dword [0x5398b0]
push 0x518330
push ecx
call esi
mov dword [0x5398c8], eax
test eax, eax
je 0x4034c3
mov edx, dword [0x5398b0]
push 0x51833c
push edx
call esi
mov dword [0x5398cc], eax
test eax, eax
je 0x4034c3
mov eax, dword [0x5398b0]
push 0x518348
push eax
call esi
mov dword [0x5398d0], eax
test eax, eax
je 0x4034c3
mov ecx, dword [0x5398b0]
push 0x518360
push ecx
call esi
mov dword [0x5398d4], eax
test eax, eax
je 0x4034c3
mov edx, dword [0x5398b0]
push 0x518378
push edx
call esi
mov dword [0x5398d8], eax
test eax, eax
je 0x4034c3
mov eax, dword [0x5398b0]
push 0x518390
push eax
call esi
mov dword [0x5398dc], eax
test eax, eax
je 0x4034c3
mov ecx, dword [0x5398b0]
push 0x51839c
push ecx
call esi
mov dword [0x5398e0], eax
test eax, eax
je 0x4034c3
mov edx, dword [0x5398b0]
push 0x5183a8
push edx
call esi
mov dword [0x5398e4], eax
test eax, eax
je 0x4034c3
mov eax, dword [0x5398b0]
push 0x5183b0
push eax
call esi
mov dword [0x5398e8], eax
test eax, eax
je 0x4034c3
mov ecx, dword [0x5398b0]
push 0x5183b8
push ecx
call esi
mov dword [0x5398ec], eax
test eax, eax
je 0x4034c3
mov edx, dword [0x5398b0]
push 0x5183bc
push edx
call esi
mov dword [0x5398f0], eax
test eax, eax
je 0x4034c3
mov eax, dword [0x5398b0]
push 0x5183d0
push eax
call esi
mov dword [0x5398f4], eax
test eax, eax
je 0x4034c3
mov ecx, dword [0x5398b0]
push 0x5183e4
push ecx
call esi
mov dword [0x5398f8], eax
test eax, eax
je 0x4034c3
mov edx, dword [0x5398b0]
push 0x5183f4
push edx
call esi
mov dword [0x5398fc], eax
test eax, eax
je 0x4034c3
mov eax, dword [0x5398b0]
push 0x518408
push eax
call esi
mov dword [0x539900], eax
test eax, eax
je 0x4034c3
mov ecx, dword [0x5398b0]
push 0x518414
push ecx
call esi
mov dword [0x539904], eax
test eax, eax
je 0x4034c3
mov dword [edi], 2
mov al, 1
pop esi
ret
Function at 0x405930
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e916b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53450c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044ed90
push 4
mov dword [ebp - 4], 0
call fcn.0045ec94
mov edi, eax
add esp, 4
test edi, edi
je 0x4059b0
call fcn.0044e9f9
mov dword [edi], eax
call fcn.0044e7b8
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0044e6ed
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4059a6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0044e715
jmp 0x4059b2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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
Function at 0x40a0b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e9548
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x53450c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0040bce0
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.0040bd40
add esp, 0x10
push 0x52de88
lea eax, [esp + 0x30]
push eax
call fcn.0045ed14
int3

Function at 0x40a110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e9518
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x53450c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0040bd70
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.0040bdd0
add esp, 0x10
push 0x52df0c
lea eax, [esp + 0x30]
push eax
call fcn.0045ed14
int3

Function at 0x40c8c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9488
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53450c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0045eb8d
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.004011d0
mov dword [esi], vtable.boost::filesystem2::basic_filesystem_error_class_boost::filesystem2::basic_path_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____struct_boost::filesystem2::path_traits__.0
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov edi, dword [edi + 0x34]
mov dword [esi + 0x34], edi
test edi, edi
je 0x40c94f
add edi, 4
mov ecx, 1
lock xadd dword [edi], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e680
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx ecx, word [ebp + 0xc]
push ebx
push esi
push edi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40e70e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test edi, edi
je 0x40e70e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov dword [ebp + 0xc], 0
jb 0x40e6cd
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e70e
push 0
lea edx, [ebp + 0xc]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e70e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret

Function at 0x40e780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
push ebx
push esi
push edi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40e7fa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40e7fa
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.0045e280
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40e7fa
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x40e870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9769
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53450c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ecx
mov byte [esi], cl
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x14], 1
jb 0x40e8c6
mov eax, dword [edi]
jmp 0x40e8c8
mov eax, edi
lea edx, [ebp - 0x10]
push edx
push ecx
push ecx
push ecx
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e946
mov eax, dword [ebp - 0x10]
mov ebx, eax
inc eax
push eax
call fcn.0044edee
mov esi, eax
add esp, 4
mov byte [esi + ebx], 0
cmp dword [edi + 0x14], 0x10
jb 0x40e8fb
mov edi, dword [edi]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e914
mov edi, dword [ebp + 8]
sub eax, edx
push eax
push esi
mov ecx, edi
call fcn.004013e0
push esi
call fcn.0045ed60
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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

Function at 0x40f360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea48b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x53450c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push 0x23
push ebx
mov dword [ebp - 0x138], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x118]
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f3d0
sub eax, edx
push eax
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x134]
call fcn.004013e0
push str.USTechSupport_
lea edx, [ebp - 0x134]
push edx
push esi
mov dword [ebp - 4], ebx
call fcn.0040ae00
add esp, 0xc
cmp dword [ebp - 0x120], 0x10
jb 0x40f41c
mov eax, dword [ebp - 0x134]
push eax
call fcn.0045e266
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f14f
mov esp, ebp
pop ebp
ret