joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406be6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x406c16
xor al, al
jmp 0x406c3a
cmp byte [esi + 0xb], bl
je 0x406c31
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x43a3fc
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406cbe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406de6
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push 0x43b75c
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x406de6
cmp dword [ebp - 0x78], esi
jne 0x406de6
push dword [ebp - 0x6c]
call fcn.0042b525
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.00417440
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push 0x43b75c
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x406dd7
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x406dd7
cmp word [esi + edi*2 - 4], bx
jne 0x406dd7
cmp word [esi + edi*2 - 2], bx
jne 0x406dd7
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.00406fea
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x406dc6
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406dc9
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x406da5
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.004015ce
test esi, esi
je 0x406de2
push esi
call fcn.00416ee9
pop ecx
mov al, bl
jmp 0x406de8
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168cd
leave
ret
Function at 0x407982
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x4079ba
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x407a1c
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b525
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x407a17
cmp dword [ebp - 4], 0
je 0x407a10
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x407a1c
movzx esi, si
or esi, 0x80070000
jmp 0x407a1c
xor eax, eax
mov word [ecx], ax
jmp 0x407a1c
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x407d8c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x21c], 0x43b6e0
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 8]
xor edi, edi
or eax, 0xf003f
mov dword [ebp - 0x220], ecx
push eax
push ecx
push dword [ebx + 4]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 0x200
call fcn.004076d3
mov esi, eax
cmp esi, 0x80070002
je 0x407df3
cmp esi, 0x80070003
jne 0x407df6
xor esi, esi
inc esi
test esi, esi
jne 0x407e78
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x407e48
lea eax, [ebp - 0x20c]
push eax
call fcn.00407d8c
mov esi, eax
test esi, esi
jne 0x407e78
lea eax, [ebp - 0x228]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
mov dword [ebp - 0x210], 0x100
call edi
lea ecx, [ebp - 0x21c]
test eax, eax
je 0x407e1b
call fcn.004075db
push dword [ebp - 0x220]
mov ecx, ebx
call fcn.0040757b
mov esi, eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x43b6e0
call fcn.004075db
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168cd
leave
ret 4
Function at 0x408406
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40846c
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.004168cd
leave
ret

Function at 0x40897f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.00417440
mov esi, dword [0x443f34]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404996
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.004015ce
lea ecx, [ebp - 0x808]
call fcn.004091b5
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x408a33
sub eax, 1
jne 0x408a24
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.004168cd
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4091b5
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409224
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409200
push ebx
push edi
push eax
call fcn.00418890
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40921b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x40f2b6
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f353
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f353
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f353
push 4
push 0xffffffffffffffff
push esi
push 0x40fa6d
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f353
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f31e
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f353
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40f359
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f355

Function at 0x40f465
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x2c
push ebx
mov dword [ebp - 8], ebx
lea esi, [edi + 0xa0]
push esi
call fcn.00417440
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x40f4b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebp - 1]
mov ebx, eax
test cl, cl
jne 0x40f4cb
cmp ebx, 0x3e5
je 0x40f4cb
push 0xa
mov ecx, edi
call fcn.0040f6f6
jmp 0x40f4d5
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4110fd
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push 0x4111c3
mov edi, ecx
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.00401371
push eax
lea ecx, [esp + 0x18]
call fcn.00401791
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s.dmp
push eax
call fcn.004081d1
lea ecx, [esp + 0x24]
call fcn.004085bb
mov bl, byte [esp + 0x23]
lea eax, [esp + 0x24]
mov dl, byte [edi]
mov cl, bl
push 0
push eax
call fcn.004118c4
add esp, 0x18
cmp byte [edi + 1], 0
je 0x4111ae
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s_full.dmp
push eax
call fcn.004081d1
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.004085bb
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00404c1d
test al, al
je 0x4111b2
mov dl, byte [edi]
lea eax, [esp + 0x14]
push 0
push eax
mov cl, bl
call fcn.004118c4
pop ecx
pop ecx
jmp 0x4111b2
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0x10]
call fcn.004015ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411750
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
movzx ecx, byte [0x443f39]
neg ecx
push edi
sbb ecx, ecx
and ecx, 0x443f40
je 0x41179a
or dword [ebp - 0x18], 0xffffffff
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 7
call fcn.00406204
push dword [esi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push str._StartProcessWithNoExceptionHandler___s_
push eax
call fcn.00403086
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00408607
push 0x43d958
lea ecx, [ebp - 8]
call fcn.00403f59
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea ecx, [ebp - 4]
call fcn.00403f59
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e581
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004015ce
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 8], eax
test eax, eax
je 0x411884
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e5b2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
je 0x411884
push 0x40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], 0x44
push ebx
push eax
call fcn.00417440
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x411851
push dword [eax - 0xc]
mov ecx, esi
call fcn.00401910
mov eax, dword [esi]
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push ebx
push edi
push 0x400
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411884
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x41188b
call fcn.004086c7
mov ebx, eax
test edi, edi
je 0x4118a0
mov ecx, dword [ebp - 0x14]
sub ecx, edi
and ecx, 0xfffffffe
push ecx
push edi
call fcn.004046da
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
mov ecx, eax
call fcn.00408674
push 0x18
push dword [ebp - 0x10]
call fcn.004046da
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4140f5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov byte [ebp - 1], cl
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00413cd9
test eax, eax
js 0x414217
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
je 0x414217
call fcn.0041260a
cmp byte [ebp - 1], 0
mov eax, str.HKLMSoftwareGoogleUpdate_
jne 0x41413d
mov eax, str.HKCUSoftwareGoogleUpdate_
push eax
lea ecx, [ebp - 8]
call fcn.00403f59
push 0x43e930
lea ecx, [ebp - 0xc]
call fcn.00403f59
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.00403856
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.004015e6
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00407be8
test al, al
jne 0x41419e
mov cl, byte [ebp - 1]
mov dl, 1
call fcn.00414229
mov edi, eax
jmp 0x414209
push 1
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x43b6e0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x200
call fcn.00407738
mov edi, eax
test edi, edi
js 0x4141fa
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub ebx, eax
sar ebx, 2
test ebx, ebx
je 0x4141ee
push 0
push 0
push 0
push 0
push dword [eax + edi*4]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x414213
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, ebx
jb 0x4141ce
mov cl, byte [ebp - 1]
xor dl, dl
call fcn.00414229
mov edi, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x43b6e0
call fcn.004075db
lea ecx, [esi - 0x10]
call fcn.004015ce
jmp 0x41421a
xor edi, edi
jmp 0x4141fa
xor edi, edi
inc edi
lea ecx, [ebp - 0x1c]
call fcn.00404ba7
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4143dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, cl
push esi
push edi
test bl, bl
je 0x414408
call fcn.00414ff0
test al, al
je 0x414408
mov eax, 0x80004005
jmp 0x414568
xor esi, esi
mov dword [ebp - 0x1c], 0x43c498
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
mov cl, bl
call fcn.00413f74
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call dword [eax + 4]
mov dword [ebp - 0x2c], 0x43b6e0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x200
call fcn.0041260a
mov eax, str.HKLMSoftwareGoogleUpdate_
test bl, bl
jne 0x41444b
mov eax, str.HKCUSoftwareGoogleUpdate_
push esi
push ecx
push 0xf003f
push ecx
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407686
mov edi, eax
test edi, edi
js 0x414546
push esi
push esi
push esi
push esi
push 0x43e930
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414484
mov edi, esi
jmp 0x414546
call fcn.00401371
push eax
lea ecx, [ebp - 0x20]
call fcn.00401791
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x4144cc
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.004037dc
push eax
lea ecx, [ebp - 0x20]
call fcn.004015e6
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov eax, esi
test eax, eax
mov esi, dword [ebp - 0x20]
js 0x41453c
xor edi, edi
lea ecx, [ebp - 0x2c]
inc edi
push edi
push esi
push 0x43e930
call fcn.00407b82
test eax, eax
js 0x41453c
mov ecx, 0x442c90
call fcn.0040936e
lea ecx, [ebp - 0x2c]
call fcn.00414385
xor eax, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.00413cd9
test eax, eax
js 0x414532
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x414532
sub esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.00413165
mov cl, bl
call fcn.00413fd5
add esp, 0xc
mov edi, eax
lea ecx, [ebp - 0x10]
call fcn.00404ba7
jmp 0x41453e
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004015ce
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x43b6e0
call fcn.004075db
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call dword [eax + 8]
lea ecx, [ebp - 0x1c]
call fcn.0040746a
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168cd
leave
ret
Function at 0x4146de
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x4146ee
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x4146f4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x41471c
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x43a5e0]
test ax, ax
jne 0x414703
mov esi, ecx
jmp 0x41471f
movzx esi, si
pop edi
cmp cx, si
je 0x41473c
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x43a5e0]
test cx, cx
jne 0x414720
mov eax, 0x4390d8
jmp 0x414744
imul eax, edx, 0x1a
add eax, 0x43a5e2
push eax
mov ecx, ebx
call fcn.00403f59
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4153bb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x442c1c
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
push 0x442c1c
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 0
jne 0x4153fd
test ebx, ebx
je 0x41545b
lea ebx, [edi + 0x1c]
mov ecx, edi
push ebx
push str.Counts
call fcn.00415392
test al, al
je 0x41545b
push dword [esi + 4]
lea ecx, [ebp - 4]
call fcn.00405320
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x10]
xor edi, edi
mov edx, esi
push eax
mov ecx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.00415684
mov eax, dword [ebp + 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
adc dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
pop ecx
push 8
push eax
push 3
push edi
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.004015ce
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41664c
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 0xc
lea edx, [ebx + 0x1c]
lea ecx, [ebx + 0x40]
mov esi, eax
lea eax, [ebx + 0x38]
push edx
push ecx
lea ecx, [ebx + 0x3c]
push ecx
push eax
push edi
push esi
push ecx
lea ecx, [ebp - 0x88]
call fcn.0041650d
lea ecx, [ebp - 0x30]
call fcn.0040f07a
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push 0x2c
mov eax, ecx
mov dword [ebp - 4], esi
push eax
push 0x2c
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x41670f
cmp dword [ebp - 0x30], 2
jne 0x41670f
cmp dword [ebp - 0x2c], esi
je 0x41670f
cmp dword [ebp - 0x10], esi
je 0x41670f
cmp dword [ebp - 0xc], esi
je 0x41670f
cmp dword [ebp - 8], esi
je 0x41670f
lea ecx, [ebp - 0x5c]
call fcn.0040f07a
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x5c], 3
push eax
push 0x2c
mov eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41670f
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x34], eax
mov al, 1
jmp 0x416711
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x420af9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x420b44
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00420d1a
test al, al
jne 0x420b3e
sub edx, 2
cmp edx, edi
jne 0x420b24
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x420b66
lea eax, [edi + 2]
cmp edx, eax
je 0x420b66
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00420a45
add esp, 0x10
jmp 0x420c60
push esi
lea ecx, [ebp - 0x255]
call fcn.00420d1a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420ba9
push dword [ebp - 0x25c]
jmp 0x420b56
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x420be6
cmp word [ebp - 0x226], 0
je 0x420c07
cmp word [ebp - 0x226], ax
jne 0x420be6
cmp word [ebp - 0x224], 0
je 0x420c07
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00420a45
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x420c53
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x420bc0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x420c3b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x420c60
push 0x420875
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00424b70
add esp, 0x10
jmp 0x420c30
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168cd
leave
ret

Function at 0x421a2e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430cb4
push 0x430cac
push str.FlsAlloc
push 0x1e
call fcn.0042196b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421a62
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f3dc]
call esi
jmp 0x421a68
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x421aac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430cc4
push 0x430cbc
push str.FlsGetValue
push 0x20
call fcn.0042196b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421ae3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f3dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]