joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x8d17439
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5634271d
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402bff
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4702f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c93
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402c50
cmp dword [ebp + 0x10], ebx
jne 0x402c87
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402bff
test eax, eax
jne 0x402c62
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402c37
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406558
cmp eax, ebx
je 0x402c9a
push ebx
push dword [0x4702f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4702f0], ebx
jne 0x402c90
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c90
jmp 0x402c93
Function at 0x4030e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403112
mov ecx, dword [0x470298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x42a6d4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004031ef
cmp eax, esi
jl 0x4031e9
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405dd6
test eax, eax
je 0x4031d9
push dword [ebp + 8]
add dword [0x42a6d4], 4
call fcn.004031ef
mov ebx, eax
cmp ebx, esi
jl 0x4031e7
cmp dword [ebp + 0x10], esi
jne 0x4031b5
cmp dword [ebp + 8], esi
jle 0x4031e7
mov esi, 0x4266d0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403177
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405dd6
test eax, eax
je 0x4031d9
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405e05
test eax, eax
je 0x4031b1
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x42a6d4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403166
jmp 0x4031e7
push 0xfffffffffffffffe
jmp 0x4031db
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031c0
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4031de
push 0xfffffffffffffffd
pop eax
jmp 0x4031e9
mov ebx, dword [ebp - 4]
add dword [0x42a6d4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x4057ac
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4057fd
xor eax, eax
jmp 0x405824
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405824
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4057f9
call esi
pop esi
leave
ret 4

Function at 0x40585e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x45e730], 0x44
push eax
xor eax, eax
push 0x45e730
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40589d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405927
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d2e
mov edi, eax
cmp edi, 0xffffffff
je 0x405968
test byte [esp + 0x10], 1
push esi
je 0x40594a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405950
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405959
xor eax, eax
inc eax
jmp 0x40596a
test byte [esp + 0x10], 4
jne 0x405968
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40596f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405c3a
test bl, 8
mov dword [ebp - 8], eax
je 0x4059ae
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4702c8], eax
jmp 0x405b2b
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4059c8
test eax, eax
je 0x405ad9
test bl, 2
je 0x405ad9
mov esi, 0x456730
push edi
push esi
call fcn.0040617e
cmp dword [ebp + 8], 0
je 0x4059e7
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4059ed
push edi
call fcn.00405b7e
cmp word [edi], 0
jne 0x4059fd
cmp word [0x456730], 0x5c
jne 0x405a08
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ace
cmp word [ebp - 0x22c], 0x2e
jne 0x405a52
cmp word [ebp - 0x22a], 0
je 0x405ab1
cmp word [ebp - 0x22a], 0x2e
jne 0x405a52
cmp word [ebp - 0x228], 0
je 0x405ab1
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040617e
test byte [ebp - 0x258], 0x10
je 0x405a7d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ab1
push dword [ebp + 0xc]
push edi
call fcn.0040596f
jmp 0x405ab1
push dword [ebp - 4]
push edi
call fcn.00405927
test eax, eax
jne 0x405aa9
cmp dword [ebp - 4], eax
je 0x405aa1
push edi
push 0xfffffffffffffff1
call fcn.004052dd
push 0
push edi
call fcn.0040601f
jmp 0x405ab1
inc dword [0x4702c8]
jmp 0x405ab1
push edi
push 0xfffffffffffffff2
call fcn.004052dd
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a2a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ad9
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b2b
cmp dword [ebp - 8], esi
jne 0x405aed
inc dword [0x4702c8]
jmp 0x405b2b
push edi
call fcn.004064c1
test eax, eax
je 0x405b2b
push edi
call fcn.00405b32
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405927
test eax, eax
jne 0x405b23
cmp dword [ebp - 4], esi
je 0x405ae5
push edi
push 0xfffffffffffffff1
call fcn.004052dd
push esi
push edi
call fcn.0040601f
jmp 0x405b2b
push edi
push 0xffffffffffffffe5
call fcn.004052dd
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405c3a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45a730
push esi
call fcn.0040617e
push esi
call fcn.00405bdd
mov edi, eax
test edi, edi
jne 0x405c5b
xor eax, eax
jmp 0x405cb3
push edi
call fcn.00406412
test byte [0x470258], 0x80
je 0x405c78
mov ax, word [edi]
test ax, ax
je 0x405c57
cmp ax, 0x5c
je 0x405c57
sub edi, esi
sar edi, 1
jmp 0x405c92
call fcn.004064c1
test eax, eax
je 0x405c8c
test byte [eax], 0x10
je 0x405c57
push esi
call fcn.00405b7e
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405c7e
call fcn.00405b32
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d2e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d4d
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405d53
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405d82
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a580]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a584]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405dd2
test edi, edi
jne 0x405d8f
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405dcc
Function at 0x405ead
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x45edc8
push 0x40a5a4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405efb
push 1
push 0
push esi
call fcn.00405d53
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x40601a
cmp eax, edi
jg 0x40601a
mov esi, 0x45f5c8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x40601a
cmp eax, edi
jg 0x40601a
push esi
push ebx
push str._ls_ls_r_n
push 0x45e9c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x470250]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004061a0
push 4
push 0xc0000000
push esi
call fcn.00405d53
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40601a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406013
push edi
push esi
push ebp
call fcn.00405dd6
test eax, eax
je 0x406013
push str._Rename__r_n
push esi
call fcn.00405cb8
test eax, eax
jne 0x405fb1
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405fe6
add eax, 0xa
push 0x40a588
push eax
call fcn.00405cb8
mov ebp, eax
test ebp, ebp
je 0x405fe2
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405fd3
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405fcd
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405fe8
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x45e9c8
push eax
call fcn.00405d0e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e05
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40601f
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406042
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ead
pop ecx
pop ecx
inc dword [0x4702d0]
ret 8
Function at 0x40604b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060bf
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x4000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4060ac
cmp dword [ebp + 0x14], 1
je 0x4060af
cmp dword [ebp + 0x14], 2
je 0x4060af
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x3ffe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x4064e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40650c
xor eax, eax
test eax, eax
je 0x40651f
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40651f
xor ecx, ecx
jmp 0x406522
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x45fdcc], 0
push esi
jne 0x406640
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40661a
mov dword [ecx*4 + 0x45fdc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406615
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406671
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fdc8]
xor eax, esi
inc ecx
dec edx
jne 0x406653
pop edi
not eax
pop esi
ret 0xc
Function at 0x40192b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41a174]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x804]
mov ebx, 0x800
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [0x41a41c], 0
jne 0x4019d5
push str.DEPLOY_TRACE_NATIVE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
test eax, eax
je 0x4019d5
push esi
call fcn.004018f3
mov esi, eax
test esi, esi
je 0x4019d4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
push 0x40e410
push esi
push str._s_s_s__ld.trace
push ebx
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.00402e4c
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea eax, [ebp - 0x804]
push 0x40e428
push eax
call fcn.004018ca
mov ecx, dword [0x41a41c]
xor edx, edx
inc edx
mov dword [0x41a420], eax
add esp, 0x2c
test eax, eax
cmovne ecx, edx
mov dword [0x41a41c], ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040baa8
leave
ret
Function at 0x401eac
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov eax, 0x1d5c
call fcn.0040bac0
mov eax, dword [0x41a174]
xor eax, esp
mov dword [esp + 0x1d58], eax
mov eax, dword [esp + 0x1d64]
push ebx
push esi
mov esi, dword [esp + 0x1d68]
mov ebx, 0x1000
push edi
push ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0xd68]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, 0x800
lea eax, [esp + 0x570]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [esp + 0x564]
push edi
push eax
push 0x40e544
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401f3a
cmp eax, edi
jae 0x401f3a
lea eax, [esp + 0x564]
push eax
lea eax, [esp + 0xd68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401f4c
push ebx
lea eax, [esp + 0xd68]
push eax
push esi
call fcn.004062cb
add esp, 0xc
lea eax, [esp + 0xd64]
push 0x40e554
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
pop ecx
pop ecx
test eax, eax
jne 0x4020e2
push ebp
mov ebx, 0x104
push ebx
push eax
lea eax, [esp + 0x46c]
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esp + 0x26c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [esp + 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x464]
push eax
lea eax, [esp + 0x260]
push 0x40e568
push eax
call fcn.00402f35
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x24]
add esp, 0xc
push eax
lea eax, [esp + 0x260]
push eax
call edi
push ebx
mov ebp, eax
lea eax, [esp + 0x364]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esp + 0x168]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [esp + 0x360]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x360]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strrchr
pop ecx
pop ecx
test eax, eax
je 0x402020
mov byte [eax], 0
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x15c]
push 0x40e58c
push eax
call fcn.00402f35
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x15c]
push eax
call edi
mov ebx, eax
cmp ebp, 0xffffffff
jne 0x40207a
cmp ebx, ebp
je 0x4020e1
lea eax, [esp + 0x158]
mov edi, 0x41a438
push eax
push esi
push 0x40e5d8
push edi
call fcn.00402f35
add esp, 0x10
push ebx
jmp 0x4020c9
mov edi, 0x41a438
cmp ebx, 0xffffffff
je 0x4020b1
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x260]
push eax
push esi
push 0x40e594
push edi
call fcn.00402f35
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0x14
push ebp
call esi
push ebx
call esi
jmp 0x4020cf
lea eax, [esp + 0x25c]
push eax
push esi
push 0x40e5b8
push edi
call fcn.00402f35
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], edi
call fcn.00402d2c
pop ebp
mov ecx, dword [esp + 0x1d64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040baa8
add esp, 0x1d5c
ret
Function at 0x4020fa
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
mov eax, dword [0x41a174]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x220]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x220]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00401dba
add esp, 0x18
test eax, eax
jne 0x402159
push edi
push str.Error_during_getting_jre_home..._jp2launcherpath__s_n
call fcn.00401a09
pop ecx
pop ecx
xor eax, eax
jmp 0x402215
push ebp
lea eax, [esp + 0x14]
mov edi, 0x41a748
push eax
push eax
push eax
push str._Xbootclasspath_a:__slibdeploy.jar____slibjavaws.jar____slibplugin.jar_
push 0x410
push edi
call fcn.00402e32
add esp, 0x18
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402d2c
lea eax, [esp + 0x14]
mov ebp, 0x208
push eax
push str._Djava.class.path__sclasses_
push ebp
mov edi, 0x41ab58
push edi
call fcn.00402e32
add esp, 0x10
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402d2c
push ebx
lea eax, [esp + 0x11c]
push eax
push 0x40e6a0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x402204
cmp eax, ebx
jae 0x402204
lea eax, [esp + 0x118]
mov edi, 0x41ad60
push eax
push 0x40e6b8
push 0x40e6d0
push ebp
push edi
call fcn.00402e32
add esp, 0x14
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402d2c
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00401eac
pop ecx
pop ecx
xor eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040baa8
add esp, 0x210
ret

Function at 0x402743
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslen]
push 0x40e770
call edi
lea esi, [eax + 0x105]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4027b0
push esi
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
jne 0x4027b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x4027a5
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40278a
mov esi, str.JavaLow
push ebx
push dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
inc eax
pop ecx
pop edi
pop esi
pop ebx
ret
cmp esi, 0x104
jbe 0x402787
push 0x40e77c
call edi
inc eax
add eax, esi
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 0xc
xor ebx, ebx
push esi
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x402787
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x4027af
Function at 0x4057a3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x41a174]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41af74], 0
je 0x4057c6
mov al, byte [0x41af75]
jmp 0x405819
push ebx
push 0x90
xor ebx, ebx
lea eax, [ebp - 0x94]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x405809
cmp dword [ebp - 0x94], 6
jb 0x405809
mov bl, 1
mov byte [0x41af75], bl
mov al, bl
mov byte [0x41af74], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040baa8
leave
ret

Function at 0x405b2e
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x405b3d
mov eax, dword [esi]
cmp byte [eax], 0x2d
je 0x405b46
xor al, al
pop esi
ret
push str._Dsun.plugin2.jvm.args
push 0x16
push 0
mov ecx, esi
call fcn.0040433b
test eax, eax
jne 0x405b72
push str.Invalid_argument_1_n
call fcn.00401a09
pop ecx
call fcn.004019e9
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405b7c
mov eax, dword [esi]
push dword [esp + 0xc]
push eax
call fcn.004067b1
pop ecx
pop ecx
test al, al
jne 0x405b99
push str.Invalid_argument_2_n
call fcn.00401a09
pop ecx
jmp 0x405b42
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405ba3
mov eax, dword [esi]
push eax
call fcn.0040606c
pop ecx
test al, al
je 0x405bcf
cmp dword [esi + 0x14], 0x10
jb 0x405bb6
mov esi, dword [esi]
push esi
call fcn.0040600b
push eax
call fcn.00405825
pop ecx
pop ecx
test al, al
jne 0x405bcf
push str.Invalid_argument_3_n
jmp 0x405b5f
mov al, 1
pop esi
ret