joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb4e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5487a0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004d62f2
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4bb545
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4bb545
lea eax, [esp]
push eax
call dword [0x548304]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004c8854
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.004c8854
add esp, 0x108
ret
Function at 0x4bebe0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4bec0b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4bebfa
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4bec40
cmp dword [esi + 8], 0
jne 0x4bec2e
push 0x5160e8
push dword [eax + 8]
call fcn.004d3e1d
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4bec2e
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.004d4b35
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bec62
mov eax, dword [esi + 8]
test eax, eax
je 0x4bec5c
push eax
call fcn.004cfa82
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4c2300
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c2310
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x5482f8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c2337
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4c2350
lea ecx, [ecx]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4c2340
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4c23ca
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4c23be
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x5482fc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4c23f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x5487a0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4c2495
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movdqu xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.004c2500
lea eax, [esp + 0x28]
push 8
push eax
call fcn.004c58d0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4c24a8
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c8854
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004c8854
add esp, 0x24
ret
Function at 0x4c6fe0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5482f8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c7007
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4c704f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4c7053
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4c70b3
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec ebx
jne 0x4c7074
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4c70e7
jmp 0x4c70c0
mov eax, dword [esi + 4]
push 1
push 0x51e98e
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x51e98f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4c70c0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4cddd9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4fa54d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5487a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004d80d4
mov dword [ebp - 0x14], eax
cmp dword [0x552abc], esi
jne 0x4fa640
push 0x800
push esi
push 0x529a6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4fa5cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4fa720
push esi
push esi
push 0x529a6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4fa720
push 0x529a84
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fa720
push eax
call ebx
push 0x529a90
push edi
mov dword [0x552abc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x552ac0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x552ac4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x552acc], eax
test eax, eax
je 0x4fa63d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x552ac8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4fa665
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4fa658
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4fa67a
push 4
pop eax
jmp 0x4fa722
cmp dword [ebp - 0x14], esi
je 0x4fa67a
push dword [0x552abc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4fa65f
mov eax, dword [0x552ac8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4fa6d8
cmp dword [0x552acc], edi
je 0x4fa6d8
push eax
call ebx
push dword [0x552acc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4fa6d8
test eax, eax
je 0x4fa6d8
call ecx
test eax, eax
je 0x4fa6cd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4fa6cd
test byte [ebp - 8], 1
jne 0x4fa6d8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4fa708
mov eax, dword [0x552ac0]
cmp eax, edi
je 0x4fa705
push eax
call ebx
test eax, eax
je 0x4fa705
call eax
mov esi, eax
test esi, esi
je 0x4fa705
mov eax, dword [0x552ac4]
cmp eax, edi
je 0x4fa705
push eax
call ebx
test eax, eax
je 0x4fa705
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x552abc]
call ebx
test eax, eax
je 0x4fa720
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4fa722
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c8854
mov esp, ebp
pop ebp
ret
Function at 0x43322f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x43323e
pop dword [ebp - 0x4c]
mov eax, 0x43323e
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x60d9a4c7
add dword [ebp - 0x5c], 0xed78a084
mov dword [ebp - 0x58], 0x903753e0
add dword [ebp - 0x58], 0xa1fbf865
mov dword [ebp - 0x54], 0x4bddc61d
add dword [ebp - 0x54], 0x6e7e11
mov dword [ebp - 0x50], 0xf3504b26
sub dword [ebp - 0x50], 0xf3504b26
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xf329bfe0
add eax, 0xd19a200
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xc680a43b
add dword [ebp - 0x5c], 0xadf1c51b
mov dword [ebp - 0x58], 0xc66919b9
sub dword [ebp - 0x58], 0x84fcb844
mov dword [ebp - 0x54], 0x94758457
sub dword [ebp - 0x54], 0x310617eb
mov dword [ebp - 0x50], 0x9af9e610
sub dword [ebp - 0x50], 0x9af9e610
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x2524dd65
sub eax, 0x24e17b35
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x42d8a
push 0
call eax
mov ecx, 0x2bfd9f98
sub ecx, 0x2bfd5865
xor edi, edi
add edi, eax
mov ebx, 0x2072a4c1
add ebx, 0xdfd3233f
add ebx, dword [ebp - 0x4c]
mov edx, 0x65fa8f79
sub edx, 0xa461ee61
xor dword [ebp - 0x38], edi
mov esi, dword [ebx]
xor esi, edx
mov dword [edi], esi
sub dword [ebp - 4], esi
add edi, 4
add ebx, 0x7388bf6
add ebx, 0xf8c7740e
loop 0x43335d
add eax, 0x8382a838
add eax, 0x7c7e6767
mov ebx, eax
add eax, 5
mov ecx, 0x1a269822
sub ecx, 0x19e69822
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x406ccd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x15edd290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406cd7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406d1d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406cfc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00436910
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x406dcc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406d82
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406d98
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406dbf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x406d71
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x6d4888d9
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d49bb70]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [ebp + 0xa8]
push edi
xor edi, edi
push edi
push eax
push esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], edi
call fcn.6d48e410
push eax
push esi
call fcn.6d488891
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x74], esi
cmp esi, edi
je 0x6d488976
push 0x5c
push esi
call dword [sym.imp.msvcr100.dll_strchr]
pop ecx
pop ecx
test eax, eax
jne 0x6d48894d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x104
push 0x6d494e94
push esi
push edi
jmp 0x6d488970
push 0x5c
push esi
call dword [sym.imp.msvcr100.dll_strrchr]
pop ecx
pop ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push 0x104
mov byte [eax], 0
push 0x6d494e94
inc eax
push eax
push esi
call dword [sym.imp.kernel32.dll_SearchPathA]
lea eax, [ebp - 0x68]
push edi
push eax
call dword [sym.imp.msvcr100.dll__open]
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
jle 0x6d4889f9
mov esi, dword [sym.imp.msvcr100.dll__read]
push 2
lea eax, [ebp - 0x6c]
push eax
push ebx
call esi
add esp, 0xc
cmp byte [ebp - 0x6c], 0x4d
jne 0x6d4889ee
cmp byte [ebp - 0x6b], 0x5a
jne 0x6d4889ee
push edi
mov edi, dword [sym.imp.msvcr100.dll__lseek]
push 0x3c
push ebx
call edi
push 2
lea eax, [ebp - 0x6c]
push eax
push ebx
call esi
movzx eax, byte [ebp - 0x6b]
movzx ecx, byte [ebp - 0x6c]
shl eax, 8
push 0
or eax, ecx
push eax
push ebx
call edi
push 2
lea eax, [ebp - 0x6c]
push eax
push ebx
call esi
add esp, 0x30
cmp byte [ebp - 0x6c], 0x50
jne 0x6d4889ee
cmp byte [ebp - 0x6b], 0x45
jne 0x6d4889ee
mov dword [ebp - 0x70], 8
push ebx
call dword [sym.imp.msvcr100.dll__close]
mov esi, dword [ebp - 0x74]
pop ecx
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov ecx, dword [ebp + 0x9c]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d491820
add ebp, 0xa0
leave
ret
Function at 0x6d48933b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x14], 4
mov byte [ebp - 1], 0
je 0x6d4893cf
cmp dword [ebp + 0x14], 1
je 0x6d4893cf
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x6d489378
push dword [0x6d49bc9c]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x17c]
mov ebx, eax
cmp ebx, edi
jne 0x6d489381
push edi
push esi
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d4893c7
push edi
push ebx
push esi
call fcn.6d48e410
mov edi, eax
test edi, edi
je 0x6d4893c7
push edi
call sub.jvm.dll__JVM_NativePath_4
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d4893bf
cmp byte [ebp + 0x18], 0
je 0x6d4893ac
and eax, 0xfffffffe
jmp 0x6d4893af
or eax, 1
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x6d4893bf
mov byte [ebp - 1], 1
push edi
push ebx
push esi
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
jmp 0x6d4893d2
mov al, byte [ebp + 0x18]
leave
ret 0x18

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

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jne 0x6d489550
push ebx
push dword [ebp + 8]
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d4895c3
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.6d48e410
mov esi, eax
cmp esi, ebx
je 0x6d4895c2
push edi
push esi
call sub.jvm.dll__JVM_NativePath_4
push 0x1b6
push 0x502
push esi
call sub.jvm.dll__JVM_Open_12
cmp eax, ebx
jge 0x6d4895ad
cmp eax, 0xffffff9c
je 0x6d4895b5
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d48959b
test al, 0x10
jne 0x6d4895b5
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
push esi
push dword [ebp + 8]
call sym.java.dll__JNU_ThrowIOExceptionWithLastError_8
jmp 0x6d4895b5
push eax
call sub.jvm.dll__JVM_Close_4
mov bl, 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x6d4895ca
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov byte [ebp - 1], 0
cmp dword [ebp + 0x10], esi
je 0x6d4895f7
push dword [0x6d49bc9c]
mov eax, dword [edi]
push dword [ebp + 0x10]
push edi
call dword [eax + 0x17c]
mov ebx, eax
cmp ebx, esi
jne 0x6d489600
push esi
push edi
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d489651
push esi
push ebx
push edi
call fcn.6d48e410
mov esi, eax
test esi, esi
je 0x6d489651
push esi
call sub.jvm.dll__JVM_NativePath_4
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d489649
push esi
test al, 0x10
je 0x6d489636
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
jmp 0x6d48963c
call dword [sym.imp.kernel32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x6d489649
mov byte [ebp - 1], 1
push esi
push ebx
push edi
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov byte [ebp - 1], 0
cmp dword [ebp + 0x10], edi
je 0x6d4899fe
push dword [0x6d49bc9c]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x17c]
mov ebx, eax
cmp ebx, edi
jne 0x6d489a07
push edi
push esi
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d489a42
push edi
push ebx
push esi
call fcn.6d48e410
mov edi, eax
test edi, edi
je 0x6d489a42
push edi
call sub.jvm.dll__JVM_NativePath_4
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d489a3a
or eax, 1
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x6d489a3a
mov byte [ebp - 1], 1
push edi
push ebx
push esi
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x6d489abb
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 0x10], ebx
je 0x6d489ae9
push dword [0x6d49bc9c]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x6d489af3
push 0
push esi
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d489b52
push 0
push eax
push esi
call fcn.6d48e410
mov dword [ebp + 0x10], eax
test eax, eax
je 0x6d489b52
push eax
call sub.jvm.dll__JVM_NativePath_4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x6d489b46
mov eax, dword [ebp + 0x14]
sub eax, 0
je 0x6d489b40
dec eax
je 0x6d489b38
dec eax
jne 0x6d489b46
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
jmp 0x6d489b46
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
jmp 0x6d489b46
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push esi
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
leave
ret 0x10

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

Disassembly:
push esi
push dword [0x6d49bca0]
push dword [esp + 0x14]
push dword [esp + 0x10]
call fcn.6d4853cb
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6d48a267
xor al, al
jmp 0x6d48a298
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
push esi
call fcn.6d48e410
push esi
mov ebx, eax
call dword [sym.imp.msvcr100.dll_free]
add esp, 0xc
cmp ebx, 0xffffffff
je 0x6d48a2a7
mov eax, dword [esp + 0x18]
dec eax
je 0x6d48a295
dec eax
je 0x6d48a29c
dec eax
dec eax
jne 0x6d48a2a7
mov al, 1
pop ebx
pop esi
ret 0x10
mov al, 1
test bl, 0x10
jne 0x6d48a297
test al, bl
je 0x6d48a297
xor al, al
jmp 0x6d48a297

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x14], 4
push edi
mov byte [ebp - 1], 0
je 0x6d48a34d
cmp dword [ebp + 0x14], 1
je 0x6d48a34d
push dword [0x6d49bca0]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.6d4853cb
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x6d48a2e6
xor al, al
jmp 0x6d48a350
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
push edi
call esi
mov ebx, dword [sym.imp.msvcr100.dll_free]
cmp eax, 0xffffffff
je 0x6d48a342
test eax, 0x400
je 0x6d48a31b
push edi
call fcn.6d489bba
pop ecx
mov dword [ebp + 0x14], eax
test eax, eax
je 0x6d48a342
push edi
call ebx
mov edi, dword [ebp + 0x14]
pop ecx
push edi
call esi
cmp eax, 0xffffffff
je 0x6d48a342
test al, 0x10
jne 0x6d48a342
cmp byte [ebp + 0x18], 0
je 0x6d48a32f
and eax, 0xfffffffe
jmp 0x6d48a332
or eax, 1
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x6d48a342
mov byte [ebp - 1], 1
push edi
call ebx
mov al, byte [ebp - 1]
pop ecx
pop esi
pop ebx
jmp 0x6d48a350
mov al, byte [ebp + 0x18]
pop edi
leave
ret 0x18