joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4080
call fcn.00405cd0
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4074], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x4078], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x407c], eax
mov esi, ecx
lea eax, [ebp - 0x406c]
mov dword [ebp - 0x4070], edx
push edi
push eax
call dword [sym.imp.libcrypto_1_1.dll_SHA1_Init]
push 0x4072b8
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4015f8
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [ebp - 0x400c]
push edi
push 0x4000
push 1
push eax
call ebx
mov esi, dword [sym.imp.libcrypto_1_1.dll_SHA1_Update]
add esp, 0x10
test eax, eax
je 0x4014e0
push eax
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x406c]
push eax
call esi
push edi
push 0x4000
lea eax, [ebp - 0x400c]
push 1
push eax
call ebx
add esp, 0x1c
test eax, eax
jne 0x4014b7
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov edi, dword [ebp - 0x4070]
add esp, 4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4014f5
sub ecx, edx
lea eax, [ebp - 0x406c]
push ecx
push edi
push eax
call esi
push 1
lea eax, [ebp - 0x406c]
push 0x407330
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x406c]
cmp byte [ebp + 8], 1
jne 0x401531
push 4
push str.true
jmp 0x401538
push 5
push str.false
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x406c]
push 1
push 0x407330
push eax
call esi
mov ebx, dword [ebp - 0x4074]
add esp, 0xc
test ebx, ebx
je 0x40156d
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401560
sub ecx, edx
push ecx
push ebx
jmp 0x401574
push 6
push str._null_
lea eax, [ebp - 0x406c]
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x406c]
push 1
push 0x407330
push eax
call esi
push 6
lea eax, [ebp - 0x406c]
push str._null_
push eax
call esi
push 1
lea eax, [ebp - 0x406c]
push 0x407330
push eax
call esi
mov ebx, dword [ebp - 0x4078]
add esp, 0x24
test ebx, ebx
je 0x4015cf
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4015c2
sub ecx, edx
push ecx
push ebx
jmp 0x4015d6
push 6
push str._null_
lea eax, [ebp - 0x406c]
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x406c]
push eax
push dword [ebp - 0x407c]
call dword [sym.imp.libcrypto_1_1.dll_SHA1_Final]
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404fc4
mov esp, ebp
pop ebp
ret
Function at 0x401910
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.plist.dll_plist_new_dict]
push esi
mov ebx, eax
call dword [sym.imp.plist.dll_plist_new_bool]
add esp, 4
push eax
push str.Backup_Success
push ebx
call dword [sym.imp.plist.dll_plist_dict_set_item]
add esp, 0xc
push 0xd
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
mov edx, str.Status
mov esi, edi
add esp, 4
sub esi, edx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x401960
lea ecx, [edi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401970
mov eax, dword [str..plist]
mov dword [ecx], eax
mov ax, word [0x407328]
push 0
mov word [ecx + 4], ax
mov al, byte [0x40732a]
push edi
push dword [ebp - 0x3c]
mov byte [ecx + 6], al
call fcn.00401080
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 8
test eax, eax
jne 0x4019c9
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
mov dword [ebp - 0x3c], 0
test ebx, ebx
je 0x401a3b
test esi, esi
je 0x401a3b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.plist.dll_plist_to_xml]
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], 0
push 0x4072bc
push esi
mov dword [ebp - 0x4c], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x401a2b
push edi
push dword [ebp - 0x44]
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
push dword [ebp - 0x3c]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
add esp, 4
jmp 0x401a41
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call dword [sym.imp.plist.dll_plist_free]
add esp, 4
push esi
call edi
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00404fc4
mov esp, ebp
pop ebp
ret
Function at 0x100010e9
Capabilities:
Set registry value

Disassembly:
push 0x2b0
mov eax, 0x1004d89f
call fcn.10035d35
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x294], eax
xor eax, eax
push 0x76
mov word [ebp - 0x290], ax
xor edi, edi
lea eax, [ebp - 0x28e]
push edi
push eax
call fcn.10035820
push 0x1ea
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.10035820
add esp, 0x18
push esi
lea ecx, [ebp - 0x2c]
call fcn.10002683
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 3
jbe 0x10001195
push 3
push edi
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100026fc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.100028ae
push edi
push 1
lea ecx, [ebp - 0x2bc]
call fcn.10002a1b
jmp 0x100011bd
cmp dword [ebp - 0x18], 1
jne 0x100011a9
push 0x100533b4
lea eax, [ebp - 0x2c]
push eax
call fcn.100026d3
cmp dword [ebp - 0x18], 2
jne 0x100011bd
push 0x100533bc
lea eax, [ebp - 0x2c]
push eax
call fcn.100026d3
push ebx
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x290]
push eax
call fcn.10003561
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.10003561
push dword [ebp - 0x298]
lea eax, [ebp - 0x1a0]
push esi
push eax
call fcn.10003561
push dword [ebp - 0x29c]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10003561
push dword [ebp - 0x294]
lea eax, [ebp - 0xb0]
push esi
push eax
call fcn.10003561
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10001226
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x38]
push eax
call fcn.10003561
lea eax, [ebp - 0x290]
push eax
call fcn.10001000
mov dword [esp], 0x262
lea eax, [ebp - 0x290]
push eax
push 3
push 0x100533c0
push str.SYSTEMCurrentControlSetControlClass41E14A1F_5304_44CF_9269_632CDEB117F3
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
neg esi
push edi
sbb esi, esi
push 1
lea ecx, [ebp - 0x2c]
inc esi
call fcn.10002a1b
mov eax, esi
call fcn.10035db8
ret 0x18
Function at 0x1000127f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x262
push edi
xor ebx, ebx
push ebx
push esi
mov dword [ebp - 4], edi
call fcn.10035820
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x100533c0
push str.SYSTEMCurrentControlSetControlClass41E14A1F_5304_44CF_9269_632CDEB117F3
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x100012c9
cmp dword [ebp - 4], edi
jne 0x100012c9
push esi
call fcn.10001000
pop ecx
lea eax, [esi + 0x168]
push 0x3c
pop edi
cmp word [eax], bx
jne 0x100012e3
push str.wincsecsrv.dat
push edi
push eax
call fcn.10003561
lea eax, [esi + 0xf0]
cmp word [eax], bx
jne 0x100012fa
push str.winsecsrv.dll
push edi
push eax
call fcn.10003561
lea eax, [esi + 0x78]
cmp word [eax], bx
jne 0x1000130e
push str.winlsecsrv.sys
push edi
push eax
call fcn.10003561
cmp word [esi], bx
jne 0x1000131f
push str.winlsecsrv
push edi
push esi
call fcn.10003561
lea eax, [esi + 0x1e0]
cmp word [eax], bx
jne 0x10001336
push str.winsecsrv
push edi
push eax
call fcn.10003561
lea eax, [esi + 0x258]
cmp word [eax], bx
je 0x1000134a
cmp word [esi + 0x25c], bx
jne 0x10001357
push 0x10053454
push 4
push eax
call fcn.10003561
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4

Function at 0x1000143f
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebx
push esi
xor esi, esi
push 0x100604b0
mov dword [0x10060494], 0x110
mov dword [0x10060498], 2
mov dword [0x1006049c], 4
mov dword [0x100604a0], esi
mov dword [0x100604a4], esi
mov dword [0x100604a8], esi
mov dword [0x100604ac], 0xbb8
call sym.EXEngine.dll_Ordinal_25
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Enter_Service_Main__n
call ebx
push esi
push 0x100013bd
push 0x10060690
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x10060490], eax
cmp eax, esi
jne 0x100014b5
push str.Service_Main_RegisterServiceCtrlHandlerExW_Failed__n
jmp 0x100014ff
push 0xbb8
push 2
pop eax
call fcn.10001361
pop ecx
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push eax
push 0x10001506
push esi
push esi
mov dword [0x10060484], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10060488], eax
push esi
cmp eax, esi
je 0x100014f1
push 4
pop eax
jmp 0x100014f4
xor eax, eax
inc eax
call fcn.10001361
pop ecx
push str.Leave_Service_Main__n
call ebx
pop esi
pop ebx
ret 8
Function at 0x100016c7
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x100016ec
xor eax, eax
pop ebx
leave
ret
push edi
push 0x10000000
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
jne 0x10001710
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
jmp 0x100016e9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
call esi
mov dword [ebp - 0xc], eax
cmp eax, 1
jne 0x1000175a
cmp dword [ebp - 0x2c], 2
jne 0x1000173e
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
call esi
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp - 0x2c], 4
sete al
mov dword [ecx], eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0xc]
pop esi
jmp 0x10001702

Function at 0x10001767
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
push 0xf003f
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0xc]
push 0
mov dword [ebp - 8], 0xea60
mov dword [ebp - 0x20], 0x15180
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x100017ae
pop edi
pop ebx
leave
ret
push esi
push 0x10000000
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x100017d4
xor edi, edi
push ebx
call esi
mov eax, edi
pop esi
jmp 0x100017aa
lea eax, [ebp - 0x20]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov dword [ebp - 4], eax
call esi
mov edi, dword [ebp - 4]
jmp 0x100017cc
Function at 0x100017ec
Capabilities:
Set registry value
Start service

Disassembly:
sub esp, 0xc
push ebp
push esi
push 4
lea eax, [esp + 0x10]
push eax
push 4
push str.ServicesPipeTimeout
push str.SYSTEMCurrentControlSetControl
xor ebp, ebp
push 0x80000002
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0xea60
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, dword [esp + 0x18]
add esi, 0x1e0
push esi
mov dword [esp + 0x14], esi
call fcn.10001767
lea eax, [esp + 0xc]
push eax
push esi
call fcn.100016c7
add esp, 0xc
cmp dword [esp + 8], ebp
jne 0x100018b3
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esp + 0x1c], ebp
push edi
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebp
je 0x100018a6
push 0x10000000
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x100018a0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10001893
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x10001896
xor ebp, ebp
inc ebp
push esi
call ebx
push edi
call ebx
test ebp, ebp
jne 0x100018b1
mov esi, dword [esp + 0x18]
xor ebp, ebp
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 5
jb 0x10001851
pop edi
pop ebx
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x100018c4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 3
xor edx, edx
pop ecx
div ecx
and dword [ebp - 4], 0
mov edi, eax
mov ecx, edi
shr ecx, 1
mov esi, edi
test edi, edi
jne 0x100018ea
mov edi, 0xf789
test ecx, ecx
jne 0x100018f3
mov ecx, 0x8790
test esi, esi
jne 0x100018fc
mov esi, 0x7987988
xor edx, edx
push 0x2f
pop ebx
lea eax, [ecx + edi]
div ebx
shr esi, 3
xor ebx, ebx
add edx, ecx
lea esi, [esi + edx - 0x6e]
cmp esi, ebx
jne 0x10001917
mov esi, ecx
mov eax, ecx
imul eax, edi
push 9
pop ecx
xor edx, edx
div ecx
push 0x46
xor edx, edx
mov ecx, eax
mov eax, edi
pop edi
div edi
imul ecx, edx
add ecx, esi
shl ecx, 3
push ecx
call fcn.100022ea
mov dword [esp], str.Enter_Callback_Entry__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1001fc54
mov esi, 0x100604b0
push esi
call sym.EXEngine.dll_Ordinal_25
push esi
call fcn.100017ec
mov dword [esp], 0x1005351c
push 8
mov edi, 0x10060714
push edi
call fcn.10003561
push 0x10060708
push 8
push edi
call fcn.1000311f
push str.GlobalB2AF21B3_026B_482d_8B41_2B169E992E36
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [0x1006048c], eax
cmp eax, ebx
je 0x100019a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0x10
lea eax, [ebp + 0xc]
push eax
push 0x1005049c
mov dword [ebp + 0xc], ebx
call sym.EXEngine.dll_Ordinal_5
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x100019d4
mov ecx, dword [eax]
push ebx
push 0x10060528
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100019d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 4]
push eax
call fcn.100095a3
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100019e5
Function at 0x100021ad
Capabilities:
Get common file path

Disassembly:
push 0x22c
mov eax, 0x1004f5c0
call fcn.10035d35
mov edi, ecx
mov eax, dword [0x1005eb3c]
cmp eax, 0xffffffff
je 0x100021d5
cmp eax, edi
jne 0x100021d5
xor eax, eax
inc eax
call fcn.10035db8
ret
mov dword [0x1005eb3c], edi
call sym.EXEngine.dll_Ordinal_26
test eax, eax
jne 0x100021cc
lea eax, [ebp - 0x238]
push eax
xor esi, esi
push 0x1005049c
mov dword [ebp - 0x238], esi
call sym.EXEngine.dll_Ordinal_5
mov eax, dword [ebp - 0x238]
cmp eax, esi
je 0x10002226
mov ecx, dword [eax]
push esi
push 0x10060528
push 0x100604b0
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10002226
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x100021cf
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x21c], 7
call fcn.10002d1a
xor eax, eax
mov dword [ebp - 4], esi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.10035820
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.10002941
push str.Explorer.exe
lea ecx, [ebp - 0x234]
call fcn.100026af
mov ecx, dword [ebp - 0x230]
cmp edi, esi
je 0x100022d7
cmp dword [ebp - 0x21c], 8
jae 0x100022aa
lea ecx, [ebp - 0x230]
push ecx
push 0x400
mov eax, dword [ebp - 0x238]
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0xe0]
push esi
push 1
lea ecx, [ebp - 0x234]
mov edi, eax
call fcn.10002a1b
mov eax, edi
jmp 0x100021cf
cmp dword [ebp - 0x21c], 8
jae 0x100022e6
lea ecx, [ebp - 0x230]
push ecx
push esi
jmp 0x100022b0
Function at 0x100023c5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x4c4
mov eax, 0x1004df1d
call fcn.10035d35
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x488], ebx
call fcn.10035820
add esp, 0xc
xor eax, eax
push 0x76
mov word [ebp - 0x480], ax
lea eax, [ebp - 0x47e]
push ebx
push eax
call fcn.10035820
add esp, 0xc
push 0x1ea
lea eax, [ebp - 0x408]
push ebx
push eax
call fcn.10035820
add esp, 0xc
lea eax, [ebp - 0x488]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000250d
mov dword [ebp - 0x484], ebx
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x484]
push dword [ebp - 0x488]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x1000250d
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x480]
push eax
push ebx
push 0x100533c0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x488]
mov esi, 0x262
mov dword [ebp - 0x48c], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x100024f7
cmp dword [ebp - 0x48c], esi
jne 0x100024f7
lea eax, [ebp - 0x480]
push eax
call fcn.10001000
mov esi, dword [edi + 0x14]
pop ecx
lea eax, [ebp - 0x480]
push eax
push dword [esi + 4]
push esi
call fcn.10002dd5
mov ecx, dword [edi + 0x18]
mov edx, 0x6b6fa1
sub edx, ecx
cmp edx, 1
jb 0x10002513
inc ecx
mov dword [edi + 0x18], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
inc dword [ebp - 0x484]
cmp dword [ebp - 0x484], 0x3e8
jb 0x10002455
call fcn.10035db8
ret
push str.list_T__too_long
lea ecx, [ebp - 0x4d0]
call fcn.10003a00
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 4], ebx
call fcn.1000302e
push 0x10056bb8
lea eax, [ebp - 0x4b4]
push eax
mov dword [ebp - method.std::length_error.virtual_0], vtable.std::length_error.0
call fcn.1003589a
int3

Function at 0x10003b9a
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x1005ce10]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x194]
neg eax
sbb al, al
xor ecx, esp
inc al
call fcn.10032bd7
add esp, 0x19c
ret
Function at 0x10003fd5
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004f904
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x1005ce10]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
mov eax, dword [0x1005ce10]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov word [esp + 0x18], ax
xor ebx, ebx
lea eax, [esp + 0x1a]
push ebx
push eax
call fcn.10035820
add esp, 0xc
cmp dword [edi + 0x18], ebx
jne 0x10004127
call fcn.10003b9a
push ebx
push 0x23
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Cache
lea eax, [esp + 0x18]
push eax
call esi
push ebx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.CD31F005_B4E0_4798_BD77_7B5E6EB2B287
lea eax, [esp + 0x18]
push eax
call esi
lea eax, [esp + 0x14]
push eax
lea eax, [edi + 0x5c]
push eax
call fcn.100054df
push edi
call fcn.1000414c
lea esi, [edi + 8]
call fcn.1001a8cb
test al, al
jne 0x1000409e
xor al, al
jmp 0x10004129
push edi
call fcn.10004f8c
push 0xd0
call fcn.10032c7e
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x230], ebx
cmp eax, ebx
je 0x100040ca
push eax
call fcn.1000bbaa
mov dword [esp + 0x10], eax
jmp 0x100040ce
mov dword [esp + 0x10], ebx
or dword [esp + 0x230], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100040e8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi + 0x9c]
cmp eax, ebx
je 0x100040fa
lea esi, [eax + 4]
call fcn.10006139
mov eax, dword [esp + 0x10]
push edi
mov esi, eax
mov dword [edi + 0x9c], eax
call fcn.1000bc6b
push dword [edi + 0x9c]
call fcn.1000bda1
test al, al
jne 0x10004127
mov eax, edi
call fcn.100044fa
jmp 0x10004097
mov al, 1
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10032bd7
mov esp, ebp
pop ebp
ret
Function at 0x100050e5
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
push 0x70
mov eax, 0x1004e553
call fcn.10035d35
mov esi, ecx
mov dword [ebp - 0x68], esi
xor ebx, ebx
push 0x10054508
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.10002683
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
mov dword [ebp - 0x64], esp
cmp dword [ebp + 8], ebx
je 0x10005142
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call fcn.100052a0
xor edi, edi
movzx eax, byte [ebp + edi - 0x2c]
push eax
push 0x10053970
lea eax, [ebp - 0x1c]
push 6
push eax
call fcn.10007d02
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x48]
call fcn.100026af
inc edi
cmp edi, 0x10
jl 0x10005149
lea eax, [esi + 0x7c]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x64], eax
call fcn.10005797
lea edi, [ebp - 0x70]
mov esi, eax
call fcn.100105e8
test al, al
jne 0x100051c7
mov byte [ebp - 0x49], 1
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.10002a1b
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 8]
call fcn.10005eb3
mov al, byte [ebp - 0x49]
call fcn.10035db8
ret 4
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x5c]
push ebx
push 0x80
push 4
push ebx
push 1
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100051f1
mov byte [ebp - 0x49], 0
jmp 0x100051a5
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [ebp - 0x54]
push ebx
push 0x10
push edi
push dword [ebp - 0x58]
call fcn.10049c40
or eax, edx
jne 0x10005237
cmp edi, ebx
jg 0x10005237
jl 0x1000521e
cmp dword [ebp - 0x58], 0x4000
ja 0x10005237
mov eax, dword [ebp - 0x58]
push ebx
lea ecx, [ebp - 0x60]
push ecx
push edi
push eax
push esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jmp 0x10005262
push ebx
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push esi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp dword [ebp - 0x54], ebx
jg 0x10005262
jl 0x1000525b
cmp dword [ebp - 0x58], 0x4000
jae 0x10005262
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
lea eax, [ebp - 0x74]
push eax
push 0x10
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
push esi
inc bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x64]
call fcn.10005690
mov byte [ebp - 0x49], bl
mov dword [eax], 1
xor ebx, ebx
jmp 0x100051a5