joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cc70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46eb68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004673e0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c610
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046730e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00463bc9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00463bc9
push 1
push 0
push 0
mov ecx, esi
call fcn.00463b71
push 1
push 0
push 1
mov ecx, esi
call fcn.00463b71
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467452
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43cdf0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46eb88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004673e0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c610
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046730e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ceb4
cmp dword [esp + 0x40], 1
jne 0x43ceb2
cmp ecx, eax
jge 0x43ceb4
mov eax, ecx
cmp eax, 0xc8
jge 0x43cec0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043cc70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467452
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d630
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46ebf3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00461fea
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00467688
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468ba4
test eax, eax
je 0x43d74c
mov ecx, dword [esp + 0x3c]
call fcn.004676b5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d710
push edi
mov ecx, esi
call fcn.00464d10
mov ecx, esi
call fcn.0043d8b0
cmp dword [esp + 0x38], 1
jne 0x43d745
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00464e4b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440170
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4401a3
push esi
call fcn.00443270
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44019c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440229
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440212
mov eax, dword [esi + 8]
test eax, eax
je 0x4401c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44020e
cmp eax, 2
je 0x440212
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4401ba
cmp eax, 3
je 0x4401ed
cmp eax, 1
jne 0x4401ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4401ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4401ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440250
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440238
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440250
add esp, 4
pop esi
ret

Function at 0x44b590
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44b5f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44b5f6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44b5d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44c130
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c280
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c150
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44c131
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c280
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c150
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44c180
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44c1d7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44c1ed
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044c210
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44c210
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44c2a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44c2e9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44c760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46f120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044c310
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c390
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c390
lea ecx, [esi + 0xc]
call fcn.004609c6
lea ecx, [esi + 0x10]
call fcn.004609c6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044ebc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044ebc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044ebc0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00460a3b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00460a3b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44d408
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f348
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44d418
call fcn.0044d930
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44d4fb
cmp byte [edi], 0
je 0x44d4fb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44d43d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044c130
test eax, eax
jne 0x44d45d
push 0x496460
lea ecx, [esi + 0x38]
call fcn.00460b78
jmp 0x44d4fb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044c180
test eax, eax
jne 0x44d48c
mov ecx, esi
call fcn.0044c280
push edi
add esi, 0x38
push 0x49643c
push esi
call fcn.0045e9d7
add esp, 0xc
jmp 0x44d4fb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044e1b0
test eax, eax
je 0x44d4f4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044d5d0
test eax, eax
jne 0x44d510
push edi
lea eax, [esi + 0x38]
push 0x496418
push eax
call fcn.0045e9d7
add esp, 0xc
mov ecx, esi
call fcn.0044d930
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44d5b8
mov ecx, dword [0x4966d0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045e9d7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044c230
test eax, eax
jne 0x44d57a
push 0x4963fc
lea ecx, [esi + 0x38]
call fcn.00460b78
jmp 0x44d58a
push 0xfa
mov ecx, esi
call fcn.0044e1b0
test eax, eax
jne 0x44d5a7
mov ecx, esi
call fcn.0044d930
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00460a3b
jmp 0x44d4fb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00460a3b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x462ddf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462e17
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.00460e96
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460e6e
jmp 0x462e23
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4644cd
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 0x46450f
call fcn.0046a04e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46450f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464506
xor eax, eax
jmp 0x464517
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046451d
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a57e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a5ac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a5ca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a4e4
jmp 0x46a5ca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a5ca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a4e4
test edi, edi
mov eax, edi
jne 0x46a5b4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40c391
Capabilities:
Create thread

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [esp + 0x134]
push ebp
push esi
mov esi, dword [sym.imp.kernel32.dll_CreateEventA]
xor ebp, ebp
push edi
xor edi, edi
mov dword [ebx + 0xc], 0xbc2
mov eax, dword [0x4ab368]
inc ebp
push edi
push edi
push ebp
push edi
mov dword [ebx + 0x18], eax
call esi
push edi
push edi
push ebp
push edi
mov dword [ebx + 0x20], eax
call esi
push edi
push edi
push ebp
push edi
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x38], eax
call fcn.004480ec
mov dword [ebx + 0x3c], eax
lea edi, [esp + 0x20]
xor eax, eax
stosd dword es:[edi], eax
push ebp
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor edi, edi
lea eax, [esp + 0x20]
push edi
push edi
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.SunJavaUpdateRecheckUpdateEvent
lea eax, [esp + 0x24]
mov dword [esp + 0x14], 0xc
push edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push edi
push eax
call esi
push dword [ebx + 0x20]
mov esi, dword [sym.imp.kernel32.dll_ResetEvent]
mov dword [ebx + 0x40], eax
call esi
push dword [ebx + 0x24]
call esi
push dword [ebx + 0x38]
call esi
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push 0x40c9dd
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x40c472
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebx + 0x20]
call esi
mov esi, dword [sym.imp.user32.dll_LoadStringA]
lea eax, [ebx + 0x54]
mov edi, 0x104
push edi
push eax
push 0x7b
push dword [ebx + 0x18]
call esi
push edi
lea eax, [esp + 0x38]
push eax
push 0x7c
push dword [ebx + 0x18]
call esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x40c4c7
lea eax, [esp + 0x34]
push eax
lea eax, [ebx + 0x158]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov ecx, dword [esp + 0x138]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004484c4
add esp, 0x12c
ret 4
Function at 0x40fef6
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebx, ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x10], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x10], edi
mov esi, edi
cmp edi, ebp
jge 0x40ff4f
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x30
add ecx, ebx
lea eax, [ecx - 0x30]
push eax
call fcn.00403c56
movzx eax, al
xor eax, 1
imul ecx, edi, 0x30
inc eax
add esi, eax
imul eax, esi, 0x30
add ecx, ebx
add eax, ebx
push eax
call fcn.0040ad54
mov edi, esi
cmp esi, ebp
jl 0x40ff19
mov eax, dword [esp + 0x1c]
cmp esi, ebp
jne 0x40ff6e
test al, 1
jne 0x40ff6e
imul eax, eax, 0x30
imul ecx, edi, 0x30
add eax, 0xffffffd0
add eax, ebx
add ecx, ebx
push eax
call fcn.0040ad54
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x10], edi
jge 0x40ffa0
push dword [esp + 0x20]
lea esi, [edi - 1]
sar esi, 1
imul ebp, esi, 0x30
add ebp, ebx
mov ecx, ebp
call fcn.00403c56
test al, al
je 0x40ffa0
imul ecx, edi, 0x30
push ebp
add ecx, ebx
call fcn.0040ad54
mov edi, esi
cmp dword [esp + 0x10], esi
jl 0x40ff74
push dword [esp + 0x20]
imul ecx, edi, 0x30
add ecx, ebx
call fcn.0040ad54
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x4102de
Capabilities:
Delete registry key

Disassembly:
push 0x38
mov eax, 0x473013
call fcn.00448da9
mov dword [ebp - 0x14], edx
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x44], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x30], bl
test edi, edi
jne 0x410346
test esi, esi
jne 0x410326
push 0x2001f
push str.SOFTWAREJavaSoftJava_UpdatePolicyjucheck
lea ecx, [ebp - 0x44]
call fcn.004329ad
mov edi, dword [ebp - 0x3c]
jmp 0x41033b
mov ecx, str.SetJavaUpdateStringKey_was_called_with_a_NULL_value_for_the_key__so_defaulting_to_trying_jucheck_key
call fcn.00426ee5
lea ecx, [ebp - 0x10]
call fcn.004480ec
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x410346
mov dword [ebp - 0x18], 1
push ecx
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
call fcn.00410bb9
mov dword [ebp - 4], ebx
mov eax, edi
mov dword [ebp - 0x40], eax
test esi, esi
je 0x410380
push esi
mov dword [ebp - 0x28], 1
call fcn.00451490
pop ecx
push dword [ebp + 8]
inc eax
lea ecx, [ebp - 0x24]
add eax, esi
push eax
push esi
call fcn.00432ab5
mov eax, dword [ebp - 0x40]
test edi, edi
je 0x4103c5
test esi, esi
jne 0x410394
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4103be
push esi
mov dword [ebp - 0x28], 1
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
push esi
push dword [ebp - 0x24]
call fcn.00449e30
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x14]
call fcn.00432a93
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x18], 0
je 0x4103d3
lea ecx, [ebp - 0x44]
call fcn.004329e4
lea ecx, [ebp - 0x24]
call fcn.0040c03a
mov eax, ebx
call fcn.00448d72
ret
Function at 0x410470
Capabilities:
Delete file
Delete registry value
Query or enumerate registry key

Disassembly:
sub esp, 0x44c
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x400
push eax
lea eax, [esp + 0x54]
xor ebx, ebx
mov edi, SysStringLen
mov dword [esp + 0x34], ebx
push eax
mov edx, str.LocalFileName
mov dword [esp + 0x20], edi
xor ecx, ecx
mov byte [esp + 0x34], bl
call fcn.00410192
mov esi, dword [sym.imp.kernel32.dll_DeleteFileA]
pop ecx
pop ecx
test eax, eax
je 0x4104d2
cmp dword [esp + 0x14], ebx
je 0x4104d2
lea eax, [esp + 0x50]
push eax
call esi
lea ecx, [esp + 0x50]
call fcn.004480ec
test eax, eax
je 0x4104f1
lea edx, [esp + 0x50]
mov ecx, edx
call fcn.00410728
lea eax, [esp + 0x50]
push eax
call esi
call fcn.004480ec
push ebx
mov edx, str.PreDownldStatus
xor ecx, ecx
call fcn.004102de
pop ecx
push 0x80
lea eax, [esp + 0x54]
mov dword [esp + 0x20], edi
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, ebx
call edi
test eax, eax
jne 0x410587
mov ebp, 0x20019
push ebp
lea eax, [esp + 0x54]
inc esi
push eax
lea ecx, [esp + 0x20]
call fcn.004329ad
test eax, eax
jne 0x410572
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x50]
push ebp
push eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x50], bl
call fcn.004329ad
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
test eax, eax
jne 0x410572
push str.VersionXmlURL
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x80
lea eax, [esp + 0x54]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x410527
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004484c4
add esp, 0x44c
ret
Function at 0x410728
Capabilities:
Get common file path
Parse url

Disassembly:
sub esp, 0x644
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push ebp
push esi
push edi
push 0x3c
pop ebp
xor ebx, ebx
lea eax, [esp + 0x10]
push ebp
push ebx
push eax
mov edi, edx
mov byte [esp + 0x15c], bl
mov esi, ecx
call fcn.0044b900
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x250]
mov dword [esp + 0x40], 0x400
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
push ebx
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.wininet.dll_InternetCrackUrlA]
mov ebp, 0x104
test eax, eax
je 0x4107ce
push 0x100
lea eax, [esp + 0x154]
push eax
push ebp
lea eax, [esp + 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x26c]
push ebx
push eax
call fcn.004480ec
lea eax, [esp + 0x70]
push 0x48a8f0
push eax
call fcn.0044bd40
add esp, 0x2c
test eax, eax
je 0x410809
cmp byte [esi], bl
je 0x4107f5
mov al, byte [esi]
cmp al, 0x20
je 0x4107dc
cmp al, 9
jne 0x4107e7
push esi
call dword [sym.imp.user32.dll_CharNextA]
mov esi, eax
jmp 0x4107d2
imul ebx, ebx, 0x1f
movsx eax, al
add ebx, eax
inc esi
cmp byte [esi], 0
jne 0x4107d2
push ebx
lea eax, [esp + 0x50]
push str.jupdate__x
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
push edi
push ebp
call dword [sym.imp.kernel32.dll_GetTempPathA]
mov esi, dword [sym.imp.kernel32.dll_lstrcatA]
lea eax, [esp + 0x4c]
push eax
push edi
call esi
lea eax, [esp + 0x150]
push eax
push edi
call esi
mov ecx, dword [esp + 0x650]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004484c4
add esp, 0x644
ret