joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024710
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x10039928]
lea eax, [ebp - 0x30]
push esi
push edi
push eax
push dword [0x10039a6c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
movd xmm1, eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x18]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x18]
mov ecx, edi
sub ecx, dword [0x10039a70]
mov esi, dword [ebp - 0x14]
mov edx, esi
sbb edx, dword [0x10039a74]
call fcn.10030450
mov edx, dword [0x10039a7c]
mov ecx, dword [0x10039a78]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 8], xmm0
call fcn.10030450
movss xmm1, dword [ebp - 8]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x10039a74], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x10039a70], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xfc], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xfd], al
call esi
mov esi, dword [0x10039928]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xff], 0
mov byte [ebx + 0xfe], al
cmp byte [esi + 0x357], 0
je 0x10024848
cvttss2si eax, dword [esi + 0xe4]
mov dword [ebp - 0xc], eax
cvttss2si eax, dword [esi + 0xe8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [0x10039a6c]
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x10024848
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xe4], 0xff7fffff
mov dword [esi + 0xe8], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x100248be
mov ecx, dword [0x10039a6c]
cmp eax, ecx
je 0x1002487c
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x100248be
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x100248be
lea eax, [ebp - 0x20]
push eax
push dword [0x10039a6c]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x100248be
movd xmm0, dword [ebp - 0x20]
movd xmm1, dword [ebp - 0x1c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe4], xmm0
movss dword [esi + 0xe8], xmm1
cmp byte [ebx + 0xb0], 0
je 0x100248cc
or eax, 0xffffffff
jmp 0x100248d7
mov eax, dword [0x10039928]
mov eax, dword [eax + 0x1e40]
cmp dword [0x10039518], eax
je 0x100248e9
mov dword [0x10039518], eax
call fcn.10024340
call fcn.10024470
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f40a
mov esp, ebp
pop ebp
ret
Function at 0x10028f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100399ec]
xor edx, edx
mov dword [ebp - 0xc], edx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
test eax, eax
js 0x10028f6d
cmp eax, esi
jge 0x10028f6d
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.Default
call fcn.10028ec0
mov edx, dword [ebp - 0xc]
add esp, 0xc
push ecx
call fcn.10028320
add esp, 4
test al, al
jne 0x10028f8b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f40a
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov byte [ebp - 0x11], 0
test esi, esi
mov esi, dword [0x10039928]
jle 0x10029071
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
nop word [eax + eax]
mov eax, dword [esi + 0x1b9c]
mov edi, 4
add eax, 0xc4
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
lea esi, [ebp - 8]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100326b0]
sub edi, 1
jne 0x10028fd4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 8]
not edx
push eax
mov dword [ebp - 8], edx
call fcn.100141a0
mov esi, dword [0x100399ec]
lea eax, [ebp - 0x10]
push eax
cmp ebx, esi
push ebx
push str.Default
sete byte [ebp - 0x12]
call fcn.10028ec0
add esp, 0xc
test al, al
jne 0x1002902b
mov ecx, str.Unknown_item
mov dword [ebp - 0x10], ecx
jmp 0x1002902e
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x12]
lea eax, [ebp - 0x20]
push eax
push ecx
call fcn.100290e0
add esp, 8
test al, al
je 0x1002904c
mov byte [ebp - 0x11], 1
mov dword [0x100399ec], ebx
cmp ebx, esi
jne 0x10029055
call fcn.1000e7a0
mov esi, dword [0x10039928]
inc ebx
mov eax, dword [esi + 0x1b9c]
dec dword [eax + 0xc4]
cmp ebx, dword [ebp + 0x10]
jl 0x10028fb0
mov eax, dword [esi + 0x1b9c]
cmp dword [esi + 0x1d00], eax
jne 0x1002908f
mov dword [esi + 0x1e00], eax
mov dword [esi + 0x1e04], 2
test dword [eax + 8], 0x1000000
je 0x1002909f
mov byte [esi + 0x1b46], 1
call fcn.1000e220
mov al, byte [ebp - 0x11]
mov byte [esi + 0x1b46], 0
test al, al
je 0x100290ce
mov ecx, dword [0x10039928]
mov word [ecx + 0x1be4], 0x101
mov ecx, dword [ecx + 0x1b9c]
or dword [ecx + 0x120], 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f40a
mov esp, ebp
pop ebp
ret
Function at 0x10029e90
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10029f8a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10029f83
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10029f69
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10029f69
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10029f69
mov edx, dword [esi]
test edx, edx
jne 0x10029f32
push 0x200
push edx
push dword [0x10039934]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10029f83
jmp 0x10029f5d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10029f5d
shl eax, 3
push eax
push edx
push 0
push dword [0x10039934]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10029f83
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10029ef1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10029fcf
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10029fcf
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10029fc9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10029d20
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10029f96
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f40a
mov esp, ebp
pop ebp
ret
Function at 0x10029fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10039aa0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002a041
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f40a
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1002a062
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1002a083
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1002a083
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1002a07d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1002a083
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1002f40a
mov esp, ebp
pop ebp
ret
Function at 0x1002a0e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x10039aa8]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x1002a1d1
mov eax, dword [0x10039aa0]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1002a125
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x1002a108
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1002a1d1
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.10029e90
mov ecx, dword [0x10039aa8]
add esp, 4
cmp esi, ecx
jae 0x1002a185
imul edi, esi, 0x2c
mov eax, dword [0x10039aa0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1002a17a
mov edx, ebx
mov ecx, esi
call fcn.10029fe0
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002a182
mov ecx, dword [0x10039aa8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1002a151
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1002a1d1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1002a1c2
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1002a1b6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1002a195
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10039934]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002a570
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
mov edx, 1
mov ecx, 0x10039930
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x1002a5c5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
cmp esi, 0x20
jae 0x1002a5a9
push 0
jmp 0x1002a5ab
push 1
call ebx
inc esi
mov ecx, 1
xor eax, eax
mov edx, 0x10039930
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1002a5a0
mov ebx, dword [ebp - 4]
cmp dword [0x10039934], 0
je 0x1002a698
test ebx, ebx
jne 0x1002a5e4
mov ecx, edi
call fcn.1002a0e0
mov edi, eax
jmp 0x1002a69d
mov ecx, dword [0x10039aa8]
xor esi, esi
test ecx, ecx
je 0x1002a604
mov edx, dword [0x10039aa0]
mov eax, edx
cmp ebx, dword [eax]
je 0x1002a60e
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x1002a5f8
mov edi, 4
jmp 0x1002a69d
cmp esi, 0xffffffff
je 0x1002a604
imul eax, esi, 0x2c
movzx eax, byte [eax + edx + 0x14]
shr eax, 1
and eax, 1
cmp eax, edi
je 0x1002a68f
push 1
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.10029e90
add esp, 4
mov edx, edi
mov ecx, esi
call fcn.10029fe0
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], edi
test eax, eax
je 0x1002a69d
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1002a67e
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1002a672
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1002a651
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10039934]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1002a69d
neg edi
sbb edi, edi
add edi, 6
jmp 0x1002a69d
mov edi, 2
xor eax, eax
mov ecx, 0x10039930
xchg dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002f340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1002f3fe
sub eax, 1
jne 0x1002f3f5
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x1003935c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
je 0x1002f37c
push str.d3d12.dll
call esi
test eax, eax
jne 0x1002f3b8
cmp dword [0x10039358], 0
je 0x1002f390
push str.d3d11.dll
call esi
test eax, eax
jne 0x1002f3b8
cmp dword [0x10039354], 0
je 0x1002f3a4
push str.d3d10.dll
call esi
test eax, eax
jne 0x1002f3b8
cmp dword [0x10039350], 0
je 0x1002f3f4
push str.d3d9.dll
call esi
test eax, eax
je 0x1002f3f4
push 0
push 0
push 0
push 0x1002ef30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10036bbc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002f210
push eax
call fcn.100010f0
mov dword [0x100399d4], eax
pop esi
mov eax, 1
pop ebp
ret 0xc
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x100023fd
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x1000240f
call dword [sym.imp.kernel32.dll_GetUserDefaultLCID]
jmp 0x10002415
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
call fcn.1000ebb0
mov esi, eax
pop ecx
cmp esi, edi
je 0x1000243f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x29c]
push esi
mov edi, eax
call dword [sym.imp.msvcr100.dll_free]
pop ecx
jmp 0x1000244d
push str.memory_allocation_error
push dword [esp + 0x10]
call sym.java.dll__JNU_ThrowOutOfMemoryError_8
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x10006ed9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xe0
mov eax, dword [0x1001cf10]
xor eax, ebp
mov dword [ebp + 0x74], eax
push edi
lea eax, [ebp - 0x5c]
push eax
push 0x20019
xor edi, edi
and dword [ebp - 0x5c], edi
push edi
push str.SystemCurrentControlSetControlTimeZoneInformation
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006f4f
and dword [ebp - 0x60], edi
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push str.ActiveTimeBias
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x10006f41
mov edi, dword [ebp - 0x68]
push dword [ebp - 0x5c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
pop ebx
je 0x10006f61
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.kernel32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x10006f61
mov edi, dword [ebp - 0x58]
lea eax, [ebp + 0x54]
push eax
mov eax, edi
call fcn.100067f8
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.msvcr100.dll__strdup]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop edi
call fcn.100122d0
add ebp, 0x78
leave
ret

Function at 0x10007644
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_CryptAcquireContextA]
push edi
xor ebx, ebx
push ebx
push 1
push ebx
mov edi, str.J2SE
push edi
lea eax, [ebp - 8]
push eax
mov byte [ebp - 1], bl
call esi
test eax, eax
jne 0x1000767f
push 8
push 1
push ebx
push edi
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x1000767f
xor al, al
jmp 0x100076d4
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x2ac]
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x2e0]
mov edi, eax
cmp edi, ebx
je 0x100076c7
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptGenRandom]
test eax, eax
je 0x100076b9
mov byte [ebp - 1], 1
mov eax, dword [esi]
push ebx
push edi
push dword [ebp + 0x10]
push esi
call dword [eax + 0x300]
push ebx
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push esi
push dword [0x1001cf68]
push dword [esp + 0x14]
push dword [esp + 0x10]
call fcn.1000a207
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10007e43
xor al, al
jmp 0x10007e74
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
push esi
call fcn.1000ebb0
push esi
mov ebx, eax
call dword [sym.imp.msvcr100.dll_free]
add esp, 0xc
cmp ebx, 0xffffffff
je 0x10007e83
mov eax, dword [esp + 0x18]
dec eax
je 0x10007e71
dec eax
je 0x10007e78
dec eax
dec eax
jne 0x10007e83
mov al, 1
pop ebx
pop esi
ret 0x10
mov al, 1
test bl, 0x10
jne 0x10007e73
test al, bl
je 0x10007e73
xor al, al
jmp 0x10007e73
Function at 0x10007e87
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 0x10007f2d
cmp dword [ebp + 0x14], 1
je 0x10007f2d
push dword [0x1001cf68]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.1000a207
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10007ec2
xor al, al
jmp 0x10007f30
push esi
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
push edi
call esi
cmp eax, 0xffffffff
je 0x10007f1f
push ebx
test eax, 0x400
je 0x10007ef7
push edi
push dword [ebp + 8]
call fcn.1000773c
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10007f1e
push edi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
push ebx
mov edi, ebx
call esi
cmp eax, 0xffffffff
je 0x10007f1e
test al, 0x10
jne 0x10007f1e
cmp byte [ebp + 0x18], 0
je 0x10007f0b
and eax, 0xfffffffe
jmp 0x10007f0e
or eax, 1
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x10007f1e
mov byte [ebp - 1], 1
pop ebx
push edi
call dword [sym.imp.msvcr100.dll_free]
mov al, byte [ebp - 1]
pop ecx
pop esi
jmp 0x10007f30
mov al, byte [ebp + 0x18]
pop edi
leave
ret 0x18

Function at 0x10008088
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.1000ebb0
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x100080a7
xor al, al
jmp 0x10008123
push esi
call fcn.1000ebb0
pop ecx
test eax, eax
je 0x100080bc
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
jmp 0x100080a3
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 0x10008112
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
cmp edi, 0x50
je 0x100080b2
cmp edi, 0xb7
je 0x100080b2
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100080b2
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
jmp 0x100080b2
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
ret 0xc

Function at 0x10008128
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push dword [0x1001cf68]
xor bl, bl
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.1000a207
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000814c
xor al, al
jmp 0x1000818c
push 0x80
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10008182
push esi
test al, 0x10
je 0x10008171
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x10008177
call dword [sym.imp.kernel32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x10008182
mov bl, 1
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov al, bl
pop esi
pop ebx
ret 0xc
Function at 0x1000af8b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1001cf10]
xor eax, ebp
mov dword [ebp + 0x88], eax
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x94]
push esi
push edi
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, 0x10014bfc
test eax, eax
je 0x1000aff5
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.msvcr100.dll_strcat
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call esi
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x1000b028
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b028
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.msvcr100.dll_strcat
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call esi
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100122d0
add ebp, 0x8c
leave
ret

Function at 0x1000ebb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000ebbf
pop dword [ebp - 0x2c]
mov eax, 0x1000ebbf
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x5b5ceb64
sub dword [ebp - 0x3c], 0xd0aa619
mov dword [ebp - 0x38], 0x97a99151
sub dword [ebp - 0x38], 0x6576450c
mov dword [ebp - 0x34], 0x56a966e3
sub dword [ebp - 0x34], 0xa5d22b5
mov dword [ebp - 0x30], 0xe1c2c8dc
add dword [ebp - 0x30], 0x1e3d3724
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xe7b4f9d9
sub eax, 0xd7b3c881
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x1d521a44
sub dword [ebp - 0x3c], 0xa8dfb0ee
mov dword [ebp - 0x38], 0xc054ea74
add dword [ebp - 0x38], 0x81177701
mov dword [ebp - 0x34], 0x6e363ba5
add dword [ebp - 0x34], 0xf53930c7
mov dword [ebp - 0x30], 0x65d9fbc7
add dword [ebp - 0x30], 0x9a260439
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x37c35
push 0
call eax
mov ecx, 0xb1d3fa4b
sub ecx, 0xb1d3b288
xor edi, edi
add edi, eax
mov ebx, 0x10020600
add ebx, dword [ebp - 0x2c]
mov edx, 0x411fc921
add edx, 0x148420e0
sub dword [ebp - 0x14], eax
mov esi, dword [ebx]
xor esi, edx
sub dword [ebp - 0x20], 0x2ce34dd3
mov dword [edi], esi
sub dword [ebp - 8], edx
add edi, 4
add ebx, 4
loop 0x1000ecd3
add eax, 0x4ddc8db1
sub eax, 0x4ddb7bd2
xor ebx, ebx
add ebx, eax
add eax, 0x2144f8be
sub eax, 0x2144f8b9
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x100122d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001cf10]
jne 0x100122da
repz ret
jmp fcn.100128eb