joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test eax, eax
cmove eax, dword [0x41802c]
mov dword [ebp - 4], eax
mov esi, eax
xor eax, eax
cmp byte [esi], 0
je 0x40ef9f
or edx, 0xffffffff
inc edx
cmp byte [esi + edx], 0
jne 0x40ef87
lea edi, [edx + 1]
cmp byte [esi], 0x3d
je 0x40ef98
add eax, edi
add esi, edi
cmp byte [esi], 0
jne 0x40ef84
inc eax
push eax
call fcn.0040d640
pop ecx
mov edx, eax
mov dword [0x4202d0], eax
test eax, eax
je 0x40effd
mov eax, dword [ebp - 4]
mov esi, eax
cmp byte [esi], 0
je 0x40efe4
or eax, 0xffffffff
inc eax
cmp byte [esi + eax], 0
jne 0x40efbf
lea edi, [eax + 1]
cmp byte [esi], 0x3d
je 0x40efdd
xor ecx, ecx
mov al, byte [esi + ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40efd0
add edx, edi
add esi, edi
cmp byte [esi], 0
jne 0x40efbc
mov byte [edx], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x41802c]
je 0x40f005
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40f005
push 0xfffffffffffffffc
call fcn.0040f120
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4130f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea esi, [edx + eax]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov edi, eax
cmp edi, esi
jae 0x4131d4
lea eax, [ebp - 0xd]
lea edx, [ebp - 0x80c]
lea ecx, [ebp - 0x80c]
cmp eax, ecx
jbe 0x413156
cmp edi, esi
jae 0x413156
cmp byte [edi], 0xa
jne 0x41314a
inc dword [ebp - 8]
mov byte [edx], 0xd
inc edx
inc edx
inc edi
mov cl, byte [edi - 1]
mov byte [edx - 1], cl
cmp edx, eax
jb 0x41313a
lea eax, [ebp - 0x80c]
mov ebx, edx
sub ebx, eax
push dword [ebp + 0xc]
call fcn.00413b30
pop ecx
test eax, eax
je 0x41318a
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push ebx
lea edx, [ebp - 0x80c]
push edx
push dword [0x4206d4]
push eax
call fcn.00413ce0
add esp, 0x10
push dword [ebp + 0xc]
call fcn.00413ae0
pop ecx
push 0
lea edx, [ebp - 0x810]
push edx
push ebx
lea edx, [ebp - 0x80c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4131cb
mov eax, dword [ebp - 0x810]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x810], ebx
jb 0x4131d4
inc edi
cmp edi, esi
jb 0x413127
jmp 0x4131d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x814], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov esi, eax
cmp esi, dword [ebp - 0x814]
jae 0x41331d
lea eax, [ebp - 0xe]
lea edx, [ebp - 0x80c]
lea ecx, [ebp - 0x80c]
cmp eax, ecx
jbe 0x413282
cmp esi, dword [ebp - 0x814]
jae 0x413282
cmp word [esi], 0xa
jne 0x413270
add dword [ebp - 8], 2
mov word [edx], 0xd
add edx, 2
add edx, 2
add esi, 2
mov cx, word [esi - 2]
mov word [edx - 2], cx
cmp edx, eax
jb 0x413256
lea eax, [ebp - 0x80c]
mov edi, edx
sub edi, eax
push ebx
call fcn.00413b30
pop ecx
test eax, eax
je 0x4132e6
push ebx
call fcn.00413ae0
pop ecx
push 0
lea edx, [ebp - 0x810]
push edx
mov edx, edi
shr edx, 1
push edx
lea edx, [ebp - 0x80c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x413314
shl dword [ebp - 0x810], 1
mov eax, dword [ebp - 0x810]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x810], edi
jb 0x41331d
add esi, 2
cmp esi, dword [ebp - 0x814]
jb 0x413243
jmp 0x41331d
push ebx
call fcn.00413ae0
pop ecx
push 0
lea edx, [ebp - 0x810]
push edx
push edi
lea edx, [ebp - 0x80c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4132c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41331d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0xc0c], edx
mov eax, dword [ebp + 0x10]
mov ebx, eax
mov dword [ebp - 0xc08], 0
cmp ebx, dword [ebp - 0xc0c]
jae 0x4133fc
lea eax, [ebp - 2]
lea edx, [ebp - 0x400]
lea ecx, [ebp - 0x400]
cmp eax, ecx
jbe 0x4133b0
cmp ebx, dword [ebp - 0xc0c]
jae 0x4133b0
cmp word [ebx], 0xa
jne 0x41339e
mov word [edx], 0xd
add edx, 2
add edx, 2
add ebx, 2
mov cx, word [ebx - 2]
mov word [edx - 2], cx
cmp edx, eax
jb 0x413388
push 0
push 0
push 0x800
lea eax, [ebp - 0xc00]
push eax
lea eax, [ebp - 0x400]
sub edx, eax
sar edx, 1
push edx
lea eax, [ebp - 0x400]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x413408
lea esi, [ebp + eax - 0xc00]
lea eax, [ebp - 0xc00]
cmp esi, eax
jbe 0x413467
lea edi, [ebp - 0xc00]
jmp 0x41343a
mov dword [ebp - 0xc10], 0
jmp 0x413414
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc08]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc10]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
jmp 0x4134aa
push dword [ebp + 0xc]
call fcn.00413ae0
pop ecx
push 0
lea edx, [ebp - 0xc04]
push edx
mov edx, esi
sub edx, edi
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413486
add edi, dword [ebp - 0xc04]
cmp edi, esi
jb 0x41343a
mov eax, ebx
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0xc08], eax
add ebx, 2
cmp ebx, dword [ebp - 0xc0c]
jb 0x413375
jmp 0x4133fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc08]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414290
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x2000
call fcn.0040d640
pop ecx
mov esi, eax
test esi, esi
je 0x4142f9
push 0x1000
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x4142fd
cmp edi, 0x1000
ja 0x414315
mov ebx, 1
jmp 0x4142cd
xor ebx, ebx
test ebx, ebx
je 0x4142dd
push esi
push dword [ebp + 0xc]
call dword [0x4192f4]
jmp 0x4142eb
push 0x415ca0
push dword [ebp + 0xc]
call dword [0x4192f4]
push esi
call fcn.0040d9f0
pop ecx
test ebx, ebx
setne al
jmp 0x414340
xor al, al
jmp 0x414340
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x4142cb
push esi
call fcn.0040d9f0
pop ecx
xor al, al
jmp 0x414340
lea eax, [edi + edi]
push eax
push esi
call fcn.0040dda0
add esp, 8
mov esi, eax
test esi, esi
je 0x4142f9
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4142c4
push esi
call fcn.0040d9f0
pop ecx
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x414850
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov edx, dword [ebp + 8]
lea edi, [ebp - 0x208]
xor eax, eax
mov ecx, 0x208
rep stosb byte es:[edi], al
lea edi, [ebp - 0x410]
xor eax, eax
mov ecx, 0x208
rep stosb byte es:[edi], al
push edx
push 0x104
lea eax, [ebp - 0x410]
push eax
call fcn.0040caa0
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call fcn.00414740
push 0x5c
lea eax, [ebp - 0x410]
push eax
call fcn.0040e0f0
add esp, 8
mov esi, eax
xor edi, edi
jmp 0x41493d
lea eax, [ebp - 0x410]
neg eax
add eax, esi
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x410]
push eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call fcn.0040e110
add esp, 0x10
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x414915
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x41492d
push 0x5c
lea eax, [esi + 2]
push eax
call fcn.0040e0f0
add esp, 8
mov esi, eax
jmp 0x41493d
cmp byte [0x41cfdc], 0
je 0x41492d
lea eax, [ebp - 0x208]
push eax
push 1
call dword [0x419304]
push 0x5c
lea eax, [esi + 2]
push eax
call fcn.0040e0f0
add esp, 8
mov esi, eax
test esi, esi
jne 0x4148b7
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41496f
test eax, 0x10
je 0x41496f
mov eax, 1
ret 4
xor eax, eax
ret 4
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
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x48225576
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x71946d12
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4050f4
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
lea eax, [edi + 8]
xor esi, esi
cmp dword [eax], esi
je 0x40516d
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x40516d
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0x405074
push esi
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x40516d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_recv]
push 1
pop edi
mov ebx, eax
mov dword [ebp - 8], edi
cmp dword [ebp - 4], esi
jne 0x405168
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40515a
mov eax, ebx
pop ebx
jmp 0x405170
or eax, 0xffffffff
pop edi
pop esi
leave
ret 0xc

Function at 0x4051af
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
push 0x104
xor edi, edi
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0x10c]
mov esi, dword [ebp + 8]
add esp, 0xc
xor edx, edx
cmp ecx, edi
jbe 0x405221
lea eax, [ebp - 0x108]
cmp dword [eax], esi
je 0x4051f4
inc edx
add eax, 4
cmp edx, ecx
jb 0x4051e6
jmp 0x405221
lea eax, [ecx - 1]
cmp edx, eax
jae 0x40521a
push ebx
lea eax, [ebp + edx*4 - 0x108]
mov ecx, dword [eax + 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10c]
inc edx
lea ebx, [ecx - 1]
add eax, 4
cmp edx, ebx
jb 0x405203
pop ebx
dec ecx
mov dword [ebp - 0x10c], ecx
xor eax, eax
cmp ecx, edi
jbe 0x405239
lea edx, [ebp - 0x108]
cmp dword [edx], esi
je 0x405239
inc eax
add edx, 4
cmp eax, ecx
jb 0x40522d
cmp eax, ecx
jne 0x40524f
cmp ecx, 0x40
jae 0x40524f
mov dword [ebp + eax*4 - 0x108], esi
inc dword [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.WSOCK32.dll_select]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x6f3e4cd4
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, str..q2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x71c7352e
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x10016cdf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10016b5c
Function at 0x4013dd
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0xfb4]
mov eax, 0x1034
call fcn.004104c0
mov eax, dword [0x454684]
xor eax, ebp
mov dword [ebp + 0xfb0], eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004075ec
mov esi, eax
pop ecx
cmp esi, 0xffffffff
jne 0x40141b
push 5
call fcn.00409f46
pop ecx
jmp 0x401533
push ebx
push edi
call fcn.00408ace
push eax
push 0x5c
call fcn.00408582
push eax
push 0x44e12c
mov edi, 0x400
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00408b2a
push dword [ebp - 0x7c]
lea eax, [ebp + 0x7a8]
push 0x44e13c
push edi
push eax
call fcn.00408b2a
lea eax, [ebp + 0x7a8]
mov dword [ebp - 0x78], str.JavaWSSplashScreen
mov dword [ebp - 0x70], eax
xor ebx, ebx
mov eax, dword [ebp + 0xfbc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x74], 0x44e16c
push eax
push ebx
mov dword [ebp - 0x68], ebx
call fcn.004084d9
add esp, 0x34
test eax, eax
jne 0x401523
lea edi, [ebp - 0x68]
mov dword [ebp - 0x80], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4014c0
push esi
call fcn.0040841f
push 6
jmp 0x40152a
push ebx
push 6
lea eax, [ebp + 0xfa8]
push eax
push edi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 6
je 0x4014e6
push edi
call fcn.0040841f
push esi
call fcn.0040841f
push 7
jmp 0x40150a
lea eax, [ebp + 0xfa8]
push eax
call fcn.0041ee47
mov dword [0x44e128], eax
pop ecx
push edi
test eax, eax
jg 0x401514
call fcn.0040841f
push esi
call fcn.0040841f
push 8
call fcn.00409f46
add esp, 0xc
jmp 0x401531
call fcn.0040841f
push esi
call fcn.0040841f
xor eax, eax
jmp 0x40152f
push esi
call fcn.0040841f
push ebx
call fcn.00409f46
pop ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp + 0xfb0]
xor ecx, ebp
pop esi
call fcn.004104a6
add ebp, 0xfb4
leave
ret
Function at 0x405f37
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
push 0x4614d8
call fcn.004121d0
pop ecx
pop ecx
sub eax, esi
je 0x405f55
sub eax, 1
je 0x405f6e
jmp 0x405f69
mov eax, dword [ebp + 8]
mov dword [0x46151c], eax
call fcn.004067f3
call fcn.00406116
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret
mov eax, dword [0x461518]
test eax, eax
je 0x405f84
push eax
call fcn.00405fb1
pop ecx
mov dword [0x461518], esi
mov eax, dword [0x461520]
test eax, eax
je 0x405f94
push eax
call fcn.004201b6
pop ecx
push str.Error_during_parsing_jnlp_file..._n
push 2
call fcn.00420ace
pop ecx
push eax
call fcn.00406a13
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.004204e5
int3

Function at 0x4072e9
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x23c
mov eax, dword [0x454684]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
mov ebx, dword [esp + 0x244]
lea eax, [esp + 4]
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x14], 0x1fe
push str.FORCED_FX_ROOT
push ebp
push eax
mov edi, ebp
mov dword [esp + 0x1c], ebp
mov esi, ebp
call fcn.0041f194
add esp, 0xc
cmp dword [esp + 0x10], esi
je 0x407377
test eax, eax
jne 0x407377
push 0x34
push 1
call fcn.004201ab
push str.2.0
mov esi, eax
call fcn.00414344
mov ecx, eax
lea eax, [esi + 8]
push eax
push ecx
mov dword [esi + 4], ecx
call fcn.00406fdf
push dword [esp + 0x24]
call fcn.00414344
mov dword [esi], eax
push dword [esp + 0x28]
call fcn.004201b6
add esp, 0x1c
jmp 0x407440
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push str.SoftwareOracleJavaFX
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40739d
xor eax, eax
jmp 0x407442
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
push edi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebp, eax
test ebp, ebp
jne 0x407422
test ebx, ebx
je 0x4073d1
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.004070ed
pop ecx
pop ecx
test eax, eax
je 0x407422
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00406fdf
pop ecx
pop ecx
test esi, esi
je 0x407409
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00407092
pop ecx
pop ecx
test eax, eax
je 0x407422
lea eax, [esp + 0x48]
push esi
push eax
call fcn.00407485
pop ecx
pop ecx
jmp 0x407422
push 0x34
push 1
call fcn.004201ab
mov esi, eax
lea eax, [esp + 0x50]
push esi
push eax
call fcn.00407485
add esp, 0x10
inc edi
mov dword [esp + 0x14], 0x1fe
push 0
test ebp, ebp
pop ebp
je 0x40739d
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004104a6
add esp, 0x23c
ret
Function at 0x407485
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1198]
mov eax, 0x1218
call fcn.004104c0
mov eax, dword [0x454684]
xor eax, ebp
mov dword [ebp + 0x1194], eax
push esi
mov esi, dword [ebp + 0x11a4]
lea eax, [ebp - 0x74]
push edi
mov edi, dword [ebp + 0x11a0]
push edi
push 0x44fbac
push 0x44fbdc
push 0xffffffffffffffff
push 0x1000
push eax
call fcn.004046de
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x74]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407521
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x208
push eax
lea eax, [ebp + 0xf8c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.Path
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
test eax, eax
je 0x40753a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp + 0x1194]
pop edi
xor ecx, ebp
pop esi
call fcn.004104a6
add ebp, 0x1198
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x80], 1
jne 0x407521
cmp dword [esi + 4], 0
je 0x407555
push dword [esi + 4]
call fcn.004201b6
pop ecx
push edi
call fcn.00414344
mov ecx, eax
lea eax, [esi + 8]
push eax
push ecx
mov dword [esi + 4], ecx
call fcn.00406fdf
add esp, 0xc
cmp dword [esi], 0
je 0x40757a
push dword [esi]
call fcn.004201b6
pop ecx
lea ecx, [ebp + 0xf8c]
push ecx
call fcn.00414344
mov dword [esi], eax
xor eax, eax
pop ecx
inc eax
jmp 0x407523

Function at 0x4075ec
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x454684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040837f
push 2
pop esi
push 0x44fc50
mov word [ebp - 0x14], si
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x40768d
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, edi
je 0x407686
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, edi
je 0x407686
push accept
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, edi
je 0x407686
push dword [ebp - 0x12]
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx eax, ax
mov dword [ebx], eax
mov eax, esi
jmp 0x40768f
push esi
call fcn.0040841f
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104a6
leave
ret
Function at 0x40772f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x454684]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0xc], xmm0
call fcn.0040837f
push 2
pop esi
push dword [ebp + 8]
mov word [ebp - 0x14], si
call dword [sym.imp.WSOCK32.dll_htons]
push 0x44fc68
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407786
or eax, 0xffffffff
jmp 0x4077a3
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x4077a1
push esi
call fcn.0040841f
pop ecx
jmp 0x407781
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004104a6
leave
ret

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

Disassembly:
cmp dword [esp + 8], 0
push ebx
push ebp
push edi
je 0x407906
mov ecx, dword [esp + 0x14]
xor ebp, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x407896
sub ecx, edx
sar ecx, 1
lea ebx, [ecx*2 + 6]
lea eax, [ebx + ebx]
push eax
call fcn.004201d1
mov edi, eax
pop ecx
test edi, edi
je 0x407906
push dword [esp + 0x14]
push str._s_r_n
push ebx
push edi
call fcn.00408b2a
mov ecx, edi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x4078d4
sub ecx, edx
sar ecx, 1
push ebp
lea eax, [ecx + ecx]
push eax
push edi
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_send]
xor ebx, ebx
cmp eax, 0xffffffff
push edi
setne bl
call fcn.004201b6
pop ecx
mov eax, ebx
jmp 0x407908
xor eax, eax
pop edi
pop ebp
pop ebx
ret

Function at 0x40790c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push esi
push edi
xor esi, esi
mov ebp, 0x461528
xor edi, edi
push edi
push 2
push ebp
jmp 0x40794f
add esi, esi
test eax, eax
je 0x40796f
movzx eax, word [esi + 0x461528]
cmp eax, 0xa
je 0x40796f
cmp eax, 0xd
lea esi, [edi + 1]
cmove esi, edi
cmp esi, 0x3ff
jge 0x407964
push 0
push 2
lea eax, [esi*2 + 0x461528]
mov edi, esi
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x40791e
xor eax, eax
pop edi
pop esi
pop ebp
ret
xor ecx, ecx
mov word [0x461d26], cx
jmp 0x407980
cmp esi, 0x800
jae 0x407984
xor eax, eax
mov word [esi + 0x461528], ax
mov eax, ebp
jmp 0x407960
call fcn.0041060d
int3