joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a3f2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x421030]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040a331
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040bb20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40a441
cmp dword [ebp - 0x1c], 5
jb 0x40a459
jmp 0x40a455
cmp dword [ebp - 0x10], 1
jne 0x40a459
cmp dword [ebp - 0x1c], 4
ja 0x40a455
jne 0x40a459
cmp dword [ebp - 0x18], 0
jbe 0x40a459
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41a2bc
call fcn.00406760
test eax, eax
jge 0x40a47a
mov byte [0x423804], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040a953
add ebp, 0x78
leave
ret

Function at 0x40a904
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x422b90], 0
push esi
jne 0x40a877
call fcn.0040a7a2
test eax, eax
je 0x40a8ba
mov eax, dword [0x422b90]
cmp eax, 1
jne 0x40a898
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a8ba
pop esi
ret
push eax
call dword [0x422b98]
test eax, eax
jne 0x40a902
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40a8be
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x422b90]
call dword [0x422b98]
mov edi, eax
test edi, edi
je 0x40a8e5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40a901
lea edi, [esi + 0xff0]
push esi
push dword [0x422b90]
call dword [0x422b94]
add esi, 0x10
cmp esi, edi
jb 0x40a8eb
mov eax, esi
pop edi
pop esi
ret
jmp 0x40a864

Function at 0x40a953
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421030]
jne 0x40a95d
repz ret
jmp fcn.0040be98
Function at 0x41026a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x421908]
je 0x410285
inc edi
cmp edi, 0x17
jb 0x410276
cmp edi, 0x17
jae 0x410405
push ebp
push 3
call fcn.00413ace
cmp eax, 1
pop ecx
je 0x4103d1
push 3
call fcn.00413ace
test eax, eax
pop ecx
jne 0x4102b9
cmp dword [0x421028], 1
je 0x4103d1
cmp ebx, 0xfc
je 0x410404
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4230f8
push ebp
call fcn.004105a8
add esp, 0xc
test eax, eax
je 0x4102ef
push esi
push esi
push esi
push esi
push esi
call fcn.0040b7a2
add esp, 0x14
push 0x104
mov esi, 0x423111
push esi
push 0
mov byte [0x423215], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410333
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004105a8
add esp, 0xc
test eax, eax
je 0x410333
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b7a2
add esp, 0x14
push esi
call fcn.00410610
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410378
push esi
call fcn.00410610
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42340c
push 0x41aae4
sub ecx, eax
push ecx
push eax
call fcn.00412196
add esp, 0x14
test eax, eax
je 0x410378
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b7a2
add esp, 0x14
jmp 0x41037a
xor esi, esi
push 0x41aae0
push ebx
push ebp
call fcn.004120dd
add esp, 0xc
test eax, eax
je 0x41039a
push esi
push esi
push esi
push esi
push esi
call fcn.0040b7a2
add esp, 0x14
push dword [edi*8 + 0x42190c]
push ebx
push ebp
call fcn.004120dd
add esp, 0xc
test eax, eax
je 0x4103bc
push esi
push esi
push esi
push esi
push esi
call fcn.0040b7a2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00413911
add esp, 0xc
jmp 0x410404
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x410404
cmp ebp, 0xffffffff
je 0x410404
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42190c]
push dword [esi]
call fcn.00410610
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x413911
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040c10a
xor ebx, ebx
cmp dword [0x42369c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4139e7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x413ac7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x413ac7
push eax
call fcn.0040c09c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42369c], eax
call esi
push eax
call fcn.0040c09c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4236a0], eax
call esi
push eax
call fcn.0040c09c
mov dword [0x4236a4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040c80b
test eax, eax
pop ecx
pop ecx
je 0x4139b5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b7a2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4139e7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040c09c
cmp eax, ebx
pop ecx
mov dword [0x4236ac], eax
je 0x4139e7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c09c
pop ecx
mov dword [0x4236a8], eax
mov eax, dword [0x4236a8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x413a6c
cmp dword [0x4236ac], ecx
je 0x413a6c
push eax
call fcn.0040c113
push dword [0x4236ac]
mov esi, eax
call fcn.0040c113
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x413a6c
cmp edi, ebx
je 0x413a6c
call esi
cmp eax, ebx
je 0x413a39
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413a39
test byte [ebp - 0x18], 1
jne 0x413a6c
lea eax, [ebp - 0x10]
push eax
call fcn.0040c842
test eax, eax
pop ecx
je 0x413a54
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b7a2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x413a63
or dword [ebp + 0x10], 0x200000
jmp 0x413aa7
or dword [ebp + 0x10], 0x40000
jmp 0x413aa7
mov eax, dword [0x4236a0]
cmp eax, dword [ebp - 8]
je 0x413aa7
push eax
call fcn.0040c113
cmp eax, ebx
pop ecx
je 0x413aa7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x413aa7
mov eax, dword [0x4236a4]
cmp eax, dword [ebp - 8]
je 0x413aa7
push eax
call fcn.0040c113
cmp eax, ebx
pop ecx
je 0x413aa7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42369c]
call fcn.0040c113
cmp eax, ebx
pop ecx
je 0x413ac7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ac9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100023b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100077df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x5c
mov edi, 0x65
mov eax, 0x73
mov edx, 0x72
mov ecx, 0x61
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x70], si
mov word [ebp - 0x6e], 0x52
mov word [ebp - 0x6c], di
mov word [ebp - 0x6a], 0x67
mov word [ebp - 0x68], 0x69
mov word [ebp - 0x66], ax
mov word [ebp - 0x64], 0x74
mov word [ebp - 0x62], dx
mov word [ebp - 0x60], 0x79
mov word [ebp - 0x5e], si
mov word [ebp - 0x5c], 0x4d
mov word [ebp - 0x5a], cx
mov word [ebp - 0x58], 0x63
mov word [ebp - 0x56], 0x68
mov word [ebp - 0x54], 0x69
mov word [ebp - 0x52], 0x6e
mov word [ebp - 0x50], di
mov word [ebp - 0x4e], si
mov word [ebp - 0x4c], 0x53
mov word [ebp - 0x4a], 0x6f
mov word [ebp - 0x48], 0x66
mov word [ebp - 0x46], 0x74
mov word [ebp - 0x44], 0x77
mov word [ebp - 0x42], cx
mov word [ebp - 0x40], dx
mov word [ebp - 0x3e], di
mov word [ebp - 0x3c], si
mov word [ebp - 0x3a], 0x43
mov word [ebp - 0x38], 0x6c
mov word [ebp - 0x36], cx
mov word [ebp - 0x34], ax
mov word [ebp - 0x32], ax
mov word [ebp - 0x30], di
mov word [ebp - 0x2e], ax
mov word [ebp - 0x2c], bx
test al, al
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 4], 1
mov ah, ah
mov word [ebp - 0x28], si
mov word [ebp - 0x26], 0x54
mov word [ebp - 0x24], 0x79
mov word [ebp - 0x22], 0x70
mov word [ebp - 0x20], di
mov word [ebp - 0x1e], 0x4c
mov word [ebp - 0x1c], 0x69
mov word [ebp - 0x1a], 0x62
mov word [ebp - 0x18], si
mov word [ebp - 0x16], bx
test edx, edx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator
mov edx, edx
mov edx, dword [0x1000a2e4]
lea ecx, [ebp - 0x10]
push edx
call sub.MFC42u.DLL_CString::operator
mov edi, edi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x10002531
push 0x1000a020
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator
mov ah, ah
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator
mov ecx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10004160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov byte [edi], 0
test ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
test bh, bh
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x10004188
mov dword [eax], 1
test ebx, ebx
mov byte [ebp + 0xc], 0
mov bl, bl
mov al, byte [esi + 1]
test al, al
je 0x1000419f
xor al, 0x38
mov byte [ebp + 0xc], al
test eax, 0x1613
mov al, al
mov ecx, dword [ebp + 0xc]
xor eax, eax
and ecx, 0xff
jle 0x100041bf
mov dl, byte [esi + eax + 2]
xor dl, 0x38
mov byte [eax + edi], dl
push eax
pop eax
inc eax
cmp eax, ecx
jl 0x100041ae
mov byte [ecx + edi], 0
mov dl, dl
pop edi
pop esi
pop ebp
ret

Function at 0x10004590
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x10005df0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008320
push 0x100076d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x10005e8b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x10005e8b
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x10005e8b
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x10005e8b
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005f40
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1000cd1c], eax
je 0x10005f56
mov eax, 0x10dd
pop ecx
ret
push ebp
push esi
mov esi, dword [0x1000cd2c]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x10005fa9
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0xc]
push eax
xor eax, eax
mov al, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.10006f00
cmp dword [esi + 4], ebp
jne 0x10005f98
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x10005f98
push eax
call fcn.10006020
add esp, 4
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10005f65
mov dword [0x1000cd2c], ebp
call fcn.10005ff0
mov esi, dword [0x1000cd28]
cmp esi, ebp
je 0x10005fdd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10005fc5
pop ebx
pop edi
mov dword [0x1000cd28], ebp
mov dword [0x1000cd1c], ebp
pop esi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x10006310
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1000cd20]
push esi
test eax, eax
push edi
jne 0x10006386
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x10006384
push 8
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x10006340
mov edi, 8
jmp 0x1000635d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10006374
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [0x1000cd20], edi
mov eax, edi
pop edi
mov dword [0x1000cd24], 0
pop esi
ret 4
mov dword [esi + 4], edi
mov eax, dword [0x1000cd28]
mov dword [esi], eax
mov dword [0x1000cd28], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x10006900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008330
push 0x100076d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000698a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x10006983
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x10006983
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x1000698a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006ae0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x3c]
mov edi, dword [esp + 0x14]
add eax, ecx
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ecx + eax + 0x24]
lea ecx, [ecx + eax + 0x18]
cmp edi, edx
jae 0x10006b08
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor edx, edx
xor esi, esi
mov dx, word [eax + 6]
test edx, edx
jbe 0x10006b2c
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x10006b24
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x10006b33
add ecx, 0x28
inc esi
cmp esi, edx
jb 0x10006b14
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
sub eax, edx
add eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10006c10
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x200
push ebx
mov ebx, dword [esp + 0x208]
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
push 0x5c
push ebx
mov dword [ebp], 0
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x10006ca3
lea eax, [esp + 0x10]
push 0x200
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x1000a1c4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
jmp 0x10006cc1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x1000a1c0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10006d34
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x10006d1d
push esi
push edi
push 1
push ebx
mov dword [ebp], edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
Function at 0x10006de0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x1000cd9c]
push esi
test eax, eax
jne 0x10006e3d
push str.ZwProtectVirtualMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 5
mov esi, eax
push 0x1000cd7c
push str.ntdll.dll
push esi
call fcn.10006d50
add esp, 0x10
test eax, eax
je 0x10006e5b
add esi, 5
mov byte [0x1000cd81], 0x68
mov dword [0x1000cd82], esi
mov byte [0x1000cd86], 0xc3
mov dword [0x1000cd9c], 1
push 0x40
push 0x3000
push 0xb
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10006e6b
or eax, 0xffffffff
pop esi
ret 0x14
mov eax, dword [0x1000cd9c]
test eax, eax
jne 0x10006e3d
or eax, 0xffffffff
pop esi
ret 0x14
mov ecx, dword [0x1000cd7c]
mov eax, esi
push edi
mov dword [eax], ecx
mov edx, dword [0x1000cd80]
mov dword [eax + 4], edx
mov cx, word [0x1000cd84]
mov word [eax + 8], cx
mov dl, byte [0x1000cd86]
mov ecx, dword [esp + 0x18]
mov byte [eax + 0xa], dl
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call esi
push 0x8000
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
ret 0x14

Function at 0x10006f00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x104]
push ebx
push ebp
push esi
push edi
push eax
call fcn.10007020
add esp, 4
lea ecx, [esp + 0x114]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006fd1
mov ebx, dword [esp + 0x220]
mov ebp, dword [esp + 0x224]
lea edx, [esp + 0x218]
lea ecx, [esp + 0x10]
mov dword [esp + 0x19], edx
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x15
lea eax, [esp + 0x228]
push edx
push esi
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 1
mov dword [esp + 0x29], 0xffffffff
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], ebx
mov dword [esp + 0x39], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 2
jne 0x10007005
mov eax, dword [esp + 0x21c]
mov ecx, dword [esp + 0x218]
push ebp
push ebx
push eax
push ecx
push 0xffffffffffffffff
call fcn.10006ed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x10
mov edx, dword [esp + 0x224]
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
push edx
mov edx, dword [esp + 0x21c]
push eax
push ecx
push edx
push 0xffffffffffffffff
call fcn.10006ed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x10
Function at 0x8f4b79
Capabilities:
Encode data using xor

Disassembly:
xchg ebx, eax
push word [esp]
jmp 0x8f4b85
jg 0x8f4b5b
lea esp, [esp + 2]
jmp 0x8f4b5f

Function at 0x8f4e74
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop dword [esp]
jmp 0x8f4e9d
push dword [esp]
jo 0x8f4e5e
pop dword [esp]
mov dword [esp], ecx
pop word [esp]
lea esp, [esp + 2]
push edi
jmp 0x8f4ec4

Function at 0x8f9715
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf08e5dc4
jmp 0x8f982a
push dword [esp + 1]
jmp 0x8f9725
push dword [esp + 3]
jg 0x8f96ff
push dword [esp + 1]
jmp 0x8f9758
mov byte [esp + 1], ch
mov dword [esp + 0x3c], edi
lea esp, [esp + 0x3c]
jmp 0x8f9742
pushfd
jmp 0x8f8c9d
mov byte [esp + 1], ch
mov dword [esp + 0x3c], edi
lea esp, [esp + 0x3c]
jmp 0x8f9742
cmc
cmc
adc dl, cl
sets bh
inc edi
jg 0x8f97cc
jle 0x8f97a6
mov edi, esp
bswap ebx
dec dh
jl 0x8f9897
jge 0x8f9880
and eax, 0xad5e3bab
dec ebp
dec esi
fnstcw word [eax]
sbb esi, dword [edx + 0x6d]
btc di, di
sub esp, 0xa0
jmp 0x8f9836
bsf ax, bx
jno 0x8f98ac
rdtsc
lea eax, [edx + edi]
bswap ecx
xchg dh, dl
jmp 0x8f98b3
inc dl
xor edx, 0xc66decf4
jmp 0x8f989f
inc dl
xor edx, 0xc66decf4
mov ebx, esi
mov edx, 0x7218bd05
mov cx, 0xd5e0
jmp 0x8f986a
rdtsc
lea eax, [edx + edi]
jmp 0x8f98ec
mov ax, word [esp]
jmp 0x8f98f4
bsr ecx, ecx
clc
xchg cl, al
sbb ah, dl
call 0x8f98fe
sub al, 0xa5
xor eax, 0x5458af5c
invalid
bswap ecx
xchg dh, dl
mov ax, word [esp]
neg esi
ror dx, 8
jl 0x8f98d6
jge 0x8f9956
rdtsc
lea esp, [esp + 3]
lea esp, [esp + 1]
jmp 0x8f992e
sbb ah, dl
jmp 0x8f98de
jmp 0x8f9974
not esi
mov edx, eax
bswap edx
ror ax, cl
jbe 0x8f9918
stc
setg ch
jmp 0x8f9978
neg dh
jno 0x8f995e
lea edx, [esi - 0xc7]
bswap edx
bts edx, esi
jmp 0x8f999d
bsr ecx, ecx
clc
xchg cl, al
jmp 0x8f9914
lea edx, [esi - 0xc7]
bswap edx
jmp 0x8f999a
stc
setg ch
not esi
jmp 0x8f993f
xchg byte [esp + 2], dh
xchg word [esp + 1], cx
mov word [esp + 1], di
mov ax, 0x2b78
jmp 0x8f99a4
bts edx, esi
inc esi
pushfd
xchg dword [esp], edx
jmp 0x8f997c
lea esp, [esp + 4]
dec esi
inc cl
jmp 0x8f9ad1
xchg dh, ah
btc edx, esp
add esi, dword [ebp]
jmp 0x8f9a2d
mov eax, dword [esp]
mov dl, 0xab
mov eax, esi
not dx
jmp fcn.008f9a59
js 0x8f99b1
xchg dh, ah
btc edx, esp
call fcn.008f9a78
Function at 0x8f98fe
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf08e5dc4
jmp 0x8f982a
push dword [esp + 1]
jmp 0x8f9725
push dword [esp + 3]
jg 0x8f96ff
push dword [esp + 1]
jmp 0x8f9758
mov byte [esp + 1], ch
mov dword [esp + 0x3c], edi
lea esp, [esp + 0x3c]
jmp 0x8f9742
pushfd
jmp 0x8f8c9d
mov byte [esp + 1], ch
mov dword [esp + 0x3c], edi
lea esp, [esp + 0x3c]
jmp 0x8f9742
cmc
cmc
adc dl, cl
sets bh
inc edi
jg 0x8f97cc
jle 0x8f97a6
mov edi, esp
bswap ebx
dec dh
jl 0x8f9897
jge 0x8f9880
and eax, 0xad5e3bab
dec ebp
dec esi
fnstcw word [eax]
sbb esi, dword [edx + 0x6d]
btc di, di
sub esp, 0xa0
jmp 0x8f9836
bsf ax, bx
jno 0x8f98ac
rdtsc
lea eax, [edx + edi]
bswap ecx
xchg dh, dl
jmp 0x8f98b3
inc dl
xor edx, 0xc66decf4
jmp 0x8f989f
inc dl
xor edx, 0xc66decf4
mov ebx, esi
mov edx, 0x7218bd05
mov cx, 0xd5e0
jmp 0x8f986a
rdtsc
lea eax, [edx + edi]
jmp 0x8f98ec
mov ax, word [esp]
jmp 0x8f98f4
bsr ecx, ecx
clc
xchg cl, al
sbb ah, dl
call 0x8f98fe
sub al, 0xa5
xor eax, 0x5458af5c
invalid
bswap ecx
xchg dh, dl
mov ax, word [esp]
neg esi
ror dx, 8
jl 0x8f98d6
jge 0x8f9956
rdtsc
lea esp, [esp + 3]
lea esp, [esp + 1]
jmp 0x8f992e
sbb ah, dl
jmp 0x8f98de
jmp 0x8f9974
not esi
mov edx, eax
bswap edx
ror ax, cl
jbe 0x8f9918
stc
setg ch
jmp 0x8f9978
neg dh
jno 0x8f995e
lea edx, [esi - 0xc7]
bswap edx
bts edx, esi
jmp 0x8f999d
bsr ecx, ecx
clc
xchg cl, al
jmp 0x8f9914
lea edx, [esi - 0xc7]
bswap edx
jmp 0x8f999a
stc
setg ch
not esi
jmp 0x8f993f
xchg byte [esp + 2], dh
xchg word [esp + 1], cx
mov word [esp + 1], di
mov ax, 0x2b78
jmp 0x8f99a4
bts edx, esi
inc esi
pushfd
xchg dword [esp], edx
jmp 0x8f997c
lea esp, [esp + 4]
dec esi
inc cl
jmp 0x8f9ad1
xchg dh, ah
btc edx, esp
add esi, dword [ebp]
jmp 0x8f9a2d
mov eax, dword [esp]
mov dl, 0xab
mov eax, esi
not dx
jmp fcn.008f9a59
js 0x8f99b1
xchg dh, ah
btc edx, esp
call fcn.008f9a78