joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48bac3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0046da32
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x48bb75
push esi
push ecx
call fcn.0046da32
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x48bb75
push esi
push ecx
call fcn.0046da32
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x48bb6e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x48bb67
cmp dword [ebp + 0x10], 0
je 0x48bb67
push edi
push eax
push dword [ebp + 0x10]
call fcn.004b9fe0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
mov edi, dword [ebp + 8]
push esi
call fcn.0048bb7e
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x48bb77
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x48e2ab
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x120]
test al, al
je 0x48e372
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x188]
xor edi, edi
test al, al
je 0x48e30e
cmp dword [esi + 0x544], edi
jne 0x48e30e
push 0x2c
call fcn.004b6eb3
cmp eax, edi
pop ecx
je 0x48e2fe
call fcn.0046c673
mov dword [eax], vtable.GameMgr::GMEditWnd.0
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], edi
mov dword [eax + 0x28], edi
jmp 0x48e300
xor eax, eax
mov dword [esi + 0x544], eax
push eax
mov eax, esi
call fcn.0049d811
mov eax, dword [esi + 0x544]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push edi
push 0xb1
push dword [eax + 4]
call ebx
mov edi, dword [ebp + 8]
cmp dword [edi], 0xd
jne 0x48e370
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x448]
push dword [eax + 0x178]
call dword [sym.imp.USER32.dll_ClientToScreen]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
push eax
push dword [edi + 0x1c]
mov eax, dword [esi + 0x544]
push 0x7b
push dword [eax + 4]
call ebx
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x49592e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x495953
cmp eax, edi
jge 0x49594b
mov eax, esi
call fcn.0049532a
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x495975
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x49595a
cmp ecx, 4
jge 0x495994
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x495982
xor eax, eax
jmp 0x49598a
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x495978
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4959c8
mov dword [0x51be50], str.zlib_corrupt
xor eax, eax
jmp 0x495a08
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4959dd
mov dword [0x51be50], str.read_past_buffer
jmp 0x4959c4
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4959f2
mov ecx, edi
call fcn.00495355
test eax, eax
je 0x4959c4
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004b9fe0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x4b4de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x4b4ea4
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b98fb
add esp, 4
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax + 1]
shl eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b4e32
xor eax, eax
jmp 0x4b4ea7
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x4b4e68
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2], 0x5c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
jmp 0x4b4e7a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b98fb
add esp, 4
cmp dword [ebp - 4], eax
jae 0x4b4ea4
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov cx, word [esi + ecx*2]
mov word [eax + edx*2], cx
jmp 0x4b4e71
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b6e9f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x515854]
jne 0x4b6ea9
repz ret
jmp fcn.004c2764
Function at 0x4bcbf6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4bcc33
cmp dword [ebp + 0x14], edi
je 0x4bcc33
cmp ecx, edi
jne 0x4bcc3a
call fcn.004b9e2b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004b7b34
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4bcc4e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4bcc6f
cmp ebx, 0xffffffff
je 0x4bcc5e
push ebx
push edi
push ecx
call fcn.004b9920
add esp, 0xc
cmp esi, edi
je 0x4bcc1b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4bcc1b
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4bcc8b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4bcc92
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4bcd83
test word [esi + 0xc], 0x10c
je 0x4bcce6
mov eax, dword [esi + 4]
test eax, eax
je 0x4bcce6
jl 0x4bcde4
cmp ebx, eax
mov edi, ebx
jb 0x4bccb7
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4bcd8b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b72ca
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4bcd7b
cmp ebx, dword [ebp - 0xc]
jb 0x4bcd53
cmp dword [ebp - 0xc], 0
je 0x4bcd10
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4bcd05
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4bcd0c
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4bcd1b
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4bcd1b
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4bcdb7
push eax
push dword [ebp - 8]
push esi
call fcn.004c5b26
pop ecx
push eax
call fcn.004ce5c0
add esp, 0xc
test eax, eax
je 0x4bcdf6
cmp eax, 0xffffffff
je 0x4bcde4
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4bcd7b
push esi
call fcn.004c6d92
cmp eax, 0xffffffff
pop ecx
je 0x4bcde8
cmp dword [ebp - 4], 0
je 0x4bcdb7
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4bcc9a
mov eax, dword [ebp + 0x14]
jmp 0x4bcc35
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bcda2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004b9920
add esp, 0xc
call fcn.004b9e2b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4bcc2b
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bcdcd
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004b9920
add esp, 0xc
call fcn.004b9e2b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4bcc2b
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4bcc35
or dword [esi + 0xc], 0x10
jmp 0x4bcde8
Function at 0x4c62d6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5162d8]
je 0x4c62f1
inc edi
cmp edi, 0x17
jb 0x4c62e2
cmp edi, 0x17
jae 0x4c6471
push ebp
push 3
call fcn.004d3846
cmp eax, 1
pop ecx
je 0x4c643d
push 3
call fcn.004d3846
test eax, eax
pop ecx
jne 0x4c6325
cmp dword [0x5155e0], 1
je 0x4c643d
cmp ebx, 0xfc
je 0x4c6470
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x51b398
push ebp
call fcn.004c2a82
add esp, 0xc
test eax, eax
je 0x4c635b
push esi
push esi
push esi
push esi
push esi
call fcn.004b7a38
add esp, 0x14
push 0x104
mov esi, 0x51b3b1
push esi
push 0
mov byte [0x51b4b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c639f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004c2a82
add esp, 0xc
test eax, eax
je 0x4c639f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004b7a38
add esp, 0x14
push esi
call fcn.004b9ec0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c63e4
push esi
call fcn.004b9ec0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x51b6ac
push 0x4e7cf4
sub ecx, eax
push ecx
push eax
call fcn.004d1c41
add esp, 0x14
test eax, eax
je 0x4c63e4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004b7a38
add esp, 0x14
jmp 0x4c63e6
xor esi, esi
push 0x4e7cf0
push ebx
push ebp
call fcn.004d1bd0
add esp, 0xc
test eax, eax
je 0x4c6406
push esi
push esi
push esi
push esi
push esi
call fcn.004b7a38
add esp, 0x14
push dword [edi*8 + 0x5162dc]
push ebx
push ebp
call fcn.004d1bd0
add esp, 0xc
test eax, eax
je 0x4c6428
push esi
push esi
push esi
push esi
push esi
call fcn.004b7a38
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004d3689
add esp, 0xc
jmp 0x4c6470
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4c6470
cmp ebp, 0xffffffff
je 0x4c6470
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5162dc]
push dword [esi]
call fcn.004b9ec0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4d3689
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004c2e38
xor ebx, ebx
cmp dword [0x51ba10], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4d375f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4d383f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4d383f
push eax
call fcn.004c2dca
mov dword [esp], 0x4ec3c0
push edi
mov dword [0x51ba10], eax
call esi
push eax
call fcn.004c2dca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x51ba14], eax
call esi
push eax
call fcn.004c2dca
mov dword [0x51ba18], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004c1b3e
test eax, eax
pop ecx
pop ecx
je 0x4d372d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b7a38
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4d375f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004c2dca
cmp eax, ebx
pop ecx
mov dword [0x51ba20], eax
je 0x4d375f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c2dca
pop ecx
mov dword [0x51ba1c], eax
mov eax, dword [0x51ba1c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4d37e4
cmp dword [0x51ba20], ecx
je 0x4d37e4
push eax
call fcn.004c2e41
push dword [0x51ba20]
mov esi, eax
call fcn.004c2e41
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4d37e4
cmp edi, ebx
je 0x4d37e4
call esi
cmp eax, ebx
je 0x4d37b1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d37b1
test byte [ebp - 0x18], 1
jne 0x4d37e4
lea eax, [ebp - 0x10]
push eax
call fcn.004c1b75
test eax, eax
pop ecx
je 0x4d37cc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b7a38
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4d37db
or dword [ebp + 0x10], 0x200000
jmp 0x4d381f
or dword [ebp + 0x10], 0x40000
jmp 0x4d381f
mov eax, dword [0x51ba14]
cmp eax, dword [ebp - 8]
je 0x4d381f
push eax
call fcn.004c2e41
cmp eax, ebx
pop ecx
je 0x4d381f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4d381f
mov eax, dword [0x51ba18]
cmp eax, dword [ebp - 8]
je 0x4d381f
push eax
call fcn.004c2e41
cmp eax, ebx
pop ecx
je 0x4d381f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51ba10]
call fcn.004c2e41
cmp eax, ebx
pop ecx
je 0x4d383f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d3841
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401915
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41b1b4]
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 [0x41b3ac], 0
jne 0x4019bf
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 0x4019bf
push esi
call fcn.004018dd
mov esi, eax
test esi, esi
je 0x4019be
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
push 0x40f348
push esi
push str._s_s_s__ld.trace
push ebx
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.00402fab
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea eax, [ebp - 0x804]
push 0x40f360
push eax
call fcn.004018b4
mov ecx, dword [0x41b3ac]
xor edx, edx
inc edx
mov dword [0x41b3b0], eax
add esp, 0x2c
test eax, eax
cmovne ecx, edx
mov dword [0x41b3ac], ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040c2bc
leave
ret
Function at 0x401e9c
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov eax, 0x1d5c
call fcn.0040c2d0
mov eax, dword [0x41b1b4]
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 0x40f4c4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401f2a
cmp eax, edi
jae 0x401f2a
lea eax, [esp + 0x564]
push eax
lea eax, [esp + 0xd68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401f3c
push ebx
lea eax, [esp + 0xd68]
push eax
push esi
call fcn.004062d1
add esp, 0xc
lea eax, [esp + 0xd64]
push 0x40f4d4
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
pop ecx
pop ecx
test eax, eax
jne 0x4020d2
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 0x40f4e8
push eax
call fcn.00403094
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 0x402010
mov byte [eax], 0
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x15c]
push 0x40f50c
push eax
call fcn.00403094
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x15c]
push eax
call edi
mov ebx, eax
cmp ebp, 0xffffffff
jne 0x40206a
cmp ebx, ebp
je 0x4020d1
lea eax, [esp + 0x158]
mov edi, 0x41b3c8
push eax
push esi
push 0x40f558
push edi
call fcn.00403094
add esp, 0x10
push ebx
jmp 0x4020b9
mov edi, 0x41b3c8
cmp ebx, 0xffffffff
je 0x4020a1
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x260]
push eax
push esi
push 0x40f514
push edi
call fcn.00403094
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0x14
push ebp
call esi
push ebx
call esi
jmp 0x4020bf
lea eax, [esp + 0x25c]
push eax
push esi
push 0x40f538
push edi
call fcn.00403094
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.00402db2
pop ebp
mov ecx, dword [esp + 0x1d64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c2bc
add esp, 0x1d5c
ret
Function at 0x4020ea
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
mov eax, dword [0x41b1b4]
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.00401daa
add esp, 0x18
test eax, eax
jne 0x402149
push edi
push str.Error_during_getting_jre_home..._jp2launcherpath__s_n
call fcn.004019f3
pop ecx
pop ecx
xor eax, eax
jmp 0x402205
push ebp
lea eax, [esp + 0x14]
mov edi, 0x41b6d8
push eax
push eax
push eax
push str._Xbootclasspath_a:__slibdeploy.jar____slibjavaws.jar____slibplugin.jar_
push 0x410
push edi
call fcn.00402f91
add esp, 0x18
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402db2
lea eax, [esp + 0x14]
mov ebp, 0x208
push eax
push str._Djava.class.path__sclasses_
push ebp
mov edi, 0x41bae8
push edi
call fcn.00402f91
add esp, 0x10
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402db2
push ebx
lea eax, [esp + 0x11c]
push eax
push 0x40f620
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4021f4
cmp eax, ebx
jae 0x4021f4
lea eax, [esp + 0x118]
mov edi, 0x41bcf0
push eax
push 0x40f638
push 0x40f650
push ebp
push edi
call fcn.00402f91
add esp, 0x14
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402db2
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00401e9c
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.0040c2bc
add esp, 0x210
ret

Function at 0x40272f
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 0x40f6f0
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 0x40279c
push esi
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
jne 0x4027a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x402791
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402776
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 0x402773
push 0x40f6fc
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 0x402773
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x40279b
Function at 0x40577c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x41b1b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41bf04], 0
je 0x40579f
mov al, byte [0x41bf05]
jmp 0x4057f2
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 0x4057e2
cmp dword [ebp - 0x94], 6
jb 0x4057e2
mov bl, 1
mov byte [0x41bf05], bl
mov al, bl
mov byte [0x41bf04], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2bc
leave
ret

Function at 0x405b07
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x405b16
mov eax, dword [esi]
cmp byte [eax], 0x2d
je 0x405b1f
xor al, al
pop esi
ret
push str._Dsun.plugin2.jvm.args
push 0x16
push 0
mov ecx, esi
call fcn.004044e5
test eax, eax
jne 0x405b4b
push str.Invalid_argument_1_n
call fcn.004019f3
pop ecx
call fcn.004019d3
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 0x405b55
mov eax, dword [esi]
push dword [esp + 0xc]
push eax
call fcn.004067b7
pop ecx
pop ecx
test al, al
jne 0x405b72
push str.Invalid_argument_2_n
call fcn.004019f3
pop ecx
jmp 0x405b1b
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405b7c
mov eax, dword [esi]
push eax
call fcn.00406045
pop ecx
test al, al
je 0x405ba8
cmp dword [esi + 0x14], 0x10
jb 0x405b8f
mov esi, dword [esi]
push esi
call fcn.00405fe4
push eax
call fcn.004057fe
pop ecx
pop ecx
test al, al
jne 0x405ba8
push str.Invalid_argument_3_n
jmp 0x405b38
mov al, 1
pop esi
ret