joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [eax + 0x70], 0
mov dword [eax + 0x4c], ecx
jne 0x10002ab3
mov dword [eax + 0x70], 1
mov dword [eax + 0x54], ecx
mov edx, ecx
sub edx, dword [eax + 0x54]
cmp edx, 0x2710
jge 0x10002ac8
cmp edx, 0xffffd8f0
jge 0x10002acd
mov dword [eax + 0x54], ecx
jmp 0x10002ad1
test edx, edx
js 0x10002aec
mov edx, dword [eax + 0x50]
add dword [eax + 0x54], edx
push esi
push edi
mov edi, ecx
sub edi, dword [eax + 0x54]
pop edi
pop esi
js 0x10002ae7
add edx, ecx
mov dword [eax + 0x54], edx
jmp fcn.100024b0
ret

Function at 0x10002c80
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x100181b0]
xor eax, esp
mov dword [esp + 0x198], eax
push edi
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi], vtable.CTcpSocket.0
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], eax
lea eax, [esp + 8]
push eax
push 0x202
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [esi + 0x18]
push ecx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x19c]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x14], edi
pop edi
xor ecx, esp
mov dword [esi + 0x64], 0xffffffff
mov eax, esi
call fcn.10006b75
mov esp, ebp
pop ebp
ret
Function at 0x10003260
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
cmp ebx, 0x40000
jl 0x100032bd
jmp 0x10003280
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
push 0
push 0x40000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100032a1
inc edi
cmp edi, 0xf
jl 0x10003282
cmp edi, 0xf
je 0x100032ee
add dword [ebp - 4], eax
sub ebx, 0x40000
add esi, 0x40000
cmp ebx, 0x40000
jge 0x10003280
test ebx, ebx
jle 0x100032e6
xor edi, edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100032de
inc edi
cmp edi, 0xf
jl 0x100032c3
cmp edi, 0xf
je 0x100032ee
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x100032f1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10003500
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x198]
xor ebx, ebx
cmp eax, ebx
jne 0x10003522
mov dword [esi + 0x1b8], 0x598
jmp 0x10003539
cmp eax, 0x598
jbe 0x10003533
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x1b8], eax
push edi
mov dword [esi + 0x64], ebx
call fcn.10003660
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, 1
push 0x1001a2c4
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [ebp - 8], ebx
call edi
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x10003578
push 0x1001a2c4
call edi
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
mov ebx, 0x40000
push ecx
mov dword [ebp - 4], ebx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 4]
push edx
push 0x1002
push 0xffff
push eax
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.100036f0
test eax, eax
je 0x1000360d
lea eax, [esi + 0x58]
push eax
push 0
push esi
push 0x10003870
push 0
push 0
call fcn.1000757b
add esp, 0x18
mov dword [esi + 0x54], eax
test eax, eax
je 0x100035ff
mov ecx, dword [esi + 0x2c]
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x5c], 8
push 0x65f
jmp 0x1000361b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x5c], 0xb
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.10003f60
push edi
call ebx
mov edi, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100036f0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100181b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x11
push 2
xor edi, edi
push 2
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x10003732
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006b75
mov esp, ebp
pop ebp
ret 8
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x9800000c
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push ecx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0xffff
push eax
call edi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0
push 0
push 0
push 0
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.10006b5f
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x20]
push edi
mov byte [edi + edx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
mov ebx, eax
call fcn.10006b6a
add esp, 4
test ebx, ebx
je 0x1000371e
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push 0x30
push edx
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10003857
mov edx, dword [esi + 0x40]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10003850
cmp eax, 0xffffffff
jne 0x10003847
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003850
mov dword [ebp - 0x18], 0
jmp 0x10003857
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop ebx
call fcn.10006b75
mov esp, ebp
pop ebp
ret 8
Function at 0x10003bf0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [eax + 0x14]
push ebx
test eax, eax
jne 0x10003c13
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10003c2c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
xor eax, eax
pop ebx
ret
push edi
lea eax, [esi + 0x19c]
push eax
lea ecx, [esi + 0x1d8]
mov ebx, 1
push ecx
mov dword [esi + 0x60], ebx
mov ecx, esi
mov eax, esi
mov dword [esi + 0x64], ebx
call fcn.10004b00
mov edx, dword [esi + 0x40]
xor edi, edi
push edi
push edi
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10003c75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10003c75
xor edi, edi
mov eax, dword [esi + 0x48]
push eax
call fcn.10002c70
add esp, 4
test edi, edi
pop edi
je 0x10003c90
mov eax, 0x80004005
call fcn.10001280
mov eax, ebx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esp, [esp]
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x40]
push 0
push 0x598
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x10003d72
cmp edi, 0x10
jne 0x10003cf8
mov edx, dword [ebx + 0x70]
mov ecx, eax
mov eax, 0x10016428
sub edx, eax
cmp ecx, 4
jb 0x10003daa
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10003cf8
sub ecx, 4
add eax, 4
jmp 0x10003ce0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebx + 0x1c0]
mov edx, dword [ebx + 0x1c8]
mov eax, dword [ebx + 0x70]
lea esi, [ebx + 0x1d8]
cmp edi, 0x18
jl 0x10003d26
push ecx
push edi
push eax
mov edi, edx
call fcn.10005080
jmp 0x10003d30
cmp edi, 0xc
jne 0x10003da0
call fcn.10004f30
cmp eax, 2
jne 0x10003cb0
mov edx, dword [ebx + 0x48]
push edx
call fcn.10002c70
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10003d54
mov eax, 0x4c7
mov ecx, 1
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x34], 4
pop edi
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x38], eax
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
cmp edi, 0xffffffff
jne 0x10003cb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003dc7
cmp eax, 0x2744
je 0x10003cb0
cmp eax, 0x2746
je 0x10003cb0
jmp 0x10003d54
push 0xd
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x10003d39
xor eax, eax
pop edi
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 5
mov dword [ebx + 0x3c], eax
pop esi
mov dword [ebx + 0x38], eax
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x10003f60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [esi + 0x64]
cmp eax, 3
je 0x10004048
lea edi, [esi + 0x15c]
push edi
call fcn.10002ba0
mov ecx, dword [esi + 0x64]
cmp ecx, 1
je 0x10003f98
mov edx, dword [esi + 0x64]
test edx, edx
jne 0x10004042
mov dword [esi + 0x64], 2
mov dword [edi], 0
mov eax, ebx
call fcn.10004160
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10003fd3
cmp dword [esi + 0x3c], 0
je 0x10003fcc
mov ecx, dword [esi + 0x40]
push 0
push 0x10
push 0x10016428
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi + 0x60], 0
cmp dword [esi + 0x30], 0
je 0x10003ffb
mov edx, dword [esi + 0x48]
push edx
call fcn.10002c70
mov eax, dword [esi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10004010
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x10004032
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x40], 0xffffffff
mov edi, esi
call fcn.10004060
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov dword [edi], 0
push 0x139f
mov dword [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10004430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x264]
push ecx
call edi
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0
lea ebx, [esi + 0x18]
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov word [esi + 0x28], ax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov word [esi + 0x28], 0xca
cmp ecx, 3
je 0x10004490
mov eax, esi
call fcn.10003f60
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, esi
call fcn.10003500
mov ecx, dword [esi + 0x264]
push 0x1770
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100044e9
cmp eax, 0x102
je 0x100044d5
cmp eax, 0xffffffff
jne 0x100044de
mov edx, dword [esi + 0x264]
push edx
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x264]
push eax
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 0x264]
push ecx
call edi
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x10004530
push 0
push 0
call fcn.1000757b
add esp, 0x18
pop edi
mov dword [esi + 0x268], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005560
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [eax]
sub esp, 0x18
cmp ecx, 4
ja case.0x1000556e.2
jmp dword [ecx*4 + 0x10005684]
mov dword [esi + 0x18], closesocket
jmp 0x100055a0
mov dword [esi + 0x18], closesocket
jmp 0x100055a0
mov dword [esi + 0x18], reloc.WS2_32.dll_closesocket
jmp 0x100055a0
mov dword [esi + 0x18], htons
jmp 0x100055a0
mov dword [esi + 0x18], closesocket
mov ecx, dword [eax + 1]
push ebx
mov ebx, dword [eax + 5]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 9]
add eax, 0xd
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x1000567c
push edi
test ebx, ebx
je 0x1000560e
lea eax, [ebx + 2]
push eax
call fcn.10006b5f
mov edi, eax
lea eax, [ebx + 2]
push eax
push 0
push edi
call fcn.1000d240
mov edx, dword [ebp - 8]
push ebx
push edx
push edi
call fcn.1000d2c0
mov ecx, dword [esi + 0x18]
add esp, 0x1c
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005661
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], ebx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x18], edx
lea ebx, [ecx + 2]
push ebx
call fcn.10006b5f
push ebx
mov edi, eax
push 0
push edi
call fcn.1000d240
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
push ecx
push edx
push edi
call fcn.1000d2c0
mov eax, dword [esi + 0x18]
add esp, 0x1c
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x10005661
mov byte [ebp - 1], 3
cmp dword [esi + 8], eax
jne 0x1000567b
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp - 1]
push eax
call edx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 8], 0
mov byte [ebp - 1], 2
jne 0x1000567b
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push 1
lea edx, [ebp - 1]
push edx
call eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100056a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
movzx eax, byte [esi]
push edi
mov edi, ecx
cmp eax, 4
ja case.0x100056b5.2
jmp dword [eax*4 + 0x10005804]
mov dword [edi + 0x18], closesocket
jmp 0x100056e7
mov dword [edi + 0x18], closesocket
jmp 0x100056e7
mov dword [edi + 0x18], reloc.WS2_32.dll_closesocket
jmp 0x100056e7
mov dword [edi + 0x18], htons
jmp 0x100056e7
mov dword [edi + 0x18], closesocket
mov eax, dword [esi + 1]
mov ebx, dword [esi + 5]
mov ecx, dword [esi + 9]
add esi, 0xd
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x100057dc
test ebx, ebx
je 0x100057dc
test eax, eax
jle 0x10005768
add eax, 2
push eax
call fcn.10006b5f
mov ebx, eax
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
push 0
push ebx
call fcn.1000d240
mov eax, dword [ebp - 0x14]
push eax
push esi
push ebx
call fcn.1000d2c0
mov edx, dword [edi + 0x18]
add esp, 0x1c
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100057e3
mov eax, dword [ebp - 8]
add esi, dword [ebp - 0x14]
push ebx
mov dword [edi + 0x18], eax
call fcn.1000761b
mov ebx, dword [ebp - 0x10]
add esp, 4
lea eax, [ebx + 2]
push eax
call fcn.10006b5f
lea ecx, [ebx + 2]
push ecx
push 0
push eax
mov dword [ebp - 8], eax
call fcn.1000d240
mov eax, dword [ebp - 8]
push ebx
push esi
push eax
call fcn.1000d2c0
add esp, 0x1c
add esi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [edi + 0x18]
lea ecx, [eax + eax + 2]
push ecx
push esi
mov esi, dword [ebp - 8]
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 1], 3
test eax, eax
je 0x100057bb
mov byte [ebp - 1], 2
cmp dword [edi + 8], 0
jne 0x100057d3
mov edi, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [eax + 8]
push 1
lea ecx, [ebp - 1]
push ecx
mov ecx, edi
call edx
push esi
call fcn.1000761b
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 8], 0
mov byte [ebp - 1], 2
jne 0x100057dc
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp - 1]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
movzx eax, byte [esi]
push edi
cmp eax, 4
ja case.0x10005836.2
jmp dword [eax*4 + 0x1000598c]
mov dword [ebx + 0x18], closesocket
jmp 0x10005868
mov dword [ebx + 0x18], closesocket
jmp 0x10005868
mov dword [ebx + 0x18], reloc.WS2_32.dll_closesocket
jmp 0x10005868
mov dword [ebx + 0x18], htons
jmp 0x10005868
mov dword [ebx + 0x18], closesocket
mov eax, dword [esi + 1]
mov edi, dword [esi + 5]
mov ecx, dword [esi + 9]
add esi, 0xd
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
test ecx, ecx
je 0x1000595d
test edi, edi
je 0x1000595d
test eax, eax
jle 0x100058e9
add eax, 2
push eax
call fcn.10006b5f
mov edi, eax
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
push 0
push edi
call fcn.1000d240
mov eax, dword [ebp - 0xc]
push eax
push esi
push edi
call fcn.1000d2c0
mov edx, dword [ebx + 0x18]
add esp, 0x1c
lea ecx, [ebp + 8]
push ecx
push 0xf003f
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005966
mov eax, dword [ebp + 8]
add esi, dword [ebp - 0xc]
push edi
mov dword [ebx + 0x18], eax
call fcn.1000761b
mov edi, dword [ebp - 8]
add esp, 4
lea eax, [edi + 2]
push eax
call fcn.10006b5f
lea ecx, [edi + 2]
push ecx
push 0
push eax
mov dword [ebp + 8], eax
call fcn.1000d240
mov eax, dword [ebp + 8]
push edi
push esi
push eax
call fcn.1000d2c0
add esp, 0x1c
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebx + 0x18]
lea ecx, [eax + eax + 2]
push ecx
push esi
mov esi, dword [ebp + 8]
push 2
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp + 0xb], 3
test eax, eax
je 0x1000593c
mov byte [ebp + 0xb], 2
cmp dword [ebx + 8], 0
jne 0x10005954
mov ebx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push 1
lea ecx, [ebp + 0xb]
push ecx
mov ecx, ebx
call edx
push esi
call fcn.1000761b
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 8], 0
mov byte [ebp + 0xb], 2
jne 0x1000595d
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp + 0xb]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100059a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
movzx eax, byte [esi]
cmp eax, 4
ja case.0x100059b5.2
jmp dword [eax*4 + 0x10005b50]
mov dword [ebx + 0x18], closesocket
jmp 0x100059e7
mov dword [ebx + 0x18], closesocket
jmp 0x100059e7
mov dword [ebx + 0x18], reloc.WS2_32.dll_closesocket
jmp 0x100059e7
mov dword [ebx + 0x18], htons
jmp 0x100059e7
mov dword [ebx + 0x18], closesocket
mov ecx, dword [esi + 1]
mov eax, dword [esi + 5]
mov edx, dword [esi + 9]
add esi, 0xd
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test edx, edx
je 0x10005b45
test eax, eax
je 0x10005b45
push edi
test ecx, ecx
jle 0x10005a69
lea eax, [ecx + 2]
push eax
call fcn.10006b5f
mov edi, eax
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
push 0
push edi
call fcn.1000d240
mov eax, dword [ebp - 0xc]
push eax
push esi
push edi
call fcn.1000d2c0
mov edx, dword [ebx + 0x18]
add esp, 0x1c
lea ecx, [ebp + 8]
push ecx
push 0xf003f
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005afe
mov eax, dword [ebp + 8]
add esi, dword [ebp - 0xc]
push edi
mov dword [ebx + 0x18], eax
call fcn.1000761b
mov eax, dword [ebp - 8]
add esp, 4
add eax, 2
push eax
call fcn.10006b5f
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 2
push eax
push 0
push edi
call fcn.1000d240
mov eax, dword [ebp - 8]
push eax
push esi
push edi
call fcn.1000d2c0
mov ecx, dword [ebp - 8]
add ecx, esi
push ecx
call fcn.1000786f
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
mov ecx, dword [ebx + 0x18]
add esp, 0x20
or eax, 0xc00
mov dword [ebp - 4], eax
push 4
fldcw word [ebp - 4]
lea eax, [ebp + 8]
push eax
push 4
push 0
push edi
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
push ecx
fldcw word [ebp + 0xa]
mov dword [ebp + 8], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10005b21
mov byte [ebp + 0xb], 3
cmp dword [ebx + 8], eax
jne 0x10005b3b
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp + 0xb]
push eax
call edx
push edi
call fcn.1000761b
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 8], 0
mov byte [ebp + 0xb], 2
jne 0x10005b44
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp + 0xb]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 8], 0
mov byte [ebp + 0xb], 2
jne 0x10005b3b
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push 1
lea edx, [ebp + 0xb]
push edx
call eax
push edi
call fcn.1000761b
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10005b70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ecx]
cmp eax, 4
ja case.0x10005b7c.2
jmp dword [eax*4 + 0x10005bfc]
mov dword [esi + 0x18], closesocket
jmp 0x10005bae
mov dword [esi + 0x18], closesocket
jmp 0x10005bae
mov dword [esi + 0x18], reloc.WS2_32.dll_closesocket
jmp 0x10005bae
mov dword [esi + 0x18], htons
jmp 0x10005bae
mov dword [esi + 0x18], closesocket
mov eax, dword [esi + 0x18]
add ecx, 2
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10005bdd
mov byte [ebp - 1], 3
cmp dword [esi + 8], eax
jne 0x10005bf7
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp - 1]
push eax
call edx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 8], 0
mov byte [ebp - 1], 2
jne 0x10005bf7
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push 1
lea edx, [ebp - 1]
push edx
call eax
mov esp, ebp
pop ebp
ret