joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b81
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00407f50
add esp, 0xc
cmp dword [0x415f10], 3
lea eax, [ebp - 0x20c]
jne 0x402be7
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4138b0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00404606
add esp, 0xc
pop esi
jmp 0x402bf3
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x4138b4
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.004045f7
leave
ret

Function at 0x402cb1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x218], 0
push ebx
push esi
push edi
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00407f50
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
movzx eax, word [ebp - 0x214]
sub eax, 0x41
push eax
call fcn.00402ef6
push dword [ebp - 0x218]
call fcn.00402fe3
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x402dea
mov esi, 0x400
push esi
call fcn.0040513d
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.00407f50
add esp, 0xc
mov ecx, edi
call fcn.00402dfb
push ebx
push edi
push 2
pop edx
mov ecx, eax
call fcn.00402ea8
pop ecx
pop ecx
test eax, eax
je 0x402de3
mov ecx, dword [ebx + 4]
mov esi, 0x4138d4
mov eax, esi
cmp ecx, dword [eax]
jne 0x402daf
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402d81
sub eax, edx
sar eax, 1
je 0x402daf
mov edi, dword [ebp - 0x21c]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004051d1
xor eax, eax
pop ecx
inc eax
jmp 0x402dec
push ebx
push edi
push 2
pop edx
push 0x1e
pop ecx
call fcn.00402ea8
pop ecx
pop ecx
test eax, eax
je 0x402de3
mov eax, dword [ebx + 4]
cmp eax, dword [esi]
jne 0x402de3
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402dd2
sub eax, edx
sar eax, 1
jne 0x402d92
push ebx
call fcn.004051d1
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045f7
leave
ret
Function at 0x402ea8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
je 0x402ef0
xor eax, eax
shld eax, ecx, 9
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
shl edx, 9
push edx
push dword [ebp + 0xc]
shl ecx, 9
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x403075
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x413930
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00404928
add esp, 0xc
test eax, eax
je 0x4030a2
xor eax, eax
jmp 0x40312d
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00405295
push dword [ebp - 4]
call fcn.004054a5
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00405295
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.0040513d
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00404bb9
push dword [ebp - 4]
call fcn.00404c43
push ebx
lea ebx, [edi + esi]
call fcn.00403131
push 0x413938
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00404928
add esp, 0x44
pop esi
test eax, eax
jne 0x40309b
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00404e0e
push dword [ebp - 4]
call fcn.00404c43
add esp, 0x14
test edi, edi
je 0x40312a
push edi
call fcn.004051d1
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x403642
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x3a98
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4036c2
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push 0x10
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x403698
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
inc dword [ebp - 8]
cmp edi, 0x6f
jne 0x4036c7
cmp dword [ebp - 8], 3
jb 0x40365d
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x4036bb
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or edi, 0xffffffff
jmp 0x4036bb
cmp edi, esi
jne 0x4036a6
mov eax, dword [ebp - 4]
jmp 0x4036de
cmp dword [eax + 0x34], 6
jne 0x4036db
cmp dword [eax + 0x1c], esi
jne 0x4036e4
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x4036d0
jmp 0x403721
mov edi, dword [ebp + 8]
lea esi, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 4]
mov esi, dword [ebp + 0xc]
mov byte [esi + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 5]
mov byte [esi + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 6]
mov byte [esi + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [esi], al
xor esi, esi
xor edi, edi
jmp 0x4036a9
Function at 0x403913
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x424], ecx
call fcn.00403a3f
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x403a30
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00407f50
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00407f50
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x416ef0
mov ebx, edi
cmp word [ebx], 0
je 0x4039c5
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040467b
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00404606
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x417468
jl 0x403997
cmp word [edi], 0
je 0x4039eb
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x424]
call fcn.004042b3
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x417468
jl 0x4039d3
push 0x417c78
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00404606
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403a2a
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045f7
leave
ret

Function at 0x403c74
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x80c]
cmp ecx, ebx
je 0x403c96
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9ac]
push eax
push 0x101
mov dword [ebp - 0x9b0], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403cbe
xor eax, eax
jmp 0x403d50
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403cb7
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403cfe
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b0], eax
push 4
lea eax, [ebp - 0x9b0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403d3f
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x818], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403d3f
xor ebx, ebx
inc ebx
jmp 0x403d4e
mov eax, dword [esi]
test eax, eax
je 0x403d4e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop ebx
call fcn.004045f7
leave
ret
Function at 0x403ea9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403f25
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp esi, ecx
jle 0x403ecf
mov eax, dword [ebp + 0xc]
not byte [eax + ecx]
inc ecx
cmp ecx, esi
jl 0x403ec4
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.004056be
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, 0x415f14
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00408ac0
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403f28
cmp eax, dword [ebp - 4]
jne 0x403f28
mov dword [ebp - 8], 1
jmp 0x403f28
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403f33
push ebx
call fcn.00405a97
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e0
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x8e0], eax
mov dword [ebp - 0x8dc], ecx
mov dword [ebp - 0x8d8], edi
lea eax, [ebp - 0x8cc]
cmp edx, ebx
je 0x404174
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x8d4], ebx
cmp esi, ebx
je 0x40429e
cmp edi, ebx
je 0x40429e
push 0xc7
lea eax, [ebp - 0xcb]
push ebx
push eax
mov byte [ebp - 0xcc], dl
call fcn.00407f50
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0xcc]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x40429e
cmp eax, ebx
je 0x40429e
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
call fcn.004056be
pop ecx
mov dword [ebp - 0x8d0], eax
test edi, edi
jle 0x404289
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x8d0]
add eax, ebx
push eax
mov eax, dword [ebp - 0x8dc]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x404267
test eax, eax
je 0x404267
add ebx, eax
cmp edi, ebx
jg 0x4041ef
push 5
pop ecx
cmp ebx, ecx
jl 0x404289
mov edi, dword [ebp - 0x8d0]
sub ebx, ecx
mov esi, 0x415f14
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404289
mov ecx, dword [ebp - 0x8d0]
test ebx, ebx
jle 0x404247
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x404241
mov esi, dword [ebp - 0x8e0]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x40426f
push ebx
push ecx
push dword [ebp - 0x8d8]
call fcn.00408ac0
mov dword [esi], ebx
jmp 0x40427c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404289
push eax
push ecx
push dword [ebp - 0x8d8]
call fcn.00408ac0
add esp, 0xc
mov dword [ebp - 0x8d4], 1
cmp dword [ebp - 0x8d0], 0
je 0x40429e
push dword [ebp - 0x8d0]
call fcn.00405a97
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8d4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045f7
leave
ret
Function at 0x4042b3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x400
mov dword [ebp - 0xe28], eax
lea eax, [ebp - 0x610]
push 0
push eax
mov ebx, ecx
call fcn.00407f50
add esp, 0xc
push ebx
lea eax, [ebp - 0x610]
push 0x1ff
push eax
call fcn.0040467b
mov eax, ebx
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x404304
sub eax, ecx
sar eax, 1
lea edi, [ebp + eax*2 - 0x60e]
mov ecx, 0x80
mov esi, 0x417a78
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40432b
sub eax, ecx
sar eax, 1
mov esi, 0x10000
push esi
lea ebx, [eax + eax + 0x202]
call fcn.0040513d
pop ecx
push esi
xor edi, edi
push edi
push eax
mov dword [ebp - 0xe1c], eax
call fcn.00407f50
add esp, 0xc
xor eax, eax
push 0x7fe
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push edi
push eax
mov dword [ebp - 0xe24], esi
call fcn.00407f50
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0xe18], edi
mov dword [ebp - 0xe20], edi
mov dword [ebp - 0xe14], edi
call fcn.00407f50
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0xe28]
lea ecx, [ebp - 0xe10]
lea esi, [ebp - 0xe18]
call fcn.00403c74
pop ecx
test eax, eax
je 0x4044bb
push ebx
lea eax, [ebp - 0x610]
push eax
mov esi, 0xbba
push esi
lea ecx, [ebp - 0xe10]
lea edx, [ebp - 0xe18]
call fcn.00403d5d
add esp, 0xc
test eax, eax
je 0x4044bb
push dword [ebp - 0xe1c]
lea eax, [ebp - 0xe14]
push eax
lea edx, [ebp - 0xe10]
lea ebx, [ebp - 0xe24]
lea ecx, [ebp - 0xe18]
call fcn.00403f39
pop ecx
pop ecx
test eax, eax
je 0x4044bb
cmp word [ebp - 0xe14], si
jne 0x4044bb
cmp dword [ebp - 0xe24], 0
je 0x4044bb
mov eax, dword [ebp - 0xe1c]
cmp byte [eax], 0
jne 0x4044bb
push 0x417c78
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404606
and dword [ebp - 0xe14], 0
add esp, 0xc
push 0x413938
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xe14]
push eax
call fcn.00404928
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x4044b1
lea eax, [ebp - 0xe14]
push eax
lea edi, [ebp - 0xe18]
call fcn.004044fa
pop ecx
mov dword [ebp - 0xe20], 1
cmp dword [ebp - 0xe1c], 0
je 0x4044d0
push dword [ebp - 0xe1c]
call fcn.004051d1
pop ecx
cmp dword [ebp - 0xe18], 0
je 0x4044e5
push dword [ebp - 0xe18]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe20]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045f7
leave
ret
Function at 0x4044fa
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040dbc0
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x100c], eax
push 4
lea eax, [ebp - 0x1008]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x40453b
xor eax, eax
jmp 0x40459e
cmp dword [ebp - 0x1008], ebx
jbe 0x404587
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x1010], eax
test eax, eax
je 0x404587
mov ecx, dword [ebp - 0x100c]
push dword [ecx]
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00404e0e
add ebx, dword [ebp - 0x1010]
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x404543
mov eax, dword [ebp - 0x100c]
push dword [eax]
call fcn.00404c43
cmp ebx, dword [ebp - 0x1008]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004045f7
leave
ret

Function at 0x4045f7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415048]
jne 0x404601
repz ret
jmp fcn.00405d7e
Function at 0x40df5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409ac3
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40e00f
push 0x4122f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e0b7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4122ec
push ebx
call edi
test eax, eax
je 0x40e0b7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4122dc
push ebx
mov dword [0x416cac], eax
call edi
push eax
call esi
push 0x4122c8
push ebx
mov dword [0x416cb0], eax
call edi
push eax
call esi
push 0x4122ac
push ebx
mov dword [0x416cb4], eax
call edi
push eax
call esi
mov dword [0x416cbc], eax
test eax, eax
je 0x40e00f
push 0x412294
push ebx
call edi
push eax
call esi
mov dword [0x416cb8], eax
mov eax, dword [0x416cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e068
cmp dword [0x416cbc], ecx
je 0x40e068
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e068
test ebx, ebx
je 0x40e068
call edi
test eax, eax
je 0x40e05f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e05f
test byte [ebp - 8], 1
jne 0x40e068
or dword [ebp + 0x10], 0x200000
jmp 0x40e09b
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40e09b
push eax
call esi
test eax, eax
je 0x40e09b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e09b
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40e09b
push eax
call esi
test eax, eax
je 0x40e09b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40e0b7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e0b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045f7
leave
ret
Function at 0x401f80
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 8]
pop edi
cmp edx, 6
sbb eax, eax
inc eax
add esp, 0x94
ret
Function at 0x402230
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x402268
mov edi, str._windir__systemmsafd.dll
jmp 0x402296
cmp eax, 5
jne 0x4022c3
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4022c3
mov eax, dword [esp + 0xa0]
cmp eax, 0x3ed
je 0x402291
cmp eax, 0x3ec
je 0x402291
mov edi, str._SystemRoot__system32msafd.dll
jmp 0x4022c8
mov edi, 0x40a3f4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0xa4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x94
ret 8
mov edi, 0x40a3d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xa4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x94
ret 8
Function at 0x402300
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x230
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00401f80
test eax, eax
jne 0x4023ea
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServicesWinSock2
push 0x80000002
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x40235f
mov ecx, dword [esp + 0x10]
push str.SinforSSL_CSPROXY
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push 0x80000002
call esi
test eax, eax
jne 0x4023ea
mov ecx, 0x40
lea edi, [esp + 0x39]
mov byte [esp + 0x38], al
mov edx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push 0x104
stosw word es:[edi], ax
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edx
stosb byte es:[edi], al
xor esi, esi
call ebx
test eax, eax
jne 0x4023df
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, ebp
call fcn.00401fc0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
inc esi
push 0x104
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
push edx
push esi
push eax
call ebx
test eax, eax
je 0x4023aa
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x14]
push edx
push str.ProxyIE.CSProxy.1
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jne 0x4024d3
mov ecx, 0x40
lea edi, [esp + 0x13d]
mov byte [esp + 0x13c], al
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x140]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebp
call fcn.00402e70
test eax, eax
je 0x4024d3
mov ecx, 5
mov esi, str.DllUnregisterServer
lea edi, [esp + 0x24]
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jl 0x4024e6
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 8
lea edx, [esp + 0x140]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, 0x20
jae 0x402482
call dword [sym.imp.ole32.dll_OleUninitialize]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
test edi, edi
jne 0x4024a3
push esi
call ebx
call dword [sym.imp.ole32.dll_OleUninitialize]
call edi
push esi
call ebx
call dword [sym.imp.ole32.dll_OleUninitialize]
push 0x40
push str.Sinfors_LSP
push 0x40a468
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, ebp
call fcn.00402500
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret
push 0x40
push str.Sinfors_LSP
push 0x40a454
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret