joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fdf87
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x538e98
call fcn.004f09f8
xor esi, esi
cmp dword [0x678578], esi
jne 0x4fdfcb
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fdfb6
mov dword [0x678578], edi
jmp 0x4fdfcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4fdfcb
mov dword [0x678578], 2
mov eax, dword [0x678578]
cmp eax, 2
je 0x4fe0aa
cmp eax, esi
je 0x4fe0aa
cmp eax, 1
jne 0x4fe010
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4fdff9
mov eax, dword [0x678494]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4fe017
xor eax, eax
jmp 0x4fe0bc
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004e9ae0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4fe04d
cmp edi, esi
jne 0x4fe066
lea ecx, [ebx + ebx]
call fcn.004f3762
mov edi, eax
cmp edi, esi
je 0x4fe010
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fe099
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4fe083
push esi
push esi
jmp 0x4fe089
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4fe0a5
push edi
call fcn.004e9e5d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4fe0bc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004f0a33
ret
Function at 0x4fe801
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x4fe869
push 0x3d
push esi
call fcn.004ecbbf
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x4fe869
cmp esi, eax
je 0x4fe869
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x677dd4]
sete cl
cmp eax, dword [0x677dd8]
mov dword [ebp - 4], ecx
jne 0x4fe84f
mov edi, eax
call fcn.004fe7a2
mov dword [0x677dd4], eax
cmp eax, ebx
jne 0x4fe8a8
cmp dword [ebp + 0xc], ebx
je 0x4fe871
cmp dword [0x677ddc], ebx
je 0x4fe871
call fcn.004fdbc2
test eax, eax
je 0x4fe8a8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4fe9ac
push 4
pop ecx
call fcn.004f3762
cmp eax, ebx
mov dword [0x677dd4], eax
je 0x4fe869
mov dword [eax], ebx
cmp dword [0x677ddc], ebx
jne 0x4fe8a8
push 4
pop ecx
call fcn.004f3762
cmp eax, ebx
mov dword [0x677ddc], eax
je 0x4fe869
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x677dd4]
sub edi, esi
push esi
call fcn.004fe755
mov edi, eax
test edi, edi
pop ecx
jl 0x4fe902
cmp dword [ebx], 0
je 0x4fe902
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004e9e5d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4fe8e9
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x4fe936
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4fe8e0
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.004f37d8
test eax, eax
mov esi, dword [ebp + 8]
je 0x4fe936
jmp 0x4fe931
cmp dword [ebp - 4], 0
jne 0x4fe9a5
test edi, edi
jge 0x4fe912
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.004f37d8
test eax, eax
je 0x4fe869
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x677dd4], eax
cmp dword [ebp + 0xc], 0
je 0x4fe990
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fe941
sub eax, edx
lea ecx, [eax + 2]
call fcn.004f3762
mov edi, eax
test edi, edi
je 0x4fe990
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x4fe95c
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4fe989
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.004e9e5d
pop ecx
cmp dword [ebp - 4], 0
je 0x4fe99d
push esi
call fcn.004e9e5d
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x4fe86c
push esi
call fcn.004e9e5d
pop ecx
xor eax, eax
jmp 0x4fe86c
Function at 0x502930
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004e9ae0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x5029fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x5029fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5029ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5029b9
or bh, 8
and edi, 0x8000000
je 0x5029d4
mov eax, dword [0x6799bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x5029fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x502dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x502dfb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x502e1f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x502e3a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x509209
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x50922b
cmp dword [edi + 0x3c], 0
jne 0x50922b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0051ae14
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0050926a
pop edi
pop esi
pop ebx
ret 8

Function at 0x50a9a6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50a9de
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0050e348
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050e320
jmp 0x50a9ea
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50a9ee
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x677700
mov ecx, edi
call fcn.0050e02a
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x50aa41
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x50aa54
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0050e348
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0050e320
jmp 0x50aa54
mov ecx, esi
call fcn.0050d114
test eax, eax
je 0x50aa54
push edi
mov ecx, eax
call fcn.0050a9a6
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x50c7a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50c7ea
call fcn.0051ae14
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50c7ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50c7e1
xor eax, eax
jmp 0x50c7f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050c7f8
pop edi
pop esi
pop ebx
ret 4
Function at 0x5233b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x52342e
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc

Function at 0x42406b
Capabilities:
Encode data using xor

Disassembly:
imul eax, dword [ebx - 0x44], 2
lodsb al, byte [esi]
xor dword [esi + ebp*8], esp
insb byte es:[edi], dx
insd dword es:[edi], dx
insb byte es:[edi], dx
das
pop edi
test al, 0xfb
invalid

Function at 0x627cf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6303c0
cmp edx, dword [eax]
je 0x627d13
add eax, 8
inc ecx
cmp eax, 0x630450
jl 0x627d04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6303c0]
jne 0x627e41
mov eax, dword [0x638d68]
cmp eax, 1
je 0x627e1b
test eax, eax
jne 0x627d44
cmp dword [0x6302e8], 1
je 0x627e1b
cmp edx, 0xfc
je 0x627e41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x627d7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006286d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00628b60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x627dbe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00628b60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ca54
push edi
call fcn.0062aa30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006286d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006286e0
lea eax, [ebp - 0xa0]
push 0x62ca34
push eax
call fcn.006286e0
push dword [esi + 0x6303c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.006286e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062a9a4
add esp, 0x2c
pop edi
jmp 0x627e41
lea eax, [ebp + 8]
lea esi, [esi + 0x6303c4]
push 0
push eax
push dword [esi]
call fcn.00628b60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x9af075
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9af09c
call fcn.00951578
mov dword [eax], esi
call fcn.00951565
push 0x16
pop esi
mov dword [eax], esi
call fcn.009521ba
mov eax, esi
jmp 0x9af0f1
test dword [ebp + 0xc], 0xfffffff9
jne 0x9af082
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9af0c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0095158b
pop ecx
call fcn.00951565
mov eax, dword [eax]
jmp 0x9af0f1
test al, 0x10
jne 0x9af0ef
test al, 1
je 0x9af0ef
test byte [ebp + 0xc], 2
je 0x9af0ef
call fcn.00951578
mov dword [eax], 5
call fcn.00951565
mov dword [eax], 0xd
jmp 0x9af0c0
xor eax, eax
pop esi
pop ebp
ret

Function at 0x401000
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push 0
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareExternal_ArrayNeptuneVer_1.0Driver
push 0x80000001
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40105e
push 4
lea eax, [esp + 8]
push eax
push 4
push 0
push str.Home
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret 0x10

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x7561925
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x3cbe7166
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401c0f
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR100.dll__mbslen]
push esi
push 0x40d584
call ebp
lea esi, [eax + 0x105]
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x401c80
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push ebx
push dword [esp + 0x1c]
call edi
mov esi, eax
test esi, esi
jne 0x401c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x401c74
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401c59
mov esi, str.JavaLow
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x18]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call dword [sym.imp.MSVCR100.dll_free]
xor eax, eax
inc eax
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
cmp esi, 0x104
jbe 0x401c56
push 0x40d590
call ebp
lea eax, [eax + esi + 1]
push eax
push ebx
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 0xc
xor ebx, ebx
push esi
push ebx
push dword [esp + 0x1c]
call edi
test eax, eax
jne 0x401c56
push ebx
call dword [sym.imp.MSVCR100.dll_free]
xor eax, eax
jmp 0x401c7e
Function at 0x402088
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x413118]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
push 0x103
lea eax, [ebp + 0x8d]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x80], ebx
mov byte [ebp + 0x8c], 0
call sub.MSVCR100.dll_memset
push 0
lea edx, [ebp + 0x8c]
mov ecx, esi
call fcn.004016b3
add esp, 0x10
test eax, eax
je 0x40219c
mov esi, dword [sym.imp.MSVCR100.dll__snprintf]
push edi
lea eax, [ebp + 0x8c]
push eax
push eax
push eax
push str._Xbootclasspath_a:__slibdeploy.jar____slibjavaws.jar____slibplugin.jar_
push 0x410
mov edi, 0x413908
push edi
call esi
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
mov dword [ebp - 0x7c], edi
call fcn.00402ca1
lea eax, [ebp + 0x8c]
push eax
push str._Djava.class.path__sclasses_
mov ebx, 0x208
push ebx
mov edi, 0x413700
push edi
call esi
mov ecx, dword [ebp - 0x80]
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], edi
call fcn.00402ca1
mov edi, 0x104
push edi
lea eax, [ebp - 0x78]
push eax
push 0x40d4c0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x402189
cmp eax, edi
jae 0x402189
lea eax, [ebp - 0x78]
push eax
push 0x40d4d8
push 0x40d4f0
push ebx
mov edi, 0x4134f8
push edi
call esi
mov ecx, dword [ebp - 0x80]
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], edi
call fcn.00402ca1
push dword [ebp - 0x80]
lea ecx, [ebp + 0x8c]
call fcn.00401e25
pop ecx
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp + 0x190]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
add ebp, 0x194
leave
ret
Function at 0x4054af
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x413118]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x413d25], 0
je 0x4054d2
mov al, byte [0x413d24]
jmp 0x405523
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x405515
cmp dword [ebp - 0x94], 6
jb 0x405515
mov al, 1
jmp 0x405517
xor al, al
mov byte [0x413d24], al
mov byte [0x413d25], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad48
leave
ret

Function at 0x405ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x413118]
xor eax, ebp
mov dword [ebp + 0x78c], eax
push ebx
push esi
mov esi, dword [ebp + 0x798]
push edi
xor ebx, ebx
push 0x7ff
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call sub.MSVCR100.dll_memset
mov edi, dword [ebp + 0x79c]
push edi
lea eax, [edi - 1]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x20019
call sub.MSVCR100.dll_memset
add esp, 0x18
cmp byte [ebp + 0x7a0], bl
je 0x405b15
mov dword [ebp - 0x78], 0x20119
push 0x40dfec
push str.SOFTWAREJavaSoftJava_Plug_in
push 0x40e018
lea eax, [ebp - 0x74]
push 0x800
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405b55
xor al, al
jmp 0x405ba4
lea eax, [ebp - 0x80]
push eax
push esi
push ebx
push ebx
push 0x40e020
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x78], ebx
jne 0x405b51
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405b80
sub eax, edx
add eax, 5
cmp eax, edi
ja 0x405b51
dec esi
mov al, byte [esi + 1]
inc esi
cmp al, bl
jne 0x405b91
mov edi, esi
mov esi, str._bin
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov al, 1
mov ecx, dword [ebp + 0x78c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
add ebp, 0x790
leave
ret
Function at 0x4067c5
Capabilities:
Query environment variable

Disassembly:
push 0x28
mov eax, 0x40c2c9
call fcn.0040ae7d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404fe0
mov esi, dword [ebp - 0x34]
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
pop ebx
jmp 0x406849
cmp dword [esi + 0x14], ebx
jb 0x4067f9
mov eax, dword [esi]
jmp 0x4067fb
mov eax, esi
push eax
push str._Dsun.java2d.noddraw
call fcn.00405ea9
pop ecx
pop ecx
cmp eax, 1
je 0x406850
cmp dword [esi + 0x14], ebx
jb 0x406816
mov eax, dword [esi]
jmp 0x406818
mov eax, esi
push eax
push str._Dsun.java2d.d3d
call fcn.00405ea9
pop ecx
pop ecx
test eax, eax
je 0x406850
cmp dword [esi + 0x14], ebx
jb 0x406832
mov eax, dword [esi]
jmp 0x406834
mov eax, esi
push eax
push str._Dsun.java2d.opengl
call fcn.00405ea9
pop ecx
pop ecx
cmp eax, 1
je 0x406850
add esi, 0x1c
cmp esi, dword [ebp - 0x30]
jne 0x4067f0
jmp 0x406856
mov dword [0x412c24], edi
cmp dword [0x412c24], edi
je 0x4068d8
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor eax, eax
mov byte [ebp - 0x20], 0
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x20]
push eax
push str.J2D_D3D
call esi
mov edi, dword [sym.imp.MSVCR100.dll__mbsicmp]
test eax, eax
je 0x4068a4
cmp eax, ebx
jae 0x4068a4
lea eax, [ebp - 0x20]
push 0x40e0fc
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x4068a4
and dword [0x412c24], eax
push ebx
lea eax, [ebp - 0x20]
push eax
push str.J2D_D3D_PRELOAD
call esi
test eax, eax
je 0x4068cf
cmp eax, ebx
jae 0x4068cf
lea eax, [ebp - 0x20]
push 0x40e114
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x4068cf
and dword [0x412c24], eax
cmp dword [0x412c24], 0
jne 0x4068ea
xor esi, esi
lea ecx, [ebp - 0x34]
call fcn.0040400d
mov eax, esi
call fcn.0040aec7
ret
push dword [ebp - 0x24]
push str.preloadD3D
call fcn.004065bd
pop ecx
pop ecx
mov esi, eax
jmp 0x4068da