joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a82e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x45f0]
mov eax, 0x4670
call fcn.0040f5e0
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp + 0x45ec], eax
mov eax, dword [ebp + 0x4600]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x4604]
push ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x4608]
push esi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x460c]
push edi
mov edi, dword [ebp + 0x45f8]
mov dword [ebp - 0x7c], eax
mov ebx, 0x1770
push ebx
lea eax, [ebp - 0x64]
push eax
push 0xa0
call fcn.004037d1
mov esi, dword [ebp + 0x45fc]
push edi
push esi
lea eax, [ebp - 0x64]
push eax
push str.checking_app_id__S___d___p_
call fcn.0040c1e2
lea eax, [ebp - 0x64]
push eax
call fcn.0040f0b0
add esp, 0x20
test eax, eax
je 0x40a9e4
lea eax, [ebp - 0x68]
push eax
or esi, 0x20019
push esi
xor esi, esi
push esi
push str.SOFTWAREej_technologiesinstall4jinstallations
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40a9d7
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x2e7c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a9bf
cmp dword [ebp - 0x70], esi
jbe 0x40a9bf
lea eax, [ebp + 0x2e7c]
push eax
push str.found_installations:__S
call fcn.0040c1e2
mov ebx, 0x428cf4
lea eax, [ebp + 0x2e7c]
push ebx
push eax
call fcn.0040fee0
add esp, 0x10
jmp 0x40a9af
push edi
call fcn.0040f0b0
pop ecx
test eax, eax
je 0x40a9cc
push edi
lea eax, [ebp + 0x170c]
push str._sjre
push eax
call fcn.00410061
lea eax, [ebp + 0x170c]
push eax
push dword [ebp - 0x6c]
call fcn.00408e30
add esp, 0x14
test al, al
je 0x40a993
push 1
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x6c]
call fcn.0040a66a
add esp, 0x18
test al, al
jne 0x40a9bb
lea eax, [ebp + 0x170c]
push eax
push str.java_version_did_not_match_in__S
jmp 0x40a99f
lea eax, [ebp + 0x170c]
push eax
push str.did_not_find_java_in__S
call fcn.0040c1e2
pop ecx
pop ecx
push ebx
push esi
call fcn.0040fee0
pop ecx
pop ecx
mov edi, eax
cmp edi, esi
jne 0x40a933
jmp 0x40a9cc
mov al, 1
jmp 0x40a9e6
push esi
push str.could_not_query_value_node__d
call fcn.0040c1e2
pop ecx
pop ecx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a9e4
push eax
push str.could_not_open_installation_node__d
call fcn.0040c1e2
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp + 0x45ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f5c8
add ebp, 0x45f0
leave
ret
Function at 0x40ac27
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x177c
call fcn.0040f5e0
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x177c], ecx
push 0x1770
lea ecx, [ebp - 0x1774]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40acea
and dword [ebp - 0x1778], 0
lea eax, [ebp - 0x1774]
push eax
call fcn.0040f0b0
pop ecx
test eax, eax
jbe 0x40acb5
mov eax, dword [ebp - 0x1778]
lea eax, [ebp + eax - 0x1774]
cmp byte [eax], 0x2f
jne 0x40ac9a
mov byte [eax], 0x5c
inc dword [ebp - 0x1778]
lea eax, [ebp - 0x1774]
push eax
call fcn.0040f0b0
pop ecx
cmp dword [ebp - 0x1778], eax
jb 0x40ac85
lea eax, [ebp - 0x1774]
push eax
push esi
call fcn.00408e30
pop ecx
pop ecx
test al, al
je 0x40ace6
push 1
push 0
push dword [ebp - 0x177c]
push ebx
push edi
push esi
call fcn.0040a66a
add esp, 0x18
test al, al
je 0x40ace6
xor eax, eax
inc eax
jmp 0x40acec
xor eax, eax
jmp 0x40acec
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f5c8
leave
ret
Function at 0x40b0ff
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
push ebx
mov byte [eax], 0
lea eax, [ebp - 0x20]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREej_technologiesexe4jlocatedjvms_
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b275
push esi
mov esi, 0x1770
push edi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.0040ef5c
push esi
mov dword [ebp - 0x1c], eax
call fcn.0040ef5c
push esi
mov dword [ebp - 0xc], eax
call fcn.0040ef5c
push esi
mov edi, eax
call fcn.0040ef5c
add esp, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40b239
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
mov byte [edi], 0
mov byte [eax], 0
call fcn.0040f0b0
inc eax
pop ecx
test eax, eax
jle 0x40b1bc
mov edx, dword [ebp - 0xc]
mov ecx, edi
sub edx, edi
mov dword [ebp - 0x24], eax
mov al, byte [edx + ecx]
cmp al, 0x2f
jne 0x40b1b4
mov byte [ecx], 0x5c
jmp 0x40b1b6
mov byte [ecx], al
inc ecx
dec dword [ebp - 0x24]
jne 0x40b1a8
cmp byte [ebp + 0x1c], 0
jne 0x40b1d3
push str.i4j_jres
push edi
call fcn.004111a0
pop ecx
pop ecx
test eax, eax
je 0x40b219
push 1
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 8]
push edi
call fcn.0040a66a
add esp, 0x18
test al, al
je 0x40b219
push dword [ebp + 0x10]
push dword [ebp - 8]
call fcn.0040a590
pop ecx
pop ecx
test al, al
je 0x40b219
push dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.0040f4d0
push edi
push dword [ebp + 0xc]
call fcn.0040f4d0
add esp, 0x10
mov byte [ebp - 1], 1
inc dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x20]
call ebx
cmp eax, 0x103
jne 0x40b187
push edi
call fcn.0040f388
push dword [ebp - 8]
call fcn.0040f388
push dword [ebp - 0x1c]
call fcn.0040f388
push dword [ebp - 0xc]
call fcn.0040f388
add esp, 0x10
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x40b8a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x4310c4]
mov dword [ebp - 4], 0x4310c4
jmp 0x40b906
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push edi
call fcn.0040f0b0
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040ef5c
pop ecx
pop ecx
test esi, esi
jle 0x40b8e8
mov ecx, eax
sub edi, eax
mov edx, esi
mov bl, byte [edi + ecx]
xor bl, 0xbb
mov byte [ecx], bl
inc ecx
dec edx
jne 0x40b8dc
push esi
push eax
push dword [ebp + 8]
mov byte [eax + esi], 0
call fcn.0040ffa1
add esp, 0xc
test eax, eax
je 0x40b917
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.0040f0b0
pop ecx
test eax, eax
ja 0x40b8ba
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x40b912

Function at 0x40ba62
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x40ba92
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edi
movsx edi, byte [edx]
mov eax, dword [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4310c8]
inc edx
dec esi
mov dword [ecx], eax
jne 0x40ba74
pop edi
pop esi
ret
Function at 0x40bf27
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x465c
call fcn.0040f5e0
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
cmp dword [0x43e8f4], esi
jne 0x40bf7b
push 0x18
call fcn.0040f793
mov edx, eax
pop ecx
cmp edx, esi
je 0x40bf69
push 6
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [0x43e8f4], edx
jmp 0x40bf6f
mov dword [0x43e8f4], esi
push dword [0x43e8f4]
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push dword [0x43e8f4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x43e8f0]
cmp eax, esi
je 0x40bfaa
cmp dword [0x43e8ec], esi
jne 0x40bfaa
push str.a_ccsUTF_8
push eax
call fcn.00411154
pop ecx
pop ecx
mov dword [0x43e8ec], eax
cmp byte [0x43e8e8], 0
jne 0x40c15e
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
mov bl, byte [0x4400b3]
mov edi, 0x1770
push edi
lea eax, [ebp - 0x1774]
push eax
push str.EXE4J_LOG
mov byte [0x43e8e8], 1
call esi
test eax, eax
jbe 0x40bffc
lea eax, [ebp - 0x1774]
push 0x42b344
push eax
call fcn.00410a00
pop ecx
pop ecx
test eax, eax
jne 0x40bffc
mov bl, 1
push edi
lea eax, [ebp - 0x1774]
push eax
push str.INSTALL4J_LOG
call esi
test eax, eax
jbe 0x40c028
lea eax, [ebp - 0x1774]
push 0x42b344
push eax
call fcn.00410a00
pop ecx
pop ecx
test eax, eax
jne 0x40c028
mov bl, 1
test bl, bl
pop ebx
je 0x40c15e
mov edi, 0x2ee0
push edi
call fcn.0040ef5c
mov esi, eax
xor eax, eax
push eax
push esi
mov word [esi], ax
call fcn.004052b6
push esi
call fcn.0040f87b
add esp, 0x10
test eax, eax
jne 0x40c064
push 0x42b32c
push esi
call fcn.0040fdea
jmp 0x40c080
movzx eax, word [esi + eax*2 - 2]
cmp ax, 0x5c
je 0x40c082
cmp ax, 0x2f
je 0x40c082
push 0x4298d8
push esi
call fcn.0040fdbc
pop ecx
pop ecx
push edi
call fcn.0040ef5c
pop ecx
mov dword [0x43e8f0], eax
xor edi, edi
inc edi
push edi
push esi
push str._si4j_nlog__d.log
push dword [0x43e8f0]
call fcn.0040beb1
push dword [0x43e8f0]
call fcn.004049ee
add esp, 0x14
test al, al
je 0x40c0bd
cmp edi, 0x3e8
jl 0x40c090
push esi
call fcn.0040f388
mov esi, str.w_ccsUTF_8
push esi
push dword [0x43e8f0]
call fcn.00411154
add esp, 0xc
mov dword [0x43e8ec], eax
test eax, eax
jne 0x40c0fc
mov eax, str.c:i4j_nlog
push esi
push eax
mov dword [0x43e8f0], eax
call fcn.00411154
pop ecx
pop ecx
mov dword [0x43e8ec], eax
test eax, eax
je 0x40c15e
push 0x1770
lea eax, [ebp - 0x4654]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x465c]
push eax
call fcn.00410986
lea eax, [ebp - 0x465c]
push eax
call fcn.00413e8e
push eax
lea eax, [ebp - 0x4654]
push eax
push str.Started_executable__s_at__S_n
push dword [0x43e8ec]
call fcn.00413fe4
push dword [0x43e8ec]
call fcn.00410407
add esp, 0x1c
call fcn.0040bec7
mov dword [0x43e8f8], eax
mov dword [0x43e8fc], edx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f5c8
leave
ret
Function at 0x40c23b
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x16fc]
mov eax, 0x177c
call fcn.0040f5e0
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp + 0x16f8], eax
push esi
xor esi, esi
push esi
call fcn.00404a47
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004055ea
add esp, 0xc
push esi
lea eax, [ebp - 0x7c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREej_technologiesexe4jpids_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c2ba
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
push 4
push esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x16f8]
xor ecx, ebp
pop esi
call fcn.0040f5c8
add ebp, 0x16fc
leave
ret

Function at 0x40c2d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1704]
mov eax, 0x1784
call fcn.0040f5e0
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp + 0x1700], eax
push edi
xor edi, edi
push edi
call fcn.00404a47
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004055ea
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0x20019
push edi
push str.SOFTWAREej_technologiesexe4jpids_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c35a
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c351
cmp dword [ebp - 0x78], 4
jne 0x40c351
mov edi, dword [ebp - 0x7c]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1700]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040f5c8
add ebp, 0x1704
leave
ret

Function at 0x40c60f
Capabilities:
Create mailslot
Create thread

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0040c3ac
pop ecx
xor ebx, ebx
push ebx
push 0xffffffffffffffff
mov esi, eax
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
push esi
mov edi, eax
call fcn.0040f388
pop ecx
cmp edi, 0xffffffff
jne 0x40c64d
push str.creating_mailslot_failed
call fcn.0040c1e2
pop ecx
jmp 0x40c668
push str.creating_mailslot_successful
call fcn.0040c1e2
pop ecx
push ebx
push ebx
push edi
push 0x40c3e7
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
ret
Function at 0x40c66c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
call fcn.0040c3ac
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call fcn.0040f87b
pop ecx
pop ecx
test eax, eax
jne 0x40c692
mov dword [ebp + 0xc], str.__i4j_empty_command_line
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
mov ebx, 0x80
push ebx
push 3
push 0
push 1
mov edi, 0x40000000
push edi
push dword [ebp - 0xc]
call esi
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40c705
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x32
jge 0x40c6ea
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebx
push 3
push 0
push 1
push edi
push dword [ebp - 0xc]
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40c6c0
cmp dword [ebp - 4], 0xffffffff
jne 0x40c705
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_mailslot_CreateFile__d
call fcn.0040c1e2
pop ecx
pop ecx
jmp 0x40c75d
push dword [ebp + 0xc]
call fcn.0040f87b
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
add esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c73e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_mailslot_WriteFile__d
call fcn.0040c1e2
pop ecx
pop ecx
jmp 0x40c754
cmp dword [ebp - 8], esi
je 0x40c754
push esi
push dword [ebp - 8]
push str.error_mailslot_WriteFile_length__d__d
call fcn.0040c1e2
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call fcn.0040f388
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dd72
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x40dda9
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0040f0b0
pop ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x40ddc1
push dword [ebp + 8]
call fcn.004142eb
call fcn.0041057f
add eax, 0x20
push eax
call fcn.00410407
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x40ddff
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x40de85
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00410e00
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
jne 0x40de63
cmp dword [ebp - 0x90], 0
je 0x40de85
push str.SetDefaultDllDirectories
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40de85
push 0xc00
call eax
push str.restrict_DLL_directories
call fcn.0040c1e2
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040f5c8
leave
ret

Function at 0x40de92
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1774
call fcn.0040f5e0
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, 0x43e930
lea eax, [ebp - 0x1774]
push eax
call fcn.0040531b
push 0
call fcn.00410986
push edx
push eax
lea eax, [ebp - 0x1774]
push eax
push str._s_dir_d
push esi
call fcn.00410061
push esi
push str.Temp_dir3:__S
call fcn.0040c1e2
add esp, 0x24
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40df25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42c1d0
call fcn.0040c1e2
inc edi
cmp edi, 0xa
pop ecx
pop ecx
jl 0x40deb2
push 0x42c1cc
push 0x3f1
mov byte [0x43e930], 0
call fcn.00403fda
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f5c8
leave
ret

Function at 0x40df33
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40dfa1
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40dfa0
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret
Function at 0x40e08c
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, 0xbb80
push ebx
call fcn.0040ef5c
mov esi, eax
mov dword [esp], 0x2ee0
call fcn.0040ef5c
mov edi, eax
mov dword [esp], 0x1770
push edi
push 0x2714
call fcn.004037d1
push edi
push str.native_lib_dir_is__S
call fcn.0040c1e2
push edi
call fcn.00406bd5
push 0x40e06f
push edi
push esi
call fcn.00405765
push esi
call fcn.0040f0b0
add esp, 0x28
test eax, eax
je 0x40e101
push esi
call fcn.0040f0b0
cmp byte [eax + esi - 1], 0x3b
pop ecx
je 0x40e101
push 0x428cf4
push esi
call fcn.0040f4e0
pop ecx
pop ecx
push esi
call fcn.0040f0b0
pop ecx
sub ebx, eax
push ebx
push esi
call fcn.0040f0b0
pop ecx
add eax, esi
push eax
mov ebx, str.PATH
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x40e13c
push esi
push str.Setting_PATH__native_libs___S
call fcn.0040c1e2
pop ecx
pop ecx
jmp 0x40e151
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Setting_PATH__native_libs___S_failed_with_error__d
call fcn.0040c1e2
add esp, 0xc
push esi
call fcn.0040f0b0
add eax, 6
push eax
call fcn.0040ef5c
push esi
mov ebx, eax
push str.PATH_s
push ebx
call fcn.00410061
push ebx
call fcn.0041395b
push ebx
call fcn.0040f388
push esi
call fcn.0040f388
push edi
call fcn.0040f388
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x40eb96
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x462c]
mov eax, 0x46ac
call fcn.0040f5e0
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp + 0x4628], eax
mov eax, dword [ebp + 0x4634]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x4638]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0040f4d0
push str..pack
call fcn.0040f0b0
lea esi, [ebp - 0x28]
sub esi, eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040f0b0
xor ebx, ebx
push edi
mov byte [eax + esi], bl
call fcn.00404995
add esp, 0x14
test al, al
jne 0x40ec0a
push str.pack_path_doesnt_exists
call fcn.0040c1e2
jmp 0x40ed0a
push dword [ebp - 0x2c]
lea eax, [ebp + 0x2eb8]
push str._s_binunpack200.exe
push eax
call fcn.00410061
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp + 0x1748]
push str._r___s____s_
push eax
call fcn.00410061
lea eax, [ebp + 0x2eb8]
push eax
mov esi, 0x428ba0
push esi
call fcn.0040c1e2
lea eax, [ebp + 0x1748]
push eax
push esi
call fcn.0040c1e2
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00410e00
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00410e00
add esp, 0x44
xor ecx, ecx
mov word [ebp - 0x50], cx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
xor eax, eax
push 0x20
inc eax
push eax
push ebx
mov dword [ebp - 0x54], eax
push ebx
lea eax, [ebp + 0x1748]
push eax
lea eax, [ebp + 0x2eb8]
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40ecc3
push str.could_not_create_unpack_process
call fcn.0040c1e2
mov dword [esp], 0x42c858
push 0x3f1
call fcn.00403fda
pop ecx
pop ecx
push str.waiting_for_unpack200_to_finish
call fcn.0040c1e2
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.unpack_done
call fcn.0040c1e2
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40ed0b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x40ed0b
call esi
push eax
push str.could_not_delete_packed_file__error__d_
call fcn.0040c1e2
pop ecx
pop ecx
mov ecx, dword [ebp + 0x4628]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f5c8
add ebp, 0x462c
leave
ret
Function at 0x40ed23
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2fa8]
mov eax, 0x3028
call fcn.0040f5e0
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp + 0x2fa4], eax
mov eax, dword [ebp + 0x2fb0]
push ebx
push edi
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1834]
push str._s_s.jar.pack
push eax
call fcn.00410061
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1834]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ee4d
lea eax, [ebp - 0x50]
push eax
push eax
call fcn.0040f0b0
pop ecx
sub eax, 5
push eax
push edi
push esi
lea eax, [ebp + 0x1834]
push str._s_s_.s
push eax
call fcn.00410061
lea eax, [ebp + 0x1834]
push eax
push str.checking__S
call fcn.0040c1e2
lea eax, [ebp + 0x1834]
push eax
call fcn.00404995
add esp, 0x24
test al, al
jne 0x40ee33
mov eax, dword [ebp - 0x80]
cmp byte [eax], 0
jne 0x40ede9
push str.Unpacking_JRE
call fcn.0040c1e2
mov dword [esp], str.Preparing_JRE_..._n
call fcn.0040dd72
mov eax, dword [ebp - 0x80]
pop ecx
mov byte [eax], 1
lea eax, [ebp - 0x50]
push eax
push eax
call fcn.0040f0b0
pop ecx
sub eax, 5
push eax
push edi
lea eax, [ebp + 0x1834]
push str._s_.s
push eax
call fcn.00410061
lea eax, [ebp + 0x1834]
push eax
push esi
lea eax, [ebp + 0xc4]
push str._s_s.pack
push eax
call fcn.00410061
lea eax, [ebp + 0xc4]
push eax
push esi
call fcn.0040eb96
add esp, 0x2c
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ed7e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x2fa4]
xor ecx, ebp
pop ebx
call fcn.0040f5c8
add ebp, 0x2fa8
leave
ret

Function at 0x40f5c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431920]
jne 0x40f5d2
repz ret
jmp fcn.004149ed