joyce8/EMBER2024-capa huggingface dataset:
Function at 0x581c30
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc6db
mov eax, dword fs:[0]
push eax
sub esp, 0xc14
mov eax, dword [0x6c9db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.Starting_game_n
call fcn.00589b00
inc dword [0x6d0318]
add esp, 4
push 6
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0xc18]
push eax
push 0x6ccff0
call fcn.0058acb0
add esp, 0xc
test al, al
jne 0x581cb0
push str.failed1_n
call fcn.00589b00
add esp, 4
jmp 0x581cc9
push dword [ebp - 0xc1c]
push dword [ebp - 0xc18]
push str._08x__d_n
call fcn.00589b00
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
lea ecx, [esi + 0x215d0]
call fcn.00588ed0
push 0
lea eax, [ebp - 0xc14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareCodex_Development_GroupWarZSiam
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x581d73
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x581d10
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push str.LoginToken
push dword [ebp - 0xc14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x581d73
push dword [ebp - 0xc14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
call fcn.00597f10
add esp, 4
push eax
push 0xffffffffffffffff
call fcn.00597f10
add esp, 4
push eax
lea eax, [ebp - 0x410]
push str._08X_08X
push eax
call fcn.0057de50
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
push 0x6d1980
lea eax, [ebp - 0xc10]
push str._WOUpdatedOk__s__WOLogin___s_
push eax
call fcn.005826f0
add esp, 0x10
cmp dword [esi + 0x21c70], 0
jbe 0x581de2
lea ecx, [ebp - 0xc10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x581da5
sub ecx, edx
lea eax, [ebp - 0xc10]
add eax, ecx
cmp dword [esi + 0x21c74], 0x10
mov dword [ebp - 0xc14], eax
lea eax, [esi + 0x21c60]
jb 0x581dcd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc14]
push str.__survey___s_
push eax
call fcn.00582730
add esp, 0xc
push 5
push 0
lea eax, [ebp - 0xc10]
push eax
push 0x6ccff0
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x581e12
push eax
push str.failed:__d_n
call fcn.00589b00
add esp, 8
mov eax, dword [0x6d0318]
test eax, eax
je 0x581e21
dec eax
mov dword [0x6d0318], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aede3
mov esp, ebp
pop ebp
ret
Function at 0x582d10
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6c9db0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00587850
call fcn.00589f10
call fcn.00589550
call fcn.00589f10
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x20d84], 3
jne 0x582d57
mov dword [esi + 0x20d84], 5
cmp dword [esi + 0x20d88], 0
jne 0x582e01
mov edi, dword [esi + 0x21590]
mov eax, edi
mov ebx, dword [esi + 0x21594]
or eax, ebx
jne 0x582d7b
xorps xmm1, xmm1
jmp 0x582dc1
mov edx, dword [esi + 0x2159c]
mov ecx, dword [esi + 0x21598]
call fcn.005b6e4f
cvtsd2ss xmm0, xmm0
mov edx, ebx
mov ecx, edi
movss dword [ebp - 0x20c], xmm0
call fcn.005b6e4f
movss xmm1, dword [ebp - 0x20c]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x676af0]
comiss xmm1, xmm0
jbe 0x582dc1
movaps xmm1, xmm0
mulss xmm1, dword [0x676b0c]
lea eax, [esi + 0x20d8d]
sub esp, 8
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
push eax
lea eax, [ebp - 0x208]
push str._s:__.1f__
push eax
call fcn.00582710
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
jmp 0x582d32
mov ecx, esi
call fcn.00587970
mov eax, dword [esi + 0x20d88]
dec eax
je 0x582e45
dec eax
je 0x582e2f
dec eax
je 0x582e52
push 0
push 0x37
push str.Main_CmdLine.cpp
push str.0_
call fcn.00589fd0
add esp, 0x10
jmp 0x582e52
lea eax, [esi + 0x2118d]
push eax
push str.Update_error_n_s_n_nPlease_retry_later
call fcn.00589b00
add esp, 8
jmp 0x582e52
push str.Update_ok_n
call fcn.00589b00
add esp, 4
push str._nPress_enter_to_exit...
call fcn.00589b00
add esp, 4
call fcn.005b0b93
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aede3
mov esp, ebp
pop ebp
ret
Function at 0x585270
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x6c9db0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push eax
lea eax, [ebp - 0x418]
push eax
push edi
call fcn.0058acb0
add esp, 0xc
test al, al
je 0x5852bb
mov eax, dword [ebp - 0x418]
cmp eax, dword [edi + 0x10e]
je 0x58539d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push 0x674a2c
push edi
call fcn.005afafb
add esp, 8
mov dword [ebp - 0x410], eax
test eax, eax
je 0x5853b0
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.004011c0
push eax
mov ecx, esi
call fcn.004011f0
push eax
push edi
lea ecx, [ebx + 0x4c0]
call fcn.0059a860
mov eax, dword [edi + 0x106]
cmp eax, dword [ebp - 0x414]
je 0x585336
push 0
push 0x18b
push str.Updater.cpp
push str.fe__size__out_size
call fcn.00589fd0
add esp, 0x10
lea esi, [ebx + 0x20d6c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x410]
push 1
push dword [ebp - 0x414]
push dword [ebp - 0x40c]
call fcn.005b0d13
push dword [ebp - 0x410]
call fcn.005af4d5
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x6ccff0
push edi
call fcn.005b2e0b
add esp, 8
test eax, eax
jne 0x58538f
mov byte [ebx + 0x215c4], 1
call fcn.00585650
push dword [ebp - 0x40c]
call fcn.0058be30
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aede3
mov esp, ebp
pop ebp
ret 8
push edi
lea eax, [ebp - 0x408]
push str.Cant_replace_file__s_nPlease_delete_this_file_manually
push eax
call fcn.0057de50
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call fcn.005846a0
int3
Function at 0x5854b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccb18
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6c9db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0x400
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00587bf0
mov eax, dword [esi + 0x5cc]
xor edi, edi
sub eax, dword [esi + 0x5c8]
mov ebx, dword [ebp - 0x20]
sar eax, 2
mov dword [ebp - 0x10], edi
test eax, eax
je 0x5855cc
lea esp, [esp]
mov eax, dword [esi + 0x5c8]
mov esi, dword [eax + edi*4]
test dword [esi + 0x116], 0x100000
jne 0x5855ae
cmp esi, ebx
jae 0x585581
mov eax, dword [ebp - 0x24]
cmp eax, esi
ja 0x585581
sub esi, eax
mov eax, 0xdd67c8a7
imul esi
add edx, esi
sar edx, 8
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ebx, dword [ebp - 0x1c]
jne 0x585576
push ecx
lea ecx, [ebp - 0x24]
call fcn.00587c90
mov ebx, dword [ebp - 0x20]
imul esi, esi, 0x128
add esi, dword [ebp - 0x24]
jmp 0x585592
cmp ebx, dword [ebp - 0x1c]
jne 0x585592
push ecx
lea ecx, [ebp - 0x24]
call fcn.00587c90
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x5855a2
mov ecx, 0x4a
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10]
add ebx, 0x128
inc dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x5cc]
sub eax, dword [esi + 0x5c8]
sar eax, 2
cmp edi, eax
jb 0x585530
mov edi, dword [ebp - 0x24]
mov eax, 0xdd67c8a7
sub ebx, edi
imul ebx
add edx, ebx
sar edx, 8
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x585618
add esi, 0x5c4
mov dword [ebp - 0x18], esi
mov esi, edi
mov edi, dword [ebp - 0x18]
push esi
mov ecx, edi
call fcn.0059a480
test byte [esi + 0x116], 1
je 0x58560c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0x128
dec ebx
jne 0x5855f4
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x14]
push str.removed__d_files_n
call fcn.00589b00
add esp, 8
test edi, edi
je 0x585635
push edi
call fcn.0058be30
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x585650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x6c9db0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x6ccff0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x67579c
push eax
call fcn.0057de30
push 0x6cc3f0
lea eax, [ebp - 0x618]
push str.Allow_network_traffic_for__s
push eax
call fcn.0057de50
add esp, 0x1c
lea eax, [ebp - 0x618]
lea ecx, [ebp - 0x110]
push eax
call fcn.0057dae0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.005aede3
mov esp, ebp
pop ebp
ret
Function at 0x58a0d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
cmp dword [0x6d196c], 0
jne 0x58a0f5
push 0
push 0x205
push str.SourceWinMain.cpp
push str.hInstance___NULL
call fcn.00589fd0
add esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push edi
push 0
mov dword [esp + 0x10], 0x4008
mov dword [esp + 0x14], 0x58a500
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x6d1974]
test eax, eax
jne 0x58a13b
push 0x7f00
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x28], eax
mov eax, dword [0x6c8c10]
mov dword [esp + 0x30], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateICA]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call esi
push 0xa
push edi
mov dword [0x6d18d4], eax
call esi
push edi
mov dword [0x6d18d8], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
push 0
call ebx
mov ecx, dword [0x6a0bf0]
mov esi, dword [0x6a0bf4]
push eax
mov eax, dword [0x6d18d8]
push 0
sub eax, ecx
push 0
cdq
push ecx
sub eax, edx
push esi
sar eax, 1
push eax
mov eax, dword [0x6d18d4]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10cf0000
push dword [0x6c8c08]
push dword [0x6c8c10]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x6d1970], eax
test eax, eax
jne 0x58a222
push eax
push str.Error
push str.Window_Creation_Failed
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
push dword [esp + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x80
push eax
call esi
push dword [esp + 0x20]
push 0
push 0x80
push dword [0x6d1970]
call esi
mov esi, dword [0x6d1970]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
and eax, 0xfffbffff
push eax
push 0xfffffffffffffff0
push esi
call edi
mov esi, dword [0x6d1970]
push 0xfffffffffffffff0
push esi
call ebx
and eax, 0xfffeffff
push eax
push 0xfffffffffffffff0
push esi
call edi
push 0
push dword [0x6d1970]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [0x6d1970]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x6d1970]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [0x6d1970]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x58a2d0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Terminate process
Use process replacement

Disassembly:
sub esp, 0x460
push esi
push edi
mov edi, dword [esp + 0x46c]
lea eax, [esp + 0x68]
push 0x400
push eax
push 0
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x2c], 0
add esi, edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [esi], 0x4550
jne 0x58a48a
push 0x44
lea eax, [esp + 0x28]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [esp + 0x18], xmm0
call fcn.005b2ef0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x58a48a
push ebp
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
push ebp
mov dword [esp + 0x24], ebp
mov dword [ebp], 0x10007
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x58a489
push 0
push 4
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 0xa4]
add eax, 8
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40
push 0x3000
push dword [esi + 0x50]
push 0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x58a3d9
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push dword [esi + 0x54]
push edi
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x58a436
push ebx
xor ebx, ebx
xor ebp, ebp
mov ecx, dword [edi + 0x3c]
add ecx, ebx
push 0
push dword [ecx + edi + 0x108]
mov eax, dword [ecx + edi + 0x10c]
add eax, edi
push eax
mov eax, dword [ecx + edi + 0x104]
add eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [esi + 6]
inc ebp
add ebx, 0x28
cmp ebp, eax
jl 0x58a3f7
mov ebp, dword [esp + 0x24]
pop ebx
push 0
push 4
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0xa4]
add eax, 8
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esi + 0x28]
add eax, dword [esp + 0xc]
push ebp
mov dword [ebp + 0xb0], eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
xor eax, eax
pop ebp
pop edi
pop esi
add esp, 0x460
ret

Function at 0x58ac80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
je 0x58acac
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6c8c18]
dec edx
jne 0x58ac90
pop esi
not eax
ret
Function at 0x406a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x406a82
jl 0x406a75
test ecx, ecx
jne 0x406a82
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x406b42
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00409150
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x406aee
jg 0x406aad
test esi, esi
je 0x406aee
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x406ac5
mov eax, dword [esp + 0x10]
jl 0x406abf
cmp eax, esi
jae 0x406ac5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00429560
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x406b0f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x406b2b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x406a94
jl 0x406b2b
test ecx, ecx
jne 0x406a94
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x406b86
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x406b86
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00429560
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x406bf7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x406bac
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 [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x406be2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0043896c
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x406bf7
cmp edi, eax
ja 0x406bc0
test edi, edi
je 0x406bf7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0043896c
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 0x409020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450850
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46d190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00427ca6
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00427067
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00409490
mov eax, dword [ebp - 0x10]
lea ebx, [edi + 4]
mov dword [edi + 0xc], ebx
lea esi, [edi + 8]
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea ecx, [eax + 0x18]
mov byte [edi + 0x48], 0
lea edx, [eax + 0x24]
mov byte [edi + 0x3d], 0
mov dword [edi + 0x10], esi
add edi, 0x14
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x471a40]
mov edx, dword [0x471a44]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4214b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x18
test eax, eax
je 0x421646
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x24]
push edi
cmp eax, 4
jb 0x4214f3
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x4214d8
mov dword [esp + 0x34], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
test eax, eax
je 0x421642
cmp eax, 8
jb 0x421627
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x421525
cmp edi, ebx
jae 0x421627
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x421536
cmp edi, edx
jae 0x421627
cmp eax, 0x40
jb 0x4215d8
mov edi, eax
mov ecx, eax
and edi, 0x3f
mov eax, esi
sub eax, ebx
mov dword [esp + 0x24], edi
sub ecx, edi
mov dword [esp + 0x10], eax
mov edi, edx
mov dword [esp + 0x20], ecx
sub edi, ebx
lea ecx, [ebx + 0x10]
mov ebx, dword [esp + 0x10]
mov eax, edx
sub eax, esi
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x20]
nop
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edx + ebp]
lea eax, [eax + 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [edi + ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ebx + ecx - 0x40], xmm1
mov ebx, dword [esp + 0x1c]
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [ebx + eax - 0x40]
mov ebx, dword [esp + 0x10]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add ebp, 0x40
movups xmm0, xmmword [ecx - 0x20]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x421570
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
jb 0x421623
jmp 0x4215dc
mov edi, edx
sub edi, ebx
and eax, 0xfffffff8
lea ecx, [ebx + ebp]
mov dword [esp + 0x20], eax
mov eax, esi
sub eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
nop word [eax + eax]
movq xmm1, qword [ecx + edi]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
add ebp, 8
xorps xmm1, xmm0
movq qword [ecx + edx - 8], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x421600
mov edx, dword [esp + 0x18]
cmp ebp, eax
jae 0x421642
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + esi - 1], cl
sub eax, 1
jne 0x421630
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x428cb3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x428cf2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x428cf2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428cf2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x428cf2
cmp dword [ecx + 0x74], 0xe
jbe 0x428cf2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x44060b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45d050
push 0x45d048
push str.FlsAlloc
push 0x1f
call fcn.00440476
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44063f
push dword [ebp + 8]
mov ecx, esi
call dword [0x453174]
call esi
jmp 0x440645
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x440689
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45d060
push 0x45d058
push str.FlsGetValue
push 0x21
call fcn.00440476
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4406c0
push dword [ebp + 8]
mov ecx, esi
call dword [0x453174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4406c8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45d068
push 0x45d060
push str.FlsSetValue
push 0x22
call fcn.00440476
mov esi, eax
add esp, 0x10
test esi, esi
je 0x440702
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x453174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]