joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ba88
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push 4
push 0x101e6650
push ebx
mov dword [ebp - 0x21c], eax
call fcn.1009d7db
add esp, 0xc
test eax, eax
jne 0x1003babf
add ebx, 8
push ebx
call fcn.10097626
pop ecx
cmp eax, 4
jb 0x1003bb8b
cmp word [ebx + 2], 0x3a
jne 0x1003bb8b
lea eax, [ebx + 4]
cmp word [eax], 0x5c
mov dword [ebp - 0x220], eax
jne 0x1003bb8b
push esi
push edi
mov esi, 0x101f2e84
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebx]
push eax
call fcn.1009d7af
mov word [ebp - 0x10], ax
pop ecx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
pop edi
pop esi
cmp eax, 4
jne 0x1003bb8b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.10097040
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x224], 0x104
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x1003bb8b
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp + 0x10]
push 0x101e78cc
dec eax
push eax
push dword [ebp - 0x21c]
call fcn.1009d2be
add esp, 0x14
jmp 0x1003bb9f
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
push dword [ebp - 0x21c]
call fcn.100975dc
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.10096f22
leave
ret
Function at 0x1003bc48
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
push eax
call fcn.10097040
push 0x12c
lea eax, [ebp - 0x268]
push eax
push esi
call fcn.1003bbaf
add esp, 0x18
test eax, eax
je 0x1003bdae
push edi
mov esi, 0x101f2e84
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop edi
jmp 0x1003bd18
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x470], ax
lea eax, [ebp - 0x46e]
push eax
call fcn.10097040
add esp, 0xc
push 0x104
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x470]
push eax
call fcn.10097626
mov esi, eax
pop ecx
test esi, esi
jbe 0x1003bd14
push esi
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.10098323
add esp, 0xc
test eax, eax
je 0x1003bd41
inc word [ebp - 0x10]
cmp word [ebp - 0x10], 0x5a
jbe 0x1003bcb2
push 8
lea eax, [ebp - 0x268]
push 0x101f2ecc
push eax
call fcn.10098323
add esp, 0xc
test eax, eax
jne 0x1003bd64
lea eax, [ebp - 0x258]
jmp 0x1003bd84
lea eax, [ebp + esi*2 - 0x268]
test eax, eax
je 0x1003bd1f
push eax
lea eax, [ebp - 0x10]
push eax
push 0x101e78cc
push dword [ebp + 0x10]
push ebx
call fcn.1009d2be
add esp, 0x14
jmp 0x1003bdab
push 0x19
lea eax, [ebp - 0x268]
push 0x101f2e98
push eax
call fcn.10098323
add esp, 0xc
test eax, eax
jne 0x1003bd98
lea eax, [ebp - 0x236]
push eax
push 0x101f2e8c
push dword [ebp + 0x10]
push ebx
call fcn.1009d2be
add esp, 0x10
jmp 0x1003bdab
push dword [ebp + 0x10]
lea eax, [ebp - 0x268]
push ebx
push eax
call fcn.1003ba88
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10096f22
leave
ret
Function at 0x1003d410
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1003d4af
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1003d4af
push edi
push 0x20
push 7
push 0x100080
push dword [ebp + 8]
call fcn.1003d150
mov ebx, eax
add esp, 0x14
xor eax, eax
cmp ebx, 0xffffffff
je 0x1003d4b1
push 9
mov dword [ebp - 0x28], edi
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.1003c2b9
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1003d4a4
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x20], eax
push ebx
call dword [0x1026f100]
mov eax, edi
jmp 0x1003d4b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003dc02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x10269598], esi
jne 0x1003dd71
lea eax, [ebp - 0x208]
push eax
push dword [0x10243f00]
mov dword [0x10269598], 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x208], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x208], esi
je 0x1003dcd0
xor eax, eax
push 0x1fc
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push esi
push eax
call fcn.10097040
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push esi
push dword [0x10243efc]
mov dword [ebp - 0x20c], 0x1fe
push dword [ebp - 0x208]
call edi
push dword [ebp - 0x208]
call ebx
lea eax, [ebp - 0x204]
push eax
push dword [0x10243ef8]
call fcn.100977e9
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [0x10269594], eax
jmp 0x1003dcd5
mov eax, dword [0x10269594]
cmp eax, esi
jne 0x1003dd76
lea eax, [ebp - 0x208]
push eax
push dword [0x10243f00]
mov dword [ebp - 0x208], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x208], esi
je 0x1003dd71
xor eax, eax
push 0x1fc
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push esi
push eax
call fcn.10097040
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push esi
push dword [0x10243ef4]
mov dword [ebp - 0x20c], 0x1fe
push dword [ebp - 0x208]
call edi
push dword [ebp - 0x208]
call ebx
lea eax, [ebp - 0x204]
push eax
push dword [0x10243ef8]
call fcn.100977e9
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [0x10269594], eax
jmp 0x1003dd76
mov eax, dword [0x10269594]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10096f22
leave
ret
Function at 0x1003e2ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWARETECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003e381
cmp dword [ebp - 4], ebx
je 0x1003e381
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.OutlookMailDebug
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x1003e358
cmp dword [ebp - 0xc], 1
sete al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push ebx
push str.OutlookMailDebugLogLevel
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
jmp 0x1003e383
xor eax, eax
pop ebx
leave
ret 4

Function at 0x1003e55c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, esi
je 0x1003e61e
cmp edi, esi
je 0x1003e61e
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.10097040
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push ebx
call fcn.1001c172
lea eax, [ebp - 0x20c]
push eax
call fcn.10097626
add esp, 0x20
test eax, eax
je 0x1003e61e
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003e616
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x1003e60d
mov dword [ebp - 0x210], 1
jmp 0x1003e60f
mov dword [edi], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x210]
jmp 0x1003e620
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10096f22
leave
ret 8

Function at 0x1003e7ba
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x1003e824
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10097040
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push esi
call fcn.1001c172
lea eax, [ebp - 0x20c]
push eax
call fcn.10097626
add esp, 0x20
test eax, eax
je 0x1003e824
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10096f22
leave
ret 4
Function at 0x1003e833
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x1003e900
test ebx, ebx
je 0x1003e900
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.10097040
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x418]
call fcn.1001c172
xor eax, eax
push edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10097040
push esi
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push ebx
call fcn.1001c172
lea eax, [ebp - 0x414]
push eax
call fcn.10097626
add esp, 0x3c
pop edi
pop esi
test eax, eax
je 0x1003e900
lea eax, [ebp - 0x20c]
push eax
call fcn.10097626
pop ecx
test eax, eax
je 0x1003e900
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x1003e902
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10096f22
leave
ret 8

Function at 0x1003e911
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x1003e9cf
cmp ebx, esi
je 0x1003e9cf
cmp dword [ebp + 0x10], esi
je 0x1003e9cf
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.10097040
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push edi
call fcn.1001c172
lea eax, [ebp - 0x20c]
push eax
call fcn.10097626
add esp, 0x20
test eax, eax
je 0x1003e9cf
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003e9cb
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x210], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1003e9d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10096f22
leave
ret 0xc
Function at 0x100413c1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x618
mov eax, 0x101d1dac
call fcn.10096f9a
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x61c]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfiles
mov edi, reloc.WS2_32.dll_accept
xor ebx, ebx
push edi
mov dword [ebp - 0x61c], ebx
call esi
cmp eax, ebx
jne 0x1004155b
cmp dword [ebp - 0x61c], ebx
je 0x1004155b
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10097040
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push str.DefaultProfile
push dword [ebp - 0x61c]
mov dword [ebp - 0x620], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x61c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x61c], ebx
call fcn.10097626
pop ecx
test eax, eax
je 0x1004155b
push 0x101e3ae4
lea ecx, [ebp - 0x624]
call fcn.100cbee0
mov dword [ebp - 4], ebx
push str.9375CFF0413111d3B88A00104B2A6676
lea eax, [ebp - 0x218]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfiles
lea eax, [ebp - 0x624]
push 0x101f46d0
push eax
call fcn.100cf610
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x624]
push edi
call esi
cmp eax, ebx
jne 0x1004154c
cmp dword [ebp - 0x61c], ebx
je 0x1004154c
push 0x3ff
lea eax, [ebp - 0x617]
push ebx
push eax
mov byte [ebp - 0x618], bl
call fcn.10097040
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x618]
push eax
push ebx
push ebx
push str.ED475418_B0D6_11D2_8C3B_00104B2A6676
push dword [ebp - 0x61c]
mov dword [ebp - 0x620], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1004151e
mov dword [ebp - 0x620], ebx
push dword [ebp - 0x61c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x620]
mov dword [ebp - 0x61c], ebx
shr esi, 2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.100cc680
mov eax, esi
jmp 0x1004155d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.100cc680
xor eax, eax
call fcn.1009701d
ret
Function at 0x100423d1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xd4
mov eax, 0x101d209c
call fcn.10096f9a
mov edi, dword [ebp + 8]
push 0x101e3ae4
lea ecx, [ebp - 0xe0]
call fcn.100cbee0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x10269608]
cmp ecx, ebx
je 0x1004246b
sub eax, ecx
cmp eax, 0xea60
jae 0x1004246b
push dword [0x10269604]
lea eax, [ebp - 0xe0]
push dword [0x10244034]
push str.Outlook_2003_IsMailRule____d_____d_
push eax
call fcn.100cf610
push ebx
push 1
push dword [ebp - 0xe0]
call fcn.100611fa
add esp, 0x1c
cmp edi, ebx
je 0x1004244c
mov eax, dword [0x10269604]
mov dword [edi], eax
mov esi, dword [0x10244034]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.100cc680
mov eax, esi
call fcn.1009701d
ret 4
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0xdc]
mov dword [0x10269608], eax
mov dword [0x10244034], esi
mov dword [0x10269604], ebx
call fcn.1002a731
mov byte [ebp - 4], 1
push 0x68
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
call fcn.10097040
push ebx
lea eax, [ebp - 0x7c]
push eax
push 3
lea eax, [ebp - 0xdc]
push 7
push eax
call fcn.1000d697
add esp, 0x20
test eax, eax
je 0x100424d2
test byte [ebp - 0x6c], 8
je 0x100424d8
call fcn.10026b28
test eax, eax
je 0x100424d8
mov dword [0x10269604], esi
jmp 0x100424d8
mov dword [0x10244034], ebx
cmp edi, ebx
je 0x100424e3
mov eax, dword [0x10269604]
mov dword [edi], eax
cmp dword [0x10266028], ebx
je 0x10042510
push dword [0x10269604]
push dword [0x10244034]
push str.CAddin::HasMailRule__MailRule:_d__SCI:_d_
push str.outlook
push 0xffffffffffffffff
push 0x10265fbc
call fcn.10024fa4
add esp, 0x18
mov esi, dword [0x10244034]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xdc]
call fcn.1002a7bb
jmp 0x10042452
Function at 0x1005ad66
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d5523
mov eax, dword fs:[0]
push eax
mov eax, 0x1004c
call fcn.1009db10
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x1005adab
xor eax, eax
jmp 0x1005af43
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x1003c]
call fcn.100da930
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10058]
call fcn.1003b478
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x10030]
call fcn.1001159b
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push esi
mov dword [ebp - 0x10024], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005af11
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x1005af00
push 0xffff
lea eax, [ebp - 0x1000f]
push ebx
push eax
mov byte [ebp - 0x10010], bl
call fcn.10097040
mov dword [ebp - 0x1001c], esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
mov dword [ebp - 0x10020], ebx
mov dword [ebp - 0x10018], ebx
push ebx
push ebx
push dword [ebp - 0x1001c]
push edi
call esi
push ebx
lea eax, [ebp - 0x10014]
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push edi
mov dword [ebp - 0x10014], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005aeec
cmp dword [ebp - 0x10014], 0x10000
jae 0x1005ae93
mov dword [ebp - 0x10020], 1
cmp dword [ebp - 0x10014], ebx
je 0x1005aeec
push ebx
push ebx
push dword [ebp - 0x10018]
push edi
call esi
push ebx
lea eax, [ebp - 0x10028]
push eax
push dword [ebp - 0x10014]
lea eax, [ebp - 0x10010]
push eax
push edi
mov dword [ebp - 0x10028], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005aeec
mov ecx, dword [ebp - 0x10028]
mov eax, dword [ebp - 0x10014]
cmp ecx, eax
jne 0x1005aeec
add dword [ebp - 0x1001c], eax
add dword [ebp - 0x10018], ecx
cmp dword [ebp - 0x10020], ebx
je 0x1005ae45
push ebx
push ebx
push dword [ebp - 0x10018]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1005af0a
mov dword [ebp - 0x10024], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10030]
call fcn.100115c7
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10058]
call fcn.1003b554
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1003c]
call fcn.100da990
mov eax, dword [ebp - 0x10024]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10096f22
leave
ret 4
Function at 0x1005af61
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x101d5563
call fcn.10096f31
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x1005b02b
cmp dword [ebp + 8], ebx
je 0x1005b02b
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x24]
call fcn.100da930
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.1003b478
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.1001159b
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 4
push ebx
push ebx
push 0xc0000000
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1005b004
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0xc], ebx
je 0x1005affa
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
jmp 0x1005affd
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.100115c7
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.1003b554
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100da990
mov eax, edi
jmp 0x1005b02d
xor eax, eax
call fcn.10097009
ret 8
Function at 0x1005b035
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x101d5596
call fcn.10096f31
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x1005b057
xor eax, eax
call fcn.10097009
ret 0xc
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100da930
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
call fcn.1003b478
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.1001159b
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocStringLen
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005b148
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], ebx
ja 0x1005b14d
cmp dword [ebp + 0x10], ebx
je 0x1005b0ce
cmp eax, 0xa00000
ja 0x1005b14d
inc eax
push eax
call fcn.1009968a
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x1005b10f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.100115c7
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.1003b554
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100da990
mov eax, esi
jmp 0x1005b04f
mov eax, dword [ebp - 0x14]
inc eax
push eax
push ebx
push esi
call fcn.10097040
add esp, 0xc
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov esi, dword [ebp - 0x14]
jmp 0x1005b0e5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.100115c7
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.1003b554
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100da990
jmp 0x1005b04d

Function at 0x1005b81a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x1005b82d
push 0xd
pop eax
jmp 0x1005b858
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1005b830
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8