joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100032d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
not eax
jbe 0x10003309
push ebx
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + edi]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10011200]
xor eax, edx
inc ecx
cmp ecx, esi
jb 0x100032e7
pop edi
pop ebx
not eax
pop esi
ret

Function at 0x10003310
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x100
lea eax, [esp]
xor ecx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
mov ebx, ebp
xor esi, esi
push edi
sub ebx, eax
mov eax, ecx
xor edx, edx
div dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
lea edi, [esp + ecx + 0x10]
mov byte [ebx + edi], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [edi], dl
jb 0x1000332d
lea edi, [esp + 0x10]
mov eax, ebp
sub edi, ebp
mov edx, 0x100
mov cl, byte [eax]
mov bl, byte [edi + eax]
add esi, ecx
add ebx, esi
and ebx, 0xff
inc eax
mov esi, ebx
dec edx
mov bl, byte [esi + ebp]
mov byte [eax - 1], bl
mov byte [esi + ebp], cl
jne 0x10003361
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret

Function at 0x10003390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
test eax, eax
jbe 0x10003404
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc ecx
and ecx, 0xff
mov dl, byte [ecx + eax]
mov bl, dl
mov byte [esp + 0x18], dl
add ebx, esi
and ebx, 0xff
mov esi, ebx
mov bl, byte [esi + eax]
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax], dl
xor edx, edx
mov dl, byte [ecx + eax]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x100033ee
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + eax]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jb 0x100033aa
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x10003850
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
push edi
push 1
push 2
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003891
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x10003a11
pop edi
pop esi
mov dword [eax], 0xfffffffd
pop ebp
xor al, al
pop ebx
add esp, 8
ret
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push 0x10019204
push 0x1005
push 0xffff
push esi
call ebp
push 4
push 0x10019204
push 0x1006
push 0xffff
push esi
call ebp
push 0x10
push 0x100191f4
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x100038eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
mov ebp, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esp + 0x2c]
cmp esi, edi
jmp 0x10003a02
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, ebp
sub eax, edi
push 0
lea edx, [edi + ecx]
push eax
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10003912
add edi, eax
cmp edi, ebp
jb 0x100038ef
jmp 0x10003949
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x10003a11
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [esi], 0xfffffffd
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
cmp ebx, 4
jge 0x1000399c
mov eax, 4
push 0
sub eax, ebx
lea ecx, [esp + ebx + 0x14]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
mov ebp, eax
je 0x100039f5
cmp edi, 0xffffffff
je 0x100039f5
add ebx, edi
cmp ebx, 4
jne 0x10003947
mov edx, dword [esp + 0x10]
push ebx
push 0x1000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [eax], ecx
jmp 0x10003944
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, ebx
push 0
add edx, ebx
push eax
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
mov ebp, eax
je 0x100039f5
cmp edi, 0xffffffff
je 0x100039f5
mov eax, dword [esp + 0x10]
add ebx, edi
cmp ebx, eax
jne 0x10003944
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
push esi
mov dword [eax], ecx
mov dword [edx], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x10003a11
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [esi], 0xfffffffd
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x10005d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
jmp 0x10005d3a
mov dword [ebp - 0x118], str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov dword [ebp - 0x250], str.ProductName
mov dword [ebp - 8], str.CurrentBuildNumber
mov dword [ebp - 0x114], 1
mov dword [ebp - 4], 0x104
mov byte [ebp - 0x228], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x227]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x110], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x118]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10005f0f
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005e24
lea edi, [ebp - 0x228]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ax, word [0x10016348]
mov word [edi], ax
mov dword [ebp - 4], 0x104
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005e9c
lea edi, [ebp - 0x110]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ax, word [0x10016348]
mov word [edi], ax
lea ecx, [ebp - 0x24c]
push ecx
call fcn.10005f30
add esp, 4
mov edx, dword [ebp - 0x24c]
and edx, 0xffff
cmp edx, 9
je 0x10005ee2
mov eax, dword [ebp - 0x24c]
and eax, 0xffff
cmp eax, 6
jne 0x10005f02
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, dword [str._x64_]
mov dword [edi], ecx
mov dx, word [0x10016344]
mov word [edi + 4], dx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10005f22
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006380
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov byte [0x10019214], 1
jmp fcn.10005f70
Function at 0x10006850
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov byte [0x10019214], 1
jmp fcn.10006390
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
sub esp, 0x288
mov eax, dword [0x411004]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
push 0x7f
xor esi, esi
lea eax, [esp + 0x11]
push esi
push eax
mov byte [esp + 0x18], 0
call fcn.004020c0
push 0xff
lea ecx, [esp + 0x19d]
push esi
push ecx
mov byte [esp + 0x1a4], 0
call fcn.004020c0
push 0xff
lea edx, [esp + 0xa9]
push esi
push edx
mov byte [esp + 0xb0], 0
call fcn.004020c0
lea eax, [esp + 0x1b0]
push 0x100
push eax
call fcn.0040205b
lea ecx, [esp + 0x1b8]
push ecx
lea edx, [esp + 0xbc]
push str._swatchdog.ini
push edx
call fcn.00401e74
lea eax, [esp + 0xc4]
push 0x40e1c8
push eax
call fcn.00401e61
mov edi, eax
add esp, 0x40
test edi, edi
jne 0x4010bb
push 0x40e1b8
call fcn.00401cd8
add esp, 4
push 1
call fcn.00401c4c
push edi
lea ecx, [esp + 0x10]
push 0x80
push ecx
call fcn.00401835
add esp, 0xc
test eax, eax
je 0x40111c
test esi, esi
jne 0x4010dd
mov esi, 1
jmp 0x401105
mov eax, esi
shl eax, 8
lea edx, [eax + 0x412100]
push edx
lea eax, [eax + 0x412080]
push eax
lea ecx, [esp + 0x14]
push str.______n_
push ecx
call fcn.00401816
add esp, 0x10
add esi, 1
push edi
lea edx, [esp + 0x10]
push 0x80
push edx
call fcn.00401835
add esp, 0xc
test eax, eax
jne 0x4010d2
push ebp
push edi
call fcn.00401732
mov ebp, dword [esp + 0x29c]
add esp, 4
xor edi, edi
mov esi, 0x412100
test ebp, ebp
jne 0x40114d
lea eax, [esi - 0x80]
push 0x40e1a4
push eax
call fcn.0040d01a
add esp, 8
test eax, eax
je 0x4011b3
lea ecx, [esi - 0x80]
push 0x40e1a4
push ecx
call fcn.0040d01a
add esp, 8
test eax, eax
jne 0x40118a
push 0x40e1a0
push esi
call fcn.0040d01a
add esp, 8
test eax, eax
je 0x40119b
push 0x40e19c
push esi
call fcn.0040d01a
add esp, 8
test eax, eax
je 0x401254
add esi, 0x100
add edi, 1
cmp esi, 0x412500
jl 0x401134
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.004020a4
add esp, 0x288
ret
lea edx, [esp + 0x90]
push 0x40e198
shl edi, 8
push edx
mov word [edi + 0x412100], 0x31
call fcn.00401e61
mov ebp, eax
push str._WATCHDOG__n
push ebp
call fcn.00401571
add esp, 0x10
mov esi, 0x412180
mov eax, esi
lea edx, [eax + 1]
jmp 0x4011f0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011f0
sub eax, edx
je 0x401225
lea edx, [esi + 0x80]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401208
sub eax, edi
je 0x401225
push edx
push esi
push str._s_s_n
push ebp
call fcn.00401571
add esp, 0x10
add esi, 0x100
cmp esi, 0x412480
jl 0x4011e6
push ebp
call fcn.00401732
mov ecx, dword [esp + 0x294]
add esp, 4
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.004020a4
add esp, 0x288
ret
push 0
call fcn.00401c4c
int3
Function at 0x4020a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411004]
jne 0x4020ae
repz ret
jmp fcn.004063fa

Function at 0x405023
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 + 0x411458]
je 0x40503e
inc edi
cmp edi, 0x17
jb 0x40502f
cmp edi, 0x17
jae 0x4051be
push ebp
push 3
call fcn.0040a3de
cmp eax, 1
pop ecx
je 0x40518a
push 3
call fcn.0040a3de
test eax, eax
pop ecx
jne 0x405072
cmp dword [0x411010], 1
je 0x40518a
cmp ebx, 0xfc
je 0x4051bd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x412af8
push ebp
call fcn.0040a379
add esp, 0xc
test eax, eax
je 0x4050a8
push esi
push esi
push esi
push esi
push esi
call fcn.00403535
add esp, 0x14
push 0x104
mov esi, 0x412b11
push esi
push 0
mov byte [0x412c15], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4050ec
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040a379
add esp, 0xc
test eax, eax
je 0x4050ec
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403535
add esp, 0x14
push esi
call fcn.00403be0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405131
push esi
call fcn.00403be0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x412e0c
push 0x40e8bc
sub ecx, eax
push ecx
push eax
call fcn.0040a2c6
add esp, 0x14
test eax, eax
je 0x405131
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403535
add esp, 0x14
jmp 0x405133
xor esi, esi
push 0x40e8b8
push ebx
push ebp
call fcn.0040a255
add esp, 0xc
test eax, eax
je 0x405153
push esi
push esi
push esi
push esi
push esi
call fcn.00403535
add esp, 0x14
push dword [edi*8 + 0x41145c]
push ebx
push ebp
call fcn.0040a255
add esp, 0xc
test eax, eax
je 0x405175
push esi
push esi
push esi
push esi
push esi
call fcn.00403535
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040a098
add esp, 0xc
jmp 0x4051bd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4051bd
cmp ebp, 0xffffffff
je 0x4051bd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41145c]
push dword [esi]
call fcn.00403be0
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 0x40a098
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404b41
xor ebx, ebx
cmp dword [0x413410], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40a16e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a24e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40a24e
push eax
call fcn.00404ad3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413410], eax
call esi
push eax
call fcn.00404ad3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413414], eax
call esi
push eax
call fcn.00404ad3
mov dword [0x413418], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401a65
test eax, eax
pop ecx
pop ecx
je 0x40a13c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403535
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40a16e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404ad3
cmp eax, ebx
pop ecx
mov dword [0x413420], eax
je 0x40a16e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ad3
pop ecx
mov dword [0x41341c], eax
mov eax, dword [0x41341c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40a1f3
cmp dword [0x413420], ecx
je 0x40a1f3
push eax
call fcn.00404b4a
push dword [0x413420]
mov esi, eax
call fcn.00404b4a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40a1f3
cmp edi, ebx
je 0x40a1f3
call esi
cmp eax, ebx
je 0x40a1c0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a1c0
test byte [ebp - 0x18], 1
jne 0x40a1f3
lea eax, [ebp - 0x10]
push eax
call fcn.00401a9c
test eax, eax
pop ecx
je 0x40a1db
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403535
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40a1ea
or dword [ebp + 0x10], 0x200000
jmp 0x40a22e
or dword [ebp + 0x10], 0x40000
jmp 0x40a22e
mov eax, dword [0x413414]
cmp eax, dword [ebp - 8]
je 0x40a22e
push eax
call fcn.00404b4a
cmp eax, ebx
pop ecx
je 0x40a22e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a22e
mov eax, dword [0x413418]
cmp eax, dword [ebp - 8]
je 0x40a22e
push eax
call fcn.00404b4a
cmp eax, ebx
pop ecx
je 0x40a22e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x413410]
call fcn.00404b4a
cmp eax, ebx
pop ecx
je 0x40a24e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a250
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x3c9e1829
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0xe7760c3
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10002270
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ea60
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x1002e050]
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], 0x1002a944
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 [0x1002fdc0]
test eax, eax
jne 0x1000232a
xor al, al
jmp 0x100024f0
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 0x10002358
sub ecx, edx
lea eax, [ebp - 0x90]
push ecx
push eax
lea ecx, [ebp - 0xec]
call fcn.100052e0
mov dword [ebp - 4], 0
lea esi, [ebp - 0xb8]
push ecx
push dword [esi]
lea ecx, [ebp - 0xec]
call fcn.10004580
cmp eax, 0xffffffff
jne 0x100024b6
add esi, 4
lea eax, [ebp - 0x90]
cmp esi, eax
jne 0x10002381
lea eax, [ebp - 0x110]
push eax
call dword [0x1002fdb8]
push 0x80
lea eax, [ebp - 0x90]
push eax
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x1000247c
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 0x10002400
sub ecx, edx
lea eax, [ebp - 0x90]
push ecx
push eax
lea ecx, [ebp - 0xd4]
call fcn.100052e0
lea esi, [ebp - 0xb8]
push ecx
push dword [esi]
lea ecx, [ebp - 0xd4]
call fcn.10004580
cmp eax, 0xffffffff
jne 0x10002480
add esi, 4
lea eax, [ebp - 0x90]
cmp esi, eax
jne 0x10002422
mov edx, dword [ebp - 0xc0]
cmp edx, 0x10
jb 0x1000247c
mov ecx, dword [ebp - 0xd4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002472
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000250b
push edx
push ecx
call fcn.10007b98
add esp, 8
xor bl, bl
jmp 0x100024b8
mov edx, dword [ebp - 0xc0]
cmp edx, 0x10
jb 0x100024b6
mov ecx, dword [ebp - 0xd4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100024ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000250b
push edx
push ecx
call fcn.10007b98
add esp, 8
mov bl, 1
mov edx, dword [ebp - 0xd8]
cmp edx, 0x10
jb 0x100024ee
mov ecx, dword [ebp - 0xec]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100024e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002510
push edx
push ecx
call fcn.10007b98
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.10007a40
mov esp, ebp
pop ebp
ret
call fcn.1000d5bc
call fcn.1000d5bc
int3
Function at 0x10003300
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, 0x5a4d
mov dword [ebp - 8], eax
cmp word [eax], cx
jne 0x10003385
mov ecx, dword [eax + 0x3c]
xor esi, esi
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10003387
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10003385
mov edi, eax
mov ecx, edi
mov eax, str..text
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003370
test dl, dl
je 0x1000336c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10003370
add eax, 2
add ecx, 2
test dl, dl
jne 0x10003350
xor eax, eax
jmp 0x10003375
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000340b
inc esi
add edi, 0x28
cmp esi, ebx
jl 0x10003346
xor esi, esi
mov ebx, dword [ebp - 4]
mov edx, 0x1002eaa0
add ebx, esi
mov ecx, esi
push 8
push ebx
call fcn.10003250
add esp, 8
test eax, eax
je 0x100033bd
mov eax, dword [eax + 0xe]
mov ecx, 0xefff
mov dword [eax], 0
mov eax, dword fs:[0x18]
and word [eax + 0xfca], cx
mov eax, dword fs:[0x30]
push str.ntdll.dll
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x100034a4
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlLeaveCriticalSection
push edi
mov dword [ebp - 4], eax
call eax
mov ecx, dword [ebp - 8]
push dword [ecx + 0xa0]
call eax
push str.LdrFastFailInLoaderCallout
push edi
call dword [ebp - 4]
test eax, eax
je 0x10003426
lfence
mov eax, dword [eax + 0x13]
jmp 0x1000343f
mov ecx, dword [ebp - 4]
lea eax, [esi + esi*4]
mov esi, dword [ecx + eax*8 + 0xc]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 8]
add esi, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10003387
push 0xf
push ebx
mov edx, 0x1002ea80
mov ecx, esi
call fcn.10003250
add esp, 8
test eax, eax
je 0x10003445
mov eax, dword [eax + 8]
mov dword [eax], 2
push str.LdrGetDllFullName
push edi
call dword [ebp - 4]
mov esi, eax
test esi, esi
je 0x100034a4
lea ecx, [esi + 0x150]
mov edx, 0x1002ea9c
push 2
push ecx
mov ecx, esi
lfence
call fcn.10003250
add esp, 8
test eax, eax
je 0x10003482
lfence
mov esi, dword [eax + 2]
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
add dword [eax + 0x20], 2
push 0xc
push ebx
mov edx, 0x1002ea90
mov ecx, esi
call fcn.10003250
add esp, 8
test eax, eax
je 0x100034a4
lfence
mov eax, dword [eax + 0xc]
mov dword [eax], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret