joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463026
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2c0
mov eax, 0x6078d0
call fcn.004f0658
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.00462fa1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46319a
mov esi, dword [ebp - 0x28c]
lea ecx, [ebp - 0x2c4]
push 0
pop eax
xor edi, edi
mov dword [ebp - 0x2c4], eax
add edi, dword [ebp - 0x288]
mov dword [ebp - 0x2b4], eax
adc esi, eax
mov word [ebp - 0x2c4], ax
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x2b0], 7
push eax
call fcn.0040c8c9
push esi
push edi
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x2c4]
mov byte [ebp - 4], 1
push dword [ebp - 0x2a4]
lea ecx, [ebp - 0x54]
push eax
call fcn.00462752
mov eax, dword [ebp - 0x2b0]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x46311f
mov ecx, dword [ebp - 0x2c4]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x58], ecx
cmp eax, 0x1000
jb 0x463116
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00405741
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x58]
push eax
push ecx
call fcn.0041b169
pop ecx
pop ecx
mov esi, dword [ebp - 0x2ac]
xor eax, eax
and dword [ebp - 0x2b4], 0
mov ecx, esi
mov word [ebp - 0x2c4], ax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x2b0], 7
call 0x4620c6
cmp eax, dword [esi + 4]
jne 0x463171
lea eax, [ebp - 0x27c]
push eax
call 0x463366
test al, al
jne 0x463171
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
lea eax, [ebp - 0x2cc]
push eax
call 0x462033
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00405795
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x463077
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2c]
call fcn.00405795
xor eax, eax
call fcn.004f0607
ret 0xc

Function at 0x468072
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1e8], 0xffffffff
jne 0x468093
xor eax, eax
inc eax
jmp 0x4680d4
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [esi + 0x1e8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0x1e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x1e8], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041af05
leave
ret
Function at 0x4684a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x1e8], 0xffffffff
jne 0x4684c6
xor eax, eax
inc eax
jmp 0x468527
and dword [ebp - 8], 0
mov ecx, ebx
push esi
call fcn.00423fd0
mov ecx, ebx
mov esi, eax
call sym.OneDriveUpdaterService.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____thiscall_Microsoft::Applications::Events::EventProperties::GetName_void_const
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 0x1e8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
mov esi, 0x80004005
add dword [edi + 0xc8], ecx
adc dword [edi + 0xcc], 0
lea edx, [eax - 1]
neg edx
sbb edx, edx
and edx, esi
cmp eax, 1
jne 0x468524
mov ecx, ebx
call fcn.00423fd0
mov edx, eax
sub edx, dword [ebp - 8]
neg edx
sbb edx, edx
and edx, esi
mov eax, edx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041af05
leave
ret 4

Function at 0x4692ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x54], 0xffffffff
jne 0x4692d0
xor eax, eax
inc eax
jmp 0x469315
push esi
push edi
xor edi, edi
mov ecx, eax
mov dword [ebp - 8], edi
call fcn.00423fd0
mov ecx, dword [ebp - 0xc]
mov esi, eax
call sym.OneDriveUpdaterService.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____thiscall_Microsoft::Applications::Events::EventProperties::GetName_void_const
push edi
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebx + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x469311
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041af05
leave
ret 4
Function at 0x469742
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], ecx
push esi
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
lea edi, [ebp - 0x18]
cmp ebx, 0xffffffff
setne cl
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp ebx, 0xffffffff
je 0x4697c2
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp - 0x1c]
mov word [ebp - 0x16], ax
cmp byte [edi + 8], 0
jne 0x46979d
push esi
jmp 0x4697a2
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
cmp esi, 0xffffffff
setne cl
jmp 0x4697c5
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 8], 1
test cl, cl
je 0x4697fb
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
cmp esi, 0xffffffff
je 0x4697fb
push 0xa
push ebx
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46980a
cmp ebx, 0xffffffff
je 0x46980a
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or ebx, 0xffffffff
push esi
mov ecx, edi
mov dword [edi + 4], ebx
call fcn.00469826
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041af05
leave
ret 4

Function at 0x469852
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x190
lea eax, [ebp - 0x194]
mov esi, ecx
push 0
push eax
call fcn.0041c790
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
mov ecx, esi
call fcn.00469826
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041af05
leave
ret

Function at 0x469b8f
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x6083bd
call fcn.004f0658
mov esi, ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
push eax
call fcn.00469ca7
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push dword [ebp - 0x14]
push 0x469b30
push ebx
push ebx
call fcn.004f7a6c
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x469bd9
call fcn.004f0607
ret 8
push 6
mov dword [edi], ebx
call fcn.004def62
int3
Function at 0x472174
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [eax + 8]
mov dword [ebp - 0x40], eax
push edi
xor edi, edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x47219e
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.004ff8a5
pop ecx
pop ecx
test eax, eax
jne 0x4721cb
test dword [ebp - 0x36], 0x4000
jne 0x47223e
mov ecx, dword [ebp - 0x40]
push ebx
push esi
call fcn.004723cf
mov edi, eax
test edi, edi
js 0x47223e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4721d5
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4721f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x47223e
cmp dword [esi + 0x14], 8
jb 0x472202
mov esi, dword [esi]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebx + 4]
add eax, 0x5c
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], edi
push 0x6609a0
cmp ecx, dword [ebx + 8]
je 0x47222d
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, ebx
call fcn.004706a3
jmp 0x47223e
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x48]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00470840
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041af05
leave
ret 4

Function at 0x474dd5
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0xf0000000
push 0x18
push 0
push 0
push 0x6b31b8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne al
ret
Function at 0x47b802
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x47b82d
jl 0x47b824
test edi, edi
jne 0x47b82d
xor eax, eax
xor edx, edx
jmp 0x47b8dd
cmp dword [esi + 0x38], 0
je 0x47b840
push eax
push edi
push edx
call method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_32
jmp 0x47b8dd
mov eax, dword [esi + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x47b87a
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x47b87a
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push ecx
push edx
call fcn.0041c210
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
mov ecx, ebx
je 0x47b8d2
mov ecx, esi
call fcn.0047a474
mov edx, dword [ebp - 4]
mov ecx, ebx
jmp 0x47b8b2
push dword [esi + 0x4c]
push eax
push 1
push edx
call fcn.004ffa96
mov edx, dword [ebp - 4]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [ebp - 4], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x47b8e3
mov eax, 0xfff
cmp ebx, eax
ja 0x47b890
test ecx, ecx
je 0x47b8d2
push dword [esi + 0x4c]
push ebx
push 1
push edx
call fcn.004ffa96
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
mov edx, dword [ebp + 0x10]
mov eax, edi
sbb edx, 0
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x47b8d4
Function at 0x491146
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
push esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x63caf8
push eax
mov dword [ebp - 0x1c], esi
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x49118d
mov eax, 0x8004fb21
jmp 0x491277
push esi
push 0x20
push str.ChainingModeCBC
push str.ChainingMode
push dword [ebp - 0x1c]
call sub.bcrypt.dll_BCryptSetProperty
test eax, eax
jns 0x4911b0
mov eax, 0x8004fb22
jmp 0x491277
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 8]
push esi
push eax
push dword [edi + 8]
lea eax, [ebp - 0x24]
push esi
push esi
push eax
push dword [ebp - 0x1c]
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
test eax, eax
jns 0x4911d7
mov eax, 0x8004fb24
jmp 0x491277
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], esi
add eax, ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
push eax
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00490cc3
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0xc]
mov edi, dword [ebp - 0x18]
push 1
push edx
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
push eax
push dword [ecx]
mov eax, dword [ebp - 0x14]
push esi
push esi
push esi
sub eax, edi
push eax
push edi
push dword [ebp - 0x24]
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jns 0x491226
mov esi, 0x8004fb23
jmp 0x491241
cmp dword [ebp - 0x1c], esi
je 0x491234
push esi
push dword [ebp - 0x1c]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
cmp dword [ebp - 0x24], esi
je 0x491241
push dword [ebp - 0x24]
call sub.bcrypt.dll_BCryptDestroyKey
test edi, edi
je 0x491275
mov eax, dword [ebp - 0x10]
sub eax, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], eax
cmp eax, 0x1000
jb 0x49126c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0049168f
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x20]
pop ecx
pop ecx
push eax
push edi
call fcn.0041b169
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041af05
leave
ret 0xc

Function at 0x492fcf
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 2
push 0x20
push dword [eax]
push 0
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
mov edx, 0x8004fb29
test eax, eax
cmovs ecx, edx
mov eax, ecx
pop ebp
ret 4
Function at 0x4999b2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x499b11
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov edi, 0x3ff
mov ecx, eax
cmp dword [esi], edx
je 0x499b11
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x499a31
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x499b20
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x499a4e
mov dl, bl
xor edi, edi
jmp 0x499a7e
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, di
ja 0x499a20
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x499a23
mov edx, ebx
cmp ebx, 0x800
jae 0x499a63
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x499a7e
cmp ebx, 0x10000
jae 0x499a75
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x499a7d
shr edx, 0x12
or dl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 0xc]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 8]
jl 0x499b11
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x499ab5
cmp edi, 3
jae 0x499ac0
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 0x10]
jmp 0x499ac3
mov eax, dword [ebp - 8]
test eax, eax
je 0x499ae8
imul ecx, edi, 6
sub ecx, 6
mov edx, ebx
dec eax
shr edx, cl
mov dword [ebp - 8], eax
and dl, 0x3f
mov eax, dword [esi]
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 8]
test eax, eax
jg 0x499aca
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x4999db
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x499b19
Function at 0x49aa93
Capabilities:
Persist via run registry key

Disassembly:
push 0x6c
mov eax, 0x60e445
call fcn.004f0658
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 7
mov byte [edi], bl
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
call fcn.0049d398
mov esi, eax
test esi, esi
js 0x49ac23
push 7
pop esi
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x78], ebx
lea ecx, [ebp - 0x78]
push str.OneDrive
mov byte [ebp - 4], 1
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], esi
mov word [ebp - 0x78], ax
call fcn.0040c8c9
xor eax, eax
mov dword [ebp - 0x60], ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x60], ax
call fcn.0040c8c9
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
push reloc.WS2_32.dll_accept
call fcn.0049f96e
mov esi, eax
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x49ab77
mov ecx, dword [ebp - 0x60]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x49ab6e
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405741
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0041b169
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x4c], 7
cmp eax, 8
jb 0x49abc2
mov ecx, dword [ebp - 0x78]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x49abb9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00405741
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.0041b169
pop ecx
pop ecx
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00436e83
pop ecx
pop ecx
test eax, eax
jne 0x49abe8
mov byte [edi], 1
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x49ac23
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x49ac1a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00405741
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.0041b169
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x49ac5e
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x49ac55
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00405741
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.0041b169
pop ecx
pop ecx
mov eax, esi
call fcn.004f0607
ret 4
Function at 0x49b966
Capabilities:
Delete file

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
xor edi, edi
cmp dword [esi + 0x14], 8
jb 0x49b98a
mov eax, dword [esi]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x49b9cb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x49b9ac
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49b9cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041af05
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x49b964

Function at 0x49c289
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x230
mov eax, 0x60e740
call fcn.004f0658
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ecx
call fcn.00449525
xor ecx, ecx
mov eax, 0x200
cmp dword [ebp + 0x10], 1
mov edx, 0x100
cmove ecx, eax
xor eax, eax
cmp dword [ebp + 0x10], 2
cmove eax, edx
and dword [ebp - 0x234], 0
or ecx, eax
or ecx, 0x20019
cmp dword [esi + 0x14], 8
jb 0x49c2df
mov esi, dword [esi]
lea eax, [ebp - 0x234]
push eax
push ecx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x49c425
xor ebx, ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x49c3f8
and dword [ebp - 0x230], eax
lea ecx, [ebp - 0x230]
and dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x21c], 7
call fcn.0040c8c9
mov eax, dword [ebp - 0x23c]
and dword [ebp - 4], edi
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x49c390
lea ecx, [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.00449811
jmp 0x49c39f
lea edx, [ebp - 0x230]
push edx
push ecx
mov ecx, eax
call fcn.00449840
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x49c400
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x238], ecx
cmp eax, 0x1000
jb 0x49c3ed
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00405741
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x238]
push eax
push ecx
call fcn.0041b169
pop ecx
pop ecx
jmp 0x49c400
cmp edi, 0x103
jne 0x49c40b
inc ebx
test edi, edi
je 0x49c309
jmp 0x49c419
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.004f0607
ret 0x10
Function at 0x49dab7
Capabilities:
Get common file path

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor esi, esi
mov dword [ebp - 0x210], 0x104
push esi
push eax
call fcn.0041c790
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x49db18
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040c8c9
jmp 0x49db2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041af05
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x49dab5

Function at 0x49e19c
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x49e1d2
mov ecx, dword [ecx]
lea esi, [ebp - 0x830]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x82c], 0x820
test eax, eax
cmovle esi, eax
and dword [ebp - 0x828], 0
test esi, esi
js 0x49e27a
cmp dword [edi + 0x14], 8
jb 0x49e20f
mov edi, dword [edi]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push edi
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x49e26e
cmp dword [ebp - 0x828], 1
je 0x49e25e
cmp dword [ebp - 0x828], 2
je 0x49e25e
mov esi, 0x8007065d
jmp 0x49e26e
lea eax, [ebp - 0x824]
mov ecx, ebx
push eax
xor esi, esi
call fcn.0040c8c9
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041af05
leave
ret 0x14
push ebp
mov ebp, esp
pop ebp
jmp 0x49e19a