joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x447eab
jns 0x447eb4
push closesocket
push str.Illegal_write_size
lea ecx, [esi + 0x40]
call fcn.0042ef3b
call fcn.00457a21
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
cmp byte [esi + 0x68], 0
jne 0x447ed8
push closesocket
push str.Write_access_denied
lea ecx, [esi + 0x40]
call fcn.0042ef3b
push 5
call fcn.00457a13
pop ecx
xor al, al
jmp 0x447ead
cmp byte [esi + 0x64], 0
je 0x447eef
lea ecx, [esi + 0x2c]
mov eax, dword [ecx]
push edi
push dword [ebp + 8]
call dword [eax]
mov byte [esi + 0x65], 1
jmp 0x447eab
cmp dword [esi + 8], 0
jne 0x447f0b
push closesocket
push str.File_not_open
lea ecx, [esi + 0x40]
call fcn.0042ef3b
push 6
jmp 0x447ece
call fcn.00457a0a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], 0x100000
push eax
call fcn.004018e2
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebp + 8]
jmp 0x447f64
cmp ebx, dword [ebp - 0xc]
jne 0x447faa
sub edi, ebx
mov dword [ebp + 0xc], edi
test edi, edi
jle 0x447f93
add dword [ebp - 4], ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004018e2
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebp - 4]
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x447f39
lea eax, [ebp - 0x18]
push eax
call fcn.004577c2
pop ecx
push eax
lea ecx, [esi + 0x40]
call fcn.00424f5b
lea ecx, [ebp - 0x18]
call fcn.00425c1b
jmp 0x447ed4
cmp byte [esi + 0x66], 0
je 0x447eab
lea ecx, [esi - 4]
call fcn.00446a41
jmp 0x447eab
push closesocket
push str.Not_all_data_could_be_written
lea ecx, [esi + 0x40]
call fcn.0042ef3b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x447ed4
push 0x1722
jmp 0x447ece
Function at 0x44848c
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x498c85
call fcn.0046a2a4
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ebx, ebx
cmp dword [edi], ebx
je 0x4484b0
xor eax, eax
jmp 0x448578
mov ecx, dword [0x4dcbb0]
mov eax, dword fs:[0x2c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x4db2b4]
cmp eax, dword [esi + 4]
jg 0x448587
mov eax, dword [0x4db2bc]
cmp eax, dword [esi + 4]
jg 0x4485bb
mov dword [ebp - 4], ebx
mov esi, dword [0x4db2b0]
test esi, esi
jne 0x44851d
mov esi, 0x4db2b0
mov ecx, esi
call fcn.00402da8
push esi
push 0x4a5f8c
push 1
push ebx
push 0x4a5f7c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [0x4db2b0]
test esi, esi
jne 0x44851d
push 2
pop eax
jmp 0x448578
mov eax, dword [0x4db2b8]
test eax, eax
jne 0x44854d
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
mov ecx, 0x4db2b8
call fcn.00402da8
push 0x4db2b8
push esi
call edi
mov eax, dword [0x4db2b8]
test eax, eax
jne 0x44854a
push 3
jmp 0x44851a
mov edi, dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
cmp dword [edi], ebx
jne 0x44855c
push 4
jmp 0x44851a
or dword [ebp - 4], 0xffffffff
jmp 0x448576
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
push 0x4db2b4
call fcn.0046a4a9
pop ecx
cmp dword [0x4db2b4], 0xffffffff
jne 0x4484d0
push 0x499243
call fcn.0046a28d
mov dword [esp], 0x4db2b4
call fcn.0046a45f
pop ecx
jmp 0x4484d0
mov esi, 0x4db2bc
push esi
call fcn.0046a4a9
pop ecx
cmp dword [0x4db2bc], 0xffffffff
jne 0x4484e1
push 0x499253
call fcn.0046a28d
push esi
call fcn.0046a45f
pop ecx
pop ecx
jmp 0x4484e1
Function at 0x4565c1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp byte [0x4db6dc], 0
push esi
mov esi, 0x4db6e0
jne 0x4566e6
push ebx
xor ebx, ebx
mov byte [0x4db6dc], 1
push ebx
push 0x13c
push esi
call fcn.00429b97
add esp, 0xc
mov dword [0x4db6e0], 0x11c
call fcn.004567da
mov dword [0x4db818], eax
mov eax, dword [0x4db6a8]
test eax, eax
je 0x456617
push esi
call eax
test eax, eax
je 0x456626
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4566e5
push edi
push 6
pop edi
cmp dword [0x4db6e4], edi
jb 0x456674
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.GetProductInfo
call fcn.00433804
push eax
call fcn.0043381c
add esp, 0xc
test al, al
je 0x456674
movzx eax, word [0x4db7f6]
push 0x4db7fc
push eax
movzx eax, word [0x4db7f4]
push eax
push dword [0x4db6e8]
push dword [0x4db6e4]
call dword [ebp - 4]
cmp dword [0x4db6e4], 5
jb 0x4566e4
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.GetNativeSystemInfo
call fcn.00433804
push eax
call fcn.0043381c
add esp, 0xc
test al, al
je 0x4566e4
lea eax, [ebp - 0x28]
push eax
call dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov dword [0x4db800], eax
mov eax, dword [ebp - 0x20]
mov dword [0x4db804], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x4db808], eax
mov eax, dword [ebp - 0x18]
mov dword [0x4db80c], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4db810], eax
cmp word [ebp - 0x28], di
je 0x4566dd
cmp word [ebp - 0x28], 9
mov byte [0x4db814], bl
jne 0x4566e4
mov byte [0x4db814], 1
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x457d47
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x224
mov ecx, dword [0x4dcbb0]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4db6d8]
push edi
mov edi, 0x4db6cc
cmp eax, dword [ecx + 4]
jg 0x457e60
cmp dword [0x4db6d0], 0
jg 0x457e48
xor eax, eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
call fcn.0042f050
mov eax, dword [0x4db6cc]
mov esi, 0x49ab64
test eax, eax
mov ecx, esi
cmovne ecx, eax
push ecx
call fcn.00441721
pop ecx
test al, al
jne 0x457e3f
lea eax, [ebp - 0x18]
push eax
call fcn.00457d02
mov ecx, esi
mov dword [esp], str.temp
cmp dword [eax], 0
cmovne ecx, dword [eax]
lea eax, [ebp - 0xc]
push ecx
push eax
call fcn.004444c6
add esp, 0xc
mov ecx, edi
push eax
call fcn.00424f5b
lea ecx, [ebp - 0xc]
call fcn.00425c1b
lea ecx, [ebp - 0x18]
call fcn.00425c1b
mov eax, dword [0x4db6cc]
mov ecx, esi
test eax, eax
cmovne ecx, eax
push ecx
call fcn.00441721
pop ecx
test al, al
jne 0x457e3f
push closesocket
push str.c:_temp
mov ecx, edi
call fcn.0042f491
mov eax, dword [0x4db6cc]
test eax, eax
cmovne esi, eax
push esi
call fcn.004413ad
pop ecx
push 0x5c
mov ecx, edi
call fcn.0042675d
mov ecx, dword [ebp + 8]
call fcn.004282a8
mov ecx, dword [ebp + 8]
push edi
call fcn.0042ef1d
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
mov esi, 0x4db6d8
push esi
call fcn.0046a4a9
cmp dword [0x4db6d8], 0xffffffff
pop ecx
jne 0x457d77
mov ecx, edi
call fcn.004282a8
push 0x49929f
call fcn.0046a28d
push esi
call fcn.0046a45f
pop ecx
pop ecx
jmp 0x457d77
Function at 0x45902f
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x45904f
push 0x2736
call fcn.0045aea5
xor al, al
jmp 0x4591b4
cmp dword [esi + 0x20], 0xffffffff
jne 0x45905c
push 0x2726
jmp 0x459043
push ebx
push edi
call fcn.0045a317
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x459081
mov ecx, dword [esi + 0xc]
shr ecx, 2
test cl, 1
jne 0x45908e
call fcn.00459790
mov edi, eax
test edi, edi
je 0x45908e
xor eax, eax
cmp dword [edi], ebx
cmovne eax, edi
mov edi, eax
test edi, edi
jne 0x45909b
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00459b3a
jmp 0x4590fe
cmp dword [edi + 4], ebx
lea eax, [esi + 0x1c]
push eax
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
mov ecx, 0x49ab60
cmovne ecx, dword [edi + 4]
push eax
push ecx
call fcn.004374d6
mov ebx, eax
push ebx
call fcn.00437dac
add esp, 0x14
test al, al
je 0x4590ec
push ebx
call fcn.00437c24
push eax
push ebx
lea eax, [esi + 0x44]
push str.Failed_to_resolve_the_proxy_server__code__d:__s
push eax
call fcn.00427c83
add esp, 0x14
mov ecx, esi
push 0xfffffffffffffffe
call fcn.0045aea5
jmp 0x459139
push dword [edi + 0x1c]
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00459ae5
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
sete bl
test eax, eax
je 0x45913d
test edi, edi
je 0x45913d
push closesocket
push str.Failed_to_connect_to_the_proxy_server.
lea ecx, [esi + 0x44]
call fcn.0042ef3b
push 0xfffffffffffffffe
mov ecx, esi
call fcn.0045aea5
and dword [esi + 0x10], 0xfffffffc
xor al, al
jmp 0x4591b2
test bl, bl
je 0x459183
test edi, edi
je 0x459183
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x18]
or dword [esi + 0x10], 3
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004686ed
push eax
lea ecx, [edi + 0x10]
call fcn.0040887d
lea ecx, [ebp - 0x10]
call fcn.00425c1b
push edi
mov ecx, esi
call fcn.00459d61
test al, al
jne 0x459183
push 0xfffffffffffffffe
mov ecx, esi
call fcn.0045aea5
xor bl, bl
mov ecx, dword [esi + 0x10]
mov eax, ecx
and eax, 0xfffffffe
or ecx, 1
test bl, bl
cmove ecx, eax
mov eax, ecx
or ecx, 2
and eax, 0xfffffffd
test bl, bl
cmove ecx, eax
mov dword [esi + 0x10], ecx
jne 0x4591b0
test edi, edi
jne 0x4591b0
mov ecx, esi
call fcn.0045ae93
mov al, bl
pop edi
pop ebx
pop esi
leave
ret
Function at 0x459556
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push 1
push dword [ebp + 8]
call fcn.004687c4
test al, al
je 0x459577
mov al, 1
jmp 0x45965a
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
call fcn.00430653
pop ecx
test al, al
je 0x45959b
push 0x2726
call fcn.0045b4cb
pop ecx
xor al, al
jmp 0x459659
lea ecx, [ebp - 0xc]
call fcn.004282a8
push closesocket
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0042ef3b
lea ecx, [ebp - 0xc]
call fcn.00424838
cmp dword [0x4d83cc], ebx
je 0x4595d8
lea eax, [ebp - 0xc]
push eax
call fcn.00459718
pop ecx
test al, al
je 0x4595d8
push 0x2afc
jmp 0x45961d
call fcn.0045b4c2
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x459601
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2afc
jne 0x45964f
lea eax, [ebp - 0xc]
push eax
call fcn.0045965d
jmp 0x459622
cmp word [eax + 8], 2
jne 0x45960f
cmp word [eax + 0xa], 4
je 0x459625
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
jne 0x45964f
push 0x273e
call fcn.0045b4cb
pop ecx
jmp 0x45964f
mov eax, dword [eax + 0xc]
mov ecx, esi
mov edx, dword [eax]
movzx eax, byte [edx + 3]
push eax
movzx eax, byte [edx + 2]
push eax
movzx eax, byte [edx + 1]
push eax
movzx eax, byte [edx]
push eax
call fcn.00468782
mov ecx, esi
call fcn.0043898d
xor al, 1
mov bl, al
lea ecx, [ebp - 0xc]
call fcn.00425c1b
mov al, bl
pop ebx
pop esi
leave
ret

Function at 0x4597ba
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [0x4db854]
mov ecx, 0x49ab60
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4597d8
push 3
pop eax
ret
cmp word [eax + 8], 2
je 0x4597e3
push 4
pop eax
ret
cmp word [eax + 0xa], 4
je 0x4597ee
push 5
pop eax
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
mov ecx, 0x4db860
push eax
call fcn.00468782
xor eax, eax
ret
Function at 0x459961
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4d83e4]
sub esp, 0x1a0
cmp eax, 6
jne 0x459a9f
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x45999d
xor eax, eax
mov dword [0x4d83e4], 1
inc eax
leave
ret
push ebx
push esi
push edi
push 0x459aa1
call fcn.0046a28d
pop ecx
push 0x63
mov esi, 0x4db854
push 0x64
mov ecx, esi
call fcn.004234b9
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, esi
call fcn.00428e7d
push 1
xor edi, edi
mov dword [ebp - 0x10], 0x49ae28
push str.Ws2_32.dll
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.004339fe
mov ebx, 0x4db824
test al, al
je 0x459a28
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push str.GetHostNameW
lea ecx, [ebp - 0x10]
call fcn.00433992
test al, al
je 0x459a28
mov esi, dword [ebp - 4]
mov ecx, ebx
push 0x63
push 0xc8
call fcn.004234b9
push eax
call esi
mov ecx, ebx
call fcn.00428e98
mov esi, 0x4db854
cmp dword [0x4db828], edi
jg 0x459a3b
push edi
push ebx
push esi
call fcn.00458523
add esp, 0xc
mov eax, dword [0x4db854]
mov ecx, 0x49ab60
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x459a7e
push dword [eax]
mov esi, 0x4db848
mov ecx, esi
call fcn.0042efeb
mov ecx, esi
call fcn.00430ee8
mov ecx, esi
call fcn.00430ed0
push 1
push 0x2e
push 0x20
mov ecx, esi
call fcn.0042d75d
call fcn.004597ba
mov esi, eax
mov dword [ebp - 0x10], 0x49ae28
lea ecx, [ebp - 0x10]
mov dword [0x4d83e4], esi
call fcn.00433786
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45a334
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x45a538
and dword [ebp - 4], 0
mov ebx, dword [ebp + 0x10]
test bl, 4
je 0x45a365
mov dword [ebp - 4], edi
test bl, 8
jne 0x45a365
mov ecx, edi
call fcn.00425c1b
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 0xfffff
ja 0x45a538
mov eax, dword [esi + 0xc]
shr eax, 1
test al, 1
jne 0x45a38d
test byte [esi + 0x10], 1
jne 0x45a38d
push 0x2749
jmp 0x45a53d
and dword [esi + 0x14], 0
and dword [ebp - 0xc], 0
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x10], eax
mov ecx, esi
mov al, bl
and al, 1
mov byte [ebp + 0xb], al
mov eax, ebx
shr eax, 1
and eax, 0xffffff01
mov dword [ebp - 0x20], eax
call fcn.0045a59f
mov dword [ebp - 0x14], eax
mov eax, ebx
shr eax, 3
and eax, 2
mov dword [ebp + 0x10], 0xa
mov ecx, eax
or ecx, 1
and bl, 0x20
mov ebx, dword [ebp - 0xc]
cmove ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, esi
call fcn.0045a54d
mov dword [ebp - 0xc], eax
test eax, eax
jg 0x45a457
js 0x45a530
cmp byte [ebp + 0xb], 0
jne 0x45a530
push dword [ebp - 0x10]
call fcn.00457bb6
pop ecx
cmp eax, dword [esi + 0x30]
jae 0x45a524
mov eax, dword [esi + 0xc]
shr eax, 1
test al, 1
jne 0x45a41d
test byte [esi + 0x10], 1
je 0x45a510
mov ecx, esi
call fcn.00459775
test al, al
jne 0x45a51d
push dword [ebp + 0x10]
call fcn.00457a2a
add dword [ebp + 0x10], 5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], 0x3c
push eax
call fcn.004018bc
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp + 0x10], eax
jmp 0x45a3da
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00422c33
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], ecx
test eax, eax
jne 0x45a47b
mov eax, edi
jmp 0x45a48e
push ecx
mov ecx, eax
call fcn.00427eab
test eax, eax
je 0x45a534
mov ecx, dword [ebp + 0x10]
push 0
push 0
push dword [ebp - 0x18]
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x45a4af
mov ecx, esi
call fcn.0045ae93
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x45a4da
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00402d96
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.0042604b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
test eax, eax
jle 0x45a530
add ebx, eax
cmp byte [ebp - 0x20], 0
jne 0x45a4ee
cmp eax, dword [ebp - 0xc]
jge 0x45a530
mov edx, dword [ebp + 0xc]
sub edx, eax
mov dword [ebp + 0xc], edx
test edx, edx
jle 0x45a530
mov dword [ebp + 0x10], 0xa
test ecx, ecx
jne 0x45a3da
add edi, eax
jmp 0x45a3da
cmp dword [esi + 0x14], 0
jne 0x45a530
push 0x2749
jmp 0x45a529
push 0x2746
jmp 0x45a529
push 0x274c
mov ecx, esi
call fcn.0045aea5
mov eax, ebx
jmp 0x45a546
push 8
jmp 0x45a529
push 0x2726
mov ecx, esi
call fcn.0045aea5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45a54d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
shr eax, 1
test al, 1
jne 0x45a572
test byte [esi + 0x10], 1
jne 0x45a572
push 0x2749
call fcn.0045aea5
or eax, 0xffffffff
jmp 0x45a59c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x45a599
mov ecx, esi
call fcn.0045ae93
and dword [esi + 0x10], 0xfffffffe
jmp 0x45a56d
mov eax, dword [ebp - 4]
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x45ad80
mov edi, dword [ebp + 0xc]
cmp edi, 0x7fffffff
jne 0x45ac38
push ebx
call fcn.004309c0
mov edi, eax
pop ecx
mov dword [ebp + 0xc], edi
test edi, edi
jle 0x45ad80
mov ecx, dword [esi + 0xc]
shr ecx, 1
test cl, 1
jne 0x45ac5d
mov eax, dword [esi + 0x10]
shr eax, 1
test al, 1
jne 0x45ac5d
push 0x2749
jmp 0x45ad85
mov ecx, esi
call fcn.0045ad95
mov ecx, dword [esi + 0xc]
shr ecx, 1
mov dword [ebp - 8], eax
test cl, 1
je 0x45ac7c
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00459b3a
mov byte [ebp - 1], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004018e2
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
shr ecx, 1
test cl, 1
je 0x45acae
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x45acbb
push 0
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x45ad26
mov ecx, esi
call fcn.0045ae93
cmp dword [esi + 0x14], 0x2733
jne 0x45ace4
mov ecx, esi
call fcn.00459adf
test al, al
jne 0x45ad39
push 0xa
call fcn.00457a2a
pop ecx
jmp 0x45ac80
cmp dword [esi + 0x14], 0x2747
jne 0x45ad39
cmp byte [ebp - 1], 0
jne 0x45ad39
mov eax, 0x1000
cmp dword [ebp - 8], eax
jle 0x45ad39
push eax
mov ecx, esi
mov byte [ebp - 1], 1
mov dword [ebp - 8], eax
call fcn.0045adbd
push 0x2747
mov ecx, esi
mov bl, al
call fcn.0045aea5
test bl, bl
je 0x45ad39
mov ebx, dword [ebp + 8]
jmp 0x45ac80
sub edi, eax
mov dword [ebp + 0xc], edi
test edi, edi
jle 0x45ad7c
add ebx, eax
mov dword [ebp + 8], ebx
jmp 0x45ac80
mov eax, dword [esi + 0x14]
cmp eax, 0x2746
jg 0x45ad61
cmp eax, 0x2744
jge 0x45ad73
sub eax, 0x271e
je 0x45ad5b
sub eax, 0x15
je 0x45ad7c
sub eax, 0xf
je 0x45ad73
and dword [esi + 0x10], 0xfffffffd
jmp 0x45ad8c
sub eax, 0x274a
je 0x45ad5b
dec eax
sub eax, 1
je 0x45ad73
sub eax, 5
jne 0x45ad5b
mov ecx, esi
call fcn.00458ff4
jmp 0x45ad8c
mov al, 1
jmp 0x45ad8e
push 0x2726
mov ecx, esi
call fcn.0045aea5
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45ae05
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x45ae8d
push 0x4db864
xor ebx, ebx
mov dword [ebp - 0x100], esi
push ebx
push ebx
lea eax, [ebp - 0x104]
mov dword [ebp - 0x104], 1
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x45ae89
lea eax, [ebp - 0x104]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45ae89
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x45ae89
je 0x45ae8d
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
push esi
call fcn.0045b496
pop ecx
test al, al
jne 0x45ae83
cmp esi, 0x2726
jne 0x45ae85
mov bl, 1
mov al, bl
jmp 0x45ae8f
xor al, al
jmp 0x45ae8f
mov al, 1
pop esi
pop ebx
leave
ret

Function at 0x45c19a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
jne 0x45c1ab
push 2
jmp 0x45c1b4
mov edi, dword [ebp + 8]
test edi, edi
jne 0x45c1be
push 5
pop esi
call fcn.00457a21
mov eax, esi
jmp 0x45c21d
test byte [ebp + 0xc], 0x20
push dword [ebp + 0x10]
je 0x45c1e0
push edi
call fcn.0045d17d
test al, al
jne 0x45c1ed
push 0x91
call fcn.00457a13
pop ecx
push 4
jmp 0x45c21c
mov eax, dword [ebp + 0xc]
and eax, 0xffffffef
push eax
push edi
call fcn.0045c2a4
push edi
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
push edi
call fcn.00457a13
pop ecx
push 2
pop eax
cmp edi, eax
je 0x45c21d
test edi, edi
jne 0x45c210
xor eax, eax
inc eax
jmp 0x45c21d
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0045da85
push 3
pop eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45c35d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x3000f
push 0x40
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
call fcn.0045d21a
test eax, eax
jne 0x45c38b
call sub.KERNEL32.dll_GetLastError
xor ecx, ecx
cmp eax, 2
setne cl
lea eax, [ecx + 2]
jmp 0x45c3a2
push esi
push dword [ebp + 0x10]
mov ecx, edi
call fcn.0045c3a7
mov ecx, edi
mov esi, eax
call fcn.0045bb7d
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x45c3a7
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x45c3be
push 6
call fcn.00457a13
pop ecx
push 2
pop eax
jmp 0x45c3e5
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
test esi, esi
jne 0x45c3d2
inc eax
jmp 0x45c3e4
push esi
call fcn.00457a13
xor eax, eax
cmp esi, 2
pop ecx
setne al
add eax, 2
pop esi
pop ebp
ret 4

Function at 0x45c5d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x45c5e7
push 6
call fcn.00457a13
pop ecx
push 2
pop eax
jmp 0x45c60e
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x45c5fb
inc eax
jmp 0x45c60d
push esi
call fcn.00457a13
xor eax, eax
cmp esi, 2
pop ecx
setne al
add eax, 2
pop esi
pop ebp
ret 4
Function at 0x45c612
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
jne 0x45c633
push 6
call fcn.00457a13
pop ecx
xor eax, eax
jmp 0x45c6b5
push edi
push 0xc7
lea eax, [ebp - 0xd4]
xor edi, edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x45c6a1
push esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
call fcn.004282a8
push closesocket
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042ef3b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call esi
lea ecx, [ebp - 0xc]
call fcn.00425c1b
push 0xc7
lea eax, [ebp - 0xd4]
inc edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x45c651
pop esi
xor ecx, ecx
cmp eax, 0x103
cmovne ecx, eax
push ecx
call fcn.00457a13
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x45c6ba
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
jne 0x45c6db
push 6
call fcn.00457a13
pop ecx
xor eax, eax
jmp 0x45c75d
push edi
push 0xc7
lea eax, [ebp - 0x19c]
xor edi, edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x45c749
push esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
call fcn.004282a8
push closesocket
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042f491
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call esi
lea ecx, [ebp - 0xc]
call fcn.00425c1b
push 0xc7
lea eax, [ebp - 0x19c]
inc edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x45c6f9
pop esi
xor ecx, ecx
cmp eax, 0x103
cmovne ecx, eax
push ecx
call fcn.00457a13
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret 4