joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101cf300
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea edi, [esi - 0x7ff80000]
ja 0x101cf318
mov edi, 0x10000
cmp esi, 0x80000000
lea ebx, [esi + 0x7ff80000]
jb 0x101cf32b
mov ebx, 0xfff80000
mov eax, dword [0x102aa080]
test eax, eax
mov edx, dword [0x102aa07c]
jne 0x101cf345
test edx, edx
je 0x101cf358
mov eax, edx
mov dword [0x102aa080], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x101cf358
cmp ecx, edi
jb 0x101cf358
cmp ecx, ebx
jbe 0x101cf45d
test edx, edx
mov eax, edx
mov dword [0x102aa080], eax
je 0x101cf386
test eax, eax
je 0x101cf37a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x101cf37a
cmp ecx, edi
jb 0x101cf37a
cmp ecx, ebx
jbe 0x101cf458
mov eax, dword [eax + 4]
test eax, eax
jne 0x101cf367
mov dword [0x102aa080], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x101cf3b0
lea eax, [esi - 0x40000000]
push edi
call fcn.101cf240
add esp, 4
test eax, eax
jne 0x101cf419
cmp esi, 0x40000000
jae 0x101cf3c5
push ebx
lea eax, [esi + 0x40000000]
call fcn.101cf170
add esp, 4
test eax, eax
jne 0x101cf419
cmp esi, 0x40000000
jbe 0x101cf3e6
push esi
lea eax, [esi - 0x40000000]
call fcn.101cf170
add esp, 4
test eax, eax
jne 0x101cf419
cmp esi, 0x40000000
jae 0x101cf3fb
lea eax, [esi + 0x40000000]
push esi
call fcn.101cf240
add esp, 4
test eax, eax
jne 0x101cf419
push edi
mov eax, esi
call fcn.101cf240
add esp, 4
test eax, eax
jne 0x101cf419
push ebx
mov eax, esi
call fcn.101cf170
add esp, 4
test eax, eax
je 0x101cf484
mov dword [eax], 0x52727464
mov dword [eax + 8], 0
mov ecx, dword [0x102aa07c]
mov dword [eax + 4], ecx
mov dword [0x102aa080], eax
mov dword [0x102aa07c], eax
xor edx, edx
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x101cf446
mov dword [eax + 8], edx
jmp 0x101cf45d
mov dword [0x102aa080], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x101cf484
cmp esi, ebx
ja 0x101cf484
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call sub.MSVCR80.dll_memset
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x101cf4c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [esi], 0x52727464
je 0x101cf4cb
xor eax, eax
ret
push edi
lea edi, [esi + 0x10000]
xor ecx, ecx
lea edx, [esi + 0x88]
lea ebx, [ebx]
mov eax, dword [edx]
test eax, eax
je 0x101cf4ee
cmp eax, esi
jb 0x101cf503
cmp eax, edi
jae 0x101cf503
add ecx, 1
add edx, 0x48
cmp ecx, 0x38d
jb 0x101cf4e0
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x101cf5b0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x102aa08c], eax
je 0x101cf5c6
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x102aa09c]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x101cf62e
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebp
jne 0x101cf61d
mov ebx, dword [esi + 0x10]
cmp ebx, ebp
je 0x101cf61d
push 0x48
push ebp
mov edi, ebx
push ebx
and edi, 0xffff0000
call sub.MSVCR80.dll_memset
mov edx, dword [edi + 8]
mov dword [ebx + 0x40], edx
mov dword [edi + 8], ebx
add esp, 0xc
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x101cf5d6
mov dword [0x102aa09c], ebp
call fcn.101cf120
mov esi, dword [0x102aa098]
cmp esi, ebp
je 0x101cf667
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x101cf650
pop edi
pop esi
mov dword [0x102aa098], ebp
mov dword [0x102aa08c], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x101cf970
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x102aa090]
test eax, eax
jne 0x101cf9e5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x101cf98a
xor eax, eax
pop edi
ret
push esi
push 8
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x101cf9a0
lea edi, [eax + 8]
jmp 0x101cf9bd
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x101cf9d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
mov dword [0x102aa090], edi
mov eax, edi
mov dword [0x102aa094], 0
pop edi
ret
mov eax, dword [0x102aa098]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x102aa098], esi
xor eax, eax
pop esi
pop edi
ret
Function at 0x101cfc60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x102aa08c], eax
je 0x101cfc7c
mov eax, 0x10dd
pop ebp
ret 8
mov eax, dword [0x102aa090]
test eax, eax
jne 0x101cfd72
test ebp, ebp
jne 0x101cfc94
lea eax, [ebp + 6]
pop ebp
ret 8
cmp dword [ebp], 0
jne 0x101cfcae
mov eax, 6
mov dword [0x102aa094], ebp
mov dword [0x102aa090], eax
pop ebp
ret 8
push ebx
push esi
push edi
push 0x18
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x101cfcc9
lea esi, [eax + 8]
jmp 0x101cfd54
mov eax, dword [ebp]
call fcn.101cf020
mov edi, eax
mov eax, dword [esp + 0x18]
call fcn.101cf020
movzx ecx, byte [edi + 0x36]
mov esi, dword [edi + 0x40]
sub esi, ecx
test ecx, ecx
je 0x101cfd46
cmp ecx, 0x1e
ja 0x101cfd46
cmp dword [edi + 0x44], eax
jne 0x101cfd46
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x101cfd18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x101cfd54
mov edx, dword [0x102aa09c]
mov dword [ebx + 0x10], edi
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], esi
pop edi
mov dword [ebx + 4], 1
mov ecx, dword [esp + 0x10]
pop esi
mov dword [ebx + 0x14], ecx
mov dword [ebx], edx
mov dword [0x102aa09c], ebx
pop ebx
xor eax, eax
pop ebp
ret 8
cmp dword [0x102aa084], 0
mov esi, 9
jne 0x101cfd5a
mov dword [0x102aa090], esi
test ebx, ebx
je 0x101cfd67
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov eax, esi
pop esi
mov dword [0x102aa094], ebp
pop ebx
pop ebp
ret 8
Function at 0x101cfe60
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [0x102aa188], edi
jne 0x101d0028
mov eax, dword [0x102aa184]
cmp eax, edi
jne 0x101d002a
xor eax, eax
mov dword [0x102aa18c], eax
mov dword [0x102aa190], eax
mov dword [0x102aa194], eax
mov dword [0x102aa198], eax
mov dword [0x102aa19c], eax
mov dword [0x102aa1a0], eax
mov dword [0x102aa1a4], eax
mov dword [0x102aa1a8], eax
mov dword [0x102aa1ac], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push edi
push str.dbghelp.dll
mov dword [0x102aa18c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, edi
mov dword [0x102aa190], eax
je 0x101cffe9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
mov dword [0x102aa194], eax
mov eax, dword [0x102aa190]
push str.SymInitialize
push eax
call esi
mov ecx, dword [0x102aa190]
push str.SymSetOptions
push ecx
mov dword [0x102aa198], eax
call esi
mov edx, dword [0x102aa190]
push str.SymGetOptions
push edx
mov dword [0x102aa19c], eax
call esi
mov dword [0x102aa1a0], eax
mov eax, dword [0x102aa190]
push str.SymLoadModule64
push eax
call esi
mov ecx, dword [0x102aa190]
push str.SymGetModuleInfo64
push ecx
mov dword [0x102aa1a4], eax
call esi
mov edx, dword [0x102aa190]
push str.SymFromName
push edx
mov dword [0x102aa1a8], eax
call esi
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [0x102aa194]
cmp ecx, edi
mov esi, 0xb
mov dword [0x102aa1ac], eax
mov word [esp + 8], si
je 0x101cffe4
cmp dword [0x102aa198], edi
je 0x101cffe4
cmp dword [0x102aa1a4], edi
je 0x101cffe4
cmp dword [0x102aa1a8], edi
je 0x101cffe4
cmp eax, edi
je 0x101cffe4
lea eax, [esp + 8]
push eax
call ecx
cmp word [esp + 8], si
jb 0x101cffe4
mov ecx, dword [0x102aa18c]
push edi
push edi
push ecx
call dword [0x102aa198]
test eax, eax
je 0x101cffe4
mov eax, dword [0x102aa1a0]
cmp eax, edi
je 0x101cffd4
cmp dword [0x102aa19c], edi
je 0x101cffd4
call eax
and eax, 0xfffffffc
or eax, 0x2704
push eax
call dword [0x102aa19c]
mov eax, 0x102aa18c
mov dword [0x102aa184], eax
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x102aa190]
cmp eax, edi
mov dword [0x102aa188], 1
je 0x101cfffe
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x102aa194], edi
mov dword [0x102aa198], edi
mov dword [0x102aa19c], edi
mov dword [0x102aa1a0], edi
mov dword [0x102aa1a4], edi
mov dword [0x102aa1a8], edi
mov dword [0x102aa1ac], edi
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
Function at 0x101d02c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10258230
push 0x101d1fd5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test eax, eax
jne 0x101d0307
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
cmp word [eax], 0x5a4d
je 0x101d031f
push 0xc1
jmp 0x101d03df
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x24], ecx
cmp dword [ecx], 0x4550
je 0x101d0339
push 0xbf
jmp 0x101d03df
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x101d03da
movzx eax, ax
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], edx
movzx eax, word [ecx + 6]
cmp edx, eax
jae 0x101d03da
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + ecx*8]
mov edi, str..detour
mov esi, ebx
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x101d03c9
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x101d03da
cmp dword [ebx + 0x10], 0
je 0x101d03da
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x101d03da
cmp dword [esi + 4], 0x727444
jne 0x101d03da
cmp dword [esi + 8], 0
jne 0x101d03a4
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add edx, 1
mov ecx, dword [ebp - 0x24]
jmp 0x101d0352
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x101d05b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
cmp dword [esi], 0x678
jne 0x101d06b8
cmp dword [esp + 0x10], 0x678
jb 0x101d06b8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
push ebx
or eax, 0xffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 0x40
push ecx
push edx
xor ebx, ebx
call edi
test eax, eax
je 0x101d06ae
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
lea eax, [esp + 8]
push eax
push 0x40
push ecx
push edx
call edi
test eax, eax
je 0x101d069a
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
push eax
lea ecx, [esi + 0x1c]
push ecx
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
push eax
lea ecx, [esi + 0x5c]
push ecx
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi + 0x18]
add esp, 0x18
test eax, eax
je 0x101d0681
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
call edi
test eax, eax
je 0x101d0686
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
push eax
lea ecx, [esi + 0x664]
push ecx
push edx
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0xc]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
call edi
mov ebx, 1
mov edx, dword [esp + 8]
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call edi
pop edi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0xc
ret 4

Function at 0x101d11c8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x102a95c0], 0
push esi
jne 0x101d113b
call fcn.101d1066
test eax, eax
je 0x101d117e
mov eax, dword [0x102a95c0]
cmp eax, 1
jne 0x101d115c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x101d117e
pop esi
ret
push eax
call dword [0x102a95c8]
test eax, eax
jne 0x101d11c6
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x101d1182
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x102a95c0]
call dword [0x102a95c8]
mov edi, eax
test edi, edi
je 0x101d11a9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x101d11c5
lea edi, [esi + 0xff0]
push esi
push dword [0x102a95c0]
call dword [0x102a95c4]
add esi, 0x10
cmp esi, edi
jb 0x101d11af
mov eax, esi
pop edi
pop esi
ret
jmp 0x101d1128

Function at 0x101d19cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10293044]
jne 0x101d19d6
repz ret
jmp fcn.101d2065
Function at 0x401a0b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebx]
push edi
mov edi, eax
mov eax, dword [edi]
mov dword [ebp - 4], esi
add esi, 3
mov dword [ebp - 8], eax
lea eax, [esi*4 + 4]
push eax
call sub.jli.dll_JLI_MemAlloc
pop ecx
mov dword [ebx], esi
mov esi, 0x408010
push 4
mov dword [edi], eax
mov edx, esi
pop ebx
mov edi, 0x40801c
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x401a59
cmp byte [ecx + 1], 0x4a
jne 0x401a59
add ecx, 2
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, edi
jl 0x401a45
xor edx, edx
cmp dword [ebp - 4], edx
jle 0x401a89
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + edx*4]
cmp byte [ecx], 0x2d
jne 0x401a83
cmp byte [ecx + 1], 0x4a
jne 0x401a83
add ecx, 2
cmp byte [ecx], 0
je 0x401acc
mov dword [eax], ecx
add eax, ebx
inc edx
cmp edx, dword [ebp - 4]
jl 0x401a66
mov edx, esi
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x401a98
cmp byte [ecx + 1], 0x4a
je 0x401a9c
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, edi
jl 0x401a8b
xor edx, edx
cmp dword [ebp - 4], edx
jle 0x401ac4
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + edx*4]
cmp byte [ecx], 0x2d
jne 0x401aba
cmp byte [ecx + 1], 0x4a
je 0x401abe
mov dword [eax], ecx
add eax, ebx
inc edx
cmp edx, dword [ebp - 4]
jl 0x401aa9
and dword [eax], 0
pop edi
pop esi
pop ebx
leave
ret
push 1
push str.Error:_the__J_option_should_not_be_followed_by_a_space.
call fcn.004034c6
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCR71.dll_exit]
int3
Function at 0x401ae3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push str.CLASSPATH
mov byte [ebp - 4], 0x3b
mov byte [ebp - 3], 0
call dword [sym.imp.MSVCR71.dll_getenv]
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
mov edi, eax
test edi, edi
pop ecx
je 0x401b34
push edi
call sub.MSVCR71.dll_strlen
add eax, 0x28
push eax
call sub.jli.dll_JLI_MemAlloc
push edi
mov ebx, eax
push str._Denv.class.path_s
push ebx
call esi
push 0
push ebx
call fcn.004010bd
add esp, 0x1c
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00403220
test al, al
pop ecx
pop ecx
jne 0x401b60
push 1
push str.Cant_determine_application_home
call fcn.004034c6
pop ecx
pop ecx
xor al, al
jmp 0x401c24
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR71.dll_strlen
add eax, 0x28
push eax
call sub.jli.dll_JLI_MemAlloc
mov edi, eax
lea eax, [ebp - 0x110]
push eax
push str._Dapplication.home_s
push edi
call esi
push 0
push edi
call fcn.004010bd
push 0x28
lea eax, [ebp - 0x110]
pop esi
push eax
call sub.MSVCR71.dll_strlen
mov edi, 0x40801c
add esp, 0x20
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
mov ebx, 0x408024
mov eax, dword [ebp - 8]
push dword [eax]
call sub.MSVCR71.dll_strlen
add eax, dword [ebp - 0xc]
add dword [ebp - 8], 4
cmp dword [ebp - 8], ebx
pop ecx
lea esi, [esi + eax + 1]
jl 0x401bb0
inc esi
push esi
call sub.jli.dll_JLI_MemAlloc
mov esi, eax
mov dword [esp], str._Djava.class.path
push esi
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
push esi
call sub.MSVCR71.dll_strcat
push dword [edi]
push esi
call sub.MSVCR71.dll_strcat
lea eax, [ebp - 4]
push eax
push esi
call sub.MSVCR71.dll_strcat
add edi, 4
add esp, 0x18
cmp edi, ebx
jl 0x401be3
push esi
call sub.MSVCR71.dll_strlen
push 0
push esi
mov byte [eax + esi - 1], 0
call fcn.004010bd
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401e44
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
push str._Xusage.txt
lea eax, [ebp - 0x1a4]
push 0x5c
push eax
call dword [sym.imp.MSVCR71.dll_strrchr]
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp - 0x1a4]
push 0x405f90
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x401eb9
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
xor eax, eax
add esp, 0xc
inc eax
jmp 0x401f09
push esi
mov esi, dword [sym.imp.MSVCR71.dll_fread]
push edi
push ebx
mov edi, 0x80
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
jmp 0x401ef9
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
test eax, eax
jne 0x401ed5
push ebx
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x401f9f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.MSVCR71.dll_getenv]
push edi
push str._JAVA_SPLASH_JAR
call esi
mov ebx, eax
mov dword [esp], str._JAVA_SPLASH_FILE
call esi
test ebx, ebx
pop ecx
mov esi, eax
je 0x401ff2
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.jli.dll_JLI_JarUnpackFile
mov edi, eax
add esp, 0xc
test edi, edi
je 0x402002
call fcn.0040419b
push dword [ebp - 4]
push edi
call fcn.0040415b
push edi
call sub.jli.dll_JLI_MemFree
add esp, 0xc
jmp 0x402002
test esi, esi
je 0x40200b
call fcn.0040419b
push esi
call fcn.0040417b
pop ecx
push ebx
push esi
call fcn.004041bb
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035df
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x110]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
call edi
test eax, eax
jne 0x40366f
mov eax, dword [ebp + 8]
push dword [eax + 8]
inc dword [ebp - 8]
lea eax, [ebp - 0x110]
push eax
call sub.jli.dll_JLI_AcceptableRelease
test eax, eax
pop ecx
pop ecx
je 0x403655
test ebx, ebx
je 0x403646
lea eax, [ebp - 0x110]
push ebx
push eax
call sub.jli.dll_JLI_ExactVersionId
test eax, eax
pop ecx
pop ecx
jle 0x403655
push ebx
call sub.jli.dll_JLI_MemFree
pop ecx
lea eax, [ebp - 0x110]
push eax
call sub.jli.dll_JLI_StringDup
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x40360d
xor edi, edi
cmp ebx, edi
jne 0x403673
xor eax, eax
jmp 0x4036e7
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push ebx
je 0x403694
call sub.jli.dll_JLI_MemFree
pop ecx
jmp 0x4036bc
call sub.jli.dll_JLI_MemFree
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4036cc
cmp dword [ebp - 4], edi
je 0x40366f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40366f
cmp dword [ebp - 4], edi
je 0x4036da
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x110]
push eax
call sub.jli.dll_JLI_StringDup
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c58
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.MSVCR71.dll__beginthreadex]
push edi
lea eax, [ebp - 8]
push eax
push 0x10000
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0
call esi
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x403ca2
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0xc]
push edi
call esi
mov edi, eax
add esp, 0x18
test edi, edi
je 0x403cbf
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403cc8
push dword [ebp + 0x14]
call dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x404091
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
mov ebx, esi
call fcn.00403cd0
test al, al
pop ecx
jne 0x4040bf
push 1
push str.Error:_could_not_find_Java_SE_Runtime_Environment.
call fcn.004034c6
pop ecx
pop ecx
push 2
jmp 0x404150
push esi
call fcn.00403eb9
push 0
push str.i386
push esi
call fcn.00402ad1
add esp, 0x10
cmp eax, 1
jge 0x4040ec
push 1
push str.Error:_no_known_VMs.__check_for_corrupt_jvm.cfg_file_
call fcn.004034c6
pop ecx
pop ecx
push 1
jmp 0x404150
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402407
mov ebx, dword [ebp + 0x18]
mov edi, eax
push ebx
push esi
mov dword [ebp - 4], edi
mov byte [ebx], 0
call fcn.004031bc
add esp, 0x14
test al, al
jne 0x404156
push edi
call sub.MSVCR71.dll_strlen
push ebx
mov edi, eax
call sub.MSVCR71.dll_strlen
mov esi, str.Error:_no___s_JVM_at___s.
push esi
add edi, eax
call sub.MSVCR71.dll_strlen
add edi, eax
push edi
call sub.jli.dll_JLI_MemAlloc
push ebx
push dword [ebp - 4]
mov edi, eax
push esi
push edi
call dword [sym.imp.MSVCR71.dll_sprintf]
push 1
push edi
call fcn.004034c6
add esp, 0x28
push 4
call dword [sym.imp.MSVCR71.dll_exit]
pop edi
pop esi
pop ebx
leave
ret