joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bc8e8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x228
xor esi, esi
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0062c020
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x5bc967
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x228], edi
jne 0x5bc94d
cmp dword [ebp - 0x218], edi
jne 0x5bc960
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5bc93d
jmp 0x5bc966
mov esi, dword [ebp - 0x218]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00628dca
leave
ret

Function at 0x5bcc49
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor esi, esi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x5bcc86
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x5bcc7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5bcc8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x5bccac
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x428
mov eax, 0x657b27
call fcn.00628e3d
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x42c], ebx
push str._tmp__d.tmp
mov dword [ebp - 4], ebx
call fcn.005b9d88
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.005a615f
mov esi, eax
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x5bccf3
mov esi, dword [esi]
call fcn.00635514
push eax
lea eax, [ebp - 0x3f8]
push esi
push eax
call fcn.0051cfa0
add esp, 0xc
lea ecx, [ebp - 0x410]
call fcn.00449330
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x428]
call fcn.00449380
push eax
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 1
push edi
push eax
call fcn.005b3b92
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 2
push ecx
push eax
call fcn.005ba1b2
add esp, 0x14
lea ecx, [ebp - 0x410]
call fcn.00449330
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], bl
call fcn.00449330
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5bcdc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.005ba29c
pop ecx
pop ecx
mov esi, 0x70d09c
mov ecx, esi
call fcn.00449330
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.00449550
lea ecx, [ebp - 0x410]
call fcn.00449330
jmp 0x5bce54
push str.test_data
call fcn.0062fa80
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x434]
push eax
push esi
push str.test_data
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5bcdf4
cmp dword [ebp - 0x434], esi
je 0x5bce30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.005ba29c
pop ecx
pop ecx
mov esi, 0x70d09c
mov ecx, esi
call fcn.00449330
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.00449550
lea ecx, [ebp - 0x410]
call fcn.00449330
jmp 0x5bce33
xor ebx, ebx
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x430]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
test eax, eax
jne 0x5bce54
push dword [ebp - 0x430]
call esi
cmp dword [ebp - 0x430], 0
je 0x5bce69
push dword [ebp - 0x430]
call fcn.0062f9c7
pop ecx
mov al, bl
call fcn.00628dec
ret
Function at 0x5be84f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
xor ecx, ecx
push eax
push ecx
push esi
push 0x5be986
push ecx
push ecx
mov dword [esi], vtable.Installer.0
mov dword [esi + 8], ecx
mov byte [esi + 0xc], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov eax, esi
pop esi
leave
ret
Function at 0x5cc651
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword [0x70d2c0]
cmp eax, 8
jne 0x5cc6f2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
and eax, 0x1ff
cmp eax, 0x2b
ja 0x5cc6b7
je 0x5cc6ea
cmp eax, 0x1f
ja 0x5cc69a
je 0x5cc696
dec eax
sub eax, 1
je 0x5cc6ea
sub eax, 8
je 0x5cc692
sub eax, 0xc
je 0x5cc68d
sub eax, 3
jmp 0x5cc6e4
push 6
pop eax
jmp 0x5cc6ed
push 4
jmp 0x5cc68f
push 2
jmp 0x5cc68f
sub eax, 0x22
je 0x5cc6b3
sub eax, 1
je 0x5cc6ea
sub eax, 5
je 0x5cc6ea
dec eax
sub eax, 1
jne 0x5cc6e6
push 7
jmp 0x5cc68f
push 5
jmp 0x5cc68f
cmp eax, 0x42
ja 0x5cc6d7
je 0x5cc6ea
sub eax, 0x2c
je 0x5cc6ea
sub eax, 0xb
je 0x5cc6ea
dec eax
sub eax, 1
je 0x5cc6d3
sub eax, 6
jmp 0x5cc6e4
push 3
jmp 0x5cc68f
sub eax, 0x43
je 0x5cc6ea
sub eax, 0x2a
je 0x5cc6ea
sub eax, 0x18
je 0x5cc6ea
xor eax, eax
jmp 0x5cc6ed
xor eax, eax
inc eax
mov dword [0x70d2c0], eax
ret
Function at 0x5d1c3d
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x898]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0xc50], 1
xor eax, eax
pop esi
ret 0x10
Function at 0x5d286c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x5d288e
push 5
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x5d2895
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0x201
push ebx
mov ebx, ecx
jne 0x5d28c9
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 0x898]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov byte [ebx + 0xc50], 0
jmp 0x5d290d
mov eax, 0x205
cmp word [ebp + 0x10], ax
jne 0x5d290d
and dword [ebp - 8], 0
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [ebp - 4]
mov esi, dword [ebx + 4]
push edi
push dword [ebp - 8]
call fcn.005d4244
pop ecx
pop ecx
push 0
push esi
push 0
push edi
push eax
push 4
push dword [ebx + 0x68]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x5d6e62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x65b030
call fcn.00628ea9
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x5d6edf
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x5d6edf
call fcn.005ce95c
mov esi, eax
jmp 0x5d6fb6
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5d6f02
call fcn.005ce95c
jmp 0x5d6fa9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x5d6ef8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x5d6f32
mov esi, 0x8007000e
jmp 0x5d6fab
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.005d60ee
jmp 0x5d6f58
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x5d6f2b
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x5d6ef8
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.005d6d1b
mov esi, eax
test edi, edi
je 0x5d6fb6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x5d6fcf
lea ecx, [ebp - 0x418]
call fcn.005d64eb
mov eax, esi
call fcn.00628dfb
ret 0x10
Function at 0x5d92fd
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x5d9350
sub eax, 1
je 0x5d9349
sub eax, 1
je 0x5d9342
sub eax, 1
je 0x5d933b
sub eax, 1
je 0x5d9334
push str._installer
call fcn.005b99a4
push eax
push dword [ebp + 8]
call fcn.005a615f
add esp, 0xc
jmp 0x5d935d
push str.Mozilla_5.0__Macintosh__U__Intel_Mac_OS_X_10_6_6__en_US__AppleWebKit_534.13__KHTML__like_Gecko__Chrome_9.0.597.102_Safari_534.13
jmp 0x5d9355
push str.Mozilla_5.0__Windows__U__Windows_NT_5.1__en_US__AppleWebKit_534.13__KHTML__like_Gecko__Chrome_9.0.597.107_Safari_534.13
jmp 0x5d9355
push str.Opera_9.80__X11__Linux_i686__U__ru__Presto_2.7.62_Version_11.01
jmp 0x5d9355
push str.Mozilla_5.0__X11__U__Linux_i686__ru__rv:1.9.2.14__Gecko_20110221_Ubuntu_10.10__maverick__Firefox_3.6.14
jmp 0x5d9355
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
mov ecx, dword [ebp + 8]
call fcn.00449380
mov eax, dword [ebp + 8]
pop ebp
ret

Function at 0x5d98bf
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x65b376
call fcn.00628e3d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor ebx, ebx
mov dword [ebp - 0x24c], esi
push ebx
push 0x1c
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.005baed2
push str.GoogleChromeUser_DataDefaultSecure_Preferences
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ebx
push eax
call fcn.005a0e4e
add esp, 0x14
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00449330
lea eax, [ebp - 0x230]
push eax
call fcn.005b7719
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
pop ecx
test al, al
je 0x5d994d
lea eax, [ebp - 0x230]
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
call fcn.00449550
jmp 0x5d9956
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
lea ecx, [ebp - 0x230]
call fcn.00449330
mov eax, esi
call fcn.00628dec
ret

Function at 0x5da491
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x65b376
call fcn.00628e3d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor ebx, ebx
mov dword [ebp - 0x24c], esi
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.005baed2
push str.MozillaFirefox_
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ebx
push eax
call fcn.005a0e4e
add esp, 0x14
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00449330
lea eax, [ebp - 0x230]
push eax
call fcn.005b7719
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
pop ecx
test al, al
je 0x5da51f
lea eax, [ebp - 0x230]
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
call fcn.00449550
jmp 0x5da528
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
lea ecx, [ebp - 0x230]
call fcn.00449330
mov eax, esi
call fcn.00628dec
ret
Function at 0x5daa17
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x653f29
call fcn.00628e0a
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov esi, dword [eax]
cmp esi, eax
je 0x5daa87
mov edi, dword [esi + 0x58]
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
lea eax, [esi + 8]
push ecx
push eax
call fcn.005ba1b2
pop ecx
pop ecx
xor edx, edx
xor ecx, ecx
push 5
push edx
cmp edi, 3
mov eax, str.__restore_last_session
cmovne eax, ecx
push eax
push dword [ebp - 0x14]
push edx
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x5daa81
push dword [ebp - 0x14]
call fcn.0062f9c7
and dword [ebp - 0x10], 0
pop ecx
mov esi, dword [esi]
cmp esi, dword [ebx]
jne 0x5daa2e
call fcn.00628dd8
ret

Function at 0x5db0f8
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x5db11b
push 0
push 0
push 0x10
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esi]
cmp esi, dword [edi + 8]
jne 0x5db105
cmp dword [edi + 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x5db134
push 0x1388
push dword [edi]
call esi
test eax, eax
je 0x5db147
push 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7d0
push dword [edi]
call esi
pop edi
pop esi
ret
Function at 0x5dbcf7
Capabilities:
Get file size

Disassembly:
push 0xf4
mov eax, 0x65b8b0
call fcn.00628e3d
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x60]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.005ba1b2
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 3
push accept
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5dbdb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005ba29c
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push str.CreateFile_error__
push eax
call fcn.005a0e81
mov edi, eax
mov ebx, 0x70d09c
add esp, 0x14
cmp edi, ebx
je 0x5dbd89
mov ecx, ebx
call fcn.00449330
push edi
mov ecx, ebx
call fcn.00449550
lea ecx, [ebp - 0x58]
call fcn.00449330
lea ecx, [ebp - 0x28]
call fcn.00449330
xor eax, eax
mov dword [esi + 0x14], 0xf
cmp dword [ebp - 0x60], eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov byte [esi], al
jmp 0x5dbee2
push 1
lea ecx, [ebp - 0x100]
call fcn.005a1635
push str._information:_n
push edi
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push str.File
push eax
call fcn.005a0c96
pop ecx
pop ecx
push eax
call fcn.005a0c75
pop ecx
pop ecx
push eax
call fcn.005a0c96
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x5dbe4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005ba29c
pop ecx
pop ecx
push 0x6d6ca8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x100]
push str.Error_getting_file_size__
push eax
call fcn.005a0c96
pop ecx
pop ecx
push eax
call fcn.005a0c75
pop ecx
pop ecx
push eax
call fcn.005a0c96
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00449330
jmp 0x5dbe77
push 0x6d6ca8
push dword [ebp - 0x64]
lea eax, [ebp - 0x100]
push dword [ebp - 0x68]
push str.File_size:
push eax
call fcn.005a0c96
pop ecx
pop ecx
mov ecx, eax
call fcn.005a2141
push eax
call fcn.005a0c96
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.005dbef5
pop ecx
pop ecx
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 4
jne 0x5dbea0
mov edi, 0x70d09c
mov eax, str.Error_while_calculating_sha1__
jmp 0x5dbea8
lea edi, [ebp - 0x40]
mov eax, str.Files_sha1:
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.005a0c96
push edi
push eax
call fcn.005a0c75
add esp, 0x10
lea ecx, [ebp - 0xfc]
push esi
call fcn.005a54cf
lea ecx, [ebp - 0x40]
call fcn.00449330
lea ecx, [ebp - 0x100]
call fcn.005a24bf
cmp dword [ebp - 0x60], 0
je 0x5dbeed
push dword [ebp - 0x60]
call fcn.0062f9c7
pop ecx
mov eax, esi
call fcn.00628dec
ret
Function at 0x5dd60e
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x5dd645
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x64]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x40
push ebx
push eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
call fcn.0062c020
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x5dd68c
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x64]
push 0x40
push eax
call fcn.0063a567
add esp, 0xc
lea eax, [ebp - 0xb0]
push 0xf0000000
push 0x18
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x5dd6c6
push 0x6807a3
mov ecx, esi
call fcn.00449380
jmp 0x5dd7d5
lea eax, [ebp - 0xac]
push eax
push ebx
push ebx
push 0x800c
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
test eax, eax
jne 0x5dd6f3
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x5dd6b5
lea eax, [ebp - 0x64]
push eax
call fcn.0062fa80
pop ecx
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x5dd721
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
jmp 0x5dd6e5
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0xb8], 0x20
push ebx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0xac]
test eax, eax
je 0x5dd718
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x41
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.0062c020
add esp, 0xc
mov edx, ebx
push 0xf
pop edi
movzx ecx, byte [ebp + edx - 0x24]
mov eax, ecx
and ecx, edi
shr eax, 4
mov al, byte [eax + str.0123456789abcdef]
mov byte [ebp + edx*2 - 0xa8], al
mov al, byte [ecx + str.0123456789abcdef]
mov byte [ebp + edx*2 - 0xa7], al
inc edx
cmp edx, 0x20
jl 0x5dd783
lea eax, [ebp - 0xa8]
mov byte [ebp - 0xb4], bl
push eax
push dword [ebp - 0xb4]
mov dword [esi], ebx
mov ecx, esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
push 0x41
mov byte [esi], bl
call fcn.004495d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00628dca
leave
ret
Function at 0x5de9d0
Capabilities:
Create process on windows

Disassembly:
mov dl, byte [ecx + 0x39]
push esi
test dl, 4
je 0x5de9fb
mov al, dl
shr al, 3
not al
shl al, 3
xor al, dl
push 1
and al, 8
push 0
push dword [ecx + 4]
xor al, dl
mov byte [ecx + 0x39], al
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x5dea1c
lea esi, [ecx + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x5dea1c
push 3
xor eax, eax
push eax
push eax
push esi
push 0x66954c
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
ret 0xc

Function at 0x5deb20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
call fcn.005d0199
test byte [esi + 0x39], 1
je 0x5dec26
push ebx
push edi
push dword [esi + 4]
mov bl, 1
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SetCapture]
push 1
mov eax, 0x202
push eax
push eax
push dword [esi + 4]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x5debda
mov eax, dword [ebp - 8]
movzx eax, ax
mov ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
push dword [esi + 4]
push eax
push 0x111
push dword [ebp - 4]
call edi
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
mov eax, 0x202
xor bl, 1
push eax
push eax
push dword [esi + 4]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
mov eax, dword [ebp - 8]
je 0x5deb8b
test bl, bl
jne 0x5debda
push dword [esi + 4]
mov eax, dword [ebp - 0xc]
movzx eax, ax
push eax
push 0x111
push dword [ebp - 4]
call edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor ebx, ebx
push ebx
push ebx
push 0x202
push dword [esi + 4]
call edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx ecx, word [ebp - 0x10]
movzx eax, word [ebp - 0x14]
shl ecx, 0x10
or ecx, eax
push ecx
push ebx
push 0x200
push dword [esi + 4]
call edi
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x5e7340
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
cmp esi, edi
jae 0x5e7376
mov al, byte [esi]
push eax
call fcn.005f53a0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x5e7358
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x5f0ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f9], 0
je 0x5f1084
cmp dword [edi + 0x1a8], 0
je 0x5f1041
push esi
push 1
push edi
call fcn.005e2f50
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1a8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.005e2f50
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x5f1055
sub ecx, 1
je 0x5f1055
sub ecx, 1
jne 0x5f1084
push dword [edi + 0x148]
lea eax, [edx*2 + 0x66c27c]
push 1
add eax, edx
push 2
push eax
call fcn.006337b3
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.006337b3
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x5f13d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x150]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.005f18a0
add esp, 0xc
test eax, eax
je 0x5f142b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00628dca
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x5f14a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x5f1470
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00628dca
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.00603560
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.005f1090
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x948], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00628dca
mov esp, ebp
pop ebp
ret