joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416fc0
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x416fd9
mov eax, dword [ecx]
push 1
call dword [eax + 8]
call dword [sym.imp.core.dll_bool___cdecl_Unload3dSoundAPI_void_]
mov eax, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
lea edi, [eax + 0x1004]
add eax, 4
push eax
push 0x1000
push edi
push str.snd3d_fmod.dll
push str.SoundAPI
push ecx
call ebx
test eax, eax
jne 0x41700e
mov edi, 0x427bb8
push edi
call dword [sym.imp.core.dll_bool___cdecl_Load3dSoundAPI_char_const__]
add esp, 4
test al, al
jne 0x417062
mov esi, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
lea edi, [esi + 0x1004]
add esi, 4
push esi
push 0x1000
push edi
push str.snd3d_fmod.dll
push str.SoundAPI
push eax
call ebx
test eax, eax
jne 0x41704b
mov edi, 0x427bb8
push edi
push str.Failed_to_load_sound_API:_CFFFF00_sc_f
push 2
call dword [sym.imp.logger.dll_public:_static_void___cdecl_udLogger::log_int__char_const__]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
ret
mov ecx, dword [sym.imp.core.dll_class_snd3dSubsystem_____stdcall___void__sndCreateSnd3dSubsystem]
call dword [ecx]
test eax, eax
mov dword [esi + 0x18], eax
je 0x417096
call dword [sym.imp.core.dll_struct_HWND______cdecl_Platform::GetWindow_void_]
mov dl, byte [0x427d2c]
mov ecx, dword [esi + 0x18]
push edx
push eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.snd3d.dll_public:_int___thiscall_snd3dSubsystem::initialize_class_Preferences___struct_HWND_____bool_]
test eax, eax
jne 0x417096
pop edi
pop esi
xor al, al
pop ebx
ret
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x4173a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
add eax, 4
push eax
push 0
push str.ShowLink
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
setne al
ret

Function at 0x4173d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x10]
push esi
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
lea esi, [eax + 0x1004]
add eax, 4
push eax
push 0x1000
push esi
push str.assets_button_moregames.spr
push str.ILink
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov eax, 0x427bb8
je 0x417406
mov eax, esi
pop esi
ret

Function at 0x417450
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
add eax, 4
push eax
push 0xffffffffffffffff
push str.CurrentProfile
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret
Function at 0x418550
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x418584
push str.Failed_to_get_OS_Version._n
push 2
call dword [sym.imp.logger.dll_public:_static_void___cdecl_udLogger::log_int__char_const__]
add esp, 8
add esp, 0x94
ret
cmp dword [esp + 0x10], 2
jne 0x4185d0
mov al, byte [esp + 0x9c]
test al, al
je 0x4185b9
mov ecx, dword [esp + 0x98]
push 0
push ecx
push 0x4185e0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [section..mydata], eax
add esp, 0x94
ret
mov edx, dword [section..mydata]
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [section..mydata], 0
add esp, 0x94
ret
Function at 0x40193b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
xor esi, esi
call fcn.00407266
push eax
call fcn.00407429
sub byte [esi + 0x435a80], 0x38
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0xf6
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 4
pop ecx
call fcn.00407266
push eax
call fcn.00407429
xor byte [esi + 0x435a80], 0xbc
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0x86
pop ecx
call fcn.00407266
push eax
call fcn.00407429
xor byte [esi + 0x435a80], 0x99
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0xec
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0xa1
pop ecx
call fcn.00407266
push eax
call fcn.00407429
xor byte [esi + 0x435a80], 0x84
pop ecx
call fcn.00407266
push eax
call fcn.00407429
xor byte [esi + 0x435a80], 3
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0x6a
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0xa9
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0xd7
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0xdb
inc esi
pop ecx
cmp esi, 0x23000
jb 0x401945
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401a61
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, 0x14d
mov dword [esp + 0x18], ebp
cmp dword [esi + 0x14], 0x10
jb 0x401a84
mov esi, dword [esi]
shr edi, 2
push esi
push edi
push str._x_and__p
mov dword [esp + 0x20], edi
call fcn.004010d6
add esp, 0xc
test edi, edi
je 0x401ae1
mov ebp, esi
push 4
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040a920
imul ecx, dword [esp + 0x1c], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x10], eax
sub edi, 1
jne 0x401aa0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x401b0a
sub eax, 1
je 0x401b00
sub eax, 1
jne 0x401b18
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0xc
ret
Function at 0x1009e09
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x103ff58]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
push edi
je 0x1009ee1
cmp word [esi], 0
je 0x1009ee1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xb4
jbe 0x1009e48
push 0x6f
jmp 0x1009ee3
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x1009e56
and word [eax], 0
xor eax, eax
cmp dword [ebp + 0xc], 1
push esi
setne al
mov edi, eax
call fcn.01036052
test eax, eax
jne 0x1009e73
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1009eeb
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1001a9c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1009e9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1009eeb
mov eax, 0x1b60
jmp 0x1009eeb
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi + edi*4]
shl eax, 3
cmp dword [eax + 0x10415bc], 0
je 0x1009ee9
lea ecx, [ebp - 0x210]
push ecx
push dword [eax + 0x10415c0]
push esi
call fcn.01028f75
test eax, eax
jne 0x1009eeb
cmp dword [ebp - 0x210], 1
jne 0x1009ee9
mov eax, 0x1b5f
jmp 0x1009eeb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01031d91
leave
ret 8
Function at 0x1009fe0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x103ff58]
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
mov word [ebp - 0x414], si
mov ecx, 0x103
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
push edx
stosw word es:[edi], ax
lea eax, [ebp - 0x414]
push 0x1001adc
push eax
mov dword [ebp - 0x67c], edx
mov dword [ebp - 0x66c], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x670], eax
jne 0x100a065
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
jmp 0x100a1f7
push 0xc9
push 0x2a69c000
push esi
push dword [ebp + 0xc]
call fcn.010321b0
mov dword [ebp - 0x678], eax
mov dword [ebp - 0x674], edx
push ebx
lea eax, [ebp - 0x68c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x660]
mov esi, dword [ebp - 0x65c]
mov edi, dword [ebp - 0x68c]
xor edx, edx
xor ecx, ecx
or edx, eax
mov eax, dword [ebp - 0x688]
or esi, ecx
xor ebx, ebx
or ecx, edi
or eax, ebx
sub ecx, edx
sbb eax, esi
cmp eax, dword [ebp - 0x674]
jb 0x100a181
ja 0x100a0d6
cmp ecx, dword [ebp - 0x678]
jbe 0x100a181
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x67c]
lea eax, [ebp - 0x414]
push 0x1001a58
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100a181
mov edi, dword [ebp + 0x10]
xor ebx, ebx
xor eax, eax
inc ebx
cmp edi, eax
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x66c], ebx
jne 0x100a125
push 0x20
jmp 0x100a12d
push 0x40
lea eax, [ebp - 0x668]
pop esi
lea ecx, [ebp - 0x684]
push ecx
push eax
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.01009efe
test eax, eax
jne 0x100a151
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100a16a
push dword [ebp - 0x668]
push ebx
push esi
push dword [ebp - 0x680]
push dword [ebp - 0x684]
call fcn.010298e6
cmp dword [ebp - 0x668], 0
je 0x100a184
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100a184
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100a085
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x670]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x66c], 1
jne 0x100a1ee
mov esi, 0x104163c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + edi*4]
or dword [eax*8 + 0x10415d8], 0xffffffff
or dword [eax*8 + 0x10415dc], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x104017c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
cmp ebx, 0x12
sete al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01031d91
leave
ret 0xc
Function at 0x100a20a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x103ff58]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x414], ax
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x668], eax
mov ecx, 0x103
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
push edx
stosw word es:[edi], ax
lea eax, [ebp - 0x414]
push 0x1001af0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100a2d8
push ebx
mov edx, dword [ebp - 0x644]
mov ecx, dword [ebp - 0x648]
xor eax, eax
xor ebx, ebx
or eax, edx
or ecx, ebx
add dword [ebp - 0x66c], eax
lea eax, [ebp - 0x664]
push eax
adc dword [ebp - 0x668], ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100a27b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0x12
pop ebx
jne 0x100a2d8
mov eax, dword [ebp - 0x66c]
mov dword [esi], eax
mov eax, dword [ebp - 0x668]
mov dword [esi + 4], eax
xor eax, eax
inc eax
jmp 0x100a2da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01031d91
leave
ret 8
Function at 0x1012c16
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x103ff58]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov esi, 0x1001ea0
push esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0x1001e8c
mov dword [ebp - 0x3c], 0x10
call dword [sym.imp.msvcrt.dll_wcslen]
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0x10
mov esi, eax
neg esi
push 0
sbb esi, esi
inc esi
pop eax
mov dword [edi], eax
je 0x1012cd9
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push 0
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
test eax, eax
jne 0x1012ccf
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
xor ebx, ebx
cmp dword [ebp - 0x28], ebx
je 0x1012d40
cmp dword [ebp - 0x28], 0x6aa
mov dword [edi], ebx
je 0x1012d39
cmp dword [ebp - 0x28], 0x6ab
je 0x1012d39
mov eax, 0xc0000017
jmp 0x1012d99
cmp ebx, eax
je 0x1012c7d
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1012d31
lea eax, [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1012c7d
cmp word [ebx], 0x5c
jne 0x1012d29
cmp word [ebx + 2], 0x5c
jne 0x1012d29
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1012c7d
mov dword [ebp - 0x28], ebx
jmp 0x1012c7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1012d99
mov eax, 0x4ba
jmp 0x1012d99
cmp esi, ebx
jne 0x1012d97
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0xa
push 6
push 0x1001818
push dword [edi]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 2
call dword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
mov esi, eax
cmp esi, ebx
jne 0x1012d8a
push 0x7530
push 0xc
push dword [edi]
call dword [sym.imp.RPCRT4.dll_RpcBindingSetOption]
mov esi, eax
cmp esi, ebx
je 0x1012d97
push edi
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov dword [edi], ebx
mov eax, esi
jmp 0x1012d99
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0x14
Function at 0x1012de4
Capabilities:
Listen for remote procedure calls

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01012dad
test eax, eax
jne 0x1012e3e
push edi
call fcn.01036a72
test eax, eax
jne 0x1012e28
push eax
push eax
push 0xa
push 0x1001eb0
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterAuthInfoW]
mov edi, eax
test edi, edi
je 0x1012e28
push 1
push 0
push dword [ebp + 0xc]
call dword [sym.imp.RPCRT4.dll_RpcServerUnregisterIf]
mov eax, edi
jmp 0x1012e3d
push 1
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov edi, eax
test edi, edi
jne 0x1012e17
pop edi
pop ebp
ret 8

Function at 0x1015c1b
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x103ff58]
or dword [ebp - 0x214], 0xffffffff
or dword [ebp - 0x22c], 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x244], eax
xor eax, eax
cmp dword [0x1040204], esi
mov word [ebp - 0x20c], si
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x210], esi
stosw word es:[edi], ax
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], esi
jne 0x1015cb7
call fcn.01015552
cmp eax, esi
mov dword [ebp - 0x210], eax
jne 0x1016016
mov dword [0x1040204], 1
push ebx
call fcn.01036052
test eax, eax
jne 0x1015ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1016016
push 0x1001c54
push ebx
push 0x1001a58
lea eax, [ebp - 0x20c]
push 0x103
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x14
test eax, eax
jge 0x1015cf8
push 0x1f
pop eax
jmp 0x1016016
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push 0x80
push 4
push esi
push 1
mov ebx, 0x40000000
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
jne 0x1015d34
push 0x1001c38
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push 0x1001a58
push 0x103
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x14
test eax, eax
jge 0x1015d6c
mov dword [ebp - 0x210], 0x1f
jmp 0x1015f7f
push esi
push 0x80
add byte [eax], 0
add byte [edx + 4], ch

Function at 0x10171e2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
and dword [ebp - 4], esi
cmp dword [0x10415a8], esi
jne 0x10171fb
xor eax, eax
inc eax
jmp 0x1017250
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or al, 0xff
jne 0x101720d
Function at 0x101725a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
and dword [ebp - 4], esi
cmp dword [0x10415ac], esi
jne 0x1017273
xor eax, eax
inc eax
jmp 0x10172c5
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0101652d
test eax, eax
jne 0x1017288
push 0xe
pop esi
jmp 0x10172b6
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp - 4]
push dword [0x1040208]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10172b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 4]
call fcn.01035abf
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 4

Function at 0x10173d6
Capabilities:
Delete file

Disassembly:
push 0xc
push 0x1002130
call fcn.01032098
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
je 0x10174ed
push 0x1040250
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov dword [esi], edi
mov dword [esi + 4], edi
mov eax, dword [esi + 0xc]
cmp eax, edi
jne 0x1017424
cmp dword [esi + 0x18], edi
jne 0x1017424
push 0x1040190
call fcn.0101ccec
jmp 0x10174dc
cmp eax, 2
jne 0x1017437
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10174dc
cmp eax, 3
jne 0x10174dc
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x234], edi
je 0x101746d
cmp dword [esi + 0x230], edi
je 0x1017475
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x101746d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x230], edi
jne 0x10174dc
cmp dword [esi + 0x238], edi
je 0x10174dc
mov ebx, 0x104030c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
push 1
push 1
push 1
push dword [esi + 0x238]
call fcn.0101fa0a
or dword [ebp - 4], 0xffffffff
jmp 0x10174d5
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.01035abf
push 0x1040250
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.010320d3
ret 4
Function at 0x1017d42
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x103ff58]
and dword [ebp - 0x504], 0
and dword [ebp - 0x48c], 0
push esi
push edi
mov esi, ecx
push 0x1c
mov dword [ebp - 4], eax
xor eax, eax
test edx, edx
pop ecx
lea edi, [ebp - 0x500]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x490], 1
mov edi, edx
jne 0x1017d89
mov edi, 0x1001a80
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push dword [esi + 8]
push 0
push dword [esi + 4]
call fcn.010376ce
test eax, eax
jne 0x1017db0
xor esi, esi
jmp 0x1017e71
lea eax, [ebp - 0x504]
push eax
push esi
call fcn.01017bdc
call fcn.01017b04
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x48c], eax
je 0x1017e71
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push esi
call fcn.010357d2
test eax, eax
jne 0x1017da9
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x1040378
call fcn.010376ab
or eax, edx
je 0x1017da9
push 2
pop eax
cmp word [ebp - 0x474], ax
jne 0x1017e18
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x504]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x490]
push dword [ebp - 0x48c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01035855
test eax, eax
lea eax, [ebp - 0x20c]
je 0x1017e56
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1017e71
push 0x103
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcsncpy]
and word [ebx + 0x206], 0
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 0x48c]
call fcn.01035abf
lea eax, [ebp - 0x504]
push eax
call fcn.01017bb4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.01031d91
leave
ret 4
Function at 0x101869c
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [eax + 0x20]
mov eax, dword [ebx + 0x444]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [eax + 0x34]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10186e7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x1018700
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx esi, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
imul esi, esi, 0x3c
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esi, eax
movzx eax, word [ebp - 8]
imul esi, esi, 0x3c
add esi, eax
mov eax, dword [0x1040588]
add eax, 0x18
push eax
call edi
mov eax, dword [0x1040588]
add eax, 0x30
push eax
call edi
mov eax, dword [0x1040588]
lea edi, [ebx + 0x46c]
push dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
add eax, 0x1c
push eax
call ebx
mov eax, dword [0x1040588]
push dword [edi]
add eax, 0x34
push eax
call ebx
mov edi, 0x1041674
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x1041598], esi
mov eax, dword [0x1041598]
push 0x3c
pop ecx
xor edx, edx
div ecx
mov ecx, dword [0x1040588]
add dword [0x1041590], esi
push 0x3c
xor edx, edx
mov dword [ecx + 0x20], eax
mov eax, dword [0x1041590]
pop ecx
div ecx
mov ecx, dword [0x1040588]
push edi
mov dword [ecx + 0x38], eax
mov eax, dword [0x1040588]
mov ecx, dword [ebp - 4]
add dword [eax + 0x14], ecx
mov eax, dword [0x1040588]
add dword [eax + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret