joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d48c007
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
push 0
push dword [esp + 0x20]
push esi
call dword [eax + 0x2e0]
mov edi, eax
push edi
push dword [esp + 0x1c]
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
push 0
push edi
push dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x300]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0x10

Function at 0x6d48c34e
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 0x6d48c389
push 8
push 1
push ebx
push edi
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x6d48c389
xor al, al
jmp 0x6d48c3da
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
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptGenRandom]
test eax, eax
je 0x6d48c3bf
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 0x6d4900e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x6d4900ef
pop dword [ebp - 0x18]
mov eax, 0xc0da778a
sub eax, 0x5391769b
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x2c6afc90
sub dword [ebp - 0x28], 0xde18b745
mov dword [ebp - 0x24], 0xf39053fe
sub dword [ebp - 0x24], 0xc15d07b9
mov dword [ebp - 0x20], 0x8102cd1f
sub dword [ebp - 0x20], 0x34b688f1
mov dword [ebp - 0x1c], 0x5ac3023a
add dword [ebp - 0x1c], 0xa53cfdc6
lea eax, [ebp - 0x28]
push eax
mov eax, 0xb82a8fb3
add eax, 0xb51ea16d
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xf9b37020
sub dword [ebp - 0x28], 0x854106ca
mov dword [ebp - 0x24], 0xf8108855
add dword [ebp - 0x24], 0x495bd920
mov dword [ebp - 0x20], 0xa34147f9
add dword [ebp - 0x20], 0xc02e2473
mov dword [ebp - 0x1c], 0xdc33e80e
sub dword [ebp - 0x1c], 0xdc33e80e
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x88d238ad
add eax, 0xe476f86f
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3a406
push 0
call eax
mov ecx, 0x52df
xor edx, edx
add edx, eax
mov esi, 0x6d49f400
add esi, dword [ebp - 0x18]
mov ebx, 0x12eb9c42
add ebx, 0x1a12a4bf
mov dword [ebp - 4], 0x8163bfff
mov edi, dword [esi]
add dword [ebp - 0x14], 0xd93bc0a4
add edi, ebx
add dword [ebp - 4], edx
mov dword [edx], edi
xor dword [ebp - 0xc], edi
add edx, 4
add esi, 0xdee4c011
add esi, 0x211b3ff3
loop 0x6d490207
add eax, 0x13e4f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x62d6f87
sub ecx, 0x98e56f87
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x6d491820
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d49bb70]
jne 0x6d49182a
repz ret
jmp fcn.6d491dab

Function at 0x402e50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40d029], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402e98
xor eax, eax
jmp 0x402eb3
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x405463
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404355
and dword [ebp - 4], 0
cmp dword [0x40ea48], 0
mov ebx, eax
jne 0x405514
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4055c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4055c5
push eax
call fcn.004042e3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ea48], eax
call esi
push eax
call fcn.004042e3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ea4c], eax
call esi
push eax
call fcn.004042e3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40ea50], eax
call esi
push eax
call fcn.004042e3
pop ecx
mov dword [0x40ea58], eax
test eax, eax
je 0x405514
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004042e3
pop ecx
mov dword [0x40ea54], eax
mov eax, dword [0x40ea54]
cmp eax, ebx
je 0x40556c
cmp dword [0x40ea58], ebx
je 0x40556c
push eax
call fcn.0040435e
push dword [0x40ea58]
mov esi, eax
call fcn.0040435e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40556c
test edi, edi
je 0x40556c
call esi
test eax, eax
je 0x405563
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405563
test byte [ebp - 0xc], 1
jne 0x40556c
or dword [ebp + 0x10], 0x200000
jmp 0x4055a5
mov eax, dword [0x40ea4c]
cmp eax, ebx
je 0x4055a5
push eax
call fcn.0040435e
pop ecx
test eax, eax
je 0x4055a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4055a5
mov eax, dword [0x40ea50]
cmp eax, ebx
je 0x4055a5
push eax
call fcn.0040435e
pop ecx
test eax, eax
je 0x4055a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40ea48]
call fcn.0040435e
pop ecx
test eax, eax
je 0x4055c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4055c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4072ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40dac8]
jne 0x4072d8
repz ret
jmp fcn.004089f5
Function at 0x41d40d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d44c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d44c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d44c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41d44c
cmp dword [ecx + 0x74], 0xe
jbe 0x41d44c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4247a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x424845
push ebx
push esi
call fcn.00424771
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00424705
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4247f2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424844
push edi
push eax
call fcn.0042310b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x424812
call fcn.00423159
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424843
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00424705
add esp, 0x20
test eax, eax
jne 0x424831
push edi
call fcn.00423159
jmp 0x424839
push ebx
call fcn.00423159
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x425a54
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ed20
push 0x42ed18
push str.FlsAlloc
push 0x1f
call fcn.00425913
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425a88
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c148]
call esi
jmp 0x425a8e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x425ad2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ed30
push 0x42ed28
push str.FlsGetValue
push 0x21
call fcn.00425913
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425b09
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x425b11
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ed38
push 0x42ed30
push str.FlsSetValue
push 0x22
call fcn.00425913
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425b4b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42c148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42af10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42af3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42af3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401637
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x402750
call fcn.00401c80
push 1
call fcn.00401377
pop ecx
test al, al
je 0x401793
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00401345
mov byte [ebp - 0x24], al
mov eax, dword [0x4030a8]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x401793
test eax, eax
jne 0x4016c1
mov dword [0x4030a8], ecx
push 0x402128
push 0x40211c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4016a4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40178d
push 0x402118
push 0x40210c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4030a8], 2
jmp 0x4016c6
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004014e4
pop ecx
call fcn.00401e03
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4016f7
push esi
call fcn.0040145a
pop ecx
test al, al
je 0x4016f7
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call dword [0x402108]
call esi
call fcn.00401e09
mov esi, eax
cmp dword [esi], edi
je 0x401715
push esi
call fcn.0040145a
pop ecx
test al, al
je 0x401715
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00401baa
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00401be0
test al, al
je 0x40179a
test bl, bl
jne 0x401743
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00401501
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40178d
call fcn.00401cc6
ret
push 7
call fcn.00401a8e
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.00571000
jmp 0x401637
Function at 0x40b7b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b3d4]
jne 0x40b7ba
repz ret
jmp fcn.0041294c

Function at 0x4185fc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b3d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ff7c
and dword [ebp - 0x14], 0
cmp dword [0x448db4], 0
mov dword [ebp - 0x18], eax
jne 0x4186af
push 0x403854
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418757
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403848
push ebx
call edi
test eax, eax
je 0x418757
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403838
push ebx
mov dword [0x448db4], eax
call edi
push eax
call esi
push 0x403824
push ebx
mov dword [0x448db8], eax
call edi
push eax
call esi
push 0x403808
push ebx
mov dword [0x448dbc], eax
call edi
push eax
call esi
mov dword [0x448dc4], eax
test eax, eax
je 0x4186af
push 0x4037f0
push ebx
call edi
push eax
call esi
mov dword [0x448dc0], eax
mov eax, dword [0x448dc0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418708
cmp dword [0x448dc4], ecx
je 0x418708
push eax
call esi
push dword [0x448dc4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418708
test ebx, ebx
je 0x418708
call edi
test eax, eax
je 0x4186ff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4186ff
test byte [ebp - 8], 1
jne 0x418708
or dword [ebp + 0x10], 0x200000
jmp 0x41873b
mov eax, dword [0x448db8]
cmp eax, dword [ebp - 0x18]
je 0x41873b
push eax
call esi
test eax, eax
je 0x41873b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41873b
mov eax, dword [0x448dbc]
cmp eax, dword [ebp - 0x18]
je 0x41873b
push eax
call esi
test eax, eax
je 0x41873b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448db4]
call esi
test eax, eax
je 0x418757
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418759
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b7b0
leave
ret
Function at 0x422d00
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00422040
cmp dword [0x7e9b38], 0x37
jne 0x422db5
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x4044b8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4044e8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea eax, [esp + 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ecx, dword [0x7e9b3c]
mov eax, dword [0x7e5fa8]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1004
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0xc25774
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x215e7f06
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f87
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x433]
push ebx
push eax
mov esi, 0x80004005
mov byte [ebp - 0x434], bl
call fcn.0041b010
push 7
xor eax, eax
mov byte [ebp - 0x34], bl
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call fcn.0041c630
add esp, 0x10
test eax, eax
je 0x40205b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041c630
mov eax, dword [ebp - 4]
imul eax, eax, 0xa
add esp, 0x14
mov dword [ebp - 4], eax
lea eax, [ebp - 0x434]
push eax
push 0x400
push ebx
push dword [ebp + 0xc]
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40205b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x434a24
lea eax, [ebp - 0x434]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40205b
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0xa]
cmp ecx, dword [ebp - 8]
jg 0x402059
jne 0x40205b
movzx ecx, word [eax + 8]
cmp ecx, dword [ebp - 0xc]
jg 0x402059
jne 0x40205b
movzx eax, word [eax + 0xe]
cmp eax, dword [ebp - 4]
jl 0x40205b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40367c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x603]
push ebx
push eax
mov byte [ebp - 0x604], bl
call fcn.0041b010
push 0xff
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.0041b010
mov esi, dword [ebp + 8]
add esp, 0x18
cmp dword [esi + 0x184c], ebx
jne 0x4036d1
cmp dword [esi + 0x58], ebx
je 0x4036d1
xor ecx, ecx
jmp 0x4036d4
xor ecx, ecx
inc ecx
cmp dword [ebp + 0xc], ebx
jne 0x403715
mov eax, dword [esi + 0x1848]
cmp eax, ebx
je 0x4036e7
cmp ecx, ebx
je 0x403715
mov edx, dword [esi]
push eax
push ecx
push esi
call dword [edx + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40370b
push 1
call fcn.0041c630
pop ecx
test eax, eax
je 0x403715
mov eax, 0x80070204
jmp 0x40380a
call fcn.0041c630
jmp 0x403808
cmp dword [esi + 0x184c], ebx
je 0x40372b
push 0x80
lea eax, [esi + 8]
push eax
call fcn.0041c630
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.004031f7
mov edi, eax
cmp edi, ebx
jl 0x4037f4
push str.Download_Status:_Download_Complete
call fcn.0041c630
mov eax, dword [esi]
pop ecx
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x403789
push dword [ebp + 0xc]
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x24]
mov edi, eax
cmp edi, ebx
jge 0x403808
push str.Download_Status:_Verification_of_Downloaded_File_Signature_Failed
jmp 0x403802
mov esi, dword [sym.imp.user32.dll_LoadStringA]
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x72
push dword [0x4470b0]
call esi
push 0x400
lea eax, [ebp - 0x604]
push eax
push 0x74
push dword [0x4470b0]
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0x10
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x604]
push eax
push ebx
call dword [sym.imp.user32.dll_MessageBoxA]
push 0xfffffffffffffffb
call fcn.0041c630
call fcn.0041974f
mov dword [esp], str.Download_Status:_Verification_of_Downloaded_File_Version_Failed
jmp 0x403802
push 0xffffffffffffffc3
call fcn.0041c630
mov dword [esp], str.Download_Status:_Download_Failed
call fcn.0041c630
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4091f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
push 0x400
lea eax, [ebp - 0x454]
push eax
xor esi, esi
push esi
call fcn.00418804
add esp, 0xc
test eax, eax
jne 0x40921f
inc eax
jmp 0x409288
push edi
push str._binjavacpl.exe
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0041b010
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push str.__tab_update
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.kernel32.dll_CreateProcessA]
pop edi
test eax, eax
je 0x409286
push dword [ebp - 0x10]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop esi
leave
ret 4

Function at 0x409939
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.kernel32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x4470ac]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x38], eax
call fcn.0041c630
mov dword [esi + 0x3c], eax
call fcn.0041c630
push dword [esi + 0x20]
mov edi, dword [sym.imp.kernel32.dll_ResetEvent]
mov dword [esi + 0x40], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x38]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x409860
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
cmp eax, ebx
je 0x4099c0
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.user32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x58]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.0041c630
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4