joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2a50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movsd xmm0, qword [0x5542a0]
push edi
mov edi, dword [ebp + 8]
sub esp, 8
movsd qword [esp], xmm0
call fcn.0052d1a6
fdivr qword [0x554298]
fstp qword [esp]
call fcn.0052d310
movsd xmm1, qword [0x551588]
mov eax, 1
fstp qword [ebp - 0x14]
cvttsd2si ecx, qword [ebp - 0x14]
add esp, 8
xorps xmm2, xmm2
movsd qword [ebp - 0x14], xmm1
cmp ecx, eax
movsd qword [ebp - 0xc], xmm2
xorps xmm3, xmm3
cmovl ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jle 0x4b2c38
push ebx
push esi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x4b2b01
lea edx, [edi + 8]
mov esi, eax
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4b2ac5
jmp 0x4b2bc5
cmp eax, 0x4e0
jb 0x4b2bc5
lea esi, [edi + 0x9c4]
mov ebx, 0xe3
mov ecx, dword [esi]
lea esi, [esi + 4]
xor ecx, dword [esi]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x630]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub ebx, 1
jne 0x4b2b17
lea esi, [edi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub ebx, 1
jne 0x4b2b57
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
mov dword [edi], ebx
mov eax, dword [edi]
mov ecx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [edi + 0x1384]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
sub dword [ebp - 4], 1
addsd xmm0, qword [eax*8 + 0x553230]
subsd xmm0, xmm3
mulsd xmm0, xmm1
mulsd xmm1, qword [0x5542a0]
addsd xmm2, xmm0
jne 0x4b2ab7
pop esi
movsd qword [ebp - 0x14], xmm1
movsd qword [ebp - 0xc], xmm2
pop ebx
fld qword [ebp - 0xc]
fdiv qword [ebp - 0x14]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4bece0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5875a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x58c028]
mov esi, dword [eax + edx*4]
mov eax, dword [0x58a9a8]
cmp eax, dword [esi + 4]
jle 0x4bed8b
push 0x58a9a8
call fcn.004db539
add esp, 4
cmp dword [0x58a9a8], 0xffffffff
jne 0x4bed8b
push 0
push 0x54895d
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004028b0
mov byte [ebp - 4], 1
call fcn.004d9e19
lea ecx, [ebp - 0x28]
call fcn.00516240
push 0x58a9a8
mov dword [ebp - 4], 0xffffffff
call fcn.004db4fa
add esp, 4
mov eax, dword [0x58bd38]
cmp eax, dword [esi + 4]
jle 0x4bee06
push 0x58bd38
call fcn.004db539
add esp, 4
cmp dword [0x58bd38], 0xffffffff
jne 0x4bee06
mov dword [ebp - 4], 2
call fcn.004d9e19
mov dword [0x58bd34], 0xffffffff
mov edx, 1
mov dword [0x58a9b4], eax
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x58a9b4], eax
inc edx
cmp edx, 0x270
jl 0x4bedd0
push 0x58bd38
mov dword [0x58a9b0], 0x270
call fcn.004db4fa
add esp, 4
mov esi, dword [edi]
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 4]
sub ecx, esi
mov dword [edi + 0xc], 0
imul ecx
mov dword [ebp - 0x34], esi
sar edx, 2
mov eax, edx
dec edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x2c], edx
test edx, edx
jle 0x4beeea
mov dword [ebp - 0x1c], 0x58a9b0
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], 0xffffffff
nop dword [eax]
cmp edx, 0xffffffff
jne 0x4bee61
lea ecx, [ebp - 0x1c]
call fcn.0049f4d0
mov edi, eax
jmp 0x4beead
lea esi, [edx + 1]
xor ecx, ecx
xor eax, eax
test edx, edx
je 0x4bee87
nop dword [eax]
mov ecx, 0x58a9b0
call fcn.0049f320
mov ecx, eax
xor al, al
jne 0x4bee70
or eax, 0xffffffff
xor dl, dl
jne 0x4bee70
xor edx, edx
div esi
mov edi, eax
mov dword [ebp - 0x30], edx
xor edx, edx
mov eax, ecx
div esi
cmp eax, edi
jb 0x4beea2
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], edx
jne 0x4bee64
mov eax, ecx
xor edx, edx
div esi
mov esi, dword [ebp - 0x34]
mov edi, edx
mov edx, dword [ebp - 0x2c]
lea eax, [edx + edx*2]
dec edx
movq xmm2, qword [esi + eax*8 + 0x10]
lea ecx, [esi + eax*8]
mov dword [ebp - 0x2c], edx
lea eax, [edi + edi*2]
movups xmm0, xmmword [esi + eax*8]
movups xmm1, xmmword [ecx]
movups xmmword [ecx], xmm0
movq xmm0, qword [esi + eax*8 + 0x10]
movq qword [ecx + 0x10], xmm0
movups xmmword [esi + eax*8], xmm1
movq qword [esi + eax*8 + 0x10], xmm2
test edx, edx
jg 0x4bee50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004db63a
mov esp, ebp
pop ebp
ret
Function at 0x4dc6fb
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x581bc0
call fcn.004dca00
push 1
call fcn.004db1dc
pop ecx
test al, al
jne 0x4dc5b2
push 7
call fcn.004dc818
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004db1a7
mov byte [ebp - 0x24], al
mov eax, dword [0x58bfdc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4dc5ab
test eax, eax
jne 0x4dc61c
mov dword [0x58bfdc], ecx
push 0x5488a8
push 0x548884
call fcn.0052fe80
pop ecx
pop ecx
test eax, eax
je 0x4dc5ff
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4dc6f5
push 0x548880
push 0x5487ac
call fcn.0052fe24
pop ecx
pop ecx
mov dword [0x58bfdc], 2
jmp 0x4dc621
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004db349
pop ecx
call fcn.004dcb59
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4dc651
push esi
call fcn.004db2bf
pop ecx
test al, al
je 0x4dc651
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004dc705
call esi
call fcn.004dcb5f
mov esi, eax
cmp dword [esi], edi
je 0x4dc66f
push esi
call fcn.004db2bf
pop ecx
test al, al
je 0x4dc66f
push dword [esi]
call fcn.0052e914
pop ecx
call fcn.004dc934
movzx eax, ax
push eax
call fcn.0052fdd8
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004dc967
test al, al
jne 0x4dc69a
push esi
call fcn.0052e94c
test bl, bl
jne 0x4dc6a3
call fcn.0052e8ef
push edi
push 1
call fcn.004db366
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4dc6f5
call fcn.004dca46
ret
call fcn.004dcaaa
jmp 0x4dc593

Function at 0x4df686
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x5875a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, dword [0x58c3e0]
test esi, esi
jne 0x4df6db
push 0x559c78
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4df6c3
xor al, al
jmp 0x4df703
push str.GetUserDefaultLocaleName
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x58c3e0], esi
test esi, esi
je 0x4df6bf
push edi
mov edi, 0xaa
lea eax, [ebp - 0xb0]
push edi
push 0
push eax
call fcn.00520ff0
add esp, 0xc
lea eax, [ebp - 0xb0]
push edi
push eax
call esi
test eax, eax
pop edi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004db63a
mov esp, ebp
pop ebp
ret
Function at 0x4df7af
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5875a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], ecx
cmp byte [eax + 0x2c], 0
jne 0x4df7da
mov eax, 0x3f0
jmp 0x4df8cc
push ebx
push esi
lea ecx, [ebp - 0x54]
add eax, 0x24
push ecx
push 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004dff9d
mov esi, dword [ebp - 0x58]
add esp, 0x10
test esi, esi
jne 0x4df801
mov ebx, dword [ebp - 0x54]
jmp 0x4df8c8
xor ebx, ebx
mov eax, ebx
mov dword [ebp - 0x50], eax
cmp dword [esi], ebx
jbe 0x4df8c1
push edi
lea edi, [esi + 4]
mov dword [ebp - 0x64], 0x44
test dword [edi + 4], 0xc0000020
jne 0x4df8b1
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x49], bl
test ecx, ecx
je 0x4df890
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
sub eax, edx
mov dword [ebp - 0x58], edx
push 0x44
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x5c], ebx
test eax, eax
je 0x4df88d
mov ecx, ebx
mov dword [ebp - 0x54], ebx
push dword [edi]
add ecx, dword [ebp - 0x58]
call fcn.0047cae0
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4df889
mov ecx, dword [ebp - 0x54]
push 0x44
pop eax
add ecx, eax
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
mov dword [ebp - 0x58], edx
cdq
idiv dword [ebp - 0x64]
cmp dword [ebp - 0x5c], eax
jb 0x4df84e
jmp 0x4df88d
mov byte [ebp - 0x49], 1
mov eax, dword [ebp - 0x50]
cmp byte [ebp - 0x49], bl
jne 0x4df8b1
push dword [edi]
lea ecx, [ebp - 0x48]
call fcn.004df712
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ecx + 0x18]
call fcn.004dd7b0
mov eax, dword [ebp - 0x50]
inc eax
add edi, 8
mov dword [ebp - 0x50], eax
cmp eax, dword [esi]
jb 0x4df81b
pop edi
push esi
call fcn.004db15e
pop ecx
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db63a
mov esp, ebp
pop ebp
ret 4

Function at 0x4e039a
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004f61a0
test al, al
je 0x4e03bb
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esi + 0x20]
mov eax, dword [edi]
and dword [edi], 0
test eax, eax
je 0x4e03cf
push eax
mov ecx, edi
call fcn.004e040d
cmp dword [esi + 0x2c], 0
je 0x4e03de
push dword [esi + 0x2c]
call fcn.00525d05
pop ecx
cmp dword [edi], 0
je 0x4e03ec
push dword [edi]
mov ecx, edi
call fcn.004e040d
lea ecx, [esi + 0x18]
call fcn.004dd846
lea ecx, [esi + 0x14]
call fcn.004dd846
lea ecx, [esi + 0x10]
call fcn.004dd846
pop edi
mov ecx, esi
pop esi
jmp fcn.004f5fc0
Function at 0x4e063d
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0xc
add eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
push edi
push eax
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
lea esi, [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
mov ecx, esi
call fcn.004ddde7
cmp dword [esi], edi
je 0x4e07cf
cmp dword [esi], 0xffffffff
je 0x4e07cf
push edi
push edi
push 7
lea eax, [ebp - 8]
push eax
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4e06a1
push 0x1a
jmp 0x4e07d1
push edi
push edi
push edi
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4e06bc
push 0x1b
jmp 0x4e07d1
add eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test esi, esi
je 0x4e06f2
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4e06f2
push ecx
push esi
push eax
call fcn.00521b30
mov edx, dword [ebp - 4]
add esp, 0xc
mov eax, edi
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x4e06ec
sub ecx, esi
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x40
jb 0x4e06e0
mov eax, dword [ebp - 8]
mov ecx, ebx
push 4
push 0x58c3e4
push str.g_shared_section
mov dword [0x58c3e4], eax
call fcn.004e0800
mov esi, eax
mov dword [0x58c3e4], edi
test esi, esi
jne 0x4e07d2
mov eax, dword [ebp + 0x10]
mov ecx, ebx
push 4
push 0x58c460
push str.g_shared_IPC_size
mov dword [0x58c460], eax
call fcn.004e0800
mov esi, eax
mov dword [0x58c460], edi
test esi, esi
jne 0x4e07d2
mov eax, dword [ebp + 0x14]
mov ecx, ebx
push 4
push 0x58c464
push str.g_shared_policy_size
mov dword [0x58c464], eax
call fcn.004e0800
mov esi, eax
mov dword [0x58c464], edi
test esi, esi
jne 0x4e07d2
push 0x1c
call fcn.004db11c
pop ecx
test eax, eax
je 0x4e078f
push dword [ebp + 8]
mov ecx, eax
push dword [ebx + 0x24]
push dword [ebx + 8]
push dword [ebx]
call fcn.004e3c20
mov edi, eax
lea esi, [ebx + 0x20]
mov eax, dword [esi]
mov dword [esi], edi
test eax, eax
je 0x4e07a2
push eax
mov ecx, esi
call fcn.004e040d
mov ecx, dword [esi]
push 0x400
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call fcn.004e3d29
test al, al
jne 0x4e07bd
push 4
pop eax
jmp 0x4e07df
mov ecx, ebx
call fcn.004f62a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4e07df
push 0x19
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4e4c14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5875a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004e4b9c
pop ecx
test al, al
je 0x4e4c3d
mov eax, 0x1126
jmp 0x4e4dba
and dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push ebx
push eax
push esi
mov dword [ebp - 8], 7
call fcn.004e4b1b
mov bh, al
lea eax, [ebp - 0x1c]
push eax
call fcn.004e5221
mov bl, al
lea eax, [ebp - 0x1c]
push eax
push eax
call fcn.004e4a9a
add esp, 0x14
test bl, bl
jne 0x4e4c87
test al, al
jne 0x4e4c87
test bh, bh
jne 0x4e4c87
push 0x7b
pop esi
jmp 0x4e4daf
xor bh, bh
test bl, bl
jne 0x4e4ce9
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x20], 7
push 0x55a074
mov word [ebp - 0x34], ax
call fcn.004c0418
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
call fcn.004aed30
push eax
lea ecx, [ebp - 0x4c]
call fcn.004dafdf
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004db012
lea ecx, [ebp - 0x4c]
call fcn.00496890
lea ecx, [ebp - 0x34]
call fcn.00496890
inc bh
or eax, 0xffffffff
xor bl, bl
and dword [ebp - 0x24], 0
xor ecx, ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
mov word [ebp - 0x34], cx
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 7
call fcn.004e5301
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004db012
lea ecx, [ebp - 0x34]
call fcn.00496890
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4e4d7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4e4d85
cmp esi, 3
je 0x4e4d85
cmp esi, 0x7b
je 0x4e4d85
test bl, bl
je 0x4e4daf
test bh, bh
je 0x4e4daf
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0x5c
cmovae eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
push dword [ebp - 0xc]
push eax
call fcn.004e4450
add esp, 0x10
cmp eax, 3
jne 0x4e4daf
mov esi, 0x1126
jmp 0x4e4daf
test eax, 0x400
jne 0x4e4dad
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0x5c
cmovae eax, dword [ebp - 0x1c]
mov bl, 1
push 0xffffffffffffffff
push dword [ebp - 0xc]
push eax
call fcn.004e4450
add esp, 0x10
cmp eax, 2
ja 0x4e4cee
jmp 0x4e4d77
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.00496890
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004db63a
mov esp, ebp
pop ebp
ret
Function at 0x4e4f8d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x5875a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x244]
push edi
mov edi, dword [ebp + 8]
push esi
call fcn.004c024d
lea eax, [ebp - 0x244]
push eax
call fcn.004e4b9c
pop ecx
lea ecx, [ebp - 0x244]
mov bl, al
call fcn.00496890
test bl, bl
je 0x4e4fda
mov al, 1
jmp 0x4e5210
xor eax, eax
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
xor ebx, ebx
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x24c], ebx
push eax
push edi
call fcn.004e4899
pop ecx
pop ecx
test al, al
je 0x4e5203
push esi
lea ecx, [ebp - 0x22c]
call fcn.004c024d
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x22c]
push 8
pop edi
cmp dword [ebp - 0x218], edi
cmovae eax, dword [ebp - 0x22c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4e5089
xor eax, eax
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x244], ax
lea eax, [ecx - 1]
push eax
push ebx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 7
push eax
lea ecx, [ebp - 0x244]
call fcn.004e5301
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004db012
lea ecx, [ebp - 0x244]
call fcn.00496890
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.004e4828
pop ecx
pop ecx
test al, al
jne 0x4e51f6
lea eax, [ebp - 0x22c]
push eax
push eax
call fcn.004e4b1b
mov byte [ebp - 0x25d], al
lea eax, [ebp - 0x22c]
push eax
call fcn.004e5221
add esp, 0xc
test al, al
jne 0x4e5131
cmp byte [ebp - 0x25d], bl
je 0x4e51f8
xor eax, eax
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x230], 7
push eax
call fcn.004e4a9a
pop ecx
pop ecx
test al, al
je 0x4e5121
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.004e4828
pop ecx
pop ecx
mov bl, al
lea ecx, [ebp - 0x244]
call fcn.00496890
jmp 0x4e51f8
cmp dword [ebp - 0x218], edi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0xc], ebx
mov esi, 0x104
cmovae eax, dword [ebp - 0x22c]
mov dword [ebp - 8], ebx
push esi
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x4e51f8
cmp eax, esi
je 0x4e51f8
lea esi, [ebp - 0x214]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x4e5180
mov eax, dword [ebp - 0x21c]
sub esi, ecx
sar esi, 1
add eax, 0xfffffffe
add eax, esi
cmp eax, dword [ebp - 0x24c]
jne 0x4e51f8
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.004e4852
add esp, 0xc
test al, al
je 0x4e51f8
cmp dword [ebp - 0x218], edi
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x248], edi
cmovae ecx, dword [ebp - 0x25c]
add eax, 4
push eax
lea eax, [ecx + esi*2]
push eax
call fcn.00531236
pop ecx
pop ecx
test eax, eax
jne 0x4e51f8
mov bl, 1
lea ecx, [ebp - 0x22c]
call fcn.00496890
lea ecx, [ebp - 0x25c]
call fcn.00496890
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004db63a
mov esp, ebp
pop ebp
ret
Function at 0x4e5de0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5875a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp byte [ebp + 8], 0
mov dword [ebp - 0x60], edi
jne 0x4e5e0f
cmp dword [ebx + 8], edi
jne 0x4e5e3d
xor eax, eax
jmp 0x4e5f58
push edi
push 0x4eb72a
push 1
push str.NtMapViewOfSection
mov esi, 0x55a1b4
push esi
call fcn.004e5810
push 1
push 0x4eb84e
push 1
push str.NtUnmapViewOfSection
push esi
mov ecx, ebx
call fcn.004e5810
mov eax, dword [ebx]
push 1
push 0x2000
push 0x10000
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
mov dword [ebp - 0x58], eax
call edi
mov esi, eax
mov eax, dword [ebx + 8]
shl eax, 6
add eax, 0x50
push eax
mov dword [ebp - 0x5c], eax
call fcn.004e5a11
pop ecx
mov ecx, eax
mov edx, 0xfffff000
and ecx, edx
and eax, 0xfff
add esi, ecx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x5c]
push 0x40
push 0x1000
add ecx, 0xfff
and ecx, edx
push ecx
push esi
push dword [ebp - 0x58]
call edi
mov esi, eax
test esi, esi
jne 0x4e5ec0
push str.thunk_base
push 0x1a8
push str..._.._sandbox_win_src_interception.cc
lea ecx, [ebp - 0x11c]
call fcn.004f47b0
xor ecx, ecx
inc ecx
jmp 0x4e5ec3
mov ecx, dword [ebp - 0x60]
test cl, 1
je 0x4e5ed3
lea ecx, [ebp - 0x11c]
call fcn.004f49c0
mov edi, dword [ebp - 0x64]
and dword [ebp - 0x48], 0
add edi, esi
mov esi, dword [ebp - 0x5c]
push 0xa4
push 0
push 0x58c480
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x10
call fcn.00520ff0
add esp, 0xc
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
push esi
push edi
call fcn.004e5ba0
test eax, eax
jne 0x4e5f58
lea eax, [ebp - 0x68]
push eax
push 0x10
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4e5f55
cmp dword [ebp - 0x68], 0x10
jne 0x4e5f55
lea eax, [ebp - 0x6c]
push eax
push 0x20
push esi
push edi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebx]
push 0xa4
push 0x58c480
push str.g_originals
call fcn.004e0800
jmp 0x4e5f58
push 0x2a
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004db63a
mov esp, ebp
pop ebp
ret 4
Function at 0x4e9573
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x34]
push esi
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4e95a6
xor al, al
jmp 0x4e9611
push ebx
mov bl, byte [ebp + 0xc]
mov ecx, 0x101c01
push edi
push 1
push 0
mov edi, 0x1fffff
test bl, bl
mov eax, edi
cmove eax, ecx
push eax
push esi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4e95e5
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4e960f
push 1
push 0
mov ecx, 0x100c43
lea eax, [esi + 4]
test bl, bl
cmove edi, ecx
push edi
push eax
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne al
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4e96c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x20]
xor ebx, ebx
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x18]
mov dword [esi], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x4e96f6
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
push ebx
push ebx
push esi
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
pop edi
sbb eax, eax
and eax, 0xfffffffb
pop esi
add eax, 5
pop ebx
pop ebp
ret

Function at 0x4f1065
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push dword [ebp + 8]
push edi
push 0x8000004
push edi
mov dword [esi], edi
push 0xffffffffffffffff
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
mov ecx, esi
call fcn.004ddde7
cmp dword [esi], edi
je 0x4f10a9
cmp dword [esi], 0xffffffff
je 0x4f10a9
push dword [ebp + 8]
push edi
push edi
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 4