joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a63621a
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp + 8]
push eax
push esi
push esi
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 1
call fcn.5a638710
mov edi, eax
cmp edi, esi
jge 0x5a63624e
mov eax, 0x80004005
jmp 0x5a6362a7
push 4
lea eax, [ebp - 8]
push eax
push 0x20
push pe_overlay
push dword [ebp - 4]
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x5a63626f
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x5a636298
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0xc]
push esi
push dword [eax + 4]
push dword [eax]
push dword [ebp - 4]
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x5a63629b
call sub.WSOCK32.dll_WSAGetLastError
mov edi, 0x8000ffff
mov dword [ebp + 8], eax
push esi
push esi
push dword [ebp - 4]
call fcn.5a638a56
mov eax, edi
pop edi
pop esi
leave
ret 0x10

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
dec eax
dec eax
push edi
je 0x5a63675a
sub eax, 4
je 0x5a6366e9
mov dword [ebp - 8], 0x80004005
jmp 0x5a6367dc
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
lea eax, [ebp + 8]
push eax
push esi
call fcn.5a638710
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x5a6367df
mov eax, dword [esi + 0x168]
mov edi, dword [ebp + 0xc]
neg eax
lea ecx, [esi + 0x188]
sbb eax, eax
and eax, ecx
push eax
push dword [esi + 4]
push dword [edi + 4]
call fcn.5a638fb3
push 0x10
lea eax, [edi + 8]
push eax
push ebx
push dword [edi + 0x18]
push dword [edi + 4]
push dword [ebp + 8]
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x5a636756
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x80004005
push ebx
push ebx
jmp 0x5a6367d4
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
lea eax, [ebp + 8]
push eax
push esi
call fcn.5a638710
cmp eax, ebx
jl 0x5a6367df
mov eax, dword [esi + 0x168]
mov edi, dword [ebp + 0xc]
neg eax
lea ecx, [esi + 0x198]
sbb eax, eax
and eax, ecx
push eax
push dword [esi + 8]
push dword [edi + 4]
call fcn.5a638fb3
push ebx
push 0x10
lea eax, [edi + 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.5a638b7b
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x5a6367d1
push ebx
push dword [edi + 0x18]
push dword [edi + 4]
push dword [ebp + 8]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x5a6367d1
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x80004005
push ebx
push 1
push dword [ebp + 8]
call fcn.5a638a56
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5a636825
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 0x10], 1
je 0x5a6368a2
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
xor edi, edi
cmp dword [ebx + 0x10], edi
jne 0x5a636864
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push 0x5a6356cb
push edi
push edi
call esi
cmp eax, edi
mov dword [ebx + 0x10], eax
je 0x5a636864
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [ebx + 0x38], 6
je 0x5a63689f
cmp dword [ebx + 0xc], edi
jne 0x5a63689f
cmp dword [0x5a63e658], edi
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
je 0x5a636886
push 0x5a6338d4
jmp 0x5a63688b
push 0x5a635ee3
push edi
push edi
call esi
cmp eax, edi
mov dword [ebx + 0xc], eax
je 0x5a63689f
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret 0xc
Function at 0x5a636b6a
Capabilities:
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5a63e034]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x18]
mov esi, 0x2374
push edx
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x20], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
mov dword [ebp - 0x18], eax
jl 0x5a636c98
cmp dword [ebp - 0x20], esi
jne 0x5a636c98
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xdc]
test eax, eax
je 0x5a636bd2
cmp dword [ebx + 0x10], eax
jb 0x5a636bd2
mov eax, 0x887700e6
jmp 0x5a636c9d
mov eax, dword [ebx + 4]
test eax, eax
jne 0x5a636bde
lea esi, [ecx + 0x3c]
jmp 0x5a636c01
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
push dword [ebx + 0x18]
push ecx
call fcn.5a6355b6
test eax, eax
mov dword [ebp - 0x18], eax
jl 0x5a636c9d
mov esi, dword [ebp - 0x24]
add esi, 0x10
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, 0xfab00000
or ecx, eax
movsd dword es:[edi], dword [esi]
mov dword [edx], ecx
cmp dword [ebx + 0x14], 0
je 0x5a636c4b
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x38], 6
jne 0x5a636c2b
mov ecx, dword [eax + 4]
jmp 0x5a636c2e
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x168]
add eax, 0x198
neg edx
sbb edx, edx
and edx, eax
push edx
push ecx
push dword [ebx + 0xc]
call fcn.5a638fb3
jmp 0x5a636c6c
mov ecx, dword [ebx + 0x10]
cmp ecx, 4
jb 0x5a636c62
mov edx, dword [ebx + 0xc]
mov edx, dword [edx]
and edx, 0xfff00000
cmp edx, eax
jne 0x5a636c6c
add dword [ebx + 0xc], 0x14
add ecx, 0xffffffec
mov dword [ebx + 0x10], ecx
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push 0
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push dword [eax + 4]
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x5a636c93
call sub.WSOCK32.dll_WSAGetLastError
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
jmp 0x5a636c9d
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5a639a99
leave
ret 4
Function at 0x5a636cb1
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
mov dword [ebp - 0xc], 1
jne 0x5a636cda
mov eax, 0x80004005
jmp 0x5a636d98
push esi
push edi
mov edi, 0x5a63e640
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x30]
test edx, edx
jbe 0x5a636d1d
xor ecx, ecx
cmp dword [ebp - 8], 0
jne 0x5a636d1d
mov eax, dword [esi + 0x2c]
add eax, ecx
cmp dword [eax], 0xffffffff
je 0x5a636d12
cmp dword [eax + 4], ebx
jne 0x5a636d12
mov dword [ebp - 8], 1
jmp 0x5a636d18
inc dword [ebp - 4]
add ecx, 0x1c
cmp dword [ebp - 4], edx
jb 0x5a636cf4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 8], 0
je 0x5a636d3f
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x2c]
imul eax, eax, 0x1c
mov eax, dword [eax + ecx]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x5a636d96
mov eax, dword [esi + 0xe8]
and eax, 1
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push 1
push eax
push esi
call fcn.5a6360f2
test eax, eax
jl 0x5a636d96
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push pe_overlay
push dword [ebp + 0x10]
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x5a636d7b
call sub.WSOCK32.dll_WSAGetLastError
push 0
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push esi
call fcn.5a63590c
test eax, eax
jl 0x5a636d96
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x5a63776e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.5a6371b0
push 0x5a63e640
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0x14]
push dword [esi + 4]
call fcn.5a631cfe
test eax, eax
pop ecx
mov dword [ebx + 0xf8], eax
je 0x5a63782e
mov ecx, dword [esi + 4]
mov esi, dword [esi]
push edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 4]
mov esi, dword [ebp + 0xc]
mov dword [ebx + 0xfc], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x100]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or dword [ebx + 0x114], 0xffffffff
mov dword [ebx + 0x110], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x118], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push esi
push ebx
push 0x5a6362b2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebx + 0xf4], eax
pop edi
jne 0x5a637835
push dword [ebx + 0xf8]
call fcn.5a631cd5
pop ecx
mov dword [ebx + 0xf8], esi
mov dword [ebp - 4], 0x8007000e
push 0x5a63e640
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x14
Function at 0x5a63796a
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov edi, dword [ebp + 8]
mov dword [edi + 0x28], eax
je 0x5a6379ba
cmp dword [0x5a63e658], esi
je 0x5a6379a3
cmp dword [edi + 0x38], 6
je 0x5a6379a3
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x5a634b79
jmp 0x5a6379ae
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x5a63784e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x5a6379c1
mov eax, 0x80004005
jmp 0x5a6379c6
mov dword [edi + 0x14], eax
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x5a638b7b
Capabilities:
Connect socket
Get socket status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0xc]
push eax
mov ebx, 0x8004667e
push ebx
push dword [esi]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x5a638bba
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x5a638c5b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x5a638c62
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5a638c4f
mov eax, dword [esi]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x21c], edi
xor edi, edi
push eax
push edi
push edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0xe4e1c0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x5a638c27
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x5a638c4f
cmp eax, edi
je 0x5a638c4f
lea eax, [ebp - 0x118]
push eax
push dword [esi]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x5a638c5b
lea eax, [ebp - 0x21c]
push eax
push dword [esi]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x5a638c62
lea eax, [ebp - 4]
push eax
push ebx
push dword [esi]
call sub.WSOCK32.dll_ioctlsocket
mov eax, 0x88770168
jmp 0x5a638c81
lea eax, [ebp - 4]
push eax
push ebx
push dword [esi]
call sub.WSOCK32.dll_ioctlsocket
cmp dword [ebp + 0x14], 0
je 0x5a638c7e
push dword [esi]
call fcn.5a6360b8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x5a638c8d
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a63e034]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x18], 0x10
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
jne 0x5a638cd1
call sub.WSOCK32.dll_WSAGetLastError
push dword [ebp + 0x10]
call sub.WSOCK32.dll_closesocket
mov eax, 0x80004005
jmp 0x5a638d40
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
xor ecx, ecx
dec eax
cmp dword [ebp + 0x14], ecx
push edi
je 0x5a638d11
dec eax
je 0x5a638cff
sub eax, 4
jne 0x5a638d3d
mov ax, word [ebp - 8]
mov word [esi], 6
mov word [esi + 0xc], ax
lea edi, [esi + 6]
xor eax, eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x5a638d3d
mov ax, word [ebp - 0x12]
mov word [esi], 2
mov word [esi + 2], ax
mov dword [esi + 4], ecx
jmp 0x5a638d3d
dec eax
je 0x5a638d2c
sub eax, 4
jne 0x5a638d3d
mov ax, word [ebp - 8]
mov word [esi + 0x10], 6
mov word [esi + 0x1c], ax
lea edi, [esi + 0x16]
jmp 0x5a638cf8
mov ax, word [ebp - 0x12]
mov word [esi + 0x10], 2
mov word [esi + 0x12], ax
mov dword [esi + 0x14], ecx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.5a639a99
leave
ret 0x10
Function at 0x5a638d52
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
inc eax
xor edi, edi
cmp dword [esi + 0x10], edi
mov dword [ebp - 4], eax
je 0x5a638d85
push eax
push edi
push dword [esi + 4]
call fcn.5a638a56
mov eax, dword [esi + 0x10]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0xd8], eax
mov dword [esi + 0x10], edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push 0x8ba
push 2
lea eax, [ebp + 8]
push eax
push esi
call fcn.5a638710
test eax, eax
jge 0x5a638da7
mov eax, 0x88770122
jmp 0x5a638dcc
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp - 4]
push eax
push 0x20
push pe_overlay
push edi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x5a638dc7
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x5a638fb3
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a63e034]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x10
je 0x5a638fdc
cmp dword [esi + 4], 0
jne 0x5a638ffb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
jne 0x5a638ff8
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x5a639002
lea esi, [ebp - 0x14]
add edi, 4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
call fcn.5a639a99
leave
ret 0xc

Function at 0x5a639017
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push esi
je 0x5a639070
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5a639070
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5a63902f
sub eax, edx
mov dword [ebp + 0x10], eax
je 0x5a639070
push esi
call sub.WSOCK32.dll_inet_addr
test eax, eax
je 0x5a639070
cmp eax, 0xffffffff
jne 0x5a639069
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x5a639062
call sub.WSOCK32.dll_WSAGetLastError
mov eax, 0x80070057
jmp 0x5a639078
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x5a639076
mov eax, dword [ebp + 8]
or dword [eax], 0xffffffff
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x5a639701
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5a63e034]
push ebx
push esi
push edi
mov esi, 0x5a6314b8
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x25
mov dword [ebp - 0x1c0], eax
movsb byte es:[edi], byte [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x1bc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1bc]
push eax
mov dword [ebp - 0x1bc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
test eax, eax
je 0x5a639764
xor eax, eax
cmp dword [ebp - 0x1ac], 2
sete al
jmp 0x5a63976c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [0x5a63e478]
cmp ecx, ebx
jne 0x5a639877
cmp eax, ebx
je 0x5a639785
push 0x5a631470
jmp 0x5a63978a
push 0x5a631490
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
cmp esi, ebx
jne 0x5a639834
push 0x105
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5a639828
lea edi, [ebp - 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x5a6397bd
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push ebx
mov esi, 0x5a6314a8
movsd dword es:[edi], dword [esi]
push 0x20
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push ebx
lea eax, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x128]
push eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x224], 0x44
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x1f8], ebx
mov word [ebp - 0x1f2], bx
mov dword [ebp - 0x1f0], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x5a63982c
xor eax, eax
jmp 0x5a639881
mov ecx, dword [ebp - 0x1d8]
jmp 0x5a63986c
xor eax, eax
lea edi, [ebp - 0x1d0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xffffffffffffffff
push esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1d0]
push eax
mov dword [ebp - 0x1d0], 4
call fcn.5a639417
mov ecx, dword [ebp - 0x1cc]
xor eax, eax
mov dword [0x5a63e478], ecx
inc eax
jmp 0x5a639879
xor eax, eax
mov edx, dword [ebp - 0x1c0]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5a639a99
leave
ret 4
Function at 0x5a639bb1
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
jne 0x5a639c88
mov eax, 0x94
call fcn.5a639f20
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5a639c51
mov ecx, dword [esi + 0x10]
mov dword [0x5a63e254], ecx
mov eax, dword [esi + 4]
mov dword [0x5a63e260], eax
mov edx, dword [esi + 8]
mov dword [0x5a63e264], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x5a63e258], esi
je 0x5a639c18
or esi, 0x8000
mov dword [0x5a63e258], esi
shl eax, 8
add eax, edx
push 0
mov dword [0x5a63e25c], eax
call fcn.5a63a5cd
test eax, eax
pop ecx
je 0x5a639c51
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5a63e9f4], eax
call fcn.5a63a6ba
mov dword [0x5a63e238], eax
call fcn.5a63a0d0
test eax, eax
jge 0x5a639c55
call fcn.5a63a629
xor eax, eax
jmp 0x5a639c79
call fcn.5a63a505
test eax, eax
jl 0x5a639c81
call fcn.5a63a2ab
test eax, eax
jl 0x5a639c81
call fcn.5a639fbc
test eax, eax
jne 0x5a639c81
inc dword [0x5a63e234]
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
call fcn.5a63a281
jmp 0x5a639c4c
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x5a639c76
cmp dword [0x5a63e234], eax
jle 0x5a639c51
dec dword [0x5a63e234]
cmp dword [0x5a63e290], eax
jne 0x5a639caa
call fcn.5a63a0b8
call fcn.5a63a281
call fcn.5a63a629
jmp 0x5a639c76
Function at 0x5a63a6ba
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5a63e3a0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x5a63a706
call esi
mov edi, eax
cmp edi, ebx
je 0x5a63a6ec
mov dword [0x5a63e3a0], 1
jmp 0x5a63a70b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x5a63a701
push 2
pop eax
mov dword [0x5a63e3a0], eax
jmp 0x5a63a706
mov eax, dword [0x5a63e3a0]
cmp eax, 1
jne 0x5a63a783
cmp edi, ebx
jne 0x5a63a717
call esi
mov edi, eax
cmp edi, ebx
je 0x5a63a78c
cmp word [edi], bx
mov eax, edi
je 0x5a63a72c
inc eax
inc eax
cmp word [eax], bx
jne 0x5a63a71e
inc eax
inc eax
cmp word [eax], bx
jne 0x5a63a71e
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x5a63a77a
push eax
call fcn.5a63acf3
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x5a63a77a
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x5a63a777
push dword [ebp - 4]
call fcn.5a63ad0f
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x5a63a7db
cmp eax, 2
je 0x5a63a790
cmp eax, ebx
je 0x5a63a790
xor eax, eax
jmp 0x5a63a7dd
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x5a63a78c
cmp byte [esi], bl
je 0x5a63a7ad
inc eax
cmp byte [eax], bl
jne 0x5a63a7a3
inc eax
cmp byte [eax], bl
jne 0x5a63a7a3
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.5a63acf3
cmp eax, ebx
pop ecx
je 0x5a63a7d4
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5a63c6a3
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.5a639f20
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5a63c709
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x5a63e254]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x5a63c70d
xor eax, eax
jmp 0x5a63c71a
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2d83700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02d8378f
jae 0x2d8370e
xor ecx, ecx
call fcn.02d8378f
jae 0x2d8373d
xor eax, eax
call fcn.02d8378f
jae 0x2d8374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02d8378f
adc al, al
jae 0x2d8372f
jne 0x2d83779
stosb byte es:[edi], al
jmp 0x2d83711
call fcn.02d8379b
sub ecx, ebx
jne 0x2d83756
call fcn.02d83799
jmp 0x2d83775
lodsb al, byte [esi]
shr eax, 1
je 0x2d83783
adc ecx, ecx
jmp 0x2d83772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02d83799
cmp eax, 0x7d00
jae 0x2d83772
cmp ah, 5
jae 0x2d83773
cmp eax, 0x7f
ja 0x2d83774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2d83711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8