joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba5c0
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 0x4ba5dc
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 8
call fcn.00599c81
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 0x4ba6b0
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 0x4ba62e
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0059a537
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 0x4ba63e
mov dword [ecx], eax
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4baa30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x4baa49
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x4baa86
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4baa82
nop word [eax + eax]
cmp esi, edx
jae 0x4baa86
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4baa70
cmp esi, edx
jb 0x4baa8d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4bac30
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
push esi
push edi
test ecx, ecx
jne 0x4bac70
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4bac83
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1c], eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test esi, esi
jne 0x4bacaa
call edi
cmp eax, 5
jne 0x4bacaa
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4bad69
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 0
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4bace5
call edi
cmp eax, 0x7a
jne 0x4bad69
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4bad69
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4bad69
xor edi, edi
cmp dword [ebx], edi
jbe 0x4bad69
lea esi, [ebx + 8]
nop dword [eax]
push dword [esi - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4bad55
test byte [esi], 4
jne 0x4bad5f
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x4bad40
jmp 0x4bad66
mov dword [ebp - 0x20], 1
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4bad77
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x4bad82
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x4bad92
push eax
call edi
test esi, esi
je 0x4bad99
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00599c70
mov esp, ebp
pop ebp
ret
Function at 0x4bb800
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f65c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
cmp dword [esi + 0x10], 0
sete al
test al, al
jne 0x4bb915
cmp dword [esi + 0x14], 8
jb 0x4bb847
mov eax, dword [esi]
jmp 0x4bb849
mov eax, esi
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x4bb915
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407550
mov dword [ebp - 4], 0
test bl, bl
je 0x4bb8dd
push 0
push 0x61ba0c
lea ecx, [ebp - 0x28]
call fcn.00450ec0
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4bb8a2
push 0x61ba0c
jmp 0x4bb8af
mov eax, dword [ebp - 0x18]
dec eax
cmp ecx, eax
je 0x4bb8b7
push 0x6226a0
lea ecx, [ebp - 0x28]
call fcn.004096d0
push str.mvproductmv2accc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fed0
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a8a0
lea ecx, [ebp - 0x40]
call fcn.00406e20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4bb911
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407b40
mov al, 1
jmp 0x4bb917
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
Function at 0x4bcf50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6738
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x67d070]
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 edi, ecx
mov ebx, dword [ebp + 8]
push 0
mov dl, 1
mov dword [ebp - 4], 0
call fcn.0049de10
add esp, 4
lea ecx, [edi + 0x18]
mov dl, 1
push 0
call fcn.0049de10
add esp, 4
lea ecx, [edi + 0x30]
mov dl, 1
push 0
call fcn.0049de10
add esp, 4
mov dword [ebp - 0x18], 7
xor eax, eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x2c], ax
push 0xffffffffffffffff
push eax
push edi
call fcn.00407550
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0049c780
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0049ccd0
add esp, 4
lea eax, [ebp - 0x48]
mov ecx, edi
push ebx
push eax
call fcn.004bd0b0
push 1
push 0
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [edi + 0x18]
call fcn.0049da70
mov byte [ebp - 4], 1
add esp, 8
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 0x2d], al
cmp ecx, 8
jb 0x4bd029
inc ecx
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
call fcn.00407b40
mov al, byte [ebp - 0x2d]
test al, al
je 0x4bd04c
push 1
push 0
mov edx, ebx
mov ecx, edi
call fcn.0049da70
push 1
push 0
lea edx, [ebp + 0xc]
lea ecx, [edi + 0x30]
call fcn.0049da70
add esp, 0x10
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4bd061
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x4bd08a
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00407b40
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.00599c70
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4c3250
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7188
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x67d070]
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 eax, [ebp - 0x40]
push 0x6239e0
push edx
push eax
call fcn.0041fed0
push esi
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00410ee0
mov eax, dword [ebp - 0x2c]
add esp, 0x18
cmp eax, 8
jb 0x4c32b8
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407b40
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 0x4c32e7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407b40
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.00599c70
mov esp, ebp
pop ebp
ret
Function at 0x4c7b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
mov edi, ecx
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 8]
mov eax, edx
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4c7b8b
nop word [eax + eax]
mov eax, dword [ebp - 8]
cmp eax, esi
ja 0x4c7b8b
jae 0x4c7c25
call ecx
add ebx, dword [ebp - 8]
mov edx, eax
sub esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, 0xbb8
jg 0x4c7bd3
inc eax
push 0xa
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push esi
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4c7b40
call ecx
mov ecx, dword [0x689958]
mov edx, eax
test ecx, ecx
je 0x4c7c38
push edx
push edi
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
push 0x622628
push 0x622628
push str.CommBridge
push str.OOBEUtils
push 0x28
call ecx
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
mov eax, dword [0x689958]
test eax, eax
je 0x4c7c12
push edi
push edx
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
push 0x622628
push 0x622628
push str.CommBridge
push str.OOBEUtils
push 0x28
call eax
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c7c5e
push edi
push edx
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
jmp 0x4c7c49
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c7c5e
push edx
push edi
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
mov eax, dword [ecx]
push str.CommBridge
push 0x622628
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x1c
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599c70
mov esp, ebp
pop ebp
ret
Function at 0x4c9d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f776f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x67d070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push 8
call fcn.00599c81
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [esi], xmm0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00435b20
push 0
push 0
push esi
push 0x4c98c0
push 0
push 0
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4c9dda
mov eax, dword [esi]
mov ecx, ebx
push eax
push dword [eax]
call fcn.0045d250
mov eax, dword [esi]
mov ecx, esi
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.004309e0
push dword [esi]
call fcn.00505e00
push 8
push esi
call fcn.0059a537
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x102
jne 0x4c9da4
test edi, edi
je 0x4c9e13
mov eax, dword [edi]
push str.In_CPUUtils::GetCPUDetails._Timed_out___
push str.HardwareUtils
push 0x622628
push 0x32
push edi
call dword [eax + 0x34]
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x689958]
test eax, eax
je 0x4c9e50
push str.In_CPUUtils::GetCPUDetails._Timed_out___
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c9e74
mov eax, dword [ecx]
push str.In_CPUUtils::GetCPUDetails._Timed_out___
push str.HardwareUtils
push 0x622628
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
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 0x4ce3e0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x4ce3f1
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4ce436
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x4ce419
mov byte [esi + 0x20], 1
mov al, 1
pop esi
pop ebx
ret
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
pop esi
mov al, bl
pop ebx
ret

Function at 0x4ce470
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], 0
cmp dword [esi + 0x18], 8
jb 0x4ce48e
mov eax, dword [esi + 4]
jmp 0x4ce491
lea eax, [esi + 4]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x4ce4b4
call ebx
cmp eax, 5
jne 0x4ce4b4
push 0x32
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4ce483
cmp dword [esi + 0x1c], 0
je 0x4ce50b
call ebx
cmp eax, 0xb7
je 0x4ce4d8
mov edx, dword [esi]
mov bl, 1
mov ecx, esi
mov byte [esi + 0x20], bl
call dword [edx + 8]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4ce50b
push dword [esi + 0x1c]
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov dword [esi + 0x1c], 0
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cf770
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
je 0x4cf813
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
test eax, eax
je 0x4cf813
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cf7a9
shr eax, 4
pop esi
and eax, 1
pop ebx
pop ebp
ret 4
push edi
push esi
call fcn.005cf1ec
mov edi, eax
push 0x5c
push edi
call fcn.005b3c62
add esp, 0xc
push edi
test eax, eax
je 0x4cf802
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
call fcn.004cf770
push edi
test al, al
jne 0x4cf7e4
call fcn.005b3b4d
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
call fcn.005b3b4d
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4cf80a
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
call fcn.005b3b4d
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
pop esi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x4cf820
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x67d070]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
test esi, esi
jne 0x4cf86a
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4cf8dd
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4cf8dd
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4cf8dd
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
cmp eax, 1
sete bl
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x34]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 8
Function at 0x4d12e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [esi + 4]
cmp eax, 0x206
je case.0x4d136f.66
cmp eax, 0x204
je case.0x4d136f.66
cmp eax, 0x205
je case.0x4d136f.66
cmp eax, 0x20a
jne 0x4d1320
cmp word [esi + 8], 8
je case.0x4d136f.66
cmp eax, 0x100
jb 0x4d132e
cmp eax, 0x109
jbe 0x4d133c
cmp eax, 0x200
jb 0x4d13ab
cmp eax, 0x20e
ja 0x4d13ab
cmp eax, 0x100
jne 0x4d137c
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x4d136f.65
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne case.0x4d136f.65
mov eax, dword [esi + 8]
add eax, 0xffffffbf
cmp eax, 0x37
ja case.0x4d136f.66
movzx eax, byte [eax + 0x4d13c4]
jmp dword [eax*4 + 0x4d13bc]
cmp dword [esi + 8], 0x74
je case.0x4d136f.66
push dword [ebx + 0x21c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d13ab
push esi
push 0
push 0x37f
push dword [ebx + 0x21c]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
pop esi
setne al
pop ebx
pop ebp
ret 4
pop esi
xor al, al
pop ebx
pop ebp
ret 4
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x4d1400
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, fcn.0042c970
test eax, eax
je 0x4d1435
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.EvaluateNewWindow_for_url:__s_name:__s
push 0x622628
push 0x622628
push str.BrowserHost
push str.WAMB
push 0xa
call fcn.0042c970
add esp, 0x20
test dword [ebp + 0x20], 0x40030
jne 0x4d1464
mov eax, dword [ebp + 8]
push 1
push 0
push 0
push dword [ebp + 0xc]
push str.open
push dword [eax + 0x218]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop ebp
ret 0x20
mov eax, 0x80004005
pop ebp
ret 0x20
Function at 0x4d6410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x4d644d
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x4d645b
xor ecx, ecx
jmp 0x4d6473
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d6464
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407060
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00599c70
mov esp, ebp
pop ebp
ret

Function at 0x4d6980
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0059b350
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
mov dl, 1
push edi
mov edi, ecx
mov ecx, esi
call fcn.004b9af0
test eax, eax
je 0x4d69d3
cmp eax, 2
je 0x4d69c1
push 0
mov dl, 1
mov ecx, esi
call fcn.0049de10
add esp, 4
test al, al
jne 0x4d69d3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x2010], ecx
jb 0x4d69e3
mov edi, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call ebx
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x4d6a09
mov esi, dword [esi]
push 0
push 0x200080
push 4
push 0
push 0
push 0x40000000
push esi
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d6a3f
push edi
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.00599c70
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4d6a84
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x4d6a8c
call esi
mov dword [ebp - 0x2010], eax
cmp dword [ebp - 0x2008], 0x1000
je 0x4d6a45
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 0x2010]
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
pop ebx
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.00599c70
mov esp, ebp
pop ebp
ret
Function at 0x4d6ad0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor bl, bl
cmp dword [ecx + 0x14], 8
push edi
mov edi, edx
jb 0x4d6aef
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d6b22
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x4d6b3e
mov eax, dword [ebp - 0xc]
mov bl, 1
mov dword [edi], eax
mov eax, dword [ebp - 8]
mov dword [edi + 4], eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599c70
mov esp, ebp
pop ebp
ret