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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5f62cb
call fcn.005f487d
mov dword [eax], esi
call fcn.005f486a
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005f65a0
add esp, 0x14
push 0x16
pop eax
jmp 0x5f6320
test dword [ebp + 0xc], 0xfffffff9
jne 0x5f62a7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5f62f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005f4890
pop ecx
call fcn.005f486a
mov eax, dword [eax]
jmp 0x5f6320
test al, 0x10
jne 0x5f631e
test al, 1
je 0x5f631e
test byte [ebp + 0xc], 2
je 0x5f631e
call fcn.005f487d
mov dword [eax], 5
call fcn.005f486a
mov dword [eax], 0xd
jmp 0x5f62ef
xor eax, eax
pop esi
pop ebp
ret

Function at 0x60d4ed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005ffcfa
and dword [ebp - 4], 0
cmp dword [0x6f4ce0], 0
mov ebx, eax
jne 0x60d59e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x60d64f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x69afe0
push edi
call esi
test eax, eax
je 0x60d64f
push eax
call fcn.005ffc88
mov dword [esp], 0x69afd0
push edi
mov dword [0x6f4ce0], eax
call esi
push eax
call fcn.005ffc88
mov dword [esp], 0x69afbc
push edi
mov dword [0x6f4ce4], eax
call esi
push eax
call fcn.005ffc88
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6f4ce8], eax
call esi
push eax
call fcn.005ffc88
pop ecx
mov dword [0x6f4cf0], eax
test eax, eax
je 0x60d59e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005ffc88
pop ecx
mov dword [0x6f4cec], eax
mov eax, dword [0x6f4cec]
cmp eax, ebx
je 0x60d5f6
cmp dword [0x6f4cf0], ebx
je 0x60d5f6
push eax
call fcn.005ffd03
push dword [0x6f4cf0]
mov esi, eax
call fcn.005ffd03
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x60d5f6
test edi, edi
je 0x60d5f6
call esi
test eax, eax
je 0x60d5ed
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x60d5ed
test byte [ebp - 0xc], 1
jne 0x60d5f6
or dword [ebp + 0x10], 0x200000
jmp 0x60d62f
mov eax, dword [0x6f4ce4]
cmp eax, ebx
je 0x60d62f
push eax
call fcn.005ffd03
pop ecx
test eax, eax
je 0x60d62f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x60d62f
mov eax, dword [0x6f4ce8]
cmp eax, ebx
je 0x60d62f
push eax
call fcn.005ffd03
pop ecx
test eax, eax
je 0x60d62f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6f4ce0]
call fcn.005ffd03
pop ecx
test eax, eax
je 0x60d64f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x60d651
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6150ab
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6150e3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00613138
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00613110
jmp 0x6150ef
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6167a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x6167e2
call fcn.0061c398
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6167e2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6167d9
xor eax, eax
jmp 0x6167ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006167f0
pop edi
pop esi
pop ebx
ret 4

Function at 0x61c8c8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x61c8f6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x61c914
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0061c82e
jmp 0x61c914
mov eax, dword [esi + 0x14]
test eax, eax
je 0x61c914
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0061c82e
test edi, edi
mov eax, edi
jne 0x61c8fe
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10151680
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword [0x10171c38]
add eax, 0xffffe35c
mov dword [0x10171c34], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [0x10171c34]
add edx, 0xfffffffe
mov dword [0x10171c38], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x10151700
jmp 0x10151726
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
je 0x1015178b
jmp 0x101517e3
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [0x10171c38], 0x13f5
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
je 0x10151749
jmp 0x101517e3
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [0x10171c38], 0x25b9
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x101516cb
jmp 0x10151700
xor eax, eax
mov dword [0x10171c34], 0xd1b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
jne 0x101517e3
xor eax, eax
mov dword [0x10171c38], 0x250b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
je 0x101516e3
jmp 0x101517e3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
jne 0x101517e3
xor eax, eax
mov dword [0x10171c34], 0x16c0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
jne 0x101517e3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x101517e3
mov eax, 1
mov dword [0x10171c38], 0x1fa1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x10151900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10171c40], 0
mov byte [0x10171c44], 0
mov edi, dword [0x10171c38]
add edi, 0xffffe149
mov dword [0x10171c34], edi
mov dword [0x10171c3c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10151a48
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
add eax, 0xffffe224
mov dword [0x10171c48], 0
mov dword [ebp - 0x28], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10171c34], 0x2253
mov edi, dword [0x10171c40]
mov ebx, dword [ebp - 0x18]
movzx esi, byte [ebx + ecx]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10171c48], esi
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x10171c40], edx
mov dword [0x10171c34], 0x1af3
mov bl, byte [ebx + ecx]
mov byte [0x10171c44], bl
mov esi, dword [ebp - 0x28]
mov dword [0x10171c38], esi
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x10171c44]
mov ecx, dword [0x10171c40]
mov byte [esi + ecx], bl
mov ecx, dword [0x10171c38]
mov edx, ecx
add edx, 0xffffe149
mov dword [0x10171c34], edx
mov esi, dword [0x10171c3c]
add esi, 1
mov dword [0x10171c3c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], edx
jl 0x10151952
jmp 0x10151a8a
mov eax, dword [ebp - 0x34]
xor ecx, ecx
add eax, 0xffffd525
mov dword [0x10171c38], eax
mov dword [0x10171c3c], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x10151952
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10171c38]
mov esi, eax
add esi, 0xffffe149
mov dword [0x10171c34], esi
mov esi, dword [0x10171c3c]
add esi, 1
mov dword [0x10171c3c], esi
cmp esi, 0x100
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], esi
jl 0x10151a48
jmp 0x10151a24
mov eax, dword [ebp - 0x30]
mov dword [0x10171c34], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10153370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10171c3c], 0
mov dword [0x10171c40], 0
mov dword [0x10171c4c], 0
mov edi, dword [0x10171c38]
mov ebx, edi
add ebx, 0xffffe149
mov dword [0x10171c34], ebx
add edi, 0xffffd49d
mov dword [0x10171c38], edi
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1015352c
jmp 0x101533fa
mov eax, dword [0x10171c40]
mov ecx, dword [0x10171c3c]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
jmp 0x1015340b
jmp 0x1015352c
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
jmp 0x1015340b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add ecx, 1
mov edi, edx
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10171c3c], edx
mov dword [0x10171c34], 0x13cb
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10171c40], edx
mov dword [0x10171c38], 0x7fe
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10171c44], cl
mov dword [0x10171c34], 0xfae
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x10171c38]
add edx, 0xffffe149
mov dword [0x10171c34], edx
mov cl, byte [0x10171c44]
mov edx, dword [0x10171c40]
mov byte [ebx + edx], cl
mov edx, dword [0x10171c34]
add edx, 0xffffddc4
mov dword [0x10171c34], edx
mov edx, dword [0x10171c3c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10171c40]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov edx, dword [0x10171c38]
mov esi, edx
add esi, 0xffffe149
and ecx, 0xff
mov dword [0x10171c4c], ecx
mov dword [0x10171c34], esi
mov cl, byte [ebx + ecx]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x34]
xor cl, byte [esi + ebx]
add edx, 0xffffa56d
mov dword [0x10171c34], edx
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
mov dword [0x10171c38], 0x87a
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x20], edi
je 0x101533f5
jmp 0x101533dc
mov dword [0x10171c34], 0x584
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10153540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x10171c34], 0x16de
mov dword [0x10171c38], 0x1d5d
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.10152bd0
lea ecx, [0x101517f0]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x38], edx
mov dword [esp + 0x60], 0x147e00
mov edx, dword [0x10171c20]
mov dword [esp + 0x80], edx
mov edx, dword [0x10171c24]
mov dword [esp + 0x3c], edx
mov edx, dword [0x10171c28]
mov dword [esp + 0x58], edx
mov edx, dword [0x10171c2c]
mov dword [esp + 0x68], edx
mov dword [0x10171c34], 0x2af1
mov edx, dword [0x10171c30]
mov dword [esp + 0x30], edx
mov dword [0x10171c38], 0xb9a
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x101535ff
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x101535ff
mov eax, dword [esp + 0x14]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x101535e3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
jne 0x101535e3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
mov dword [0x10171c34], 0xffffece3
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x4c], eax
call fcn.10151680
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
jne 0x101535f7
lea eax, [esp + 0x28]
mov ecx, dword [0x10171c34]
add ecx, 0xfffff7cd
mov dword [0x10171c34], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101522d0
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x14], eax
jmp 0x101535f7
Function at 0x10001200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x1001f004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
jne 0x10001225
push 0x57
jmp 0x100012b1
push 0x1c
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], 0
push eax
xorps xmm0, xmm0
push esi
push edi
movups xmmword [ebp - 0x24], xmm0
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x100012b7
push 0
push 0x40
lea eax, [ebp - 0x64]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100012b7
mov eax, 0x5a4d
cmp word [ebp - 0x64], ax
jne 0x100012ac
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
ja 0x100012ac
cmp eax, 0x40
jb 0x100012ac
push 0
push 0xf8
push ebx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100012b7
cmp dword [ebx], 0x4550
jne 0x100012ac
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100073c8
mov esp, ebp
pop ebp
ret 4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100073c8
mov esp, ebp
pop ebp
ret 4
Function at 0x10002120
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10020238]
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
test eax, eax
jne 0x1000213e
mov esi, 0x26b1
jmp 0x10002201
push dword [eax + 4]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1000215f
mov esi, 0x26ad
jmp 0x10002201
mov eax, dword [0x10020238]
xor ecx, ecx
mov edx, 4
mov eax, dword [eax + 8]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100073db
mov ecx, dword [0x10020238]
add esp, 4
mov dword [ebp - 4], eax
xor esi, esi
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
sub edx, 0x10
mov dword [ebp - 0xc], edx
test eax, eax
je 0x100021da
nop word [eax + eax]
lea ebx, [ecx + 0xc]
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
add ebx, edi
push eax
sub edx, edi
mov ecx, ebx
call fcn.10001190
test eax, eax
js 0x10002208
mov eax, dword [ebp - 4]
mov ecx, dword [0x10020238]
mov edx, dword [ebp - 0xc]
mov dword [eax + esi*4], ebx
inc esi
mov eax, dword [ebp - 8]
inc eax
add edi, eax
mov eax, dword [ecx + 8]
cmp esi, eax
jb 0x100021a0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.100019a0
neg eax
sbb esi, esi
and esi, 0xffffd951
add esi, 0x26af
push dword [ebp - 4]
call fcn.100073d6
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, 0x26ae
jmp 0x100021f6
Function at 0x100023a0
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x1001f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x280], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0x21c], ebx
push eax
push 0x1001caa4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push ecx
mov edx, edi
mov dword [ebp - 0x27c], eax
lea ecx, [ebp - 0x21c]
call fcn.10002210
mov edi, dword [ebp - 0x21c]
test eax, eax
je 0x10002575
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x10002575
cmp eax, 0x104
jae 0x10002575
push ecx
lea ecx, [ebp - 0x110]
call fcn.10001010
test eax, eax
js 0x10002575
lea eax, [edi + 0xc]
push eax
push 0x1001cac4
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100010a0
add esp, 0x10
test eax, eax
js 0x10002575
lea eax, [ebp - 0x278]
mov dword [ebp - 0x268], 0x44
push eax
lea eax, [ebp - 0x268]
xorps xmm0, xmm0
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
movlpd qword [ebp - 0x264], xmm0
push eax
lea eax, [ebp - 0x110]
movlpd qword [ebp - 0x25c], xmm0
push eax
movups xmmword [ebp - 0x278], xmm0
movlpd qword [ebp - 0x254], xmm0
movlpd qword [ebp - 0x24c], xmm0
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x22c], xmm0
call dword [ebp - 0x280]
test eax, eax
je 0x10002575
push dword [edi]
mov ecx, dword [ebp - 0x278]
mov edx, 0x1001cb48
push edi
call fcn.10001eb0
test eax, eax
jne 0x1000251a
push 0xffffffffffffffff
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x278]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x274]
call esi
jmp 0x10002575
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1f4
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x278]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x274]
call esi
cmp dword [ebp - 0x21c], ebx
mov eax, 1
cmove ebx, eax
test edi, edi
je 0x10002582
push edi
call fcn.100073d6
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100073c8
mov esp, ebp
pop ebp
ret 8
Function at 0x100025a0
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x1001f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x480], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x210]
mov dword [ebp - 0x41c], 0
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push ecx
mov edx, edi
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x41c]
call fcn.10002210
mov ebx, dword [ebp - 0x41c]
test eax, eax
je 0x10002784
mov eax, dword [ebp - 0x47c]
test eax, eax
je 0x10002784
cmp eax, 0x104
jae 0x10002784
mov ecx, 0x104
lea eax, [ebp - 0x210]
nop dword [eax]
cmp word [eax], 0
je 0x1000263e
add eax, 2
sub ecx, 1
jne 0x10002630
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x10002784
lea ecx, [ebp - 0x210]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x10002689
mov edi, str._sysnative_rundll32.exe
mov eax, 0x7fffffff
sub edi, ecx
test eax, eax
je 0x10002689
movzx esi, word [edi + ecx]
test si, si
je 0x10002689
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x10002670
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x10002784
lea eax, [ebx + 0xc]
push eax
push str.rundll32.exe___hs__1
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.10001110
add esp, 0x10
test eax, eax
js 0x10002784
lea eax, [ebp - 0x478]
mov dword [ebp - 0x468], 0x44
push eax
lea eax, [ebp - 0x468]
xorps xmm0, xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x418]
movlpd qword [ebp - 0x464], xmm0
push eax
lea eax, [ebp - 0x210]
movlpd qword [ebp - 0x45c], xmm0
push eax
movups xmmword [ebp - 0x478], xmm0
movlpd qword [ebp - 0x454], xmm0
movlpd qword [ebp - 0x44c], xmm0
movlpd qword [ebp - 0x444], xmm0
movlpd qword [ebp - 0x43c], xmm0
movlpd qword [ebp - 0x434], xmm0
movlpd qword [ebp - 0x42c], xmm0
call dword [ebp - 0x480]
test eax, eax
je 0x10002784
push dword [ebx]
mov ecx, dword [ebp - 0x478]
mov edx, 0x1001cb48
push ebx
call fcn.10001eb0
test eax, eax
jne 0x100027a8
push 0xffffffffffffffff
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x478]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x474]
call esi
xor esi, esi
test ebx, ebx
je 0x10002793
push ebx
call fcn.100073d6
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100073c8
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x474]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push dword [ebp - 0x474]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x1f4
push eax
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x478]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x474]
call esi
xor esi, esi
mov eax, 1
cmp dword [ebp - 0x41c], esi
cmove esi, eax
jmp 0x10002786