joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473650
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x210
mov eax, dword [0x4ce19c]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push esi
push edi
mov edi, dword [esp + 0x228]
mov dword [esp + 0x21c], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
xor esi, esi
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push esi
mov dword [edi], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x4736c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4736c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetSid___1st_LookupAccountName___failed._Error__d_n
jmp 0x47372c
mov ecx, dword [esp + 0x22c]
test ecx, ecx
mov eax, dword [esp + 0x10]
je 0x4736d3
mov dword [ecx], eax
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
test eax, eax
mov dword [edi], eax
jne 0x4736fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetSid___malloc___failed._Error__d_n
push 0x48ae58
call fcn.004572b0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [edi]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
push 0
call ebp
test eax, eax
jne 0x473739
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetSid___2nd_LookupAccountName___failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0xc
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.00475533
add esp, 0x210
ret

Function at 0x473960
Capabilities:
List groups for user account

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x20]
push edx
xor ebp, ebp
push 1
push ebp
push eax
push ebp
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebp
call sub.NETAPI32.dll_NetUserGetLocalGroups
cmp eax, ebp
jne 0x4739de
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x4739ff
cmp dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
jbe 0x4739f1
mov ebp, dword [esp + 0x28]
test esi, esi
je 0x4739c9
mov ecx, dword [esi]
push ebp
push ecx
call fcn.00473890
add esp, 8
or edi, eax
or ebx, edx
add esi, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x4739b2
xor ebp, ebp
jmp 0x4739f1
push eax
push str.GetGroupMask___NetUserGetGroups___failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4739ff
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, edi
pop edi
pop esi
pop ebp
mov edx, ebx
pop ebx
add esp, 0x10
ret
Function at 0x473b70
Capabilities:
List user account groups

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x4ce19c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0x438], eax
push edi
mov edi, edi
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x20]
push edx
push 0
push 0
call sub.NETAPI32.dll_NetLocalGroupEnum
mov edi, eax
test edi, edi
je 0x473bd2
cmp edi, 0xea
je 0x473bd2
push edi
push str.AddGroupsToList___NetLocalGroupEnum___failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0xc
jmp 0x473d2e
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x18], esi
jbe 0x473d18
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + esi*4]
push ecx
lea edx, [esp + 0x2c]
push 0x200
push edx
call fcn.00458a50
add esp, 0xc
test eax, eax
je 0x473c19
push str.AddGroupsToList_failed_due_to_above_error.
push 0x48ae58
call fcn.004572b0
add esp, 8
jmp 0x473d07
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
xor edi, edi
push edx
mov dword [esp + 0x28], edi
call fcn.00473650
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, edi
je 0x473c6f
mov ecx, dword [esp + 0x428]
mov edx, ecx
shr ecx, 2
mov esi, eax
lea edi, [esp + 0x228]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
xor edi, edi
cmp dword [ebx + 0x10], edi
mov esi, dword [ebx + 8]
mov byte [esp + 0x42c], 1
mov dword [esp + 0x430], edi
mov dword [esp + 0x434], edi
jne 0x473cd0
mov eax, dword [ebx + 0x18]
push 0x418
push eax
lea ecx, [ebx + 0x14]
push ecx
call sub.MFC71U.DLL_COleSafeArray::Create
mov ecx, dword [ebx + 0x18]
mov edx, ecx
imul edx, edx, 0x418
add eax, 4
dec ecx
cmp ecx, edi
lea eax, [eax + edx - 0x418]
jl 0x473cd0
inc ecx
lea ebx, [ebx]
mov edx, dword [ebx + 0x10]
mov dword [eax], edx
mov dword [ebx + 0x10], eax
sub eax, 0x418
dec ecx
jne 0x473cc0
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
mov dword [ebx + 0x10], ecx
mov dword [eax + 4], esi
mov dword [eax], edi
inc dword [ebx + 0xc]
lea edi, [eax + 8]
mov ecx, 0x104
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x473cf9
mov dword [ecx], eax
jmp 0x473cfc
mov dword [ebx + 4], eax
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
mov dword [esp + 0x18], esi
jb 0x473be4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x473d2e
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [esp + 0x10], 0
cmp edi, 0xea
je 0x473b90
mov ecx, dword [esp + 0x43c]
mov eax, edi
call fcn.00475533
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473d50
Capabilities:
List user accounts

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x4ce19c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [esp + 0x440], eax
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], esi
jmp 0x473d90
xor esi, esi
jmp 0x473d90
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push esi
call sub.NETAPI32.dll_NetUserEnum
mov edi, eax
cmp edi, esi
mov dword [esp + 0x28], edi
je 0x473dd8
cmp edi, 0xea
je 0x473dd8
push edi
push str.AddUsersToList___NetUserEnum___failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0xc
jmp 0x473f06
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [esp + 0x10], esi
je 0x473f1c
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x473f06
lea esp, [esp]
test esi, esi
je 0x473ef1
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x34]
push 0x200
push edx
call fcn.00458a50
add esp, 0xc
test eax, eax
je 0x473e38
push str.AddUsersToList___failed_due_to_above_error.
push 0x48ae58
call fcn.004572b0
add esp, 8
jmp 0x473ef1
lea eax, [esp + 0x430]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x28], 0
call fcn.00473650
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x473e92
mov ecx, dword [esp + 0x430]
mov edx, ecx
shr ecx, 2
mov esi, eax
lea edi, [esp + 0x230]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR71.dll_free]
mov esi, dword [esp + 0x14]
add esp, 4
mov eax, dword [esi]
push ebx
push eax
mov byte [esp + 0x43c], 0
call fcn.00473960
mov ecx, dword [ebx + 8]
add esp, 8
push 0
push ecx
mov ecx, ebx
mov dword [esp + 0x440], eax
mov dword [esp + 0x444], edx
call fcn.00473820
lea edi, [eax + 8]
mov ecx, 0x104
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x473eda
mov dword [ecx], eax
jmp 0x473edd
mov dword [ebx + 4], eax
mov edi, dword [esp + 0x28]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x473e00
mov eax, dword [esp + 0xc]
test eax, eax
je 0x473f1c
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [esp + 0xc], 0
cmp edi, 0xea
je 0x473d86
mov ecx, dword [esp + 0x444]
mov eax, dword [esp + 0x20]
call fcn.00475533
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474280
Capabilities:
Check if file exists
Get file attributes
Read file on windows
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x264
push edi
push 0x48add0
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x47435c
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
push edi
push 1
lea ecx, [esp + 0x10]
push 0x262
push ecx
call ebx
add esp, 0x10
test eax, eax
je 0x474351
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, byte [esp + 0x246]
test al, 4
je 0x474339
test al, 3
jne 0x474339
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474339
lea eax, [esp + 0x10]
push eax
call ebp
cmp eax, 0xffffffff
je 0x47431f
or eax, 0x20
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x474339
call esi
push eax
lea edx, [esp + 0x14]
push edx
push str.SetArchiveBit_____SetFileAttributes____s_failed._Error__d
jmp 0x47432c
call esi
push eax
lea eax, [esp + 0x14]
push eax
push str.SetArchiveBit_____GetFileAttributes____s_failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0x10
push edi
push 1
lea ecx, [esp + 0x18]
push 0x262
push ecx
call ebx
add esp, 0x10
test eax, eax
jne 0x4742d3
pop esi
pop ebp
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop ebx
xor eax, eax
pop edi
add esp, 0x264
ret

Function at 0x474370
Capabilities:
Check os version

Disassembly:
sub esp, 0x84
mov eax, dword [0x4ce19c]
mov dword [esp + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jb 0x4743ab
mov eax, dword [esp + 0x88]
push eax
push str..Global_s
push 0x80
lea ecx, [esp + 0xc]
push ecx
jmp 0x4743c2
mov edx, dword [esp + 0x88]
push edx
push str.._s
push 0x80
lea eax, [esp + 0xc]
push eax
call fcn.00403fa3
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push 0x20000
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x474401
xor eax, eax
mov ecx, dword [esp + 0x80]
call fcn.00475533
add esp, 0x84
ret
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x474426
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [esp + 0x80]
call fcn.00475533
add esp, 0x84
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x80]
mov eax, 1
call fcn.00475533
add esp, 0x84
ret
Function at 0x474480
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1014
call fcn.0040f8c0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1024]
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push SysReAllocString
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x3c], ebx
or edi, 0xffffffff
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4744f9
mov edi, 0x600
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Unable_to_open_input_file__s_to_hash___dwRet__0x_08x___WinRC__0x_08x
push str.HASHLIB
call fcn.004572b0
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1014
ret
cmp dword [esp + 0x18], ebx
je 0x474553
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x1000
lea ecx, [esp + 0x30]
push ecx
push ebp
call esi
test eax, eax
je 0x4745aa
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x474553
shr eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00455fa0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add edx, ecx
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x14], edx
jne 0x474505
mov eax, dword [esp + 0x1030]
cmp eax, ebx
je 0x474566
mov cx, word [esp + 0x14]
mov word [eax], cx
mov esi, dword [esp + 0x102c]
cmp esi, ebx
je 0x47460c
push ebx
push ebx
push 2
push ebx
push ebx
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4745cd
mov dword [esp + 0x10], 0x602
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x602
push esi
push str.Unable_to_open_hash_file__s_to_write_hash___dwRet__0x_08x___WinRC__0x_08x
jmp 0x4745ff
mov dword [esp + 0x10], 0x601
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x1028]
push eax
push 0x601
push edx
push str.Error_reading_input_file__s___dwRet__0x_08x___WinRC__0x_08x
jmp 0x4745ff
push ebx
lea edx, [esp + 0x24]
push edx
push 2
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47460c
mov dword [esp + 0x10], 0x602
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x602
push esi
push str.Unable_to_write_hash_file__s___dwRet__0x_08x___WinRC__0x_08x
push str.HASHLIB
call fcn.004572b0
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
cmp edi, 0xffffffff
je 0x47461d
push edi
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1014
ret
Function at 0x477140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
push 1
push 1
push 0x180
push str.._tvt_pipe.cpp
push str.writePipe
mov edi, ecx
push str.CTVTPipe
lea ecx, [ebp - 0x18]
call fcn.0040e269
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
xor edx, edx
xor ebx, ebx
cmp eax, edx
sete bl
test ecx, ecx
mov dword [ebp - 4], edx
mov byte [ebp - 0x11], dl
sete dl
xor ebx, edx
jne 0x47729e
test eax, eax
jne 0x4771b9
test ecx, ecx
je 0x47729e
mov al, byte [edi + 8]
test al, al
je 0x47729e
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
lea edx, [ebp + 8]
push edx
push eax
mov eax, dword [edi + 4]
push ecx
mov ebx, 1
push eax
mov byte [ebp - 4], bl
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x477223
mov edi, dword [edi + 0x10]
push eax
push ebx
push ebx
push 0x18e
push str.._tvt_pipe.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea ecx, [ebp - 0x9c]
call fcn.00476ee0
push 0x4c1a9c
lea ecx, [ebp - 0x9c]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov esi, dword [esi + 8]
cmp dword [ebp + 8], esi
je 0x47729b
mov edi, dword [edi + 0x10]
push 0
push ebx
push ebx
push 0x193
push str.._tvt_pipe.cpp
push edi
lea ecx, [ebp - 0x5c]
call fcn.00476dd0
push 0x4c1a8c
lea edx, [ebp - 0x5c]
push edx
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebp - 0x1c]
mov al, byte [ecx + 0xa]
test al, al
jne 0x477262
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0x47729e
ret
mov byte [ebp - 0x11], bl
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4772b2
mov dl, byte [ebp - 0x11]
mov dword [ecx + 0x24], 1
mov byte [ecx + 0x2c], dl
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
je 0x4772c3
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e7572
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4e76a4
and dword [ebp - 8], 0
cmp eax, 0x1000
push ebx
push esi
push edi
mov ebx, 0x16628
jb 0x4e7622
and dword [ebp - 4], 0
push dword [ebp + 0x18]
xor eax, eax
push 0x100
mov ecx, 0x400
mov edi, ebx
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004e820c
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
mov byte [ebp - 0x1c], 2
lea edi, [ebp - 0x1b]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cdq
add eax, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
adc edx, dword [ebp + 0x10]
xor dword [ebp - 0x1b], eax
xor dword [ebp - 0x17], edx
push ebx
mov esi, 0x1000
push esi
push ebx
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004e82e2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor edi, edi
add eax, ecx
mov cl, byte [edi + 0x16628]
xor byte [eax + edi], cl
inc edi
cmp edi, esi
jl 0x4e7601
add dword [ebp - 4], esi
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 4]
inc dword [ebp - 8]
cmp eax, esi
jae 0x4e75a1
mov eax, dword [ebp + 0x14]
and eax, 0xfff
mov dword [ebp + 0x14], eax
je 0x4e76a1
push dword [ebp + 0x18]
xor eax, eax
push 0x100
mov ecx, 0x400
mov edi, ebx
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004e820c
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
mov byte [ebp - 0x1c], 2
lea edi, [ebp - 0x1b]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
shl eax, 0xc
movsd dword es:[edi], dword [esi]
mov esi, eax
cdq
add eax, dword [ebp + 0xc]
push ebx
adc edx, dword [ebp + 0x10]
xor dword [ebp - 0x1b], eax
xor dword [ebp - 0x17], edx
push 0x1000
push ebx
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004e82e2
xor eax, eax
cmp dword [ebp + 0x14], eax
jle 0x4e76a1
mov ecx, dword [ebp + 8]
add ecx, esi
mov dl, byte [eax + 0x16628]
xor byte [ecx + eax], dl
inc eax
cmp eax, dword [ebp + 0x14]
jl 0x4e7692
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4e7b6e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004e76fa
and dword [ebp + 0x10], 0
mov ebx, eax
shl ebx, 2
test ebx, ebx
mov dword [ebp + 0xc], eax
jle 0x4e7bdb
lea edx, [esi + ebx*4 + 8]
lea ecx, [esi + 8]
mov eax, dword [edx - 8]
mov edi, dword [ecx - 8]
add dword [ebp + 0x10], 4
mov dword [ecx - 8], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], edi
mov edi, dword [ecx - 4]
mov dword [ecx - 4], eax
mov eax, dword [edx]
mov dword [edx - 4], edi
mov edi, dword [ecx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [ecx + 4], eax
mov dword [edx + 4], edi
sub ebx, 4
add ecx, 0x10
sub edx, 0x10
cmp dword [ebp + 0x10], ebx
jl 0x4e7b9a
mov eax, dword [ebp + 0xc]
cmp eax, 1
jle 0x4e7d4d
lea ecx, [eax - 1]
mov dword [ebp + 0x10], ecx
mov ecx, 0xff
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + 0x13cc0]
add esi, 0x10
mov edx, dword [esi]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + 0x13cc0]
and edi, ecx
mov edi, dword [edi*4 + 0x140c0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x148c0]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + 0x13cc0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x144c0]
movzx ebx, byte [esi + 5]
and edx, ecx
mov edx, dword [edx*4 + 0x13cc0]
and edx, ecx
xor edi, dword [edx*4 + 0x14cc0]
mov edx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + 0x13cc0]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + 0x13cc0]
and edi, ecx
mov edi, dword [edi*4 + 0x140c0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x148c0]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + 0x13cc0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x144c0]
movzx ebx, byte [esi + 9]
and edx, ecx
mov edx, dword [edx*4 + 0x13cc0]
and edx, ecx
xor edi, dword [edx*4 + 0x14cc0]
mov edx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + 0x13cc0]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + 0x13cc0]
and edi, ecx
mov edi, dword [edi*4 + 0x140c0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x148c0]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + 0x13cc0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x144c0]
movzx ebx, byte [esi + 0xd]
and edx, ecx
mov edx, dword [edx*4 + 0x13cc0]
and edx, ecx
xor edi, dword [edx*4 + 0x14cc0]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + 0x13cc0]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + 0x13cc0]
and edi, ecx
mov edi, dword [edi*4 + 0x140c0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x148c0]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + 0x13cc0]
and edx, ecx
mov edx, dword [edx*4 + 0x13cc0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x144c0]
and edx, ecx
xor edi, dword [edx*4 + 0x14cc0]
dec dword [ebp + 0x10]
mov dword [esi + 0xc], edi
jne 0x4e7bef
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x43b629
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
add ebx, 0xf1e9ebd8
call fcn.0043b667
add esi, 0x7564e3c7
and ebx, esi
xor dword [ecx], eax
inc ebx
add ebx, 1
inc ecx
sub esi, 1
mov esi, 0xbb1e77fa
cmp ecx, edi
jne fcn.0043b629
add esi, 1
ret
Function at 0x404d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x404d9c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x404dc4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x404dca
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x404e32
jg 0x404de1
test esi, esi
je 0x404e32
test ecx, ecx
jl 0x404e2d
jg 0x404deb
test eax, eax
je 0x404e2d
cmp edi, ecx
jg 0x404dff
jl 0x404df5
cmp esi, eax
jae 0x404dff
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x404e35
mov ecx, dword [ebp + 8]
jmp 0x404e3f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x404e59
jg 0x404e3f
test esi, esi
je 0x404e59
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404e59
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc