joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40373d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov dword [ebp - 0x190], ecx
mov eax, dword [ebp - 0x190]
mov dword [eax], 0x58
mov ecx, dword [ebp - 0x190]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x190]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x190]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x190]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x190]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x190]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x190]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x190]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x190]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x190]
mov dword [ecx + 4], 0
push 0x80
push 0
mov edx, dword [ebp - 0x190]
add edx, 0x2c
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov byte [ebp - 0x81], 0
push 0x80
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x18c]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x88]
push ecx
push 0x80
lea edx, [ebp - 0x188]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x190]
mov edx, dword [ebp - 0x88]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x190]
mov esp, ebp
pop ebp
ret
Function at 0x4066af
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push edi
mov dword [ebp - 0x140], 0
mov eax, dword [str.EXPLORER.EXE]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x4872dc]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x4872e0]
mov dword [ebp - 8], edx
mov al, byte [0x4872e4]
mov byte [ebp - 4], al
mov dword [ebp - 0x13c], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x138]
rep stosd dword es:[edi], eax
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0xffffffff
jne 0x40671d
xor eax, eax
jmp 0x406817
mov dword [ebp - 0x13c], 0x128
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call sub.kernel32.dll_Process32First
test eax, eax
jne 0x406752
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x406817
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x134], eax
jne 0x406769
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x140]
push eax
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x406752
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call sub.kernel32.dll_Process32First
test eax, eax
jne 0x4067a8
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x406817
mov ecx, dword [ebp - 0x134]
cmp ecx, dword [ebp - 0x14]
jne 0x4067f1
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.msvcrt.dll__strrev]
add esp, 4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.msvcrt.dll__strrev]
add esp, 4
push 0xc
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x4067f1
mov eax, 1
jmp 0x406817
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x4067a8
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x420c24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4740fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
cmp dword [0x497468], 1
je 0x420da4
push 0xa0
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x160]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
push 0x18
lea ecx, [ebp - 0x160]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [ebp - 0x160]
push ecx
push 0x489c44
lea edx, [ebp - 0xbc]
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 0x489c48
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.kernel32.dll_lstrcat]
lea ecx, [ebp - 0xbc]
push ecx
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.kernel32.dll_lstrcat]
push 0x4000
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.kernel32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x420d92
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x49746c], eax
cmp dword [0x49746c], 0
jne 0x420d10
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x164], eax
jmp 0x420d92
push str.DSM_Entry
mov eax, dword [0x49746c]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x497320], eax
cmp dword [0x497320], 0
jne 0x420d3d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x164], eax
jmp 0x420d92
push 0x497464
push 0x301
push 4
push 1
push 0
push 0x4973c8
call dword [0x497320]
mov word [ebp - 0x98], ax
mov ecx, dword [ebp - 0x98]
and ecx, 0xffff
mov dword [ebp - 0x168], ecx
cmp dword [ebp - 0x168], 0
je 0x420d7c
jmp 0x420d88
mov dword [0x497468], 1
jmp 0x420d92
mov dword [0x497468], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x497468]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46a7b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x68
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
mov byte [esp + 0x2c], 0xb
mov byte [esp + 0x2d], 0xcd
mov byte [esp + 0x2e], 0
mov byte [esp + 0x2f], 0x10
push eax
rep stosd dword es:[edi], eax
call sub.msvcrt.dll_time
push eax
call sub.msvcrt.dll_srand
add esp, 8
xor esi, esi
call sub.msvcrt.dll_rand
mov dword [esp + 8], eax
fild dword [esp + 8]
fmul qword [0x4809b8]
call sub.msvcrt.dll__ftol
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x10
jl 0x46a7e7
mov al, byte [esp + 0xd]
mov esi, dword [esp + 0x74]
and al, 0x7f
mov byte [esp + 0xd], al
mov eax, dword [esp + 0xc]
mov dword [esi + 0x10], eax
xor eax, eax
mov cl, byte [eax + str.p_NMs]
xor cl, 0x5b
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 0x10
jl 0x46a820
lea edx, [esp + 0x1c]
push edx
call fcn.0046bd50
lea eax, [esp + 0x10]
push eax
call fcn.0046b3b0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
push edx
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call fcn.0046a880
add esp, 0x10
pop edi
pop esi
add esp, 0x68
ret
Function at 0x46a9c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
call sub.msvcrt.dll_time
push eax
call sub.msvcrt.dll_srand
mov ebx, dword [esp + 0x20]
xor eax, eax
add esp, 8
mov al, byte [ebx + 3]
mov esi, eax
cmp esi, 0x40
jge 0x46aa06
call sub.msvcrt.dll_rand
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x4809b8]
call sub.msvcrt.dll__ftol
mov byte [ebx + esi + 4], al
inc esi
cmp esi, 0x40
jl 0x46a9e4
mov esi, dword [esp + 0x14]
lea eax, [ebx + 2]
mov ecx, 0x11
lea edi, [esi + 0x10]
mov dl, byte [edi]
xor byte [eax - 2], dl
mov dl, byte [esi + 0x11]
xor byte [eax - 1], dl
mov dl, byte [esi + 0x12]
xor byte [eax], dl
mov dl, byte [esi + 0x13]
xor byte [eax + 1], dl
add eax, 4
dec ecx
jne 0x46aa15
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
xor eax, eax
je 0x46aa52
cmp eax, 0x80
je 0x46aa52
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
ret
mov ecx, dword [esi + 0xc]
push 0x44
push ebx
push ecx
call fcn.0046b220
xor eax, eax
add esp, 0xc
xor ebp, ebp
je 0x46aa78
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.kernel32.dll_ReleaseMutex]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 0x13]
mov dl, byte [ebx + 3]
xor ecx, edx
mov eax, ecx
mov ebp, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
inc eax
and ebp, 0x80000003
jns 0x46aaa9
dec ebp
or ebp, 0xfffffffc
inc ebp
test eax, eax
jle 0x46aad8
lea ecx, [ebx + 2]
mov dword [esp + 0x18], eax
mov dl, byte [edi]
xor byte [ecx - 2], dl
mov dl, byte [esi + 0x11]
xor byte [ecx - 1], dl
mov dl, byte [esi + 0x12]
xor byte [ecx], dl
mov dl, byte [esi + 0x13]
xor byte [ecx + 1], dl
mov edx, dword [esp + 0x18]
add ecx, 4
dec edx
mov dword [esp + 0x18], edx
jne 0x46aab4
test ebp, ebp
jle 0x46aaec
lea eax, [ebx + eax*4]
mov cl, byte [edi]
mov dl, byte [eax]
xor dl, cl
inc edi
mov byte [eax], dl
inc eax
dec ebp
jne 0x46aadf
xor eax, eax
pop edi
mov byte [ebx], al
pop esi
pop ebp
pop ebx
ret
Function at 0x4702d0
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
xor ebp, ebp
call fcn.004704b0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4702f8
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
lea eax, [edx*4 + 4]
push eax
call sub.msvcrt.dll_malloc
mov esi, dword [esp + 0x20]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x470322
pop edi
pop esi
mov dword [ebx], eax
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [ebx]
xor eax, eax
push 0x8000
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.msvcrt.dll_malloc
add esp, 4
mov ebx, eax
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
push 0x8000
push ebx
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
test eax, eax
jne 0x470385
mov eax, dword [esp + 0x20]
push ebx
mov dword [eax], 0
call sub.msvcrt.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x8000]
cmp eax, ecx
jae 0x47048b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x470487
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call fcn.00472750
add esp, 0xc
test eax, eax
jne 0x470466
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 8
push ecx
call sub.msvcrt.dll_malloc
mov ecx, dword [esi]
mov edi, ebx
add esp, 4
mov dword [ecx + ebp*4], eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi]
repne scasb al, byte es:[edi]
mov edi, dword [edx + ebp*4]
not ecx
add ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi]
mov edi, ebx
not ecx
mov edx, dword [eax + ebp*4]
add ecx, 3
mov dword [edx], ecx
mov eax, dword [esi]
mov edx, dword [str.._]
mov ecx, dword [eax + ebp*4]
add ecx, 4
mov dword [ecx], edx
mov al, byte [0x496ef0]
mov byte [ecx + 4], al
mov ecx, dword [esi]
xor eax, eax
mov edx, dword [ecx + ebp*4]
or ecx, 0xffffffff
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
add eax, 0x8000
lea ebx, [ebx + ecx + 1]
cmp ebx, eax
jb 0x470397
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx], ebp
call sub.msvcrt.dll_free
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x7edc2895
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..rdata
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x43dd22d8
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x51e9165c
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4bb42db4
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40644e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40645d
pop dword [ebp - 0x14]
mov eax, 0x40645d
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xf22e67b1
sub dword [ebp - 0x24], 0xa3dc2266
mov dword [ebp - 0x20], 0xa0df29e5
add dword [ebp - 0x20], 0x91542260
mov dword [ebp - 0x1c], 0x7d2bebfc
add dword [ebp - 0x1c], 0xcf205832
mov dword [ebp - 0x18], 0x381beefe
sub dword [ebp - 0x18], 0x381beefe
lea eax, [ebp - 0x24]
push eax
mov eax, 0x7299694
add eax, 0xf916e9e4
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xe3990da1
sub dword [ebp - 0x24], 0x6f26a44b
mov dword [ebp - 0x20], 0xac0d7ad8
sub dword [ebp - 0x20], 0x6aa11963
mov dword [ebp - 0x1c], 0x38f1bd73
sub dword [ebp - 0x1c], 0xd5825107
mov dword [ebp - 0x18], 0x44c856c0
add dword [ebp - 0x18], 0xbb37a940
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x1d8cbbc4
add eax, 0xe2b3c4b8
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x34473
push 0
call eax
mov ecx, 0x6ef9eca
add ecx, 0xf9109e1d
mov ebx, eax
mov esi, 0xb1cd5193
sub esi, 0xb1883d93
add esi, dword [ebp - 0x14]
mov edx, 0xf751ed2e
add edx, 0xcb2c907a
sub dword [ebp - 4], 0x538fd14b
mov edi, dword [esi]
xor edi, edx
xor dword [ebp - 8], 0xd5f88332
mov dword [ebx], edi
sub dword [ebp - 8], edi
add ebx, 4
add esi, 0xd6a7619a
sub esi, 0xd6a76196
loop 0x40657a
add eax, 0x2693c812
sub eax, 0x2692e1a3
mov ebx, eax
add eax, 5
mov ecx, 0xf520810f
sub ecx, 0xf4e0810f
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc
Function at 0x4068d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451218
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x406a00
cmp byte [edi + 0x49], bl
je 0x406a00
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x406992
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x2c], bl
pxor xmm0, xmm0
mov dword [ebp - 0x1c], ebx
movq qword [ebp - 0x2c], xmm0
cmp eax, 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 8
jae 0x406947
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40695f
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x406996
dec eax
je 0x40699a
sub eax, 2
je 0x4069f1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040af10
xor al, al
jmp 0x406a02
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4069aa
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4069d3
cmp ebx, 0x10
jae 0x4069b9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00432abe
add esp, 0x10
cmp esi, eax
jne 0x406983
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4069f1
test esi, esi
jne 0x406953
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004098a0
jmp 0x40694d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040af10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
Function at 0x406c90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f733
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46b664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042fc78
mov dword [ebp - 4], 0
push 4
call fcn.00431fbb
mov edi, eax
add esp, 4
test edi, edi
je 0x406d14
call fcn.0043011f
mov dword [edi], eax
call fcn.0042fede
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042fe13
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406d06
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042fe3b
jmp 0x406d16
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407c30
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451c43
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push esi
push 4
push esi
xor ebx, ebx
push 0x407d30
push ebx
lea edi, [esi + 8]
push ebx
mov dword [ebp - 0x34], esi
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov word [esi + 0x14], bx
lea ebx, [esi + 0x18]
mov dword [ebx], 0
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x407ca6
test eax, eax
jne 0x407ce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
xor ecx, ecx
push 0x17
mov eax, str.Thread_creation_failed.
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
call fcn.0040eba0
mov byte [ebp - 4], 0
push 0x462084
lea edx, [ebp - 0x30]
push edx
call fcn.00436362
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call edi
push ebx
mov byte [esi + 0x14], 1
call edi
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret 4
Function at 0x40cb00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fb93
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46b664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042fc78
mov dword [ebp - 4], 0
push 4
call fcn.00431fbb
mov edi, eax
add esp, 4
test edi, edi
je 0x40cb88
call fcn.0043011f
mov dword [edi], eax
call fcn.0042fede
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042fe13
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40cb7a
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042fe3b
jmp 0x40cb8a
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret