joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, edx
jb 0x4139f9
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x4139d0
sub eax, ebx
jmp 0x4139d2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4139c1
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x4139ef
sub eax, ebx
jmp 0x4139f1
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4139e0
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x413acb
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, esi
add edx, dword [edi + 0x38]
mov esi, eax
push edx
call fcn.00413880
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x413a43
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [esi]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x413a57
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x413985
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x413acb
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x413a9a
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x413a7e
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
add ebx, esi
pop esi
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x413acb
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x413ab4
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebx
ret
Function at 0x41a880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x41a8a5
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x41a8bd
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x41a8ec
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x41a92e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x41aa02
sub edx, 0x10000
js 0x41aa02
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x41a914
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x41a914
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x41a985
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x41a982
add edx, 8
jne 0x41a969
jmp 0x41a9f3
add edx, 4
test eax, 0xffff
jne 0x41a992
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x41a9f3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x41a9c6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x41a914
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x41aa02
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x41a914
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x41aa13
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x41b4f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e038]
jne 0x41b500
repz ret
jmp fcn.0041b974
Function at 0x4015e0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ecx
push esi
push edi
push 0
push 0
push 0
push 0
push str.Yuma
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x401600
pop edi
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push 0
push 0x4000000
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x401621
pop edi
pop esi
pop ecx
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push edx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x402520
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x104
lea eax, [esp + 0x10c]
lea edx, [esp]
push esi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x402be0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402c01
xor al, al
add esp, 0x1c
ret
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402c28
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402c75
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x1c
ret
mov al, 1
add esp, 0x1c
ret
Function at 0x402f20
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x402f56
push 0x10
push str.Notice
push str.Open_target_process_failed__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x40
mov esi, ecx
push 0x3000
inc esi
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x402f99
push 0x10
push str.Notice
push str.Alloc_dll_name_string_in_target_process_failed__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402fc3
push 0x10
push str.Notice
push str.Write_dll_name_string_to_target_process_failed__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x407180
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push edi
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test edi, edi
je 0x40300d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4034c0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push 0x4072ac
push 0x88
mov dword [esp + 0x18], ecx
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40350b
push eax
push 0x40711c
push 0x40729c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x403543
push eax
push 0x40711c
push 0x40728c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x403570
push eax
push 0x40711c
push 0x40727c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push str._swowdll.dll
lea esi, [edx + 0x6c]
push esi
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi]
add esp, 0xc
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, eax
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x407258
call fcn.00402520
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x401515
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.JDK_ALTERNATE_VM
or ebx, 0xffffffff
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [ebp - 0x14], edi
lea eax, [edi*4 + 4]
push eax
call fcn.00401c90
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
mov ecx, dword [ebp + 0xc]
push 1
pop edx
mov ecx, dword [ecx]
cmp edi, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ecx]
mov dword [eax], ecx
jle 0x40160a
lea ecx, [eax + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx]
mov edi, dword [ecx + edx*4]
cmp byte [edi], 0x2d
je 0x401586
mov ecx, dword [ebp - 4]
inc dword [ebp - 8]
add dword [ebp - 4], 4
mov dword [ecx], edi
jmp 0x4015f8
push edi
call fcn.004028dc
test eax, eax
pop ecx
jl 0x4015a7
mov ecx, dword [0x4063a4]
mov ebx, eax
lea eax, [eax + eax*2]
mov esi, dword [ecx + eax*4]
mov eax, dword [ebp + 8]
inc esi
dec dword [eax]
jmp 0x4015f5
push 0xa
push str._XXaltjvm
push edi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4015d1
push 0xc
push str._J_XXaltjvm
push edi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4015e9
xor eax, eax
cmp byte [edi + 1], 0x58
setne al
dec eax
and al, 0xfe
add eax, 0xc
add eax, edi
or ebx, 0xffffffff
mov esi, eax
jmp 0x4015f5
mov eax, dword [ebp - 4]
inc dword [ebp - 8]
add dword [ebp - 4], 4
mov dword [eax], edi
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
jl 0x401568
push 1
pop edx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
and dword [eax + ecx*4], 0
mov dword [edi], eax
mov eax, dword [ebp + 8]
test esi, esi
mov dword [eax], ecx
jne 0x40162c
mov eax, dword [0x4063a4]
mov eax, dword [eax]
inc eax
jmp 0x4016da
test ebx, ebx
jl 0x4016d8
mov eax, dword [0x4063a4]
lea ecx, [ebx + ebx*2]
cmp dword [eax + ecx*4 + 4], edx
jne 0x40166a
lea ecx, [ebx + ebx*2]
push dword [eax + ecx*4 + 8]
call fcn.004028dc
test eax, eax
pop ecx
jl 0x401690
mov ebx, eax
lea ecx, [eax + eax*2]
mov eax, dword [0x4063a4]
mov esi, dword [eax + ecx*4]
lea ecx, [eax + ecx*4]
inc esi
cmp dword [ecx + 4], 1
je 0x401642
lea ecx, [ebx + ebx*2]
mov ecx, dword [eax + ecx*4 + 4]
dec ecx
dec ecx
je 0x4016b4
dec ecx
jne 0x4016d8
push 1
push esi
push str.Error:__s_VM_not_supported
call fcn.00402f2c
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, dword [0x4063a4]
lea eax, [ebx + ebx*2]
push 1
push dword [ecx + eax*4 + 8]
push str.Error:_Unable_to_resolve_VM_alias__s
call fcn.00402f2c
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [eax]
inc eax
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
add eax, 0x40
push str.Warning:__s_VM_not_supported___s_VM_will_be_used_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
mov eax, dword [0x4063a4]
add esp, 0x10
mov esi, dword [eax]
inc esi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f7b
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov esi, dword [edi]
mov dword [ebp + 8], esi
add esi, 2
lea eax, [esi*4 + 4]
push eax
call fcn.00401c90
pop ecx
mov dword [edi], esi
mov esi, 0x405010
push 4
mov dword [ebx], eax
mov edx, esi
pop ebx
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x401fc4
cmp byte [ecx + 1], 0x4a
jne 0x401fc4
add ecx, 2
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, 0x405018
jb 0x401fb0
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x401ff9
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x401ff1
cmp byte [ecx + 1], 0x4a
jne 0x401ff1
add ecx, 2
cmp byte [ecx], 0
je 0x40203e
mov dword [eax], ecx
add eax, ebx
inc edi
add edx, ebx
cmp edi, dword [ebp + 8]
jl 0x401fd8
mov edx, esi
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x402008
cmp byte [ecx + 1], 0x4a
je 0x40200c
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, 0x405018
jb 0x401ffb
mov esi, dword [ebp + 8]
test esi, esi
jle 0x402036
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x40202d
cmp byte [ecx + 1], 0x4a
je 0x402031
mov dword [eax], ecx
add eax, ebx
add edx, ebx
dec esi
jne 0x402020
and dword [eax], 0
pop edi
pop esi
pop ebx
pop ebp
ret
push 1
push str.Error:_the__J_option_should_not_be_followed_by_a_space.
call fcn.00402f09
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x402054
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
and byte [esp + 7], 0
push ebx
push ebp
push esi
push edi
push str.CLASSPATH
mov byte [esp + 0x1a], 0x3b
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
or ebp, 0xffffffff
pop ecx
test ebx, ebx
je 0x4020ac
mov edi, ebx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.00401c90
mov edi, eax
push ebx
push str._Denv.class.path_s
push edi
call esi
push 0
push edi
call fcn.00401717
add esp, 0x18
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00402c62
pop ecx
test al, al
pop ecx
jne 0x4020d6
push 1
push str.Cant_determine_application_home
call fcn.00402f09
pop ecx
xor al, al
pop ecx
jmp 0x4021fa
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.00401c90
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push str._Dapplication.home_s
push edi
call esi
push 0
push edi
call fcn.00401717
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
push 0x28
dec ecx
mov ebx, 0x405018
pop edx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov edi, dword [esi]
mov ecx, ebp
xor eax, eax
add esi, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, dword [esp + 0x10]
cmp esi, str._J_ms8m
lea edx, [edx + ecx + 1]
jb 0x402120
inc edx
push edx
call fcn.00401c90
mov edx, eax
mov esi, str._Djava.class.path
mov edi, edx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add dword [esp + 0x10], 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0x10], 0x405020
rep movsb byte es:[edi], byte [esi]
jb 0x40215a
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
and byte [ecx + edx - 1], al
call fcn.00401717
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x402429
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.00402c24
lea eax, [ebp - 0x184]
push 0x405dbc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x402482
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x4024d2
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4024c6
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x40249c
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4029a1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402a75
pop ecx
test al, al
pop ecx
jne 0x4029cd
push 1
push str.Error:_could_not_find_Java_2_Runtime_Environment.
call fcn.00402f09
pop ecx
pop ecx
push 2
call dword [sym.imp.MSVCRT.dll_exit]
push dword [ebp + 0x10]
call fcn.004024d5
cmp eax, 1
pop ecx
jge 0x4029f1
push 1
push str.Error:_no_known_VMs.__check_for_corrupt_jvm.cfg_file_
call fcn.00402f09
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401515
mov esi, dword [ebp + 0x20]
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov dword [esi], eax
push ebx
and byte [ebx], 0
push dword [esi]
push dword [ebp + 0x10]
call fcn.00402b3d
add esp, 0x18
test al, al
jne 0x402a71
push edi
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, str.Error:_no___s_JVM_at___s.
add edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.00401c90
push dword [ebp + 0x18]
mov edi, eax
push dword [esi]
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 1
push edi
call fcn.00402f09
add esp, 0x1c
push 4
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40305f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4040e0
push 0x4031a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4063d4], 0xffffffff
or dword [0x4063d8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4063d0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4063cc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4063dc], eax
call fcn.00402f66
cmp dword [0x406380], 0
jne 0x4030e2
push 0x40318e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040317c
push 0x40500c
push 0x405008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4063c8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4063c4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x405004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret