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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc8bd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xc8bd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc8bd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xc8bd94
push eax
push esi
call fcn.00c8e20b
add esp, 8
pop esi
ret 0x10

Function at 0xc8bda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc8be22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xc8be15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xca4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c8ddff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xc8bdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xc8be30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc8bec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xc8beb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xca4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c8ddff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xc8beab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xc8be6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xc8c000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xc8c131
push esi
call fcn.00c8f145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00c7e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xc8c131
push 0
push ebp
call fcn.00c7e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00c7e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xc8c08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00c7e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xc8c121
push 0xca4918
push edi
call fcn.00c8d3f0
push eax
push ebx
push esi
call fcn.00c8bf60
push 0xca48f8
push edi
call fcn.00c8d3f0
push eax
push ebx
push esi
call fcn.00c8bf60
push 0xca48d8
push edi
call fcn.00c8d3f0
push eax
push ebx
push esi
call fcn.00c8bf60
push 0xca48c0
push edi
call fcn.00c8d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00c8bf60
push 0xca48a0
push edi
call fcn.00c8d3f0
push eax
push ebx
push esi
call fcn.00c8bf60
push 0xca4888
push edi
call fcn.00c8d3f0
push eax
push ebx
push esi
call fcn.00c8bf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xc8d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00c8d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00c8d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00c8d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00c8d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xc8d230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc8d2d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0xc8d2ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00c8d230
mov esi, eax
add esp, 8
test esi, esi
jne 0xc8d2ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0xc8d27e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0xc8d2ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0xc8dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xc8dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xc9f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xc8dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xc8dc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40472b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c35c]
jne 0x404735
repz ret
jmp fcn.004074f2

Function at 0x40e59c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040780a
and dword [ebp - 0x14], 0
cmp dword [0x41e59c], 0
mov dword [ebp - 0x18], eax
jne 0x40e64f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e6f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e6f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41e59c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41e5a0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41e5a4], eax
call edi
push eax
call esi
mov dword [0x41e5ac], eax
test eax, eax
je 0x40e64f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41e5a8], eax
mov eax, dword [0x41e5a8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e6a8
cmp dword [0x41e5ac], ecx
je 0x40e6a8
push eax
call esi
push dword [0x41e5ac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e6a8
test ebx, ebx
je 0x40e6a8
call edi
test eax, eax
je 0x40e69f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e69f
test byte [ebp - 8], 1
jne 0x40e6a8
or dword [ebp + 0x10], 0x200000
jmp 0x40e6db
mov eax, dword [0x41e5a0]
cmp eax, dword [ebp - 0x18]
je 0x40e6db
push eax
call esi
test eax, eax
je 0x40e6db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e6db
mov eax, dword [0x41e5a4]
cmp eax, dword [ebp - 0x18]
je 0x40e6db
push eax
call esi
test eax, eax
je 0x40e6db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41e59c]
call esi
test eax, eax
je 0x40e6f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e6f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040472b
leave
ret
Function at 0x40f41c
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDialogBaseUnits]
push esi
push edi
call ebx
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetNextDlgGroupItem]
mov edi, dword [sym.imp.USER32.dll_GetNextDlgTabItem]
push esi
push esi
push esi
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov ebx, dword [sym.imp.SHELL32.dll_DragFinish]
push esi
call ebx
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableW]
push esi
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellAboutW]
push esi
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push esi
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push esi
push esi
push esi
call edi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push esi
push esi
call edi
push esi
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
push esi
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40f4db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x41c35c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor esi, esi
lea edi, [ecx - 0x200]
xor ebx, ebx
mov dword [ebp - 0x410], edi
cmp dword [ebp + 8], esi
jle 0x40f564
jmp 0x40f50e
mov edi, dword [ebp - 0x410]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040f4af
xor byte [edi + ebx], al
push esi
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push esi
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
xor eax, eax
mov dword [ebp - 0x418], esi
lea edi, [ebp - 0x414]
stosd dword es:[edi], eax
lea eax, [ebp - 0x418]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x40f508
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040472b
leave
ret 4
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3b2a5b63
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x71ef3b0d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4062e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b508
cmp edx, dword [eax]
je 0x406307
add eax, 8
inc ecx
cmp eax, 0x40b598
jl 0x4062f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b508]
jne 0x406435
mov eax, dword [0x40ba54]
cmp eax, 1
je 0x40640f
test eax, eax
jne 0x406338
cmp dword [0x40b1b4], 1
je 0x40640f
cmp edx, 0xfc
je 0x406435
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40957c
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004037c0
push dword [esi + 0x40b50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407726
add esp, 0x2c
pop edi
jmp 0x406435
lea eax, [ebp + 8]
lea esi, [esi + 0x40b50c]
push 0
push eax
push dword [esi]
call fcn.004038a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call fcn.10001528
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call fcn.100015a0
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call fcn.100015a0
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call fcn.100015dc
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0xc], ebx
nop
mov ebx, dword [ebx + 8]
mov dword [ebp - 8], ebx
cmp dword [ebx + 0x34], 0
je 0x401776
mov esi, dword [ebx + 0x2c]
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 8]
add edi, dword [ebx + 4]
mov edx, dword [esi + 0xc]
lea eax, [ecx + 0x1b]
add edx, eax
sub edi, eax
mov eax, dword [esi + 0x10]
add eax, dword [ebx + 0x1c]
push ecx
push eax
lea eax, [edi + 0x1b]
mov dword [ebp - 4], edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov dword [edi], 0x5367674f
add esp, 0xc
mov byte [edi + 4], 0
movzx eax, byte [esi + 0x18]
mov byte [edi + 5], al
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov byte [edi + 6], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 7], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 8], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 9], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xa], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xb], cl
shrd ecx, eax, 8
mov byte [edi + 0xc], cl
shr eax, 8
shrd ecx, eax, 8
mov byte [edi + 0xd], cl
mov eax, dword [ebx]
mov byte [edi + 0xe], al
sar eax, 8
mov byte [edi + 0xf], al
sar eax, 8
mov byte [edi + 0x10], al
sar eax, 8
mov byte [edi + 0x11], al
mov eax, dword [esi + 0x1c]
mov byte [edi + 0x12], al
sar eax, 8
mov byte [edi + 0x13], al
sar eax, 8
mov byte [edi + 0x14], al
sar eax, 8
mov byte [edi + 0x15], al
movzx eax, byte [esi + 0x14]
xor esi, esi
mov byte [edi + 0x1a], al
xor eax, eax
mov dword [edi + 0x16], eax
cmp dword [ebp - 4], eax
jle 0x40171d
mov ebx, dword [ebp - 4]
nop
movzx edx, byte [esi + edi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x6198b0]
cmp esi, ebx
jl 0x401700
mov ebx, dword [ebp - 8]
mov ecx, eax
mov byte [edi + 0x16], al
shr ecx, 8
mov byte [edi + 0x17], cl
mov ecx, eax
shr eax, 0x18
mov byte [edi + 0x19], al
shr ecx, 0x10
mov byte [edi + 0x18], cl
dec dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x34]
shl eax, 5
push eax
lea eax, [ecx + 0x20]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov ebx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ebx + 0x1a0]
push dword [ebp - 4]
push edi
push dword [eax]
mov eax, dword [ebx + 0x6c]
call eax
add esp, 0xc
test eax, eax
je 0x401620
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406790
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4067ea
mov eax, dword [section..data]
cmp dword [eax], 1
jl 0x4067e2
push 0
push 0x1f1
push str.netsock_init
call fcn.00406480
push eax
push str._s__s:_d_Bad_winsock_version_n
call fcn.00406440
add esp, 0x14
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret

Function at 0x406b50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
test edx, edx
jne 0x406b63
xor eax, eax
pop ebp
ret
push esi
movsx esi, byte [edx]
test esi, esi
je 0x406b83
nop dword [eax + eax]
mov ecx, eax
lea edx, [edx + 1]
shl eax, 5
add eax, esi
movsx esi, byte [edx]
add eax, ecx
test esi, esi
jne 0x406b70
pop esi
pop ebp
ret
Function at 0x413330
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x413361
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x413350
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x413b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp dword [edi + 0x18], esi
cmovb esi, dword [edi + 0x18]
cmp esi, dword [ebp + 0x10]
jae 0x413b9e
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
push 0
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push dword [edi + 0x1c]
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x1c
add dword [edi + 0x20], eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x413c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [ebx]
cmp eax, dword [edi + 0x14]
jbe 0x413c7c
push dword [edi + 0x10]
call fcn.0054fa13
push dword [ebx]
call fcn.0054fa0a
mov dword [edi + 0x10], eax
add esp, 8
mov eax, dword [ebx]
mov dword [edi + 0x14], eax
mov ecx, dword [ebx]
cmp dword [edi + 0x18], ecx
push 0
cmovb ecx, dword [edi + 0x18]
mov dword [ebx], ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push dword [edi + 0x1c]
push dword [ebx]
push 1
push dword [edi + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [ebx], eax
add esp, 0x1c
add dword [edi + 0x20], eax
cmp dword [ebx], 0
je 0x413cbc
mov eax, dword [edi + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x414860
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
cmp byte [edi + 0x80ad], 0
je 0x4148d7
push ebx
lea eax, [ebp - 0x14]
push str._zx_r_n
push eax
call fcn.004064e0
lea ecx, [ebp - 0x14]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4148a1
push 0
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
test eax, eax
jns 0x4148d4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x18]
push esi
mov esi, ebx
test ebx, ebx
je 0x414901
nop
push 0
mov edi, ebx
sub edi, esi
push esi
add eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x414948
sub esi, eax
mov eax, dword [ebp - 0x18]
jne 0x4148e0
mov edi, dword [ebp - 0x1c]
cmp byte [edi + 0x80ad], 0
je 0x41491e
mov eax, dword [ebp + 8]
push 0
push 2
push 0x559e24
push eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
cmp byte [ebp + 0x14], 0
je 0x414933
mov eax, ebx
cdq
add dword [edi + 0x81f8], eax
adc dword [edi + 0x81fc], edx
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, edi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret 0x10

Function at 0x415340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 2
push 0
push dword [edi + 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x1c
add dword [edi + 0x18], esi
pop edi
pop esi
pop ebp
ret 8