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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101e5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1017b5cb
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1017b5cb
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1018bd38
cmp word [ecx], dx
je 0x1018bd38
mov eax, dword [0x101af4cc]
push edi
dec eax
push eax
push 0x101af3b8
call fcn.1018bc60
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1018bdab
cmp word [eax], dx
je 0x1018bdab
mov eax, dword [edi]
test eax, eax
je 0x1018bd5c
cmp word [eax], dx
je 0x1018bd5c
lea eax, [ebp - 0x10]
push eax
call fcn.1018b643
jmp 0x1018bd65
lea eax, [ebp - 0x10]
push eax
call fcn.1018b6de
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1018bdd5
mov eax, dword [0x101af3b4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101af0a8
call fcn.1018bc60
add esp, 0xc
test al, al
je 0x1018bdd5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1018bda0
cmp word [eax], di
je 0x1018bda0
lea eax, [ebp - 0x10]
push eax
call fcn.1018b643
pop ecx
jmp 0x1018bdd7
lea eax, [ebp - 0x10]
push eax
call fcn.1018b6de
jmp 0x1018bd9d
mov eax, dword [edi]
test eax, eax
je 0x1018bdc2
cmp word [eax], dx
je 0x1018bdc2
lea eax, [ebp - 0x10]
push eax
call fcn.1018b5da
pop ecx
jmp 0x1018bdd5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1018bea0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1018bae5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1018bea0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1018bea0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1018bea0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1018be2d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1017f47d
test ebx, ebx
je 0x1018be9b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1017f47d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1018bea0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1018bea0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.101932f3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1018bea2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10135b8b
leave
ret
Function at 0x101917e0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101916b4

Function at 0x10193dbf
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10193be3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10193f2e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10193f2e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10193ee3
jg 0x10193e1b
test eax, eax
je 0x10193ed9
push 1
push 0x1000
call fcn.1017e6e3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10193e3e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10193ed0
push 0x8000
push ebx
call fcn.10193a18
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10193e67
jg 0x10193e62
cmp ecx, 0x1000
jb 0x10193e67
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1018048b
add esp, 0x10
cmp eax, 0xffffffff
je 0x10193eac
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10193e62
jl 0x10193e93
test ecx, ecx
jne 0x10193e54
push dword [ebp - 0xc]
push ebx
call fcn.10193a18
push esi
call fcn.1017e746
add esp, 0xc
xor ebx, ebx
jmp 0x10193f3c
cmp byte [edi + 0x24], 0
je 0x10193ec3
cmp dword [edi + 0x20], 5
jne 0x10193ec3
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10193ece
mov ebx, dword [edi + 0x18]
jmp 0x10193ed0
xor ebx, ebx
push esi
call fcn.1017e746
pop ecx
jmp 0x10193f3c
test ecx, ecx
jg 0x10193ea5
jl 0x10193ee3
test eax, eax
jae 0x10193ea5
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1017ad89
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10193f03
cmp byte [edi + 0x1c], 0
je 0x10193ea5
jmp 0x10193f34
push ebx
call fcn.1017311d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10193ea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10193f3c
cmp byte [edi + 0x1c], 0
je 0x10193f39
mov ebx, dword [edi + 0x18]
jmp 0x10193f3c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1017ad89
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10196e60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10196e8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10196e8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
or dword [ebp - 0x18], 0xffffffff
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], 4
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
jl 0x40108c
mov eax, dword [edi + 4]
mov esi, str._splash
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x401066
cmp cl, bl
je 0x401062
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x401066
inc esi
inc esi
inc eax
inc eax
cmp cl, bl
jne 0x401044
xor eax, eax
jmp 0x40106b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40108c
push dword [edi + 8]
call fcn.004102ba
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call fcn.0040582d
add esp, 0x10
push ebx
call fcn.0041015a
call fcn.00401dfc
call fcn.004021cc
mov esi, eax
call fcn.00402470
test eax, eax
jne 0x4010a5
cmp esi, ebx
jne 0x4010aa
call fcn.00402188
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
call fcn.004018b8
add esp, 0x3c
cmp dword [ebp - 4], ebx
je 0x401128
cmp dword [ebp - 8], ebx
je 0x401128
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040119d
push dword [ebp - 4]
mov esi, eax
call fcn.004100fe
push dword [ebp - 8]
call fcn.004100fe
add esp, 0x10
cmp esi, 1
jne 0x401128
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0040461f
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jne 0x401143
call fcn.00402d7e
push str.http:__java.sun.com_products_autodl_j2se
mov dword [ebp - 0xc], eax
call fcn.00417999
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.004028c7
push dword [ebp - 0x1c]
mov esi, eax
push edi
push dword [ebp + 8]
call fcn.00401fd2
add esp, 0x14
cmp eax, 1
je 0x401173
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0040461f
add esp, 0xc
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push ebx
push edi
push dword [ebp + 8]
push dword [ebp - 0x34]
push esi
call fcn.004012f3
add esp, 0x2c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
lea eax, [ebp - 4]
push edi
push eax
call fcn.004043a6
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x401ceb
push 5
call fcn.00405b4a
push eax
call fcn.00405dfb
pop ecx
pop ecx
call fcn.00404ac1
push eax
push 0x5c
call fcn.004048b9
push eax
lea eax, [ebp - 0x44c]
push str._s_c_s
push eax
call fcn.00410395
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
push 0x41d2fc
push eax
call fcn.00410395
lea eax, [ebp - 0x4c]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
mov dword [ebp - 0x2c], str.JavaWSSplashScreen
mov dword [ebp - 0x28], str._splash
call fcn.00404845
and word [ebp - 0x1c], 0
xor eax, eax
lea edi, [ebp - 0x1a]
add esp, 0x2c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401d8f
push 6
call fcn.00405b4a
push eax
call fcn.00405dfb
pop ecx
pop ecx
push 0
lea eax, [ebp - 0xc]
push 6
push eax
push edi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 6
je 0x401db2
push 7
call fcn.00405b4a
push eax
call fcn.00405dfb
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
call fcn.004102ba
test eax, eax
pop ecx
mov dword [0x41d030], eax
jg 0x401dd4
push 8
call fcn.00405b4a
push eax
call fcn.00405dfb
pop ecx
pop ecx
push edi
call fcn.00404820
push ebx
call fcn.00404820
pop ecx
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x401dfc
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
push ebx
push esi
push edi
push str.PATH
call fcn.004103e7
pop ecx
mov dword [ebp - 4], eax
call fcn.004048b9
cmp dword [ebp - 4], 0
mov esi, eax
mov dword [ebp - 8], esi
mov edi, esi
je 0x401e60
or ebx, 0xffffffff
xor eax, eax
mov ecx, ebx
repne scasb al, byte es:[edi]
mov edi, dword [ebp - 4]
not ecx
dec ecx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
push eax
call fcn.00410464
push esi
mov edi, eax
push dword [ebp - 4]
push str.PATH_s___s_
push edi
call fcn.00410395
add esp, 0x14
jmp 0x401e85
or ebx, 0xffffffff
xor eax, eax
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
push ecx
call fcn.00410464
mov edi, eax
push esi
push str.PATH__s_
push edi
call fcn.00410395
add esp, 0x10
push edi
call fcn.00418576
pop ecx
mov edi, esi
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x210]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x210]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41d30c
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x210]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.jawstmp.jar
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x350]
mov ecx, edx
push eax
and ecx, 3
lea eax, [ebp - 0x210]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
je 0x401fcd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 8]
mov ecx, ebx
xor eax, eax
lea edx, [ebp - 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41d30c
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x10c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.javaws.jar
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x10c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4043a6
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, 0x14
and word [ebp - 0x14], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x12]
mov dword [ebp - 4], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00404791
push str.127.0.0.1
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x40442d
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, edi
je 0x404426
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, edi
je 0x404426
push closesocket
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, edi
jne 0x404431
push esi
call fcn.00404820
pop ecx
mov eax, edi
jmp 0x404444
push dword [ebp - 0x12]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [ebp + 8]
movzx eax, ax
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x404448
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, 0x10
and word [ebp - 0x10], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00404791
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
push str.127.0.0.1
mov word [ebp - 0xe], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x4044b2
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
jne 0x4044b6
push esi
call fcn.00404820
pop ecx
mov eax, edi
jmp 0x4044b8
mov eax, esi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3fd
jae 0x40451f
push dword [ebp + 0xc]
lea eax, [ebp - 0x400]
push str._s_r_n
push eax
call fcn.00410395
lea edi, [ebp - 0x400]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
lea eax, [ebp - 0x400]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
leave
ret

Function at 0x40461f
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 0
je 0x40463c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x40463c
push eax
call fcn.00410aea
pop ecx
push 0
call fcn.0041015a
Function at 0x404704
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x21010
push str.Java_TM__Web_Start_1.4.2_03
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xb
call fcn.00405b4a
mov esi, 0x41ff50
push eax
push esi
call fcn.00410b80
add esp, 0xc
cmp dword [0x42832c], 0
push edi
je 0x404745
call fcn.00410b14
pop ecx
jmp 0x404753
push str._t_s_n
push esi
call fcn.00410b80
add esp, 0xc
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0xc
call fcn.00405b4a
pop ecx
push eax
push str._s__d_n
push esi
call fcn.00410b80
add esp, 0x10
push 0xffffffffffffffff
call fcn.0041015a
pop edi
pop esi

Function at 0x404791
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp dword [0x427ad8], 0
jne 0x404819
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
pop ebx
push str.ws2_32.dll
call edi
mov esi, eax
test esi, esi
jne 0x4047d7
push str.wsock32.dll
call edi
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x4047d7
push 0xd
call fcn.00405b4a
push eax
call fcn.00404704
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x4047f7
push 0xe
call fcn.00405b4a
push eax
call fcn.00404704
pop ecx
pop ecx
test ebx, ebx
je 0x40480c
push str.WSASendDisconnect
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x427ad4], eax
pop edi
pop esi
mov dword [0x427ad8], 1
pop ebx
add esp, 0x190
ret

Function at 0x404845
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edi
mov eax, dword [edi]
test eax, eax
je 0x404866
push eax
call fcn.00404588
mov dword [esi], eax
mov eax, dword [esi + 4]
add esi, 4
pop ecx
jmp 0x404851
cmp dword [ebp + 8], 1
jne 0x404881
push edi
push dword [ebp + 0xc]
push 1
call fcn.004189e5
add esp, 0xc
push 0
call fcn.0041015a
cmp dword [ebp + 8], 0
push edi
push dword [ebp + 0xc]
jne 0x404897
push 1
call fcn.004189e5
add esp, 0xc
jmp 0x4048a3
push 0
call fcn.004189e5
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x404dfa
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push reloc.WSOCK32.dll_bind
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404fa1
push edi
push esi
push esi
push esi
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x11c]
mov edi, 0x104
push eax
mov dword [ebp - 8], esi
mov dword [ebp + 0xc], edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x404f97
xor ecx, ecx
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x10], edi
jbe 0x404e80
cmp byte [ebp + eax - 0x11c], 0x2e
jne 0x404e75
inc ecx
cmp ecx, 1
jg 0x404e9e
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x404e65
cmp ecx, 1
jg 0x404e9e
push 3
lea eax, [ebp - 0x11c]
push 0x41d3dc
push eax
call fcn.004106b0
add esp, 0xc
test eax, eax
jne 0x404f7a
lea eax, [ebp - 0x11c]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
lea eax, [ebp - 0x220]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x220]
push esi
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404f7a
push edi
call fcn.00410464
pop ecx
mov ecx, dword [ebx]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
mov dword [ecx + edx*8 + 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
lea eax, [eax + eax*2]
push dword [ecx + eax*8 + 0xc]
lea eax, [ebp - 0x18]
push eax
push esi
push str.JavaHome
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [ebx]
jne 0x404f61
lea edx, [eax + eax*2]
mov edi, str._binjavaw.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edx
not ecx
sub edi, ecx
mov edx, ecx
mov ecx, dword [ebp - 0x14]
mov esi, edi
mov edi, dword [eax + ecx*8 + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [ebx]
xor esi, esi
mov edi, 0x104
jmp 0x404f71
mov ecx, dword [ebp + 8]
lea eax, [eax + eax*2]
push dword [ecx + eax*8 + 0xc]
call fcn.004100fe
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push esi
push esi
push esi
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp + 0xc], edi
push dword [ebp - 8]
jmp 0x404e4a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret