joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a73c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402ca0
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4c6760]
cmp byte [edx + 8], 0
je 0x46a7a0
mov edx, dword [0x4c674c]
cmp dword [edx], 2
jne 0x46a7a0
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x46a7a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46a85c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0046a73c
test al, al
je 0x46a83e
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403f5c
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x46a83e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004042b8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.004042b8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040402c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x46a7f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a863
lea eax, [ebp - 0x2c]
call fcn.00403e74
lea eax, [ebp - 0xc]
call fcn.00403e74
ret

Function at 0x46a9f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0046a398
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004042b8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46aa4e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4c6444]
mov dl, 1
mov eax, dword [0x46a290]
call fcn.0040cbdc
call fcn.004038c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46aa58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004042b8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46aab0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4c676c]
mov dl, 1
mov eax, dword [0x46a290]
call fcn.0040cbdc
call fcn.004038c0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046a3c8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004042b8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x46be89
test al, 0x10
jne 0x46be8d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x473f0c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or edx, edx
je 0x473f28
jcxz 0x473f28
push ebx
movzx ebx, al
xor bl, byte [edx]
shr eax, 8
xor eax, dword cs:[ebx*4 + 0x473f29]
inc edx
loop 0x473f14
pop ebx
ret

Function at 0x4776e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
mov ebx, eax
xor ecx, ecx
cmp dword [0x4c44bc], 4
jge 0x47770e
mov eax, dword [edx + ecx*4]
xchg al, ah
rol eax, 0x10
xchg al, ah
mov dword [ebx], eax
add ebx, 4
inc ecx
cmp ecx, 0x10
jne 0x4776f7
jmp 0x47771e
mov eax, dword [edx + ecx*4]
bswap eax
mov dword [ebx], eax
add ebx, 4
inc ecx
cmp ecx, 0x10
jne 0x47770e
mov ecx, 0x40
pop edx
cmp dl, 0
je 0x477740
mov eax, dword [ebx - 0xc]
xor eax, dword [ebx - 0x20]
xor eax, dword [ebx - 0x38]
xor eax, dword [ebx - 0x40]
rol eax, 1
mov dword [ebx], eax
add ebx, 4
loop 0x477729
pop ebx
ret
mov eax, dword [ebx - 0xc]
xor eax, dword [ebx - 0x20]
xor eax, dword [ebx - 0x38]
xor eax, dword [ebx - 0x40]
mov dword [ebx], eax
add ebx, 4
loop 0x477740
pop ebx
ret
Function at 0x479bf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov ebx, edx
xor edi, edi
mov ax, word [ebx + edi*2]
xchg al, ah
mov word [ebx + edi*2], ax
inc edi
cmp edi, 4
jne 0x479bfb
mov edi, 8
movzx edx, word [esi]
movzx eax, word [ebx]
call fcn.00479bc8
mov word [ebx], ax
add esi, 2
mov ax, word [esi]
add word [ebx + 2], ax
add esi, 2
mov ax, word [esi]
add word [ebx + 4], ax
add esi, 2
movzx edx, word [esi]
movzx eax, word [ebx + 6]
call fcn.00479bc8
mov word [ebx + 6], ax
add esi, 2
movzx edx, word [esi]
mov ax, word [ebx + 4]
xor ax, word [ebx]
movzx eax, ax
call fcn.00479bc8
mov word [esp], ax
add esi, 2
mov bp, word [ebx + 2]
xor bp, word [ebx + 6]
add bp, word [esp]
movzx edx, word [esi]
movzx eax, bp
call fcn.00479bc8
mov ebp, eax
add esi, 2
add word [esp], bp
xor word [ebx], bp
mov ax, word [esp]
xor word [ebx + 6], ax
mov ax, word [ebx + 2]
xor word [esp], ax
xor bp, word [ebx + 4]
mov word [ebx + 2], bp
mov ax, word [esp]
mov word [ebx + 4], ax
dec edi
jne 0x479c10
movzx edx, word [esi]
movzx eax, word [ebx]
call fcn.00479bc8
xchg al, ah
mov word [ebx], ax
add esi, 2
mov ax, word [esi]
add word [ebx + 4], ax
add esi, 2
mov ax, word [esi]
add word [ebx + 2], ax
add esi, 2
mov ax, word [ebx + 4]
xchg al, ah
mov ebp, eax
mov ax, word [ebx + 2]
xchg al, ah
mov word [ebx + 4], ax
movzx edx, word [esi]
movzx eax, word [ebx + 6]
call fcn.00479bc8
xchg al, ah
mov word [ebx + 6], ax
mov word [ebx + 2], bp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47b158
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47b294
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x47b2ac
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0047c6ec
mov eax, dword [ebp - 4]
call fcn.0047bf7c
xor edx, edx
push ebp
push 0x47b277
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x47b216
test si, si
jne 0x47b1c8
mov eax, dword [ebp - 8]
call fcn.00409bf0
mov esi, eax
cmp esi, 0xffff
jbe 0x47b1c8
call fcn.00402fa8
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x47b216
cmp eax, 0xffffffff
jle 0x47b1f7
sub ebx, eax
jmp 0x47b206
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0047c620
test ebx, ebx
je 0x47b216
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x47b1cb
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x47b261
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x47b2c4
mov dl, 1
mov eax, dword [0x47a678]
call fcn.0040cae4
call fcn.004038c0
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x47b261
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b27e
mov eax, dword [ebp - 4]
call fcn.0047bfd4
ret
Function at 0x47b3d8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47b56e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x47b584
lea edx, [ebp - 0xc]
movzx eax, si
call fcn.004096a0
push dword [ebp - 0xc]
push 0x47b594
lea eax, [ebp - 8]
mov edx, 3
call fcn.004041b4
mov ecx, dword [ebp - 8]
mov dl, 8
mov eax, ebx
call fcn.0047c6ec
test si, si
jne 0x47b479
push 2
push 0x10000
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
cmp eax, 0xffffffff
jne 0x47b468
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, ebx
call fcn.0047c620
mov eax, dword [ebp - 4]
call fcn.00403e74
jmp 0x47b4cf
mov esi, eax
cmp esi, 0xffff
jbe 0x47b4cf
call fcn.00402fa8
jmp 0x47b4cf
push 2
push 0x10000
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
movzx edx, si
cmp eax, edx
jge 0x47b4cf
test eax, eax
jne 0x47b4a9
mov eax, dword [ebp - 4]
call fcn.00403e74
jmp 0x47b553
inc eax
jne 0x47b4ba
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, ebx
call fcn.0047c620
mov eax, dword [0x4c6504]
mov eax, dword [eax]
call fcn.0044e720
cmp byte [ebx + 0x10088], 0
je 0x47b479
cmp byte [ebx + 0x10088], 0
jne 0x47b51e
movzx edi, si
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00404428
push 0
push edi
mov eax, dword [ebp - 4]
call fcn.004042c4
mov edx, 1
dec edx
cmp edx, dword [eax - 4]
jb 0x47b500
call fcn.00402fa8
inc edx
lea eax, [eax + edx - 1]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
mov edx, dword [ebp - 4]
xchg edx, eax
call fcn.00404428
jmp 0x47b553
mov byte [ebx + 0x10088], 0
mov ecx, 0x47b5a0
mov dl, 1
mov eax, dword [0x47a678]
call fcn.0040cae4
call fcn.004038c0
cmp word [ebx + 0x10282], 0
je 0x47b553
mov edx, ebx
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b575
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403e98
ret
Function at 0x47b98c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004042a8
xor eax, eax
push ebp
push 0x47bb62
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x47bb78
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0047c6ec
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100b4], edx
mov eax, dword [ebp - 4]
call fcn.0047bf7c
xor eax, eax
push ebp
push 0x47bb3d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x410b50]
call fcn.004145e8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47bad5
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x47baaf
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x47ba73
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004143ec
mov eax, dword [ebp - 4]
add dword [eax + 0x100b4], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ba], 0
je 0x47ba6b
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100bc]
call dword [esi + 0x100b8]
mov eax, dword [ebp - 4]
call fcn.0047bf7c
cmp ebx, 0xffffffff
jne 0x47ba9f
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], esi
cmp esi, 0x2749
je 0x47babf
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0047c620
test ebx, ebx
je 0x47babf
mov eax, dword [0x4c6504]
mov eax, dword [eax]
call fcn.0044e720
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x47ba0f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47badc
mov eax, dword [ebp - 0xc]
call fcn.00403068
ret
Function at 0x47c528
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x47c5f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x47c608
mov dl, 4
mov eax, ebx
call fcn.0047c6ec
mov byte [ebx + 0x10290], 0
mov si, word [ebx + 0x10288]
cmp si, 0xffff
je 0x47c5de
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x47c5d0
test byte [ebx + 0x20], 8
jne 0x47c58d
cmp word [ebx + 0x1004a], 0
je 0x47c58d
mov edx, ebx
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
cmp byte [ebx + 0x10089], 0
jne 0x47c5de
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x47c5b0
call fcn.00402fa8
mov word [ebx + 0x10288], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x1028c]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x47c5de
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.0047c620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c5fb
lea eax, [ebp - 4]
call fcn.00403e74
ret

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

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x47c7d0
mov dl, 8
mov eax, ebx
call fcn.0047c6ec
push 2
push 1
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x47c7c2
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

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

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x47c7e7
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x47c834
mov dl, 8
mov eax, ebx
call fcn.0047c6ec
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
add esp, 0x10004
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
mov edi, esp
mov dword [edi], 0x10
push edi
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_getsockname
push dword [esp + 8]
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov edx, dword [edi]
cmp byte [ebx + edx], 0x2e
jne 0x47caaf
mov edx, dword [edi]
mov byte [ebx + edx], 0x2c
inc eax
inc dword [edi]
cmp eax, 3
jl 0x47caa0
mov edx, esi
mov eax, ebx
call fcn.00409e34
add esp, 0x14
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
mov esi, edx
mov dword [esp], 0x10
push esp
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_getsockname
push esi
mov bx, word [esp + 0xa]
mov eax, ebx
and ax, 0xff
movzx eax, ax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
shr bx, 8
movzx eax, bx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
lea edx, [esp + 0x18]
mov ecx, 1
mov eax, 0x47cb34
call fcn.0040a37c
add esp, 0x24
pop esi
pop ebx
ret
Function at 0x4800b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
mov eax, ebx
call fcn.00403e74
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.004042b8
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x48015a
xor eax, eax
push ebp
push 0x480153
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404428
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
call fcn.004042b8
push eax
push 0
push 0
mov eax, edi
call fcn.004042b8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x480135
mov edx, dword [ebp - 4]
dec edx
mov eax, ebx
call fcn.00404428
jmp 0x48013c
mov eax, ebx
call fcn.00403e74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48015a
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x48019c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x40efc4]
call fcn.00404840
xor eax, eax
push ebp
push 0x4802e3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c5058], 0
jne 0x4801ef
mov ecx, dword [0x4c60ac]
mov dl, 1
mov eax, dword [0x408770]
call fcn.0040cba0
call fcn.004038c0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402ca0
mov eax, ebx
call fcn.004045e4
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4802f4
lea edi, [ebp - 0x30]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040672c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004045f4
test eax, eax
jle 0x48028a
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x480283
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004040bc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004040a4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409538
test eax, eax
jne 0x480283
mov ebx, 0x15
jmp 0x48028f
mov ebx, 0x10
jmp 0x48028f
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4c5058]
call fcn.0047ff8c
mov eax, dword [ebp - 8]
call fcn.0047ff8c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406744
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4802ea
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403e98
lea eax, [ebp - 0x10]
mov edx, dword [0x40efc4]
call fcn.0040490c
ret
Function at 0x4990c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4c5ea6
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x49911b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4c5ec7
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x499111
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x49911f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4b7b00
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4b7b09
mov eax, dword [ebp - 4]
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x201c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004042a8
xor eax, eax
push ebp
push 0x4b7c60
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x4b7c2a
mov esi, 0xc0000000
push 0
push esi
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004042b8
push eax
push edi
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b7c21
xor eax, eax
push ebp
push 0x4b7c1a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2015]
xor ecx, ecx
mov edx, 0x2001
call fcn.00402ca0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x2000
lea eax, [ebp - 0x2015]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4b7bfc
cmp dword [ebp - 0x10], 0
jne 0x4b7bd0
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004b78cc
mov byte [ebp - 5], al
jmp 0x4b7c03
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x2015], 0
lea edx, [ebp - 0x201c]
lea eax, [ebp - 0x2015]
call fcn.00409e34
mov edx, dword [ebp - 0x201c]
lea eax, [ebp - 0x14]
call fcn.004040fc
jmp 0x4b7b87
mov eax, ebx
call fcn.004b7d38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7c37
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov eax, ebx
call fcn.004b7d38
jmp 0x4b7c37
lea eax, [ebx + 4]
mov edx, 0x4b7c7c
call fcn.00403ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7c67
lea eax, [ebp - 0x201c]
call fcn.00403e74
lea eax, [ebp - 0x14]
call fcn.00403e74
lea eax, [ebp - 4]
call fcn.00403e74
ret

Function at 0x4b7fe8
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
push 0
call sub.wininet.dll_InternetAttemptConnect
test eax, eax
je 0x4b8009
lea eax, [esi + 4]
mov edx, 0x4b8040
call fcn.00403ec8
jmp 0x4b802f
push 0
push 0
push 0
push 1
push 0x4b8054
call sub.wininet.dll_InternetOpenA
mov edi, eax
mov dword [esi + 0x14], edi
test edi, edi
jne 0x4b802d
mov eax, esi
call fcn.004b7d38
jmp 0x4b802f
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4b80d8
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4b80e1
mov eax, dword [ebp - 4]
add esp, 0xfffffea0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004042a8
mov eax, dword [ebp - 8]
call fcn.004042a8
xor eax, eax
push ebp
push 0x4b8278
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x4b8250
mov esi, 0xc0000000
push 0
push esi
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004042b8
push eax
push edi
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4b8247
xor edx, edx
push ebp
push 0x4b8240
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2164]
call fcn.00406a3a
mov edx, 1
lea eax, [ebp - 0x2164]
call fcn.00406d24
call fcn.004028c0
xor edx, edx
push ebp
push 0x4b8222
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x2016]
xor ecx, ecx
mov edx, 0x2001
call fcn.00402ca0
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x2000
lea eax, [ebp - 0x2016]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4b8200
cmp dword [ebp - 0x14], 0
jne 0x4b81d3
mov byte [ebp - 9], 1
jmp 0x4b8204
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x4b8193
inc esi
lea ebx, [ebp - 0x2016]
mov al, byte [ebx]
mov byte [ebp - 0x15], al
lea edx, [ebp - 0x15]
lea eax, [ebp - 0x2164]
call fcn.00406d44
call fcn.004028c0
inc ebx
dec esi
jne 0x4b81e2
jmp 0x4b8193
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8229
lea eax, [ebp - 0x2164]
call fcn.00406b40
call fcn.004028c0
ret
mov eax, ebx
call fcn.004b7d38
jmp 0x4b825d
lea eax, [ebx + 4]
mov edx, 0x4b8294
call fcn.00403ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b827f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e98
ret

Function at 0x4b8ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebx + 2]
call fcn.004027f0
mov dword [ebp - 4], eax
xor ecx, ecx
push ebp
push 0x4b9062
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebx + 1]
test eax, eax
jl 0x4b9038
inc eax
xor edx, edx
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], 0
inc edx
dec eax
jne 0x4b902d
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00409e34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9069
mov eax, dword [ebp - 4]
call fcn.00402808
ret