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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
xor esi, esi
add esp, 8
mov dword [ecx], esi
lea ecx, [ebp - 8]
push ecx
push esi
push esi
push edi
push eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [edx], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001d14c
mov eax, dword [ebp - 8]
cmp eax, esi
jne 0x1001d154
mov eax, 0x100
mov dword [ebp - 8], eax
push eax
push esi
call sym.vmtools.dll_UtilSafeRealloc0
mov edx, dword [ebp - 8]
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x14]
push edi
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp eax, 0xea
jne 0x1001d1be
mov eax, dword [ebp - 8]
add eax, eax
push eax
push esi
mov dword [ebp - 8], eax
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 8
mov esi, eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp eax, 0xea
je 0x1001d185
test eax, eax
jne 0x1001d29a
mov eax, dword [ebp - 0xc]
test eax, eax
jbe 0x1001d272
cmp eax, 2
jbe 0x1001d1df
cmp eax, 7
jne 0x1001d272
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
lea ecx, [ebp + 0x18]
push ecx
push edi
push edx
push esi
call sym.vmtools.dll_CodeSet_Utf16leToUtf8
add esp, 0x10
test al, al
jne 0x1001d268
cmp dword [ebp - 0xc], 7
mov edx, dword [ebp - 4]
mov eax, esi
lea ecx, [edx + esi]
jne 0x1001d22c
cmp esi, ecx
jae 0x1001d25f
cmp word [eax], 0
je 0x1001d21d
cmp eax, ecx
jae 0x1001d21d
add eax, 2
cmp word [eax], 0
jne 0x1001d210
add eax, 2
cmp eax, ecx
jae 0x1001d25f
cmp word [eax], 0
jne 0x1001d210
jmp 0x1001d243
cmp word [esi], 0
je 0x1001d23f
cmp eax, ecx
jae 0x1001d25f
add eax, 2
cmp word [eax], 0
jne 0x1001d232
cmp eax, ecx
jae 0x1001d25f
sub eax, esi
add eax, 2
cmp eax, edx
jae 0x1001d25f
lea ecx, [ebp + 0x18]
push ecx
push edi
push eax
push esi
call sym.vmtools.dll_CodeSet_Utf16leToUtf8
add esp, 0x10
test al, al
jne 0x1001d268
mov dword [ebp - 0x10], 0xd
jmp 0x1001d29a
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
jmp 0x1001d28e
mov ecx, dword [ebp - 4]
push ecx
push esi
call sym.vmtools.dll_UtilSafeRealloc0
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 4]
add esp, 8
mov dword [ecx], eax
xor esi, esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1001d29a
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.MSVCR90.dll_free]
push eax
call edi
push esi
call edi
mov eax, dword [ebp - 0x10]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001d4d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x3fff
call sym.vmtools.dll_UtilSafeMalloc0
mov ebx, dword [ebp + 8]
add esp, 4
push 0x3fff
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, 0x3fff
jbe 0x1001d529
push edi
lea esp, [esp]
lea edi, [eax + 1]
push edi
push esi
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 8
push edi
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, 0x3fff
ja 0x1001d500
mov ecx, dword [ebp + 0xc]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov dword [edx], esi
pop esi
pop ebx
pop ebp
ret
Function at 0x10028150
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x1008d000]
test eax, eax
jne 0x1002817e
push str.ICU_DATA
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
jne 0x10028170
mov eax, 0x1005df52
push eax
call fcn.10028060
mov eax, dword [0x1008d000]
add esp, 4
ret

Function at 0x1002b0c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
xor esi, esi
call fcn.1002a180
mov eax, dword [ebp + 0xc]
add esp, 4
push esi
push 0x10000080
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1002b119
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push str.uprv_mapFile:_CreateFileA_failed_for__s___d__n
call sym.vmtools.dll_Log
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1002b15b
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1002b15b
xor eax, eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea esi, [ebp - 0xc]
push 0
push 0
push 0
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
test esi, esi
jne 0x1002b19b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push eax
push edx
push str.uprv_mapFile:_CreateFileMapping_failed_for__s___d__n
call sym.vmtools.dll_Log
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x1002b1d5
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.uprv_mapFile:_MapViewOfFile_failed_for__s___d__n
call sym.vmtools.dll_Log
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x14], esi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10042600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x20019
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x208
xor esi, esi
call fcn.100503c0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10042671
push 0x10075794
call fcn.10050440
add esp, 4
lea ecx, [ebp - 8]
push ecx
push 0x20019
push esi
mov edi, eax
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp dword [ebp - 0xc], ebx
jne 0x10042770
mov edx, dword [ebp - 4]
push edx
call sym.vmtools.dll_UtilSafeMalloc0
mov edx, dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x1007577c
push edx
call edi
cmp eax, 0xea
jne 0x100426c7
mov eax, dword [ebp - 4]
push eax
push ebx
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 8
lea ecx, [ebp - 4]
push ecx
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
lea edx, [ebp - 0x10]
push edx
push 0
push 0x1007577c
push eax
call edi
test eax, eax
jne 0x10042770
mov ecx, dword [ebp - 4]
push 1
push ecx
push ebx
call sym.vmtools.dll_Unicode_AllocWithLength
mov esi, eax
push esi
call sym.vmtools.dll_Unicode_LengthInCodePoints
push 0x10061674
mov edi, eax
call sym.vmtools.dll_Unicode_LengthInCodePoints
add esp, 0x14
cmp eax, edi
jg 0x10042716
push 0
push eax
push 0
push 0x10061674
push eax
sub edi, eax
push edi
push esi
call sym.vmtools.dll_Unicode_CompareRange
add esp, 0x1c
test eax, eax
sete al
test al, al
jne 0x10042770
push esi
call sym.vmtools.dll_Unicode_LengthInCodePoints
push 0x1005d980
mov edi, eax
call sym.vmtools.dll_Unicode_LengthInCodePoints
add esp, 8
cmp eax, edi
jg 0x1004274f
push 0
push eax
push 0
push 0x1005d980
push eax
sub edi, eax
push edi
push esi
call sym.vmtools.dll_Unicode_CompareRange
add esp, 0x1c
test eax, eax
sete al
test al, al
jne 0x10042770
push 0xffffffffffffffff
push 0
push 0x1005d980
push 0
push 0xffffffffffffffff
push esi
call sym.vmtools.dll_Unicode_ReplaceRange
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x1c
mov esi, edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004277e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10042791
push 0x1005df52
call sym.vmtools.dll_Unicode_Duplicate
add esp, 4
mov esi, eax
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100427b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
push 0x20019
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
xor esi, esi
call fcn.100503c0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10042854
push 0x208
mov dword [ebp - 8], 0x208
call sym.vmtools.dll_UtilSafeMalloc0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 4
lea ecx, [ebp - 8]
push ecx
mov esi, eax
mov eax, dword [ebp - 0xc]
push esi
lea edx, [ebp - 0x10]
push edx
push ebx
push str.AppDataPath
push eax
call edi
cmp eax, 0xea
jne 0x10042854
mov ecx, dword [ebp - 8]
push ecx
push esi
call sym.vmtools.dll_UtilSafeRealloc0
mov ecx, dword [ebp - 0xc]
add esp, 8
lea edx, [ebp - 8]
push edx
mov esi, eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.AppDataPath
push ecx
call edi
test eax, eax
jne 0x10042854
mov edx, dword [ebp - 8]
push 1
push edx
push esi
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.MSVCR90.dll_free]
cmp dword [ebp - 4], ebx
jne 0x1004287a
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8023
push 0
call sym.vmtools.dll_Win32U_SHGetFolderPath
add esp, 0x14
test eax, eax
jl 0x100428a6
mov ecx, dword [ebp - 4]
push 0
push 0x10063f7c
push 0x1005d980
push ecx
call sym.vmtools.dll_Unicode_Join
mov ebx, eax
push ebx
call fcn.10009a80
add esp, 0x14
test al, al
jne 0x100428a6
push ebx
call edi
add esp, 4
xor ebx, ebx
mov edx, dword [ebp - 4]
push edx
call edi
push esi
call edi
mov eax, dword [ebp - 0xc]
add esp, 8
test eax, eax
je 0x100428c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10042b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x1008c1f8], 0
je 0x10042b8c
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x2f
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10042b55
mov eax, 0x1005df52
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push esi
lea ecx, [ebp - 8]
push ecx
push 0x1008ef14
lea edx, [ebp - 0xc]
push edx
push 0
push str.MachineGuid
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x10042b4c
mov byte [0x1008c1f8], 0
mov eax, 0x1008ef14
mov esp, ebp
pop ebp
ret
Function at 0x10043ef0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x344], eax
mov eax, esi
push edi
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10043f18
sub eax, edx
mov edi, eax
xor eax, eax
cmp byte [esi + edi - 1], 0x5c
mov dword [ebp - 0x310], ebx
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x340], ebx
je 0x10043f93
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
push esi
call sym.vmtools.dll_Win32U_GetDriveType
add esp, 4
cmp eax, 3
jne 0x10043f80
lea ecx, [edi - 1]
push ecx
lea edx, [ebp - 0x104]
push esi
push edx
call dword [sym.imp.MSVCR90.dll_strncpy]
push 0x100
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov byte [ebp + edi - 0x105], bl
call fcn.10012810
add esp, 0x18
test eax, eax
je 0x10043f80
push 0x10
lea edx, [ebp - 0x304]
push str.DeviceHarddisk
push edx
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10043f80
lea eax, [ebp - 0x104]
push eax
push str.__s
lea ecx, [ebp - 0x204]
push 0x100
push ecx
call sym.vmtools.dll_Str_Sprintf
push ebx
push ebx
push 3
push ebx
push 3
lea edx, [ebp - 0x204]
push SysReAllocString
push edx
call fcn.10012400
mov esi, eax
add esp, 0x2c
cmp esi, 0xffffffff
je 0x10043f80
push ebx
lea eax, [ebp - 0x340]
push eax
push 0x28
lea ecx, [ebp - 0x338]
push ecx
push 0xc
lea edx, [ebp - 0x310]
push edx
push 0x2d1400
push esi
mov dword [ebp - 0x334], 0x28
mov dword [ebp - 0x310], ebx
mov dword [ebp - 0x30c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov byte [ebp - 0x339], al
cmp al, bl
je 0x1004408b
mov eax, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x344]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x339]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
Function at 0x10045060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
test eax, eax
jl 0x1004507b
mov ecx, dword [ebp + 0x14]
jg 0x10045090
test ecx, ecx
ja 0x10045090
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
jmp 0x10045090
sub ecx, ebx
sbb eax, edi
mov dword [ebp - 4], 0
test eax, eax
jg 0x100450ad
jl 0x100450a9
cmp ecx, 0x2000
jae 0x100450ad
mov esi, ecx
jmp 0x100450b2
mov esi, 0x2000
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc38]
mov edx, dword [eax + 0x320]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
jne 0x100450f3
mov eax, dword [ebp + 0x18]
add ebx, esi
adc edi, 0
cmp edi, eax
jl 0x10045084
jg 0x1004507b
mov ecx, dword [ebp + 0x14]
cmp ebx, ecx
jb 0x10045090
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.Write_Failed__d
call sym.vmtools.dll_Log
add esp, 8
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10047420
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [esi + 0x10]
push ebx
xor eax, eax
push edi
mov dword [ebp - 8], 0x1505
test ecx, ecx
jbe 0x1004745a
jmp 0x10047440
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 8]
movzx edx, byte [eax + edx]
shl edi, 5
add edi, dword [ebp - 8]
inc eax
add edx, edi
mov dword [ebp - 8], edx
cmp eax, ecx
jb 0x10047440
mov eax, dword [ebp - 8]
xor edx, edx
div dword [esi + 4]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov byte [ebp - 1], bl
mov byte [ebp - 2], bl
mov dword [eax], 0xffffffff
mov dword [ebp - 0xc], edx
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp ebx, edx
jae 0x10047511
mov eax, dword [ebp - 0xc]
add eax, ebx
xor edx, edx
div ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0xc]
imul eax, edx
add eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi + 0x20]
add edi, eax
add ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov eax, dword [edi]
sub eax, 0
je 0x100474f8
sub eax, 1
je 0x100474d3
sub eax, 1
je 0x100474fc
push 0x344
push str.d:_build_ob_bora_4448491_bora_lib_hashMap_hashMap.c
push str.NOT_REACHED__s:_d_n
call sym.vmtools.dll_Panic
mov edx, dword [ebp - 8]
cmp dword [edi + 4], edx
jne 0x10047506
mov eax, dword [ebp + 8]
push eax
mov edx, ecx
mov eax, esi
call fcn.100472b0
add esp, 4
mov byte [ebp - 2], al
test al, al
je 0x10047506
mov byte [ebp - 1], 1
jmp 0x10047506
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0xffffffff
jne 0x10047506
mov dword [eax], edx
inc ebx
cmp byte [ebp - 1], 0
je 0x10047476
mov al, byte [ebp - 2]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10047670
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push eax
call fcn.10047420
add esp, 0x10
test al, al
jne 0x1004773f
xor eax, eax
mov edi, 0x1505
cmp dword [esi + 0x10], eax
jbe 0x100476c7
mov ecx, dword [esi + 0x10]
jmp 0x100476b0
mov edx, dword [ebp + 0xc]
movzx edx, byte [eax + edx]
mov ebx, edi
shl ebx, 5
add ebx, edi
add edx, ebx
inc eax
mov edi, edx
cmp eax, ecx
jb 0x100476b0
mov eax, dword [esi + 0xc]
mul dword [esi + 8]
xor ecx, ecx
cmp eax, eax
jne 0x100476d7
cmp edx, ecx
je 0x100476da
or eax, 0xffffffff
cmp eax, dword [esi + 4]
jb 0x1004770d
mov ebx, esi
call fcn.10047520
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push eax
call fcn.10047420
add esp, 0x10
cmp dword [ebp - 4], 0xffffffff
jne 0x1004770d
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
imul eax, dword [ebp - 4]
add eax, dword [esi]
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
inc dword [esi + 8]
mov dword [eax], 1
mov dword [eax + 4], edi
mov edx, dword [esi + 0x10]
add ecx, eax
add ebx, eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x10047742
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100478e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret

Function at 0x100479e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
Function at 0x10047e80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 4
test eax, eax
jne 0x10047e98
xor al, al
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_getsockopt]
push esi
mov esi, dword [eax + 8]
push edi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp + 8]
push ecx
push 0x1002
push 0xffff
push esi
call ebx
test eax, eax
je 0x10047ee4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
call sym.vmtools.dll_Err_Errno2String
push eax
push edi
push esi
push str.SOCKET_Could_not_get_recv_buffer_size_for_socket__d__error__d:__s_n
call sym.vmtools.dll_Warning
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 8], eax
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
jge 0x10047f39
mov edx, dword [ebp - 4]
push edx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1002
push 0xffff
push esi
call edi
test eax, eax
je 0x10047f39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
call sym.vmtools.dll_Err_Errno2String
mov ecx, dword [ebp + 8]
push eax
push edi
push ecx
push esi
push str.SOCKET_Could_not_set_recv_buffer_size_for_socket__d_to__d__error__d:__s_n
call sym.vmtools.dll_Warning
add esp, 0x18
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
lea eax, [ebp + 8]
push eax
push 0x1001
push 0xffff
push esi
call ebx
test eax, eax
je 0x10047f79
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
call sym.vmtools.dll_Err_Errno2String
push eax
push edi
push esi
push str.SOCKET_Could_not_get_send_buffer_size_for_socket__d__error__d:__s_n
call sym.vmtools.dll_Warning
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], eax
jge 0x10047fc8
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp + 8]
push edx
push 0x1001
push 0xffff
push esi
mov dword [ebp + 8], eax
call edi
test eax, eax
je 0x10047fc8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
call sym.vmtools.dll_Err_Errno2String
push eax
mov eax, dword [ebp + 8]
push edi
push eax
push esi
push str.SOCKET_Could_not_set_send_buffer_size_for_socket__d_to__d__error__d:__s_n
call sym.vmtools.dll_Warning
add esp, 0x18
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret