joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fd9ded7
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], ecx
and dword [ebp - 8], esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5fd9df71
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd9df0c
test dword [eax + 0x1c], 0x400
jne 0x5fdb7e95
cmp ebx, 2
je 0x5fdad7e3
cmp ebx, 0x17
jne 0x5fd9df7c
push 0x29
pop ebx
mov dword [ebp - 4], edi
push 4
lea eax, [ebp - 4]
push eax
push 0x1f
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5fdb7eae
cmp dword [ebp + 8], 0
je 0x5fd9df71
push edi
call dword [sym.imp.WS2_32.dll_htonl]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1f
push 0
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5fdb7eed
mov eax, dword [ebp - 8]
test esi, esi
jne 0x5fdb7f2f
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x57
pop esi
jmp 0x5fd9df71
push edi
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 4], eax
jmp 0x5fd9df20
push edi
push dword [eax + 0x14]
mov edx, 0x5fd9fd68
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.5fdc7d09
jmp 0x5fd9df0c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd9df3c
test dword [eax + 0x1c], 0x400
je 0x5fd9df3c
push esi
push edi
push dword [eax + 0x14]
mov edx, 0x5fd9fd68
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.5fdc81e7
jmp 0x5fd9df3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [0x5fde9010]
cmp ecx, 0x5fde9010
je 0x5fd9df69
test dword [ecx + 0x1c], 0x400
je 0x5fd9df69
push esi
push edi
push dword [ecx + 0x14]
mov edx, 0x5fd9fd68
push dword [ecx + 0x10]
push 0x12
pop ecx
call fcn.5fdc81e7
jmp 0x5fd9df66
test eax, eax
jne 0x5fd9df71
xor esi, esi
jmp 0x5fd9df71
Function at 0x5fd9eed0
Capabilities:
Delete registry key

Disassembly:
push esi
push dword [ebp + 8]
mov edx, 0x5fdbda08
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x22
pop ecx
call fcn.5fdc7c85
jmp 0x5fd9ef03
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd9efbe
test dword [eax + 0x1c], 0x400
je 0x5fd9efbe
push dword [ebp + 8]
mov edx, 0x5fdbda08
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x23
pop ecx
call fcn.5fdc7a66
jmp 0x5fd9efbe
cmp dword [eax], 0
jne 0x5fd9ef8e
push 0
push 0
push 0x5fd950c8
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov ecx, dword [edi]
call fcn.5fd83e2e
and dword [edi], 0
jmp 0x5fd9ef8e
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fdcd44e
jmp 0x5fd9f000
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
and dword [esp + 4], 0
and dword [esp + 8], 0
push esi
push edi
mov eax, dword [0x5fde9010]
mov esi, dword [ebp + 0xc]
cmp eax, 0x5fde9010
je 0x5fd9ef03
test dword [eax + 0x1c], 0x400
jne 0x5fd94d5f
push 6
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.5fd956d8
test eax, eax
jne 0x5fd9f002
lea edx, [esp + 0x28]
lea ecx, [esp + 0x18]
call fcn.5fd98d33
mov edi, eax
test edi, edi
jne 0x5fd9efbe
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 1
push eax
lea eax, [esp + 0x20]
xor edx, edx
push eax
push edi
call fcn.5fd99ad6
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x5fd94d7b
mov eax, dword [esp + 0xc]
lea edi, [esi + 4]
push edi
mov dword [esp + 0x14], eax
xor eax, eax
push eax
push 7
push 6
push eax
push eax
lea eax, [esp + 0x30]
push eax
call sym.DNSAPI.dll_Reg_GetValueEx
mov eax, dword [edi]
test eax, eax
jne 0x5fd94db3
mov eax, dword [esp + 0x28]
and dword [esp + 0x28], 0
mov edi, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
and dword [esp + 0x38], 0
mov dword [esi + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x14], eax
lea ecx, [esp + 0x18]
call fcn.5fd959c0
cmp dword [esp + 0xc], 0
je 0x5fd9efd7
lea ecx, [esp + 0x28]
call fcn.5fd99f3d
cmp dword [esp + 0x10], 0
je 0x5fd9efe7
lea ecx, [esp + 0x44]
call fcn.5fd98de1
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd9f000
test dword [eax + 0x1c], 0x400
jne 0x5fd94dde
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5fd9fc50
Capabilities:
Set socket configuration

Disassembly:
push dword [ebp + 0x18]
movzx eax, di
push dword [ebp + 0x14]
push esi
push eax
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.5fdce626
jmp 0x5fd9fc87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, dword [0x5fde9010]
cmp ecx, 0x5fde9010
je 0x5fd94d50
test dword [ecx + 0x1c], 0x10000000
je 0x5fd94d50
push esi
push ebx
push dword [ecx + 0x14]
mov edx, 0x5fd9fd68
push dword [ecx + 0x10]
push 0x21
pop ecx
call fcn.5fdc81e7
mov eax, esi
jmp 0x5fd9fcd7
push 0x57
pop eax
jmp 0x5fd9fcd7
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5fde94a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov ecx, dword [0x5fde9010]
mov ebx, dword [ebp + 8]
mov di, word [ebp + 0xc]
cmp ecx, 0x5fde9010
je 0x5fd9fc87
test byte [ecx + 0x1c], 8
jne 0x5fd94d00
test ebx, ebx
je 0x5fd94d57
cmp ebx, 0xffffffff
je 0x5fd94d57
cmp dword [ebp + 0x14], 0
je 0x5fdad6ef
cmp word [esi], 2
jne 0x5fd9fcea
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
movzx eax, di
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0xc
push 0
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5fd94d1c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5fd83560
mov esp, ebp
pop ebp
ret 0x14
movzx eax, word [ebp + 0xc]
lea edi, [ebp - 0x18]
add esi, 8
push 0x14
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0xc
push 0x29
jmp 0x5fd9fcc5
cmp dword [ebp + 0x18], 0
jne 0x5fd9fca2
jmp 0x5fd94d57
Function at 0x5fdac8b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5fde94a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
xor edx, edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
push ebx
mov ebx, edx
push esi
lea esi, [ebp + 8]
push edi
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, edx
test ecx, ecx
je 0x5fdc4284
test eax, eax
je 0x5fdc4284
mov dword [eax], edx
lea eax, [ebp - 0x1c]
mov dword [ecx], edx
lea ecx, [ebp - 0x18]
push eax
call fcn.5fdac94a
mov esi, eax
test esi, esi
je 0x5fdc41d8
mov ecx, edi
call fcn.5fd83e2e
mov ecx, ebx
call fcn.5fd83e2e
cmp dword [ebp - 0x1c], 0
jne 0x5fdac93a
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5fd83560
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x5fdac925
lea eax, [ebp - 0x20]
push eax
xor eax, eax
push eax
push eax
push 0x20
push 0x5fdbd910
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov esi, eax
test esi, esi
jne 0x5fdac911
mov ecx, dword [ebp - 0x20]
cmp ecx, 4
jbe 0x5fdac911
call fcn.5fd85d21
mov ecx, dword [ebp - 0x20]
mov ebx, eax
shr ecx, 1
call fcn.5fd85d21
mov edi, eax
test ebx, ebx
je 0x5fdc427c
test edi, edi
je 0x5fdc427c
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push 0x20
push 0x5fdbd910
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov esi, eax
test esi, esi
jne 0x5fdac911
mov edx, dword [ebp - 0x20]
cmp edx, 2
jbe 0x5fdac911
shr edx, 1
mov ecx, ebx
push edx
push edi
call fcn.5fdded46
test eax, eax
jne 0x5fdc4266
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
jmp 0x5fdc4275
push dword [ebp - 0x24]
xor edx, edx
mov ecx, edi
push dword [ebp - 0x28]
call fcn.5fddc007
mov esi, eax
jmp 0x5fdac911
push 0xe
pop esi
jmp 0x5fdac911
push 0x57
pop eax
jmp 0x5fdac927

Function at 0x5fdaca20
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5fde94a8]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fdaca56
test dword [eax + 0x1c], 0x400
jne 0x5fdc42ca
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
and dword [0x5fde9110], 0
mov esi, eax
call fcn.5fdaca8e
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.5fd83560
mov esp, ebp
pop ebp
ret
push dword [eax + 0x14]
mov edx, 0x5fdbd900
push dword [eax + 0x10]
push 0xc
pop ecx
call fcn.5fdc44b5
jmp 0x5fdaca56
Function at 0x5fdc5430
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
call fcn.5fdc61d3
test eax, eax
jne 0x5fdc5447
push 0xe
pop eax
jmp 0x5fdc550e
cmp dword [0x5fdeb780], 0xa
push esi
jne 0x5fdc5458
xor esi, esi
jmp 0x5fdc5500
push ebx
push edi
xor edi, edi
mov dword [0x5fdeb780], 5
push edi
push edi
xor ebx, ebx
mov dword [0x5fdeb794], edi
inc ebx
push ebx
push edi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_CreateEventW]
mov dword [0x5fdeb7a8], eax
test eax, eax
je 0x5fdc54e4
push 0x1f0003
push edi
push edi
push 0xffff
push edi
push edi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_CreateSemaphoreExW]
mov ecx, eax
mov dword [0x5fdeb7a4], ecx
test ecx, ecx
je 0x5fdc54e4
mov eax, dword [0x5fdeb7a8]
push 0x5fdeb740
mov dword [0x5fdeb79c], eax
mov dword [0x5fdeb7a0], ecx
call dword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
mov esi, eax
test esi, esi
jne 0x5fdc54f3
mov dword [0x5fdeb784], ebx
call fcn.5fdc4d69
mov esi, eax
test esi, esi
je 0x5fdc5514
mov dword [0x5fdeb790], edi
mov dword [0x5fdeb78c], edi
test esi, esi
jne 0x5fdc54f3
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x5fdc54f3
push 0xe
pop esi
call fcn.5fdc4dd7
mov dword [0x5fdeb780], ebx
pop edi
pop ebx
push 0x5fdeb760
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x5fdc5554
push dword [ecx + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.5fddcd1c
mov dword [0x5fdeb77c], eax
test eax, eax
je 0x5fdc54e4
xor ecx, ecx
call fcn.5fd96151
test eax, eax
je 0x5fdc5543
mov esi, 0x558
jmp 0x5fdc54f3
mov edx, dword [0x5fdeb77c]
call fcn.5fda405b
mov esi, eax
test esi, esi
jne 0x5fdc553c
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x5fdc59e0
push edi
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
mov dword [0x5fdeb798], eax
test eax, eax
je 0x5fdc54e0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5fdc558b
mov ecx, 0xffff
cmp eax, ecx
jbe 0x5fdc5586
mov eax, ecx
mov dword [0x5fdeaa60], eax
mov dword [0x5fdeb780], 0xa
mov esi, edi
jmp 0x5fdc54fe
Function at 0x5fdc6400
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5fde94a8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push esi
push edi
lea esi, [ebp + 8]
xor edx, edx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x14]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.5fdac94a
mov esi, eax
cmp esi, 2
jne 0x5fdc643b
xor eax, eax
jmp 0x5fdc6467
test esi, esi
jne 0x5fdc6456
push 0x5fdbd910
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
lea esi, [eax - 2]
neg esi
sbb esi, esi
and esi, eax
cmp dword [ebp - 0x18], 0
je 0x5fdc6465
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.5fd83560
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5fdc6480
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5fde94a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
lea esi, [ebp + 8]
mov dword [ebp - 0x20], eax
lea edi, [ebp - 0x14]
xor ebx, ebx
and dword [ebp - 0x18], ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x5fdc655b
test eax, eax
je 0x5fdc655b
lea eax, [ebp - 0x18]
xor edx, edx
push eax
inc edx
lea ecx, [ebp - 0x14]
call fcn.5fdac94a
mov esi, eax
test esi, esi
jne 0x5fdc655e
imul edi, edi, 0xb
inc edi
lea ecx, [edi + edi]
call fcn.5fd85d21
mov ebx, eax
test ebx, ebx
jne 0x5fdc64ec
push 0xe
jmp 0x5fdc655d
xor eax, eax
mov esi, ebx
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x18], eax
jbe 0x5fdc652c
mov ecx, dword [ebp - 0x20]
push dword [ecx + eax*4]
push 0x5fdc658c
push edi
push esi
call dword [sym.imp.api_ms_win_core_crt_l1_1_0.dll_swprintf_s]
add esp, 0x10
cmp eax, 1
jl 0x5fdc6537
or ecx, 0xffffffff
lea esi, [esi + eax*2]
sub ecx, eax
add esi, 2
mov eax, dword [ebp - 0x1c]
add edi, ecx
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp + 0x18]
jb 0x5fdc64f8
test edi, edi
jne 0x5fdc653b
mov esi, 0x50c
jmp 0x5fdc655e
push 0xd
jmp 0x5fdc655d
sub esi, ebx
add esi, 2
and esi, 0xfffffffe
push esi
push ebx
push 7
push 0
push 0x5fdbd910
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
jmp 0x5fdc655e
push 0x57
pop esi
mov ecx, ebx
call fcn.5fd83e2e
cmp dword [ebp - 0x18], 0
je 0x5fdc6574
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5fd83560
mov esp, ebp
pop ebp
ret 0x18
Function at 0x5fdc8890
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jne 0x5fdc88a8
or ebx, 0xffffffff
test bl, 3
je 0x5fdc8907
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x14]
and dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x14]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x5fdc8907
mov eax, dword [esp + 0xc]
push eax
mov esi, dword [eax + 4]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
cmp esi, 0x17
jne 0x5fdc88fa
test bl, 1
je 0x5fdc8946
xor eax, eax
inc eax
jmp 0x5fdc8948
push 2
pop eax
cmp esi, eax
jne 0x5fdc8946
test al, bl
je 0x5fdc8946
jmp 0x5fdc8948
mov esi, 0x200
mov edi, 0x2554
test esi, ebx
je 0x5fdc892b
push 3
push dword [ebp + 8]
call sym.DNSAPI.dll_DnsValidateName_W
test eax, eax
je 0x5fdc8927
cmp eax, edi
jne 0x5fdc892b
mov eax, esi
jmp 0x5fdc8948
mov esi, 0x100
test esi, ebx
je 0x5fdc8946
push 3
push dword [ebp + 8]
call sym.DNSAPI.dll_DnsValidateName_W
test eax, eax
je 0x5fdc8927
cmp eax, edi
je 0x5fdc8927
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5fdc8f5f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x5fde94a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov eax, 0x5fdc90b0
mov dword [ebp - 0x80c], esi
mov dword [ebp - 0x810], esi
push edi
mov edi, ecx
test edx, edx
jne 0x5fdc8f94
mov eax, 0x5fd953f0
push ebx
lea ecx, [ebp - 0x80c]
mov ebx, 0x20019
push ecx
push ebx
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x5fdc8ffc
mov edx, eax
mov ecx, 0x5fdc9130
call fcn.5fd9a75d
cmp dword [ebp - 0x810], 0
pop ebx
je 0x5fdc8fd5
push dword [ebp - 0x810]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x80c], 0
je 0x5fdc8fea
push dword [ebp - 0x80c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.5fd83560
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x810]
push eax
push ebx
push esi
push edi
push dword [ebp - 0x80c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x5fdc8fb3
lea eax, [ebp - 0x814]
mov edi, 0x800
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x814], edi
push eax
lea eax, [ebp - 0x818]
push eax
push esi
push 0x5fd9392c
push dword [ebp - 0x810]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x5fdc8fbf
cmp dword [ebp - 0x818], 1
jne 0x5fdc8fbf
mov eax, dword [ebp - 0x814]
cmp eax, 2
jae 0x5fdc9070
cmp eax, edi
ja 0x5fdc8fbf
and eax, 0xfffffffe
cmp eax, 0x802
jae 0x5fdc90a3
xor ecx, ecx
mov word [ebp + eax - 0x808], cx
cmp word [ebp - 0x808], cx
je 0x5fdc8fbf
lea ecx, [ebp - 0x808]
call fcn.5fd87890
mov esi, eax
jmp 0x5fdc8fbf
call fcn.5fdc0601
int3
Function at 0x5fdcbf0f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, dword [0x5fde9010]
cmp ecx, 0x5fde9010
je 0x5fdcbf68
test dword [ecx + 0x1c], 0x400
je 0x5fdcbf68
cmp edi, 1
jne 0x5fdcbf48
mov ebx, dword [esi + 8]
mov edx, 0x5fdeb7b0
jmp 0x5fdcbf50
mov edx, dword [esi + 8]
mov ebx, 0x5fdeb7b0
push dword [esi + 0x2c]
movzx eax, word [esi + 0xc]
push dword [esi + 0x10]
push eax
push edx
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.5fdcc8aa
mov dword [esi + 0x18], edi
cmp edi, 1
jne 0x5fdcbfe0
and dword [esi + 0x40], 0
mov edi, dword [ebp - 4]
xor ecx, ecx
cmp dword [esi + 0x2c], ecx
je 0x5fdcc059
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
push fcn.5fdcc4c0
push ecx
push ecx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
test eax, eax
jne 0x5fdcc04b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fdcbfce
test dword [eax + 0x1c], 0x10000000
je 0x5fdcbfce
push esi
push dword [eax + 0x14]
mov edx, 0x5fdbd58c
push dword [eax + 0x10]
push 0x35
pop ecx
call fcn.5fdc7d09
test esi, esi
jne 0x5fdcbfd5
push 0xe
pop esi
mov ecx, edi
call fcn.5fd83e2e
mov eax, esi
jmp 0x5fdcc05f
cmp edi, 3
je 0x5fdcbfea
cmp edi, 2
jne 0x5fdcbf74
mov ebx, dword [esi + 8]
test ebx, ebx
jne 0x5fdcbff6
push 0x57
pop eax
jmp 0x5fdcc05f
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5fdcbffb
sub ecx, edx
movzx eax, cx
mov dword [ebp - 8], eax
lea ecx, [eax*2 + 2]
mov dword [ebp - 0xc], ecx
call fcn.5fd85d21
mov dword [ebp - 4], eax
test eax, eax
jne 0x5fdcc024
push 0xe
jmp 0x5fdcbff3
push 1
push edi
push dword [ebp - 8]
lea edx, [ebp - 0xc]
mov ecx, eax
push ebx
call fcn.5fd85b0e
mov edi, dword [ebp - 4]
test eax, eax
jne 0x5fdcc040
push 0x7b
jmp 0x5fdcbfd4
mov dword [esi + 8], edi
mov dword [esi + 0x40], ebx
jmp 0x5fdcbf77
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, 0x3e5
jmp 0x5fdcc05f
push esi
call fcn.5fdcc4c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5fdcd2f5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov eax, dword [0x5fde9010]
push 0x13
pop ebx
cmp eax, 0x5fde9010
je 0x5fdcd32b
test dword [eax + 0x1c], 0x400
je 0x5fdcd32b
push edi
push ebx
push dword [eax + 0x14]
mov edx, 0x5fdbda08
push dword [eax + 0x10]
push 0x29
pop ecx
call fcn.5fdc81e7
mov ecx, 0x410
mov dword [edi], ebx
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.5fd85d21
mov ebx, eax
test ebx, ebx
je 0x5fdcd403
push 0x5fdcd408
mov edx, 0x104
mov ecx, ebx
call fcn.5fd8aba9
push dword [0x5fdea324]
mov edx, 0x104
mov ecx, ebx
call fcn.5fd8aa81
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fdcd393
test dword [eax + 0x1c], 0x400
je 0x5fdcd393
push ebx
push dword [eax + 0x14]
mov edx, 0x5fdbda08
push dword [eax + 0x10]
push 0x2a
pop ecx
call fcn.5fdc7a66
push 0x104
lea eax, [ebx + 0x208]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
test eax, eax
je 0x5fdcd3ca
cmp eax, 0x104
jae 0x5fdcd3ca
push 0xa
lea eax, [ebx + 0x208]
push esi
push eax
call dword [sym.imp.api_ms_win_core_crt_l1_1_0.dll_wcstoul]
xor esi, esi
mov dword [edi + 4], eax
add esp, 0xc
inc esi
mov dword [edi + 8], esi
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fdcd3fa
test dword [eax + 0x1c], 0x400
je 0x5fdcd3fa
push dword [edi + 4]
mov edx, 0x5fdbda08
push esi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2b
pop ecx
call fcn.5fdc455e
mov ecx, ebx
call fcn.5fd83e2e
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x5fdce150
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5fde94a8]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x5fde9010]
mov edi, 0x5fde9010
cmp eax, edi
je 0x5fdce19e
test byte [eax + 0x1c], 8
je 0x5fdce19e
push dword [ebp + 8]
mov edx, 0x5fd9fd68
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.5fdc7d09
mov eax, dword [0x5fde9010]
cmp dword [ebp + 8], 0
jne 0x5fdce1b1
cmp dword [0x5fde9370], 0
jne 0x5fdce24b
mov ebx, 0x400
mov esi, 0x202
cmp eax, edi
je 0x5fdce1d8
test dword [eax + 0x1c], ebx
je 0x5fdce1d8
push esi
push dword [eax + 0x14]
mov edx, 0x5fd9fd68
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.5fdc7d09
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x5fdce211
mov ecx, dword [0x5fde9010]
cmp ecx, edi
je 0x5fdce20d
test dword [ecx + 0x1c], ebx
je 0x5fdce20d
push esi
push dword [ecx + 0x14]
mov edx, 0x5fd9fd68
push dword [ecx + 0x10]
push 0xc
pop ecx
call fcn.5fdc7d09
mov eax, esi
jmp 0x5fdce24d
mov ecx, dword [0x5fde9010]
cmp ecx, edi
je 0x5fdce23f
test dword [ecx + 0x1c], ebx
je 0x5fdce23f
movzx eax, word [esp + 0x10]
mov edx, 0x5fd9fd68
push eax
movzx eax, word [esp + 0x16]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xd
pop ecx
call fcn.5fdc81e7
xor eax, eax
mov ecx, 0x5fde9370
inc eax
lock xadd dword [ecx], eax
xor eax, eax
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.5fd83560
mov esp, ebp
pop ebp
ret 4