joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b20c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x44b43c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x44b28f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x44b43c
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x44b28f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x44b458
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x44b318
xor eax, eax
push ebp
push 0x44b311
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0044b054
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x44b2f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x44b478
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x44b2f6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b318
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x44b432
cmp byte [ebp - 0xd], 0
jne 0x44b35f
cmp byte [ebp - 0x12], 0
je 0x44b432
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x44b378
dec ebx
cmp byte [ebx], 0x2e
je 0x44b387
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x44b377
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x44b432
inc ebx
cmp byte [ebp - 0x12], 0
je 0x44b3c4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x44b432
cmp byte [ebp - 0xd], 0
je 0x44b432
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x44b432
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c6d0
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x44e030
call fcn.0044f098
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x44e04c
test bl, 1
je 0x44e04c
call fcn.00452ed0
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x44e198
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0044ec34
test byte [ebp + 0xd], 0xc0
jne 0x44e1bc
mov eax, dword [0x46defc]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x44e1c9
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x44e1f6
je 0x44e208
sub ecx, 0x100
je 0x44e216
sub ecx, 0x100
je 0x44e21d
sub ecx, 0x100
je 0x44e20f
jmp 0x44e224
sub ecx, 0x600
je 0x44e21d
sub ecx, 0x100
je 0x44e208
jmp 0x44e224
mov edi, 1
jmp 0x44e229
mov edi, 2
jmp 0x44e229
mov edi, 4
jmp 0x44e229
mov edi, 5
jmp 0x44e229
mov edi, 3
test byte [ebp + 0xd], 1
je 0x44e250
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x46d974]
test al, 0x80
je 0x44e249
mov ebx, 0x80
jmp 0x44e262
mov ebx, 1
jmp 0x44e262
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x44e262
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x44e274
je 0x44e27d
dec eax
je 0x44e286
jmp 0x44e28f
mov dword [ebp - 4], SysStringLen
jmp 0x44e29e
mov dword [ebp - 4], 0x40000000
jmp 0x44e29e
mov dword [ebp - 4], 0xc0000000
jmp 0x44e29e
push 1
call fcn.0044f02c
pop ecx
mov ebx, eax
jmp 0x44e38e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x44e2ba
sub eax, 0x10
je 0x44e2c1
sub eax, 0x10
je 0x44e2ca
sub eax, 0x10
je 0x44e2d3
jmp 0x44e2d3
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x44e2da
mov dword [ebp - 8], 1
jmp 0x44e2da
mov dword [ebp - 8], 2
jmp 0x44e2da
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x44e347
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x44e33c
test byte [ebp + 0xd], 1
je 0x44e337
mov ebx, 0x50
jmp 0x44e33c
mov ebx, 2
push ebx
call fcn.0044f02c
pop ecx
mov ebx, eax
jmp 0x44e38e
mov edi, esi
push edi
call fcn.0044e0fc
pop ecx
test eax, eax
je 0x44e35b
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x44e367
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0044ed54
add esp, 8
mov ebx, eax
inc eax
jne 0x44e38e
push 4
call fcn.0044f02c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0044ec68
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452e68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x452eca
call fcn.00452e18
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0044cf44
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0044cf44
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x452f48
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x46ee94], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x453022
cmp dword [0x46ee90], 0
jne 0x453022
cmp dword [0x46f01c], 0
je 0x452fdc
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00452d18
add esp, 8
mov ebx, eax
test eax, eax
jne 0x452fc2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00452d18
add esp, 8
mov ebx, eax
test eax, eax
jne 0x452fc2
lea ebx, [ebp - 0x84]
jmp 0x452fc3
inc ebx
call fcn.00452f04
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x45305d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x46ee98
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0044cf44
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x46ee9b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x45305d
cmp dword [0x46ee90], 0
je 0x45303c
cmp dword [0x46ee90], 0xffffffff
je 0x45305d
push esi
call dword [0x46ee90]
pop ecx
mov eax, dword [0x46ee94]
test eax, eax
je 0x45305d
cmp dword [0x46ee94], 0xffffffff
je 0x45305d
cmp byte [eax], 0
je 0x45305d
push esi
push eax
call fcn.00452e68
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4536ec
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x470fd4], 0
jne 0x45376d
cmp dword [0x470ff8], 0
jne 0x45371c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x470ff8], eax
test eax, eax
jne 0x45371c
push str.GetEnvironmentStrings_failed
call fcn.00453074
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x470ff8]
jmp 0x453730
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0044cf44
pop ecx
mov edi, eax
test eax, eax
jne 0x453728
lea edi, [ebp + 1]
push edi
call fcn.0044bc3c
pop ecx
mov ebx, eax
mov dword [0x470fd8], ebx
test ebx, ebx
jne 0x45375a
xor eax, eax
jmp 0x453830
push edi
mov edx, dword [0x470ff8]
push edx
push ebx
call fcn.0044cdc4
add esp, 0xc
jmp 0x45378d
xor esi, esi
mov ebx, dword [0x470fd4]
jmp 0x453787
push eax
call fcn.0044cf44
pop ecx
test eax, eax
jne 0x453783
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x453777
lea ebx, [esi + 4]
push 4
mov dword [0x470fdc], ebx
inc ebx
push ebx
call fcn.0044b7a0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4537b0
xor eax, eax
jmp 0x453830
cmp dword [0x470fd4], 0
jne 0x4537e1
xor esi, esi
mov ebx, dword [0x470fd8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4537d2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0044cf44
pop ecx
mov edi, eax
test eax, eax
jne 0x4537c8
jmp 0x453812
xor esi, esi
mov ebx, dword [0x470fd4]
mov eax, dword [esp]
mov edi, eax
jmp 0x45380c
push eax
call fcn.0044cf44
pop ecx
test eax, eax
je 0x453801
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x453805
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4537f0
mov eax, dword [0x470fd4]
test eax, eax
je 0x453822
push eax
call fcn.0044bc4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x470fd4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x453d98
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x453e1e
mov eax, dword [0x47102c]
inc dword [0x47102c]
test eax, eax
jne 0x453e1e
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x470ff8], eax
mov edx, dword [ebp + 0x10]
mov dword [0x457087], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.0044e7b8
pop ecx
cmp dword [0x46eef8], 0
je 0x453e09
call fcn.00453c1c
mov ebx, eax
test eax, eax
je 0x453e09
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x453e09
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x453e1e
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x46eef8], eax
call fcn.00453c24
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.00453f2c
mov ebx, eax
test edi, edi
jne 0x453e8d
test edi, edi
jne 0x453e5e
dec dword [0x47102c]
jne 0x453e5e
cmp dword [0x470ff8], 0
je 0x453e5e
mov eax, dword [0x470ff8]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x470ff8], edx
cmp dword [0x47102c], 0
jne 0x453e8d
cmp dword [0x46eef8], 0
jne 0x453e8d
cmp dword [0x46eee8], 0
je 0x453e7f
call dword [0x46eee8]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.00453c24
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x404e00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437d3a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44c0a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004236e4
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x404ec0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0042568b
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x44a58c
push eax
call fcn.004271ba
push edi
push esi
call fcn.00423869
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424535
mov esp, ebp
pop ebp
ret 4
Function at 0x405e30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437f87
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44c0a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0x446c30
mov dword [edi + 0xc], 0x446c38
mov dword [edi + 0x14], 0x446b90
mov dword [edi + 0x40], vtable.CefBase.0
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov eax, dword [edi + 4]
mov dword [edi], vtable.CefApp.1.0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.CefApp.0
mov eax, dword [edi + 0xc]
mov dword [edi + 8], vtable.CefBrowserProcessHandler.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0xc], vtable.CefBrowserProcessHandler.1.0
mov eax, dword [edi + 0x14]
mov dword [edi + 0x10], vtable.CefRenderProcessHandler.1.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x14], vtable.CefRenderProcessHandler.0
mov eax, dword [edi + 4]
mov dword [edi], vtable.CEFAppHandler.3.0
mov dword [edi + 8], vtable.CEFAppHandler.1.0
mov dword [edi + 0x10], vtable.CEFAppHandler.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.CEFAppHandler.2.0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x3c]
mov dword [ecx + edi], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00409630
mov dword [esi], eax
lea esi, [edi + 0x20]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00409630
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4019e7
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, 2
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, 0x408018
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x401a35
cmp byte [ecx + 1], 0x4a
jne 0x401a35
add ecx, 2
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, edi
jl 0x401a21
xor edx, edx
cmp dword [ebp - 4], edx
jle 0x401a65
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + edx*4]
cmp byte [ecx], 0x2d
jne 0x401a5f
cmp byte [ecx + 1], 0x4a
jne 0x401a5f
add ecx, 2
cmp byte [ecx], 0
je 0x401aa8
mov dword [eax], ecx
add eax, ebx
inc edx
cmp edx, dword [ebp - 4]
jl 0x401a42
mov edx, esi
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x401a74
cmp byte [ecx + 1], 0x4a
je 0x401a78
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, edi
jl 0x401a67
xor edx, edx
cmp dword [ebp - 4], edx
jle 0x401aa0
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + edx*4]
cmp byte [ecx], 0x2d
jne 0x401a96
cmp byte [ecx + 1], 0x4a
je 0x401a9a
mov dword [eax], ecx
add eax, ebx
inc edx
cmp edx, dword [ebp - 4]
jl 0x401a85
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.0040346b
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCR71.dll_exit]
int3
Function at 0x401abf
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 0x401b10
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.004031c5
test al, al
pop ecx
pop ecx
jne 0x401b3c
push 1
push str.Cant_determine_application_home
call fcn.0040346b
pop ecx
pop ecx
xor al, al
jmp 0x401c00
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, 0x408018
add esp, 0x20
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
mov ebx, 0x408020
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 0x401b8c
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 0x401bbf
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 0x401e20
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 0x405f40
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x401e95
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 0x401ee5
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 0x401ed5
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 0x401eb1
push ebx
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x401f7b
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 0x401fce
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 0x401fde
call fcn.00403fa5
push dword [ebp - 4]
push edi
call fcn.00403f65
push edi
call sub.jli.dll_JLI_MemFree
add esp, 0xc
jmp 0x401fde
test esi, esi
je 0x401fe7
call fcn.00403fa5
push esi
call fcn.00403f85
pop ecx
push ebx
push esi
call fcn.00403fc5
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403585
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 0x403615
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 0x4035fb
test ebx, ebx
je 0x4035ec
lea eax, [ebp - 0x110]
push ebx
push eax
call sub.jli.dll_JLI_ExactVersionId
test eax, eax
pop ecx
pop ecx
jle 0x4035fb
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 0x4035b3
xor edi, edi
cmp ebx, edi
jne 0x403619
xor eax, eax
jmp 0x40368d
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 0x40363a
call sub.jli.dll_JLI_MemFree
pop ecx
jmp 0x403662
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 0x403672
cmp dword [ebp - 4], edi
je 0x403615
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403615
cmp dword [ebp - 4], edi
je 0x403680
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