joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10039a18
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10065428]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10039a5b
cmp word [esi], dx
jne 0x10039a5b
or byte [edi + eax + 0x28], 4
jmp 0x10039a60
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10039b99
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10039b79
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10039aa2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10039ad8
cmp eax, edx
jae 0x10039ae4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10039a7a
jmp 0x10039b99
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10039b75
cmp dword [ebp - 0x14], 0
je 0x10039b75
mov eax, dword [ebx*4 + 0x10065428]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10039b4d
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10039b93
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10065428]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10065428]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10065428]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10039b96
pop ebx
cmp word [ebp - 4], bx
jne 0x10039b5e
cmp esi, dword [ebp + 0xc]
jne 0x10039b5e
mov word [esi], bx
jmp 0x10039b96
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003a432
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10039b99
push 0xd
jmp 0x10039b92
mov ecx, dword [ebx*4 + 0x10065428]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10039b90
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10039b99
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003cce2
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 0x1003cd7f
push ebx
push esi
call fcn.1003ccab
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.1003bae7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003cd2c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003cd7e
push edi
push eax
call fcn.10034ca9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003cd4c
call fcn.10034c6f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003cd7d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003bae7
add esp, 0x20
test eax, eax
jne 0x1003cd6b
push edi
call fcn.10034c6f
jmp 0x1003cd73
push ebx
call fcn.10034c6f
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 0x1003cd82
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1003cd93
pop esi
ret
push ebx
push edi
push esi
call fcn.1003ccab
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10034ca9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003cdbb
push ebx
push esi
push edi
call fcn.10025670
add esp, 0xc
push 0
call fcn.10034c6f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1003d17f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003cdd0
Function at 0x10043db1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10043d2d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10043f29
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10043f29
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10043ed8
jg 0x10043e0a
test eax, eax
je 0x10043ece
push 1
push 0x1000
call fcn.10034a15
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10043e30
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10043ec5
push 0x8000
push ebx
call fcn.10043c5e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10043e5c
jg 0x10043e57
cmp ecx, 0x1000
jb 0x10043e5c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10038a55
add esp, 0x10
cmp eax, 0xffffffff
je 0x10043ea1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10043e57
jl 0x10043e88
test ecx, ecx
jne 0x10043e49
push dword [ebp - 0xc]
push ebx
call fcn.10043c5e
push esi
call fcn.10034c6f
add esp, 0xc
xor edi, edi
jmp 0x10043f3a
cmp byte [edi + 0x24], 0
je 0x10043eb8
cmp dword [edi + 0x20], 5
jne 0x10043eb8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10043ec3
mov edi, dword [edi + 0x18]
jmp 0x10043ec5
xor edi, edi
push esi
call fcn.10034c6f
pop ecx
jmp 0x10043f3a
test ecx, ecx
jg 0x10043e9a
jl 0x10043ed8
test eax, eax
jae 0x10043e9a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003a432
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10043efb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10043e9a
jmp 0x10043f32
push ebx
call fcn.100419d8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10043e9a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x10043f3a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10043f37
mov edi, dword [edi + 0x18]
jmp 0x10043f3a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003a432
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10045560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004558d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004558d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402db1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402df0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402df0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402df0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402df0
cmp dword [ecx + 0x74], 0xe
jbe 0x402df0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4072fe
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x14]
push esi
mov esi, edx
mov dword [ebp - 0x38], ebx
push edi
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.00407242
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add edi, 0x23f
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x1e0b524]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x407386
push 0x4011fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x1e0b524]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1e0b568]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x1e0b568], eax
mov eax, dword [0x1e0b570]
cmove eax, dword [ebp - 0x24]
mov dword [0x1e0b570], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x1e0b56c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
cmp dword [0x1e0b524], 0xb03
jne 0x40745d
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x401200
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x40734e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x38]
pop edi
pop esi
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4074a7
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x4074e5
cmp dword [0x1e0b524], 0x959
jne 0x4074d5
push 0
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004072fe
add edi, 8
dec esi
jne 0x4074b7
pop edi
pop esi
pop ebp
ret 4
Function at 0x410ccf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x818710]
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.0040a8f3
mov dword [ebp - 0x14], eax
cmp dword [0x1e0c308], esi
jne 0x410dc2
push 0x800
push esi
push 0x4051cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410d4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410ea2
push esi
push esi
push 0x4051cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410ea2
push 0x4051e4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410ea2
push eax
call ebx
push 0x4051f0
push edi
mov dword [0x1e0c308], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405200
push edi
mov dword [0x1e0c30c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405214
push edi
mov dword [0x1e0c310], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1e0c318], eax
test eax, eax
je 0x410dbf
push 0x405230
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1e0c314], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410de7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410dda
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410dfc
push 4
pop eax
jmp 0x410ea4
cmp dword [ebp - 0x14], esi
je 0x410dfc
push dword [0x1e0c308]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410de1
mov eax, dword [0x1e0c314]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410e5a
cmp dword [0x1e0c318], edi
je 0x410e5a
push eax
call ebx
push dword [0x1e0c318]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410e5a
test eax, eax
je 0x410e5a
call ecx
test eax, eax
je 0x410e4f
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 0x410e4f
test byte [ebp - 8], 1
jne 0x410e5a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410e8a
mov eax, dword [0x1e0c30c]
cmp eax, edi
je 0x410e87
push eax
call ebx
test eax, eax
je 0x410e87
call eax
mov esi, eax
test esi, esi
je 0x410e87
mov eax, dword [0x1e0c310]
cmp eax, edi
je 0x410e87
push eax
call ebx
test eax, eax
je 0x410e87
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1e0c308]
call ebx
test eax, eax
je 0x410ea2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410ea4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e9e
mov esp, ebp
pop ebp
ret
Function at 0x404350
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c8e5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4d7200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4043aa
xor esi, esi
jmp 0x4044dd
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x94
push 0x94
movlpd qword [ebp - 0x20], xmm0
call fcn.0048a2cb
mov edi, eax
mov dword [ebp - 0x1c], 0x94
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call fcn.0048a2cb
push dword [ebp - 0x14]
mov ebx, eax
push 0
push edi
call fcn.0048ba10
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [edi + 4]
add esp, 0x14
mov dword [edi], 9
push eax
push 0x4bfd28
push 0
call esi
lea eax, [edi + 0x10]
push eax
push 0x4bfd50
push 0
call esi
lea eax, [edi + 0x1c]
push eax
push 0x4bfd74
push 0
call esi
lea eax, [edi + 0x28]
push eax
push 0x4bfd98
push 0
call esi
lea eax, [edi + 0x34]
push eax
push 0x4bfdc0
push 0
call esi
lea eax, [edi + 0x40]
push eax
push 0x4bfdf4
push 0
call esi
lea eax, [edi + 0x4c]
push eax
push 0x4bfe24
push 0
call esi
lea eax, [edi + 0x58]
push eax
push 0x4bfe58
push 0
call esi
lea eax, [edi + 0x64]
push eax
push 0x4bfe80
push 0
call esi
lea eax, [edi + 0x70]
push eax
push 0x4bfeb4
push 0
call esi
lea eax, [edi + 0x7c]
push eax
push 0x4bfef0
push 0
call esi
lea eax, [edi + 0x88]
push eax
push 0x4bff10
push 0
call esi
lea eax, [edi + 0xc]
mov ecx, 0xc
nop
mov dword [eax], 2
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x4044a0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x14]
push edi
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4044d2
push ebx
xor esi, esi
call fcn.00489f13
add esp, 4
jmp 0x4044d4
mov esi, ebx
push edi
call fcn.00489f13
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x4044f0
test ecx, ecx
je 0x4044f0
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00489f05
mov esp, ebp
pop ebp
ret
Function at 0x4076a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ecx
push esi
mov ebx, edx
call edi
test eax, eax
jne 0x407721
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407721
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 5
je 0x4076df
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
test eax, eax
jne 0x407721
test bl, 2
je 0x4076fa
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
push 4
push ecx
push esi
call fcn.00403ca0
push esi
call edi
test eax, eax
jne 0x407721
test bl, 1
je 0x407718
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 2
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4

Function at 0x407730
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, ecx
push esi
mov ebx, edx
call edi
test eax, eax
jne 0x4077b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4077b1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 5
je 0x40776f
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
test eax, eax
jne 0x4077b1
test bl, 2
je 0x40778a
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
push 5
push ecx
push esi
call fcn.00403ca0
push esi
call edi
test eax, eax
jne 0x4077b1
test bl, 1
je 0x4077a8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 2
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x408360
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4d7200]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x40]
movlpd qword [ebp - 0x20], xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4083db
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489f05
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x408408
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489f05
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00489f05
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409150
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x4d7200]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 7
mov edi, ecx
mov dword [esp + 0x24], 0
push 0
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x40919d
or esi, 0xffffffff
jmp 0x4091a2
cmp esi, 0xffffffff
jne 0x4091ce
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4091da
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4091da
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x4091f2
test esi, esi
je 0x4091f2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.00489f05
mov esp, ebp
pop ebp
ret
Function at 0x40a050
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cc80
mov eax, dword fs:[0]
push eax
mov eax, 0x1f5c
call fcn.0048a5c0
mov eax, dword [0x4d7200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1f68], esi
lea eax, [ebp - 0x1f54]
mov dword [ebp - 0x1f54], 0x1f40
push eax
push 0x1f40
lea eax, [ebp - 0x1f50]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x40a209
shr dword [ebp - 0x1f54], 2
xorps xmm0, xmm0
movq qword [ebp - 0x1f60], xmm0
mov dword [ebp - 0x1f58], 0
mov dword [ebp - 0x1f60], 0
mov byte [ebp - 0x1f58], 1
mov dword [ebp - 4], 0
push 0x2002
mov dword [ebp - 0x1f5c], 0
call fcn.0048a2cb
mov ebx, eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x1f60], ebx
add esp, 4
mov dword [ebp - 0x1f64], edi
mov word [ebx + 0x2000], ax
mov word [ebx], ax
cmp dword [ebp - 0x1f54], eax
jbe 0x40a1fc
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x1f5c], 0
mov word [ebx], ax
mov edx, ebx
push ecx
mov ecx, dword [ebp + edi*4 - 0x1f50]
mov byte [ebp - 0x1f58], 1
call fcn.00409250
test al, al
je 0x40a1e9
cmp ebx, esi
je 0x40a18c
test esi, esi
je 0x40a1e9
sub ebx, dword [ebp - 0x1f68]
nop
movzx eax, word [ebx + esi]
mov ecx, eax
test ax, ax
jne 0x40a195
cmp word [esi], ax
jne 0x40a19a
mov edi, dword [ebp - 0x1f64]
mov ebx, dword [ebp - 0x1f60]
mov esi, dword [ebp + edi*4 - 0x1f50]
jmp 0x40a1fe
cmp ax, word [esi]
je 0x40a1d2
xor edx, edx
cmp dx, ax
jne 0x40a1a5
xor edi, edi
jmp 0x40a1b1
push ecx
call fcn.0048e184
add esp, 4
movzx edi, ax
movzx eax, word [esi]
xor edx, edx
mov ecx, eax
cmp dx, ax
jne 0x40a1c1
xor eax, eax
jmp 0x40a1cd
push ecx
call fcn.0048e184
add esp, 4
movzx eax, ax
cmp di, ax
jne 0x40a1d7
add esi, 2
jmp 0x40a170
mov edi, dword [ebp - 0x1f64]
mov ebx, dword [ebp - 0x1f60]
mov esi, dword [ebp - 0x1f68]
inc edi
mov dword [ebp - 0x1f64], edi
cmp edi, dword [ebp - 0x1f54]
jb 0x40a130
xor esi, esi
push ebx
call fcn.00489f13
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00489f05
mov esp, ebp
pop ebp
ret