joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064f8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406728
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40657b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406728
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40657b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406744
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406604
xor eax, eax
push ebp
push 0x4065fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406340
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4065e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406764
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4065e2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406604
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40671e
cmp byte [ebp - 0xd], 0
jne 0x40664b
cmp byte [ebp - 0x12], 0
je 0x40671e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406664
dec ebx
cmp byte [ebx], 0x2e
je 0x406673
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406663
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40671e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4066b0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40671e
cmp byte [ebp - 0xd], 0
je 0x40671e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40671e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4089b4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404ff0
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4089d6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x409df8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409e31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c30
jmp 0x409e3a
mov eax, ebx
mov edx, esi
call fcn.00404b94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409e44
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409e65
mov al, byte [esp]
jmp 0x409e67
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a4ec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a364
mov eax, dword [0x43fe80]
cmp byte [eax], 0
je 0x40a554
mov eax, dword [0x43fd5c]
call fcn.00402e10
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408cb4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a59c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a58a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x43fd28]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x440718]
call fcn.00406304
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40b048
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b0ac
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404da8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408758
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b0b3
lea eax, [ebp - 0xc]
call fcn.00404b40
ret
Function at 0x40c714
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40c884
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x40c861
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, edi
call fcn.00404b40
lea eax, [ebp - 8]
push eax
push 1
push 0
mov eax, ebx
call fcn.00404ff0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x40c77c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c86b
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403114
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40c7f5
xor eax, eax
push ebp
push 0x40c7e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c86b
cmp dword [ebp - 0xc], 3
jne 0x40c84e
xor edx, edx
push ebp
push 0x40c844
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x40c83a
inc esi
lea ebx, [ebp - 0x110]
cmp byte [ebx], 5
jbe 0x40c836
lea eax, [ebp - 0x114]
mov dl, byte [ebx]
call fcn.00404d20
mov edx, dword [ebp - 0x114]
mov eax, edi
call fcn.00404e00
inc ebx
dec esi
jne 0x40c817
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c84e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c86b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c88b
lea eax, [ebp - 0x114]
call fcn.00404b40
ret
Function at 0x40dfec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40e05e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404df8
mov esi, eax
test esi, esi
jle 0x40e03e
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00405048
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor dx, 0x29a
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x40e021
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e065
lea eax, [ebp - 4]
call fcn.00404b40
ret

Function at 0x40e118
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40e1cb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov ecx, ebx
mov edx, 8
mov eax, dword [ebp - 8]
call fcn.004086e0
mov eax, dword [0x43ff1c]
cmp dword [eax], 2
je 0x40e1aa
lea edx, [ebp - 0x21c]
mov eax, dword [ebx]
call fcn.0040e06c
mov edx, dword [ebp - 0x21c]
mov eax, ebx
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1d2
lea eax, [ebp - 0x21c]
call fcn.00404b40
lea eax, [ebp - 4]
call fcn.00404b40
ret

Function at 0x40e1d8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x40e210
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov ebx, dword [ebp - 0x18]
shr ebx, 0x14
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e21c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e2bc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e354
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x90
call fcn.00405120
push 0x90
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x40e32d
mov eax, dword [ebp - 4]
call fcn.00404ff0
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404d30
mov eax, dword [ebp - 8]
call fcn.00404df8
mov edx, eax
lea eax, [ebp - 4]
call fcn.00405120
mov eax, ebx
mov ecx, 0x40e368
mov edx, dword [ebp - 4]
call fcn.00404e44
jmp 0x40e339
mov eax, ebx
mov edx, 0x40e374
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e35b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b64
ret
Function at 0x40e3b0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40e460
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40e433
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00405120
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ff0
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x40e41c
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405050
jmp 0x40e429
mov eax, dword [ebp - 4]
mov edx, 0x40e478
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e44a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e467
lea eax, [ebp - 8]
call fcn.00404b40
ret

Function at 0x40f758
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40f83d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.0040f6f4
mov esi, eax
test esi, esi
jle 0x40f81f
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405050
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ff0
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x40f81f
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404df8
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00405050
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ff0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f844
lea eax, [ebp - 0xc]
call fcn.00404b40
lea eax, [ebp - 4]
call fcn.00404b40
ret
Function at 0x40f850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40f97a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.0040f6f4
mov esi, eax
test esi, esi
jle 0x40f95c
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405050
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ff0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40f95c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404df8
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00405050
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ff0
mov edi, eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40f953
mov eax, dword [ebp - 0x18]
call fcn.0040272c
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40f94c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x40f943
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov bl, 1
jmp 0x40f953
mov eax, esi
call fcn.0040274c
jmp 0x40f953
mov eax, esi
call fcn.0040274c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f981
lea eax, [ebp - 0xc]
call fcn.00404b40
lea eax, [ebp - 4]
call fcn.00404b40
ret
Function at 0x40fc34
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40fd6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00404b40
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40fd51
mov byte [ebp - 9], 1
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.0040272c
mov esi, eax
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], 0x400
cmp byte [ebp + 8], 0
je 0x40fccf
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov ebx, eax
jmp 0x40fce8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x40fd39
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00405120
lea eax, [ebp - 0x10]
call fcn.00405048
mov ecx, dword [ebp - 0x18]
mov edx, esi
call fcn.004074dc
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40fd1e
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00404b94
jmp 0x40fd38
mov eax, dword [ebp - 8]
push dword [eax]
push 0x40fd8c
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00404eb8
inc edi
test ebx, ebx
je 0x40fca7
mov eax, esi
call fcn.0040274c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fd76
lea eax, [ebp - 0x10]
call fcn.00404b40
lea eax, [ebp - 4]
call fcn.00404b40
ret

Function at 0x41aad0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffaf4
mov esi, edx
mov ebx, eax
lea edi, [esp + 0x408]
mov ebp, esp
mov eax, edi
call fcn.0041a9b4
mov edx, edi
mov eax, ebx
call fcn.0041a9a4
mov edx, edi
mov eax, esi
call fcn.0041a9a4
mov dword [ebp], 0xf
xor eax, eax
mov dword [ebp + 4], eax
push ebp
push 0
push 0
push edi
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x41aae7
mov edx, edi
mov eax, ebx
call fcn.0041a98c
test al, al
je 0x41ab5c
lea eax, [esp + 8]
mov edx, 0x400
call fcn.004074e4
push 0
push 0x400
lea eax, [esp + 0x10]
push eax
push ebx
call sub.wsock32.dll_recv
test eax, eax
jle 0x41aba4
push 0
push eax
lea eax, [esp + 0x10]
push eax
push esi
call sub.wsock32.dll_send
mov edx, edi
mov eax, esi
call fcn.0041a98c
test al, al
je 0x41aae7
lea eax, [esp + 8]
mov edx, 0x400
call fcn.004074e4
push 0
push 0x400
lea eax, [esp + 0x10]
push eax
push esi
call sub.wsock32.dll_recv
test eax, eax
jle 0x41aba4
push 0
push eax
lea eax, [esp + 0x10]
push eax
push ebx
call sub.wsock32.dll_send
jmp 0x41aae7
add esp, 0x50c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41af68
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov edi, eax
xor eax, eax
push ebp
push 0x41b0c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x410]
mov edx, 0x400
call fcn.004074e4
push 0
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call sub.wsock32.dll_recv
cmp byte [ebp - 0x410], 1
je 0x41afdc
lea eax, [ebp - 0x10]
mov edx, 0x41b0e0
call fcn.00404bd8
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.0041aa6c
jmp 0x41b0ab
mov esi, 2
xor ebx, ebx
mov bl, byte [ebp - 0x40f]
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405120
lea eax, [ebp - 8]
call fcn.00405048
lea edx, [ebp + esi - 0x410]
mov ecx, ebx
call fcn.004074dc
lea esi, [ebx + 3]
xor eax, eax
mov al, byte [ebp + ebx - 0x40e]
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00405120
lea eax, [ebp - 0xc]
call fcn.00405048
lea edx, [ebp + esi - 0x410]
mov ecx, ebx
call fcn.004074dc
mov eax, dword [ebp - 8]
mov edx, 0x41b0ec
call fcn.00404f3c
jne 0x41b055
mov eax, dword [ebp - 0xc]
mov edx, 0x41b0fc
call fcn.00404f3c
je 0x41b059
xor eax, eax
jmp 0x41b05b
mov al, 1
test al, al
jne 0x41b078
lea eax, [ebp - 0x10]
mov edx, 0x41b0e0
call fcn.00404bd8
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.0041aa6c
jmp 0x41b0ab
lea eax, [ebp - 0x410]
mov edx, 0x400
call fcn.004074e4
mov byte [ebp - 0x410], 1
mov byte [ebp - 0x40f], 0
push 0
push 2
lea eax, [ebp - 0x410]
push eax
push edi
call sub.wsock32.dll_send
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b0cd
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404b64
ret
Function at 0x41b108
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x41b290
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.00404b40
lea eax, [ebp - 0x408]
mov edx, 0x400
call fcn.004074e4
push 0
push 0x400
lea eax, [ebp - 0x408]
push eax
push esi
call sub.wsock32.dll_recv
lea edx, [ebp - 0x408]
lea eax, [ebp - 3]
mov ecx, 3
call fcn.004074dc
cmp byte [ebp - 3], 5
jne 0x41b175
cmp byte [ebp - 2], 1
je 0x41b179
xor eax, eax
jmp 0x41b17b
mov al, 1
test al, al
jne 0x41b19b
lea eax, [ebp - 8]
mov edx, 0x41b2a8
call fcn.00404bd8
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0041aa6c
jmp 0x41b27a
mov al, byte [ebp - 1]
sub al, 1
jb 0x41b1ab
dec al
je 0x41b201
jmp 0x41b25f
lea eax, [ebp - 0x408]
mov edx, 0x400
call fcn.004074e4
cmp byte [0x43fb8c], 0
jne 0x41b1e8
mov byte [ebp - 0x408], 5
mov byte [ebp - 0x407], 0
push 0
push 2
lea eax, [ebp - 0x408]
push eax
push esi
call sub.wsock32.dll_send
jmp 0x41b278
lea eax, [ebp - 8]
mov edx, 0x41b2a8
call fcn.00404bd8
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0041aa6c
jmp 0x41b27a
cmp byte [0x43fb8c], 0
je 0x41b246
lea eax, [ebp - 0x408]
mov edx, 0x400
call fcn.004074e4
mov byte [ebp - 0x408], 5
mov byte [ebp - 0x407], 2
push 0
push 2
lea eax, [ebp - 0x408]
push eax
push esi
call sub.wsock32.dll_send
mov eax, esi
call fcn.0041af68
test al, al
je 0x41b27a
jmp 0x41b278
lea eax, [ebp - 8]
mov edx, 0x41b2a8
call fcn.00404bd8
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0041aa6c
jmp 0x41b27a
lea eax, [ebp - 8]
mov edx, 0x41b2a8
call fcn.00404bd8
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0041aa6c
jmp 0x41b27a
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b297
lea eax, [ebp - 8]
call fcn.00404b40
ret

Function at 0x41b300
Capabilities:
Create thread

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
jmp 0x41b32a
push esp
lea eax, [esp + 0xc]
push eax
push ebx
call sub.wsock32.dll_accept
lea edx, [esp + 4]
push edx
push 0
push eax
push 0x41b2ac
push 0
push 0
call sub.kernel32.dll_CreateThread_1
cmp byte [0x43fb88], 0
jne 0x41b308
push ebx
call sub.wsock32.dll_closesocket
mov dword [0x43fb80], 0xffffffff
add esp, 0x18
pop ebx
ret