joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41713c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4064c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea44
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4064f0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4064f0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea44
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4065ea
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x406519
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40654d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea44
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x4065ea
cmp eax, 1
jle 0x4065ab
cmp eax, 3
jne 0x4065ea
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00401f90
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea44
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4065c9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4065ea
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x4065ea
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea44
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ea44
mov esp, ebp
pop ebp
ret 4
Function at 0x4080b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x4080d6
jl 0x4080ca
test esi, esi
jne 0x4080d6
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4080ef
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x408102
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
jmp 0x408104
xor eax, eax
mov dword [ebp - 4], esi
test eax, eax
je 0x408137
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
mov dword [ebp - 4], edi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x40813d
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
je 0x4081ec
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x408168
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov edx, eax
mov ecx, dword [ebp + 8]
cmp eax, 0xfff
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [ebp - 4], edx
jbe 0x4081af
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
mov dword [ebp - 4], edi
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x4081d9
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x408180
cmp dword [ebp - 4], 0
jbe 0x4081ef
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
mov eax, esi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 4]
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x408235
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x408256
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x408258
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x4082d6
jg 0x40826b
test esi, esi
je 0x4082d6
test ecx, ecx
jl 0x4082af
jg 0x408275
test eax, eax
je 0x4082af
cmp edi, ecx
jg 0x408287
jl 0x40827f
cmp esi, eax
jae 0x408287
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4082b2
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4082d6
jg 0x4082bc
test esi, esi
je 0x4082d6
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4082d6
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002021
Capabilities:
Query environment variable

Disassembly:
cmp dword [esp + 0xc], 0
push ebx
push ebp
je 0x1000209d
xor ebp, ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x14]
call sym.java.dll__JNU_GetStringPlatformChars_12
mov ebx, eax
test ebx, ebx
je 0x1000209d
push edi
push ebp
push ebp
push ebx
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov ebp, eax
test ebp, ebp
je 0x10002088
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x10002088
push ebp
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
push edi
test eax, eax
je 0x10002081
push dword [esp + 0x14]
call sym.java.dll__JNU_NewStringPlatform_8
push edi
mov ebp, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x1000208a
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor ebp, ebp
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x18]
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov eax, ebp
pop edi
jmp 0x1000209f
xor eax, eax
pop ebp
pop ebx
ret 0xc

Function at 0x10002819
Capabilities:
Identify system language via api

Disassembly:
cmp dword [esp + 0xc], 0
je 0x10002828
call dword [sym.imp.kernel32.dll_GetUserDefaultLCID]
jmp 0x1000282e
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
push esi
movzx eax, ax
push edi
push eax
call sym.java.dll_JNU_CallStaticMethodByName
mov esi, eax
pop ecx
test esi, esi
je 0x1000285a
mov ecx, dword [esp + 0xc]
push esi
push ecx
mov edx, dword [ecx]
call dword [edx + 0x29c]
push esi
mov edi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x1000286a
push str.memory_allocation_error
push dword [esp + 0x10]
call sym.java.dll__JNU_ThrowOutOfMemoryError_8
xor edi, edi
mov eax, edi
pop edi
pop esi
ret 0xc

Function at 0x10003d57
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call sym.java.dll__JNU_ClassString_4
mov ebp, eax
test ebp, ebp
je 0x10003da0
mov ecx, dword [esi]
push str.__B_V
push str._init_
push ebp
push esi
call dword [ecx + 0x84]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10003da0
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov edi, eax
test edi, edi
jne 0x10003da9
push str.GetEnvironmentStrings_failed
push esi
call sym.java.dll__JNU_ThrowOutOfMemoryError_8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
xor ebx, ebx
cmp byte [edi], bl
je 0x10003dbc
mov al, byte [ebx + edi]
inc ebx
test al, al
jne 0x10003daf
cmp byte [ebx + edi], al
jne 0x10003daf
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x2c0]
mov ecx, eax
mov dword [esp + 0x10], ecx
push edi
test ecx, ecx
jne 0x10003dd9
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
jmp 0x10003da0
mov eax, dword [esi]
push ebx
push 0
push ecx
push esi
call dword [eax + 0x340]
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
push dword [esp + 0x10]
mov eax, dword [esi]
push dword [esp + 0x18]
push ebp
push esi
call dword [eax + 0x70]
add esp, 0x10
jmp 0x10003da2
Function at 0x10006cd3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xe0
mov eax, dword [0x1001ff00]
xor eax, ebp
mov dword [ebp + 0x74], eax
push edi
lea eax, [ebp - 0x5c]
xor edi, edi
push eax
push 0x20019
push edi
push str.SystemCurrentControlSetControlTimeZoneInformation
push 0x80000002
mov dword [ebp - 0x5c], edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006d48
push esi
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 4
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x64], edi
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push str.ActiveTimeBias
push dword [ebp - 0x5c]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0x5c]
mov esi, eax
test esi, esi
cmove edi, dword [ebp - 0x68]
call dword [sym.imp.advapi32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x10006d59
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.kernel32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
cmovne edi, dword [ebp - 0x58]
lea eax, [ebp + 0x54]
push eax
push edi
call fcn.10006be9
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ecx, dword [ebp + 0x74]
add esp, 0xc
xor ecx, ebp
pop edi
call fcn.10014785
add ebp, 0x78
leave
ret

Function at 0x10006d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1001ff00]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [eax]
push eax
and dword [esi], 0
push ebx
push esi
push 0
push dword [ecx*4 + 0x1001f618]
mov dword [esp + 0x28], ecx
push ebp
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006de0
cmp dword [esi], 1
je 0x10006e29
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x100
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push esi
push 0
push dword [eax*4 + 0x1001f61c]
push ebp
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x10006e32
cmp dword [esi], 1
jne 0x10006e2d
shr edi, 1
lea eax, [esp + 0x18]
push edi
push ebx
push 0xffffffffffffffff
push eax
push 8
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jle 0x10006e2d
xor eax, eax
jmp 0x10006e32
mov eax, 0x3f2
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10014785
add esp, 0x10c
ret
Function at 0x10007bba
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.advapi32.dll_CryptAcquireContextA]
lea eax, [esp + 0xc]
push edi
push 0
xor ebp, ebp
mov edi, str.J2SE
inc ebp
xor bl, bl
push ebp
push 0
push edi
push eax
call esi
test eax, eax
jne 0x10007bf4
push 8
push ebp
push eax
push edi
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x10007bf4
xor al, al
jmp 0x10007c51
mov esi, dword [esp + 0x18]
push dword [esp + 0x20]
push esi
mov eax, dword [esi]
call dword [eax + 0x2ac]
mov ecx, dword [esi]
mov ebp, eax
push 0
push dword [esp + 0x24]
push esi
call dword [ecx + 0x2e0]
mov edi, eax
test edi, edi
je 0x10007c43
push edi
push ebp
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_CryptGenRandom]
mov ecx, dword [esi]
test eax, eax
push 1
pop eax
push 0
push edi
push dword [esp + 0x28]
movzx ebx, bl
push esi
cmovne ebx, eax
call dword [ecx + 0x300]
push 0
push dword [esp + 0x14]
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x10007f15
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [0x1001ff58]
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.1000a1e8
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10007f66
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
push esi
call sym.java.dll_JNU_CallStaticMethodByName
push esi
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
cmp ebx, 0xffffffff
je 0x10007f66
mov ecx, dword [esp + 0x18]
sub ecx, 1
je 0x10007f75
sub ecx, 1
je 0x10007f6d
dec ecx
sub ecx, 1
je 0x10007f75
xor al, al
pop esi
pop ebx
ret 0x10
and bl, 0x11
cmp bl, 1
je 0x10007f66
mov al, 1
jmp 0x10007f68

Function at 0x10007f79
Capabilities:
Create directory

Disassembly:
push edi
push dword [0x1001ff58]
push dword [esp + 0x14]
push dword [esp + 0x10]
call fcn.1000a1e8
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10007fb3
push esi
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
pop esi
je 0x10007fb3
mov al, 1
jmp 0x10007fb5
xor al, al
pop edi
ret 0xc
Function at 0x10007fba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
push edi
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.1000a6ac
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1000803c
push esi
call sym.java.dll_JNU_CallStaticMethodByName
pop ecx
test eax, eax
jne 0x10008034
push edi
push 0x200080
push 1
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10008043
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
cmp edi, 0x50
je 0x10008034
cmp edi, 0xb7
je 0x10008034
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10008034
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
push str.Could_not_open_file
push dword [esp + 0x10]
call sym.java.dll__JNU_ThrowIOExceptionWithLastError_8
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor al, al
pop edi
pop esi
ret 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
jmp 0x1000803e

Function at 0x1000836f
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x1001ff00]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
mov eax, dword [ebp + 0x7b8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x7b0]
push ebx
push esi
push edi
push dword [0x1001ff58]
movlpd qword [ebp - 0x80], xmm0
push eax
push ecx
call fcn.1000a1e8
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x60]
push 0x400
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetVolumePathNameW]
test eax, eax
je 0x1000840e
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1000840e
mov eax, dword [ebp + 0x7bc]
sub eax, 0
je 0x10008406
sub eax, 1
je 0x100083fe
sub eax, 1
jne 0x1000840e
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
jmp 0x10008414
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x6c]
jmp 0x10008414
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x74]
jmp 0x10008414
mov edi, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x80]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ecx, dword [ebp + 0x7a4]
mov edx, edi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.10014785
add ebp, 0x7a8
leave
ret 0x10
Function at 0x1000875e
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push dword [0x1001ff58]
xor bl, bl
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.1000a1e8
push dword [0x1001ff58]
mov esi, eax
push dword [esp + 0x2c]
push dword [esp + 0x24]
call fcn.1000a1e8
add esp, 0x18
mov edi, eax
test esi, esi
je 0x100087be
test edi, edi
je 0x100087be
push edi
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
xor ecx, ecx
movzx ebx, bl
inc ecx
test eax, eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmove ebx, ecx
call esi
push edi
call esi
add esp, 0x10
mov al, bl
jmp 0x100087c0
xor al, al
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x10008863
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor bl, bl
cmp dword [ebp + 0x14], 4
push edi
je 0x10008910
xor edi, edi
inc edi
cmp dword [ebp + 0x14], edi
je 0x10008910
push dword [0x1001ff58]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.1000a1e8
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000889f
xor al, al
jmp 0x10008913
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10008904
test ecx, 0x400
je 0x100088dc
push esi
push dword [ebp + 8]
call fcn.10008ac3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10008904
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push edi
mov esi, edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor edi, edi
mov ecx, eax
inc edi
cmp ecx, 0xffffffff
je 0x10008904
test cl, 0x10
jne 0x10008904
mov eax, ecx
and ecx, 0xfffffffe
or eax, edi
cmp byte [ebp + 0x18], 0
cmove ecx, eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
movzx ebx, bl
cmovne ebx, edi
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov al, bl
jmp 0x10008913
mov al, byte [ebp + 0x18]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18

Function at 0x1000891a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push dword [0x1001ff58]
xor bl, bl
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.1000a1e8
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000893e
xor al, al
jmp 0x1000899e
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10008994
push edi
test eax, 0x400
je 0x10008975
push esi
push dword [esp + 0x14]
call fcn.10008ac3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10008993
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push edi
mov esi, edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10008993
test al, 0x10
jne 0x10008993
xor edi, edi
inc edi
or eax, edi
push eax
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
movzx ebx, bl
cmovne ebx, edi
pop edi
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov al, bl
pop esi
pop ebx
ret 0xc
Function at 0x10008d5d
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10008d7f
xor eax, eax
inc eax
ret
push dword [esp + 4]
test al, 0x10
je 0x10008d8f
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x10008d95
call dword [sym.imp.kernel32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x10008e53
Capabilities:
Delete registry key

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x1c]
mov eax, dword [edi]
push edi
call dword [eax + 0x2e0]
mov ebx, eax
test ebx, ebx
jne 0x10008e73
or eax, 0xffffffff
jmp 0x10008e94
push esi
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
mov ecx, dword [edi]
mov esi, eax
push 0
push ebx
push dword [esp + 0x24]
push edi
call dword [ecx + 0x300]
mov eax, esi
pop esi
pop edi
pop ebx
ret 0x10

Function at 0x10008e99
Capabilities:
Delete registry value

Disassembly:
cmp dword [esp + 0x10], 0
push ebx
push ebp
je 0x10008ede
mov ebx, dword [esp + 0xc]
push 0
push dword [esp + 0x1c]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x2e0]
mov ebp, eax
test ebp, ebp
je 0x10008ede
push esi
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.advapi32.dll_RegDeleteValueA]
mov ecx, dword [ebx]
mov esi, eax
push 0
push ebp
push dword [esp + 0x24]
push ebx
call dword [ecx + 0x300]
mov eax, esi
pop esi
jmp 0x10008ee1
or eax, 0xffffffff
pop ebp
pop ebx
ret 0x10

Function at 0x10008ee6
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x10008f0f
push str.native_memory_allocation_failed
push dword [esp + 0xc]
call sym.java.dll__JNU_ThrowOutOfMemoryError_8
xor eax, eax
jmp 0x10008f6a
push esi
xor esi, esi
lea eax, [esp + 0x1c]
push esi
push esi
push esi
push esi
push eax
push edi
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10008f5f
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x10]
inc eax
push ebp
push eax
push ebx
mov ecx, dword [ebx]
call dword [ecx + 0x2c0]
mov ebp, eax
test ebp, ebp
je 0x10008f5b
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx]
inc ecx
push edi
push ecx
push esi
push ebp
push ebx
call dword [edx + 0x340]
mov esi, ebp
pop ebp
pop ebx
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, esi
pop esi
pop edi
ret 0x14