joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e0c30
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4e0c3d
mov eax, dword [esi]
jmp 0x4e0c3f
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e0c60
cmp dword [esi + 0x14], 8
jb 0x4e0c52
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp dword [esi + 0x14], 8
jb 0x4e0c68
mov esi, dword [esi]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x4e0cd1
mov eax, dword [0x599d34]
test eax, eax
je 0x4e0cac
push esi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x55c340
push 0x55c340
push str.FileUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
xor eax, eax
test esi, esi
sete al
pop esi
ret
mov ecx, dword [0x599d38]
test ecx, ecx
je 0x4e0cd1
mov eax, dword [ecx]
push esi
push str.SHCreateDirectoryEx_failed._Error:__d
push str.FileUtils
push 0x55c340
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x4e1160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545968
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x4e1199
mov eax, dword [edi]
jmp 0x4e119b
mov eax, edi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x4e1244
cmp dword [0x599d34], 0
je 0x4e1204
cmp dword [edi + 0x14], 8
jb 0x4e11d1
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push 0x55c340
push 0x55c340
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x599d34]
add esp, 0x20
xor al, al
jmp 0x4e133a
mov esi, dword [0x599d38]
test esi, esi
je 0x4e123d
cmp dword [edi + 0x14], 8
jb 0x4e1216
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push str.FileUtils
push 0x55c340
push 0x32
push dword [0x599d38]
call dword [esi + 0x34]
add esp, 0x1c
xor al, al
jmp 0x4e133a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x4e126c
mov esi, dword [esi]
push 0
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.004d72c0
mov bl, al
add esp, 4
test bl, bl
je 0x4e1323
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x18]
mov esi, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
cmovae edx, dword [ebp - 0x30]
push 0
push eax
push dword [ebp - 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e12b1
mov ecx, edi
call fcn.004e1880
jmp 0x4e131c
cmp dword [0x599d34], 0
je 0x4e12e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push 0x55c340
push 0x55c340
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x599d34]
add esp, 0x1c
jmp 0x4e131a
mov esi, dword [0x599d38]
test esi, esi
je 0x4e1317
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push str.FileUtils
push 0x55c340
push 0x32
push dword [0x599d38]
call dword [esi + 0x34]
add esp, 0x18
mov esi, dword [ebp - 0x34]
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x4e1338
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00408d20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x4e1690
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5430c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4e16c9
mov eax, dword [esi]
jmp 0x4e16cb
mov eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
jne 0x4e1733
mov eax, dword [0x599d34]
test eax, eax
je 0x4e1708
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x55c340
push 0x55c340
push str.FileUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
xor al, al
jmp 0x4e185f
mov ecx, dword [0x599d38]
test ecx, ecx
je 0x4e172c
mov eax, dword [ecx]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push str.FileUtils
push 0x55c340
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
jmp 0x4e185f
cmp dword [edi + 0x14], 8
jb 0x4e173d
mov eax, dword [edi]
jmp 0x4e173f
mov eax, edi
push eax
call ebx
test eax, eax
je 0x4e1758
push 0
mov dl, 1
mov ecx, edi
call fcn.004e1460
add esp, 4
test al, al
je 0x4e172c
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00412e90
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004e0a20
push ecx
lea ecx, [ebp - 0x28]
call fcn.004e0c30
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x4e179d
mov eax, dword [edi]
jmp 0x4e179f
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x4e17a7
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4e1832
cmp dword [0x599d34], eax
je 0x4e17f5
cmp dword [edi + 0x14], 8
jb 0x4e17c5
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x55c340
push 0x55c340
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x599d34]
add esp, 0x20
xor bl, bl
jmp 0x4e1848
mov esi, dword [0x599d38]
test esi, esi
je 0x4e182e
cmp dword [edi + 0x14], 8
jb 0x4e1807
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push str.FileUtils
push 0x55c340
push 0x32
push dword [0x599d38]
call dword [esi + 0x34]
add esp, 0x1c
xor bl, bl
jmp 0x4e1848
cmp dword [edi + 0x14], 8
jb 0x4e183a
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4e185d
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004132e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x4e18d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x4e1900
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
push ebx
push eax
movzx eax, dx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4e197a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4e197a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [edi + 0x14], 8
mov ebx, eax
jb 0x4e193d
mov ecx, dword [edi]
jmp 0x4e193f
mov ecx, edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4e197a
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4e198d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.004e0c10
mov ecx, dword [ebp - 4]
test al, al
pop ebx
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x4e2880
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 0x55f590
call fcn.00413420
push esi
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00414d30
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, 8
jb 0x4e28e6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004132e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa0000000
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4e2915
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004132e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x4e51e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x58f070]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov esi, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
nop dword [eax]
push 0
xor edx, edx
mov ecx, esi
call fcn.004e5080
add esp, 4
test al, al
je 0x4e523a
inc esi
cmp esi, 0xf
jl 0x4e5220
jmp 0x4e523d
dec esi
mov dword [ebx], esi
mov edi, 1
movzx esi, word [ebx]
xor eax, eax
push 0xfe
push eax
mov word [esp + 0x2c], ax
xorps xmm0, xmm0
lea eax, [esp + 0x2e]
mov dword [esp + 0x18], 0x11c
push eax
movups xmmword [esp + 0x20], xmm0
call fcn.00510fa0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
mov ecx, esi
mov dword [esp + 0x18], ecx
push eax
movzx ecx, di
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
xor ecx, ecx
push 0x23
push eax
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4e52d9
inc edi
cmp edi, 0xa
jl 0x4e5242
jmp 0x4e52df
lea eax, [edi - 1]
mov dword [ebx + 4], eax
mov ebx, 1
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
push 0xfe
mov dword [esp + 0x14], 0x11c
movups xmmword [esp + 0x18], xmm0
movzx edi, word [eax + 4]
movzx esi, word [eax]
xor eax, eax
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.00510fa0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
mov ecx, esi
mov word [esp + 0x12c], bx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
push 0x23
mov ecx, edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4e5395
inc ebx
cmp ebx, 0xa
jl 0x4e52e4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x4e62c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545dd7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x58f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ecx, ecx
mov dword [ebp - 0x14], esi
mov dword [esi + 8], 0
call fcn.004c8c90
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 2
xor ecx, ecx
mov dword [esi + 0x14], 0
call fcn.004c8c90
mov dword [esi + 0x18], 0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [esi + 0x20], 0
call fcn.004c8c90
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
xor ecx, ecx
mov dword [esi + 0x2c], 0
call fcn.004c8c90
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 5
lea edi, [esi + 0x34]
cmp dword [0x599510], 0
mov dword [ebp - 0x10], edi
jne 0x4e6374
call fcn.004ff660
mov dword [0x599510], 0x4f4db0
mov dword [edi], vtable.CryptoPP::Integer.0
mov ecx, 2
mov dword [edi + 8], 2
call fcn.004d38d0
mov ecx, 8
call fcn.004c2f90
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov byte [ebp - 4], 6
lea edi, [esi + 0x48]
cmp dword [0x599510], 0
mov dword [ebp - 0x10], edi
jne 0x4e63d1
call fcn.004ff660
mov dword [0x599510], 0x4f4db0
mov dword [edi], vtable.CryptoPP::Integer.0
mov ecx, 2
mov dword [edi + 8], 2
call fcn.004d38d0
mov ecx, 8
call fcn.004c2f90
mov dword [edi + 0xc], eax
mov ecx, eax
mov dword [edi + 0x10], 0
mov eax, esi
mov dword [ecx + 4], 0
mov ecx, dword [edi + 0xc]
mov dword [ecx], 0
mov byte [esi + 0x5c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e6890
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
cmp dword [ecx + 0x14], 8
jb 0x4e68af
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e68e5
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov ecx, 4
push esi
cmove edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov eax, edi
mov dword [ebx], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x4e7f50
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546170
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x58f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov byte [edx + 0x51], 0
mov dword [edx + 0x58], 0x10
cmp byte [edx + 0x51], 0
jne 0x4e7fa0
mov byte [edx + 0x51], 1
lea ecx, [edx + 0x10]
jmp 0x4e7fa2
xor ecx, ecx
mov dword [edx + 0x5c], ecx
mov byte [edx + 0xa1], 0
mov dword [edx + 0xa8], 0x10
cmp byte [edx + 0xa1], 0
jne 0x4e7fcb
mov byte [edx + 0xa1], 1
lea ecx, [edx + 0x60]
jmp 0x4e7fcd
xor ecx, ecx
mov dword [edx + 0xac], ecx
mov eax, edx
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4e8630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546228
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
push str.SoftwareAdobeALCID
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4e86cd
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.00412cc0
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4e878a
inc ecx
push ecx
jmp 0x4e877f
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], 0
push eax
push 0
push str.CCLangPref
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e874e
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4e874e
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050d6bb
mov edi, eax
add esp, 4
test edi, edi
je 0x4e874e
lea eax, [ebp - 0x30]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push str.CCLangPref
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e8745
push edi
lea ecx, [ebp - 0x2c]
call fcn.004127f0
push edi
call fcn.0050ce9e
add esp, 4
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.00412cc0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4e878a
inc eax
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.004132e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x4e8e20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 4], ecx
test edi, edi
jne 0x4e8e3c
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 8
call fcn.0050d2f7
add esp, 4
mov esi, eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp + 8], esi
push 0
push 0
push esi
push 0x4e8f10
push 0
movq qword [esi], xmm0
push 0
mov dword [esi], edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4e8e8e
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0050d595
add esp, 8
mov al, bl
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov bl, 1
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4e8e9e
mov dword [ecx], eax
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e8f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546290
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
cmp byte [esi + 0x38], al
je 0x4e8ffc
mov edi, dword [ebp + 0xc]
nop dword [eax]
cmp byte [esi + 0x39], 0
je 0x4e8ffc
add eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push 0
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
cmp eax, 0x6d
je 0x4e8fcf
test ecx, ecx
jne 0x4e8fd9
jmp 0x4e8fe8
cmp dword [ebp - 0x20], 0
je 0x4e907a
cmp ecx, edi
je 0x4e8ffc
add dword [ebp - 0x18], ecx
sub edi, ecx
cmp ebx, 0x64
jg 0x4e901a
inc ebx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x38], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
jne 0x4e8fa0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
push 0x11
xor eax, eax
mov dword [ebp - 0x28], 7
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
call fcn.00412ae0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004e9de0
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x4e9064
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.004132e0
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
jmp 0x4e90d8
push 0x11
xor eax, eax
mov dword [ebp - 0x40], 7
push str.Terminate_channel
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
call fcn.00412ae0
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004e9de0
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x4e90c4
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.004132e0
xor eax, eax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e90f4
cmp eax, 0xffffffff
je 0x4e90f4
push eax
call edi
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4e910a
cmp eax, 0xffffffff
je 0x4e910a
push eax
call edi
mov dword [esi + 0x70], 0
mov byte [esi + 0x39], 0
xor al, al
jmp 0x4e8ffe
Function at 0x4e9ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0xc], edx
push ebx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], eax
push ecx
push esi
push edx
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e9b29
mov eax, dword [ebp - 8]
cmp eax, esi
ja 0x4e9b29
jae 0x4e9b3d
add edi, eax
sub esi, eax
cmp ebx, 0x32
jg 0x4e9b29
push 0xa
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push esi
add eax, edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e9af4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret