joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442a12
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x68d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.0041ab50
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x442ba6
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0x20d], 0
jne 0x442a9b
mov eax, dword [esi]
mov esi, dword [eax + 0x54]
lea eax, [ebp - 0x20d]
push eax
push ebx
push dword [ebp - 0x214]
mov ecx, esi
call dword [0x6147a0]
call esi
test eax, eax
js 0x442a95
cmp byte [ebp - 0x20d], 0
je 0x442a95
mov edi, 0x80040c91
jmp 0x442b93
mov esi, dword [ebp - 0x214]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x442b93
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0043db25
mov edi, eax
test edi, edi
jns 0x442af0
push str.FAILED:_SUCCEEDED_hr_
push str.SUCCEEDED_hr_
push str.FSManagerImpl::DeepCreateDirectory
push 0x2cc
push str.D:dbs_shodct0219_230508_0cmduclientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push 1
push dword [0x68d8c8]
call 0x45f945
add esp, 0x1c
jmp 0x442b93
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x442b0b
mov edi, 0x80040b04
jmp 0x442b93
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x442b61
mov eax, dword [esi]
mov esi, dword [eax + 0x4c]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov ecx, esi
call dword [0x6147a0]
call esi
mov edi, eax
test edi, edi
jns 0x442b61
push str.FAILED:_SUCCEEDED_hr_
push str.SUCCEEDED_hr_
push str.FSManagerImpl::DeepCreateDirectory
push 0x2dc
push str.D:dbs_shodct0219_230508_0cmduclientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push 1
push dword [0x68d8cc]
jmp 0x442ae3
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x442b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x442b7f
xor edi, edi
jmp 0x442b93
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
pop esi
xor ecx, ebp
pop ebx
call fcn.004192c5
leave
ret 0xc
push 0x80004005
call fcn.004059b0
int3
Function at 0x443cc2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x68d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.0041ab50
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x443cfd
mov edi, dword [edi]
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x623a10
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x443d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x443d3b
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040aaa9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004192c5
leave
ret 0xc

Function at 0x44433b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x5f6b8d
call fcn.004e1c06
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
call fcn.00443ad2
and dword [ebp - 0x1c], 0
xor edi, edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x444470
mov ecx, eax
call fcn.00412901
test ebx, ebx
je 0x4443ab
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4443ae
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x444453
jmp 0x4443ae
mov dword [ebp - 0x1c], esi
xor ecx, ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
push ecx
push dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4443f3
cmp eax, 2
je 0x4443ea
cmp eax, 0xea
je 0x4443ea
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x444453
cmp eax, 2
je 0x444453
cmp dword [ebp - 0x18], 1
jne 0x444453
mov ebx, dword [ebp - 0x14]
add ebx, 2
push ebx
call fcn.00419537
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
and dword [ebp - 4], 0
test esi, esi
jne 0x44441a
mov edi, 0x8007000e
jmp 0x444449
mov eax, esi
test ebx, ebx
je 0x444429
mov byte [eax], 0
inc eax
sub ebx, 1
jne 0x444420
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
push esi
call fcn.0040aaa9
push esi
call fcn.004192d3
mov ebx, dword [ebp - 0x28]
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x444466
test ebx, ebx
je 0x444466
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.004e1bb5
ret 0x10
push 0x80004005
call fcn.004059b0
int3
Function at 0x444ee3
Capabilities:
Timestomp file

Disassembly:
push 0x24
mov eax, 0x5f6cdd
call fcn.004e1c06
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
test edi, edi
jne 0x444f1d
push 0x662
mov eax, 0x80070057
push 0x6235a0
mov esi, eax
push eax
call fcn.0043bc7d
jmp 0x444fe8
lea eax, [ebp - 0x2c]
push eax
push 0x104
push edi
call fcn.0043db66
mov esi, eax
test esi, esi
jns 0x444f3f
push 0x663
push 0x6235a0
push esi
jmp 0x444f13
cmp dword [ebp - 0x2c], 0
jne 0x444f4c
push 0x664
jmp 0x444f06
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x444fa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x444fe8
push 0x66c
jmp 0x444f37
push ebx
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x444fdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x444fdd
push 0x66e
push 0x6235a0
push esi
call fcn.0043bc7d
test edi, edi
je 0x444fe8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.004e1bb5
ret 4
Function at 0x45aee3
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x5f93e5
call fcn.004e1c06
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov edi, dword [ebp + 8]
lea eax, [esi + 0xa4]
push eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
inc eax
mov byte [ebp - 0x44], al
and dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], vtable.ClassPtr_struct_IFSManager_.0
mov byte [ebp - 4], al
test edi, edi
jne 0x45af48
mov edi, 0x80004003
push 0x129
push str.D:dbs_shodct0219_230508_0cmdpclientonedriveSetupStandalonewebclientwebclient.cpp
push edi
call fcn.0043bc7d
jmp 0x45b04b
mov ecx, esi
call fcn.00454e8d
mov edi, eax
test edi, edi
jns 0x45af5c
push 0x12c
jmp 0x45af38
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x45af6f
mov edi, 0x8000ffff
push 0x12f
jmp 0x45af38
mov eax, dword [ecx]
mov esi, dword [eax + 0x14]
xor eax, eax
push eax
push eax
push eax
push eax
push ecx
mov ecx, esi
call dword [0x6147a0]
call esi
mov edi, eax
test edi, edi
jns 0x45afa0
push 0x132
push str.D:dbs_shodct0219_230508_0cmdpclientonedriveSetupStandalonewebclientwebclient.cpp
push edi
call fcn.0043bc7d
jmp 0x45b048
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [esi + 0x34]
and dword [esi + 0x34], 0
mov dword [ecx], eax
cmp dword [esi + 0x90], 0
je 0x45b04b
sub esi, 0xffffff80
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45afc9
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b048
cmp dword [ebp - 0x14], 0
je 0x45afdb
int3
lea eax, [ebp - 0x14]
push eax
call fcn.0043c1f5
test eax, eax
js 0x45b048
cmp dword [esi + 0x14], 8
jb 0x45aff0
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x60]
call fcn.0040ab57
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x38]
call fcn.0040ada4
mov dword [ebp - 0x20], reloc.WS2_32.dll_accept
mov byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.00405a95
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x45b028
int3
mov eax, dword [ecx]
mov esi, dword [eax + 0x70]
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, esi
call dword [0x6147a0]
call esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00405a95
mov esi, dword [ebp - 0x3c]
push esi
push str.WebClient__p_:_Leaving_GetDownloadedData__
push str.WebClient
push edi
call fcn.0043bfdd
add esp, 0x10
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x14], 0
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], vtable.ClassPtr_struct_IFSManager_.0
test ecx, ecx
je 0x45b085
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x6147a0]
call esi
xor eax, eax
inc eax
test al, al
je 0x45b095
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.004e1bb5
ret 4
Function at 0x465bb2
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x68d008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1e8], 0xffffffff
jne 0x465bd3
xor eax, eax
inc eax
jmp 0x465c14
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.004192c5
leave
ret

Function at 0x465fe2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x68d008]
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 0x466006
xor eax, eax
inc eax
jmp 0x466067
and dword [ebp - 8], 0
mov ecx, ebx
push esi
call fcn.004226b0
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 0x466064
mov ecx, ebx
call fcn.004226b0
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.004192c5
leave
ret 4

Function at 0x466d1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x68d008]
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 0x466d40
xor eax, eax
inc eax
jmp 0x466d85
push esi
push edi
xor edi, edi
mov ecx, eax
mov dword [ebp - 8], edi
call fcn.004226b0
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 0x466d81
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.004192c5
leave
ret 4
Function at 0x4671a2
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x68d008]
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 0x467222
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 0x4671fd
push esi
jmp 0x467202
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 0x467225
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 8], 1
test cl, cl
je 0x467276
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 0x467276
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
cmp esi, 0xffffffff
je 0x467276
push 0xa
push ebx
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
cmp esi, 0xffffffff
jne 0x467285
cmp ebx, 0xffffffff
je 0x467285
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.004672a1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004192c5
leave
ret 4

Function at 0x4672d2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x68d008]
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.0041ab50
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.004672a1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004192c5
leave
ret

Function at 0x467613
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x5fa8fd
call fcn.004e1c06
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.0046772d
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push dword [ebp - 0x14]
push 0x4675b0
push ebx
push ebx
call fcn.004e988a
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x46765d
call fcn.004e1bb5
ret 8
push 6
mov dword [edi], ebx
call fcn.004d0511
int3
Function at 0x46fd24
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x68d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x40], eax
push esi
push edi
xor edi, edi
lea esi, [ebx + 8]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46fd4e
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.004f1564
pop ecx
pop ecx
test eax, eax
jne 0x46fd78
test dword [ebp - 0x36], 0x4000
jne 0x46fdce
push dword [ebp - 0x40]
mov ecx, ebx
push esi
call fcn.0046ff56
mov edi, eax
test edi, edi
js 0x46fdce
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46fd82
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46fda3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x46fdce
cmp dword [esi + 0x14], 8
jb 0x46fdaf
mov esi, dword [esi]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push 0x653c34
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], esi
push eax
lea eax, [ebx + 0x5c]
mov dword [ebp - 0x48], edi
push eax
call fcn.0046e641
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004192c5
leave
ret 4

Function at 0x472596
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0xf0000000
push 0x18
push 0
push 0
push 0x6a54b8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne al
ret

Function at 0x478fa2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x478fcc
jl 0x478fc3
test ebx, ebx
jne 0x478fcc
xor eax, eax
xor edx, edx
jmp 0x479084
cmp dword [ecx + 0x38], 0
je 0x478fdf
push esi
push ebx
push edx
call method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_32
jmp 0x479084
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47901f
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x47901f
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.0041a5d0
mov ecx, dword [ebp - 8]
sub edi, 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, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x47907a
call fcn.00477c19
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x479062
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.004f1755
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x47907a
jmp 0x47902f
test edx, edx
je 0x47907a
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.004f1755
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x48baf6
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x68d008]
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 - 0x24], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
push esi
push esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push 0x630018
push eax
mov dword [ebp - 0x18], esi
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x48bb3d
mov eax, 0x8004fb21
jmp 0x48bbf8
push esi
push 0x20
push str.ChainingModeCBC
push str.ChainingMode
push dword [ebp - 0x18]
call sub.bcrypt.dll_BCryptSetProperty
test eax, eax
jns 0x48bb60
mov eax, 0x8004fb22
jmp 0x48bbf8
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 8]
push esi
push eax
push dword [edi + 8]
lea eax, [ebp - 0x1c]
push esi
push esi
push eax
push dword [ebp - 0x18]
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
test eax, eax
jns 0x48bb84
mov eax, 0x8004fb24
jmp 0x48bbf8
xor eax, eax
mov dword [ebp - 8], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1d]
push eax
mov eax, dword [ebp - 0x24]
add eax, ebx
push eax
push ebx
call fcn.0048b41e
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 8]
push 1
push edx
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
push eax
push dword [ecx]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
push esi
push esi
push esi
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jns 0x48bbd3
mov esi, 0x8004fb23
jmp 0x48bbee
cmp dword [ebp - 0x18], esi
je 0x48bbe1
push esi
push dword [ebp - 0x18]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
cmp dword [ebp - 0x1c], esi
je 0x48bbee
push dword [ebp - 0x1c]
call sub.bcrypt.dll_BCryptDestroyKey
lea ecx, [ebp - 0x14]
call fcn.00455376
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004192c5
leave
ret 0xc

Function at 0x48d852
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 0x493c02
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 0x493d6b
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 8], eax
inc ebx
mov edx, dword [ebp + 0x1c]
mov ecx, eax
cmp dword [esi], edx
je 0x493d6b
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edi, word [edx]
cmp bx, di
jae 0x493c81
lea eax, [ecx + 0x2400]
mov edx, 0x3ff
cmp ax, dx
ja 0x493d7a
mov eax, edi
lea edx, [ecx - 0xdc00]
shl eax, 0xa
or edx, eax
mov cl, byte [ebp - 1]
cmp edx, 0x80
jae 0x493ca3
mov bl, dl
xor edi, edi
jmp 0x493cd3
mov edx, eax
lea eax, [ecx + 0x2800]
mov ecx, 0x3ff
cmp ax, cx
ja 0x493c70
add edx, 0xffff2840
mov cl, bl
shl edx, 0xa
mov byte [ebp - 1], cl
jmp 0x493c73
mov ebx, edx
cmp edx, 0x800
jae 0x493cb8
shr ebx, 6
xor edi, edi
or bl, 0xc0
inc edi
jmp 0x493cd3
cmp edx, 0x10000
jae 0x493cca
shr ebx, 0xc
or bl, 0xe0
push 2
jmp 0x493cd2
shr ebx, 0x12
or bl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 8]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 0xc]
jl 0x493d6b
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x493d0f
cmp edi, 3
jb 0x493d0f
mov ebx, dword [ebp - 0xc]
jmp 0x493d18
mov eax, dword [esi]
mov byte [eax], bl
inc dword [esi]
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x493d40
imul ecx, edi, 6
mov edi, dword [ebp - 8]
sub ecx, 6
mov eax, edx
dec ebx
shr eax, cl
and al, 0x3f
or al, 0x80
mov byte [edi], al
inc dword [esi]
mov eax, dword [esi]
mov dword [ebp - 8], eax
test ebx, ebx
jg 0x493d24
xor ebx, ebx
shr edx, 0xa
inc ebx
movzx eax, dx
cmp byte [ebp - 1], 0
mov ecx, ebx
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 - 8], eax
cmp ecx, dword [ebp + 0x10]
jne 0x493c2e
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x493d73