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

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x44bd72
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.0044bad0
test eax, eax
jne 0x44bd8f
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x44bdb6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x44be04
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.0044b7e0
test eax, eax
jne 0x44bded
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x44bdd3
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.WS2_32.dll_bind
mov ecx, edi
call fcn.0044b5b0
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x44be27
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4

Function at 0x465f68
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465fa0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046401f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00463ff7
jmp 0x465fac
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x467656
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467698
call fcn.0046d10d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467698
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46768f
xor eax, eax
jmp 0x4676a0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004676a6
pop edi
pop esi
pop ebx
ret 4
Function at 0x46d63d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46d66b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d689
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d5a3
jmp 0x46d689
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d689
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d5a3
test edi, edi
mov eax, edi
jne 0x46d673
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401660
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x40362b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x134]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], edi
push ecx
push 0x2001f
push edi
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x4016d8
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edi
je 0x4016c8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x4016ea
jmp 0x4016dc
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x401785
push ecx
jmp 0x40177f
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push edi
push edi
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x401750
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401660
mov ebx, eax
cmp ebx, edi
jne 0x4017a1
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x401712
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x401763
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x134]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x401785
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4017b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x401787
Function at 0x401b70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4036d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_2
xor eax, eax
mov dword [esi + 8], 0x404340
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], 0x40432c
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 8]
mov dword [esi], 0x404328
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401230
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x422310]
push esi
push edi
xor edi, edi
push edi
mov dword [esp + 0x20], eax
mov esi, ecx
mov dword [esp + 0xc], 0x10
mov word [esp + 0x10], 2
mov dword [esp + 0x14], edi
call dword [sym.imp.WS2_32.dll_htons]
push edi
push 1
push 2
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
je 0x4012ac
push 0x10
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x401296
mov ecx, dword [esi + 0x10]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4012bd
mov edx, dword [esi + 0x10]
push 2
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x14]
call fcn.0040f12e
add esp, 0x18
ret
mov eax, dword [esi + 0x10]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 0xe]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x1c]
movzx edx, ax
pop edi
mov dword [esi + 0x9c], edx
mov eax, 1
pop esi
call fcn.0040f12e
add esp, 0x18
ret

Function at 0x401370
Capabilities:
Connect socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x422310]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 2], eax
mov dword [esp + 6], eax
push esi
mov dword [esp + 0xe], eax
mov esi, ecx
mov word [esp + 0x12], ax
mov eax, dword [esi + 0x18]
push edi
xor edi, edi
cmp eax, 0xffffffff
mov word [esp + 8], di
jne 0x4013f6
push edi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
je 0x4013f6
mov ecx, dword [esi + 0x94]
xor edx, edx
mov dx, word [esi + 0x98]
mov word [esp + 8], 2
mov dword [esp + 0xc], ecx
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x18]
mov word [esp + 0xa], ax
push 0x10
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov eax, 1
jne 0x4013f8
mov eax, edi
mov ecx, dword [esp + 0x18]
pop edi
pop esi
call fcn.0040f12e
add esp, 0x14
ret
Function at 0x401ee0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x422310]
push esi
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0xc]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402060
cmp eax, 0x104
jg 0x402060
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.0040fab0
add esp, 8
test eax, eax
je 0x401f4c
mov byte [eax + 1], 0
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401f51
mov edx, dword [0x41c350]
mov eax, dword [0x41c354]
mov cl, byte [0x41c358]
mov dword [edi], edx
lea edx, [esp + 8]
mov dword [edi + 4], eax
push edx
mov byte [edi + 8], cl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40204c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41c33c
push esi
call edi
push 0x41c330
push esi
mov dword [0x422f04], eax
call edi
push 0x41c318
push esi
mov dword [0x422f08], eax
call edi
push 0x41c308
push esi
mov dword [0x422f0c], eax
call edi
push 0x41c2f0
push esi
mov dword [0x422f10], eax
call edi
push 0x41c2d4
push esi
mov dword [0x422f14], eax
call edi
push 0x41c2bc
push esi
mov dword [0x422f18], eax
call edi
mov ecx, dword [0x422f04]
test ecx, ecx
mov dword [0x422f1c], eax
je 0x402045
mov ecx, dword [0x422f08]
test ecx, ecx
je 0x402045
mov ecx, dword [0x422f0c]
test ecx, ecx
je 0x402045
mov ecx, dword [0x422f10]
test ecx, ecx
je 0x402045
mov ecx, dword [0x422f14]
test ecx, ecx
je 0x402045
mov ecx, dword [0x422f18]
test ecx, ecx
je 0x402045
test eax, eax
je 0x402045
mov dword [0x422f20], esi
mov eax, 1
mov ecx, dword [esp + 0x114]
call fcn.0040f12e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x114]
call fcn.0040f12e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x114]
mov eax, esi
call fcn.0040f12e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4031f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x41b056
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
mov eax, dword [0x422310]
push ebx
push ebp
mov ebp, dword [esp + 0x198]
push esi
push edi
push 0x41c3cc
mov dword [esp + 0x190], eax
lea eax, [esp + 0x34]
push ebp
push eax
xor ebx, ebx
xor esi, esi
call fcn.00402f10
add esp, 0xc
mov dword [esp + 0x198], ebx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x48]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x198], 1
jae 0x40326d
lea eax, [esp + 0x34]
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x403359
jmp 0x403290
mov edi, 0x41c3c8
lea esi, [esp + 0x78]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40330e
mov edi, 0x41c3c4
lea esi, [esp + 0x78]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40330e
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0x20]
call fcn.00401830
push 0x5c
push 1
lea ecx, [esp + 0x1c]
call fcn.00402a50
lea eax, [esp + 0x78]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4032e0
sub eax, edx
push eax
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401920
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x403307
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403290
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x1a4], ebx
je 0x40334f
cmp dword [ebp + 0x18], 0x10
jb 0x403345
mov eax, dword [ebp + 4]
jmp 0x403348
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, 1
mov edi, 0x10
cmp dword [esp + 0x2c], edi
jb 0x40336c
mov edx, dword [esp + 0x18]
push edx
call fcn.0040f9ed
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x40338f
mov eax, dword [esp + 0x34]
push eax
call fcn.0040f9ed
add esp, 4
mov ecx, dword [esp + 0x190]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x180]
pop ebx
call fcn.0040f12e
add esp, 0x18c
ret 8
Function at 0x403de0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
mov eax, dword [0x422310]
push esi
push edi
mov dword [esp + 0x20c], eax
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x7f
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x200
lea eax, [esp + 0xc]
push eax
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x403e3f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, esi
mov ecx, dword [esp + 0x20c]
call fcn.0040f12e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x403e2b
mov ecx, dword [esp + 0x20c]
mov dword [0x422f24], eax
mov eax, 1
call fcn.0040f12e
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404de7
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x41b1bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x41c518
mov dword [esp + 0xc], esi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x423148
mov dword [esp + 0x1c], edi
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x20], edi
call ebx
push 0x423304
call ebx
push 0x42332c
call ebx
push 0x64
push 0x4232a0
push 0x7a
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
cmp eax, edi
je 0x404e84
mov ecx, esi
call fcn.00406580
call fcn.00401ee0
cmp eax, edi
je 0x404e84
mov ecx, esi
call fcn.004058b0
cmp eax, edi
je 0x404e84
mov ecx, esi
call fcn.00405d20
cmp eax, edi
je 0x404e84
mov ecx, dword [esp + 0x10]
pop edi
mov dword [esi + 0x1c], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, esi
call fcn.00405bc0
mov ecx, esi
call sub.WS2_32.dll_WSACleanup
call fcn.00402080
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x42332c
call esi
push 0x423304
call esi
push 0x423148
call esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4052c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41b1fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esi], fcn.00401230
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov dword [esp + 4], esi
mov byte [esi + 0x20], al
mov dword [esi + 0x50], ecx
mov dword [esi + 0x4c], eax
mov dword [esp + 0x10], eax
mov byte [esi + 0x3c], al
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x68], eax
mov byte [esi + 0x58], al
mov dword [esi + 0x88], ecx
mov dword [esi + 0x84], eax
mov byte [esi + 0x74], al
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
mov dword [esi + 0x9c], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, 0x400
mov dword [esi + 0x94], ecx
mov ecx, esi
mov byte [esp + 0x10], 3
mov dword [esi + 0x98], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00401230
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x4052d6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41b1fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esi], fcn.00401230
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov dword [esp + 4], esi
mov byte [esi + 0x20], al
mov dword [esi + 0x50], ecx
mov dword [esi + 0x4c], eax
mov dword [esp + 0x10], eax
mov byte [esi + 0x3c], al
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x68], eax
mov byte [esi + 0x58], al
mov dword [esi + 0x88], ecx
mov dword [esi + 0x84], eax
mov byte [esi + 0x74], al
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
mov dword [esi + 0x9c], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, 0x400
mov dword [esi + 0x94], ecx
mov ecx, esi
mov byte [esp + 0x10], 3
mov dword [esi + 0x98], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00401230
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x4058b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x422310]
push esi
mov dword [esp + 0x194], eax
lea eax, [esp + 4]
push eax
push 0x202
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x405905
mov ax, word [esp + 4]
cmp al, 2
jne 0x4058ff
cmp ah, al
jne 0x4058ff
mov eax, 1
pop esi
mov ecx, dword [esp + 0x190]
call fcn.0040f12e
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
mov eax, esi
pop esi
call fcn.0040f12e
add esp, 0x194
ret
Function at 0x406370
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x422310]
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14c], eax
mov dword [esp + 0x34], ecx
xor eax, eax
mov byte [esp + 0x40], bl
mov ecx, 0x40
lea edi, [esp + 0x41]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push ecx
push 9
stosb byte es:[edi], al
push ebx
xor eax, eax
push 0x41c81c
mov dword [esp + 0x34], eax
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40653b
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x54]
push edx
push ebx
push eax
xor edi, edi
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x406533
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
cmp eax, ebx
jne 0x40653b
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 1
push ebx
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40653b
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push 0x41c810
push eax
mov dword [esp + 0x2c], 4
call esi
test eax, eax
jne 0x4064a3
mov cx, word [esp + 0x2c]
mov word [esp + 0x24], cx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x20]
push edx
add ecx, 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 2
call fcn.004062f0
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push ebx
push 0x41c804
push edx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
jne 0x4064ee
mov ax, word [esp + 0x30]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
add ecx, 0xc
mov dword [esp + 0x24], ebx
mov word [esp + 0x28], ax
mov dword [esp + 0x2c], 1
call fcn.004062f0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40653b
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x54]
push edx
inc edi
push edi
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x406430
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40654e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40655d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14c]
mov eax, dword [esp + 0x1c]
call fcn.0040f12e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4065a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4065b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4065cd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4065ee
cmp esi, eax
jae 0x4065c7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4065e0
cmp esi, eax
jae 0x4065c7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret