joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439950
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x48d1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
mov ebx, ecx
mov esi, dword [ebx + 0x28]
push 0
push eax
mov edi, edx
mov byte [ebp - 0x108], 0
call fcn.0044c960
push edi
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.004540a8
push 0x47f664
lea edx, [ebp - 0x108]
push 0x104
push edx
call fcn.0045a0c6
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0045a0c6
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x30e]
push edx
mov word [ebp - 0x310], cx
call fcn.0044c960
add esp, 0x3c
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x310]
push edx
xor edi, edi
call esi
test eax, eax
je 0x439a65
lea esp, [esp]
movzx eax, word [ebp + edi*2 - 0x310]
cmp eax, 0x5c
je 0x439a32
cmp eax, 0x2f
jne 0x439a57
xor eax, eax
push eax
lea ecx, [ebp - 0x310]
push ecx
mov word [ebp + edi*2 - 0x310], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
mov word [ebp + edi*2 - 0x310], dx
lea eax, [ebp - 0x310]
push eax
inc edi
call esi
cmp edi, eax
jne 0x439a20
mov edi, dword [ebx + 0x38]
lea ecx, [ebp - 0x318]
push ecx
mov esi, ebx
mov dword [ebp - 0x314], 0x23
mov dword [ebp - 0x318], 0
call fcn.0043b820
test eax, eax
jne 0x439af5
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x439ac7
pop edi
pop esi
lea eax, [ebx + 0x23]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448edb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x318]
push ebx
lea eax, [ebp - 0x31c]
push eax
push edi
push ecx
push esi
mov dword [ebp - 0x31c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439aee
mov dword [ebp - 0x314], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x314]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448edb
mov esp, ebp
pop ebp
ret

Function at 0x43a410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
push esi
push 1
push ecx
call fcn.00464698
sub esi, eax
add esp, 0x10
neg esi
sbb eax, eax
and eax, str._read_write_error
pop esi
pop ebp
ret 8
Function at 0x43c8e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x48fd64]
test eax, eax
je 0x43cac0
push ebx
xor edx, edx
mov dword [0x48fd64], 0
xor eax, eax
push edi
lea ecx, [ecx]
movzx edi, byte [eax + 0x476be1]
movzx ebx, byte [eax + 0x476be0]
mov ecx, 0x1f
sub ecx, edi
mov edi, 1
shl edi, cl
mov ecx, 0x1f
sub ecx, ebx
mov ebx, 1
shl ebx, cl
add eax, 2
or edi, ebx
or edx, edi
cmp eax, 0xe
jb 0x43c900
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x43c943
xor eax, edx
test al, 1
je 0x43c94d
shr eax, 1
xor eax, edx
jmp 0x43c94f
shr eax, 1
test al, 1
je 0x43c959
shr eax, 1
xor eax, edx
jmp 0x43c95b
shr eax, 1
test al, 1
je 0x43c965
shr eax, 1
xor eax, edx
jmp 0x43c967
shr eax, 1
test al, 1
je 0x43c971
shr eax, 1
xor eax, edx
jmp 0x43c973
shr eax, 1
test al, 1
je 0x43c97d
shr eax, 1
xor eax, edx
jmp 0x43c97f
shr eax, 1
test al, 1
je 0x43c989
shr eax, 1
xor eax, edx
jmp 0x43c98b
shr eax, 1
test al, 1
je 0x43c995
shr eax, 1
xor eax, edx
jmp 0x43c997
shr eax, 1
mov dword [ecx*4 + 0x4913f0], eax
inc ecx
cmp ecx, 0x100
jl 0x43c938
mov ecx, 0x4927f0
lea esp, [esp]
mov eax, dword [ecx - 0x1400]
mov edi, eax
and edi, 0xff00
mov ebx, eax
shl ebx, 0x10
add edi, ebx
shl edi, 8
mov edx, eax
shr edx, 8
mov ebx, edx
and ebx, 0xff00
add edi, ebx
mov ebx, eax
shr ebx, 0x18
add edi, ebx
mov dword [ecx - 0x400], edi
and eax, 0xff
mov eax, dword [eax*4 + 0x4913f0]
xor eax, edx
mov edi, eax
and edi, 0xff00
mov ebx, eax
shl ebx, 0x10
add edi, ebx
mov edx, eax
shr edx, 8
shl edi, 8
mov ebx, edx
and ebx, 0xff00
add edi, ebx
mov ebx, eax
shr ebx, 0x18
add edi, ebx
mov dword [ecx], edi
mov dword [ecx - 0x1000], eax
and eax, 0xff
mov eax, dword [eax*4 + 0x4913f0]
xor eax, edx
mov edi, eax
and edi, 0xff00
mov ebx, eax
mov edx, eax
shr edx, 8
shl ebx, 0x10
add edi, ebx
mov ebx, edx
shl edi, 8
and ebx, 0xff00
add edi, ebx
mov ebx, eax
mov dword [ecx - 0xc00], eax
shr ebx, 0x18
add edi, ebx
mov dword [ecx + 0x400], edi
and eax, 0xff
mov eax, dword [eax*4 + 0x4913f0]
xor eax, edx
mov edx, eax
and edx, 0xff00
mov edi, eax
shl edi, 0x10
add edx, edi
mov edi, eax
shr edi, 8
shl edx, 8
and edi, 0xff00
mov dword [ecx - 0x800], eax
add edx, edi
shr eax, 0x18
add edx, eax
mov dword [ecx + 0x800], edx
add ecx, 4
cmp ecx, 0x492bf0
jl 0x43c9b0
pop edi
mov dword [0x48fd60], 0
pop ebx
ret
mov eax, dword [0x48fd60]
test eax, eax
jne 0x43cac0
ret
Function at 0x43fbb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x494bc0], ecx
inc edx
cmp edx, 0x100
jb 0x43fbb2
ret

Function at 0x43fc60
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x43fc8a
push esi
jmp 0x43fc70
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x494bc0]
inc edx
dec ecx
jne 0x43fc70
pop esi
ret
Function at 0x442950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x442972
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x4429a0
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4429a0
inc edi
cmp edi, edx
jb 0x442991
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x442aa7
cmp eax, 3
jbe 0x4429d7
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x442a14
cmp al, 0xff
je 0x442a14
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x442985
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x4429bb
movzx eax, byte [esi + 0x4761d8]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x4761d0], 0
mov al, byte [ecx + 4]
je 0x442a00
test al, al
je 0x442a00
cmp al, 0xff
jne 0x4429bb
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x442985
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x442a77
movzx edx, byte [esi + 0x4761d8]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x442a5e
cmp cl, 0xff
jne 0x442a74
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x442a32
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x442985
cmp eax, 3
jbe 0x442abc
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4448e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467df8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x48d1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x444921
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.0040a9a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
push ecx
mov edi, 1
call fcn.00445920
push 0x477604
lea ecx, [ebp - 0x4c]
mov edi, eax
call fcn.00401f10
or ebx, 0xffffffff
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x444a35
push edi
xor ecx, ecx
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x2c]
call fcn.00445710
mov ebx, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], ebx
jb 0x44498a
mov edx, dword [eax]
jmp 0x44498c
mov edx, eax
test edx, edx
jne 0x444994
xor eax, eax
jmp 0x4449af
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4449a0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x4c]
call fcn.00401e10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], ebx
jb 0x4449ce
mov edx, dword [ebp - 0x48]
push edx
call fcn.00448ed0
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x444a1d
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x50]
push edx
mov ebx, 0x4776cc
call fcn.0040a210
mov eax, dword [eax]
add esp, 8
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x444a1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0x80
push 2
push 0
push 5
push 2
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x444a58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x18], 8
jb 0x444a6a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00448ed0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448edb
mov esp, ebp
pop ebp
ret
Function at 0x4451e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea ecx, [ebp - 4]
push ecx
lea esi, [eax + 0x48]
mov eax, dword [eax + 0x3c]
lea edx, [ebp - 8]
push edx
push esi
push 0x20000013
push eax
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
mov dword [esi], 0x194
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, dword [esi]
cmp esi, 0xc8
je 0x44522f
cmp esi, 0x130
je 0x44522f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x445240
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467b78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x48d1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x445290
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a9a0
mov edx, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004447f0
test al, al
sete byte [ebp - 0x2d]
cmp dword [ebp - 0x18], 8
jb 0x4452d1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00448ed0
add esp, 4
cmp byte [ebp - 0x2d], 0
jne 0x44531e
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x34]
push ecx
mov dword [edi + 0x40], eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edx, dword [ebp - 0x34]
and dl, 4
sub dl, 4
movzx eax, dl
push 0
neg eax
push 0
sbb eax, eax
push 0
and eax, 4
push eax
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 0x38], eax
test eax, eax
jne 0x445322
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x4c], eax
xor al, al
jmp 0x445329
call fcn.00445350
mov al, 1
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.00448edb
mov esp, ebp
pop ebp
ret 8
Function at 0x4453f0
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
xor esi, esi
push 0x20000013
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 8
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x44547a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
cmp ecx, 0xc8
jne 0x44543a
cmp eax, esi
je 0x445446
cmp ecx, 0x12e
jne 0x44547a
cmp eax, esi
jne 0x44547a
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x20000005
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 8
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x44547a
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447a50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48d1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [edx]
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 0x206
mov dword [ebp - 0x214], eax
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x210], ecx
mov word [ebp - 0x20c], dx
call fcn.0044c960
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
mov ebx, dword [ebx]
mov edi, dword [edi]
add esp, 0xc
push esi
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
lea eax, [ebp - 0x20c]
lea ecx, [eax + 2]
jmp 0x447ad0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x447ad0
sub eax, ecx
mov ecx, dword [ebp - 0x210]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00401e10
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448edb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x447b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c098
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x48d1d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
lea ebx, [esi + 4]
push ecx
mov dword [esp + 0x30], 0
call fcn.0040a160
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00404cd0
xor bl, bl
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x447b9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004018a0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
call fcn.00403ca0
add esp, 4
push eax
mov byte [esp + 0x30], bl
call fcn.00403e50
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x447bf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448edb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d1d0]
jne 0x448ee5
repz ret
jmp fcn.00450eb1
Function at 0x45bd98
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48d1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00453ad0
and dword [ebp - 0x14], 0
cmp dword [0x4912f0], 0
mov dword [ebp - 0x18], eax
jne 0x45be4b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45bef3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x475bcc
push ebx
call edi
test eax, eax
je 0x45bef3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4912f0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4912f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4912f8], eax
call edi
push eax
call esi
mov dword [0x491300], eax
test eax, eax
je 0x45be4b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4912fc], eax
mov eax, dword [0x4912fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45bea4
cmp dword [0x491300], ecx
je 0x45bea4
push eax
call esi
push dword [0x491300]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45bea4
test ebx, ebx
je 0x45bea4
call edi
test eax, eax
je 0x45be9b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45be9b
test byte [ebp - 8], 1
jne 0x45bea4
or dword [ebp + 0x10], 0x200000
jmp 0x45bed7
mov eax, dword [0x4912f4]
cmp eax, dword [ebp - 0x18]
je 0x45bed7
push eax
call esi
test eax, eax
je 0x45bed7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45bed7
mov eax, dword [0x4912f8]
cmp eax, dword [ebp - 0x18]
je 0x45bed7
push eax
call esi
test eax, eax
je 0x45bed7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4912f0]
call esi
test eax, eax
je 0x45bef3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45bef5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448edb
leave
ret
Function at 0x1002c23a
Capabilities:
Terminate process

Disassembly:
jmp 0x10049306
jmp fcn.10053626
cmp ecx, dword [0x100952e0]
jne 0x10049310
repz ret
jmp 0x1002c87a
Function at 0x1002d487
Capabilities:
Terminate process

Disassembly:
jmp 0x10050401
mov edi, edi
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.1002d6fd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x1002d8ec
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x1004f3e7
push 8
push 0x10091760
call fcn.1002d338
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x1004f475
call fcn.1002c22b
test eax, eax
jne 0x1004f40b
xor eax, eax
jmp 0x1004f543
call fcn.1002ce29
test eax, eax
jne 0x1004f41b
call fcn.1002ca28
jmp 0x1004f404
call fcn.1002d324
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10099410], eax
call fcn.1002c064
mov dword [0x10096e94], eax
call fcn.1002d225
test eax, eax
jns 0x1004f445
call fcn.1002cde8
jmp 0x1004f414
call fcn.1002c12c
test eax, eax
js 0x1004f46e
call fcn.1002d99b
test eax, eax
js 0x1004f46e
push 0
call fcn.1002d941
pop ecx
test eax, eax
jne 0x1004f46e
inc dword [0x10096e90]
jmp 0x1004f540
call fcn.1002cbea
jmp 0x1004f43e
xor edi, edi
cmp eax, edi
jne 0x1004f4d6
cmp dword [0x10096e90], edi
jle 0x1004f404
dec dword [0x10096e90]
mov dword [ebp - 4], edi
cmp dword [0x10096ef0], edi
jne 0x1004f499
call fcn.1002c686
cmp dword [ebp + 0x10], edi
jne 0x1004f4ad
call fcn.1002cbea
call fcn.1002cde8
call fcn.1002ca28
mov dword [ebp - 4], 0xfffffffe
call fcn.1004f4c0
jmp 0x1004f540
cmp eax, 2
jne 0x1004f534
call fcn.1002c168
push 0x214
push 1
call fcn.1002c0b4
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x1004f404
push esi
push dword [0x100957fc]
push dword [0x100976ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
call eax
test eax, eax
je 0x1004f528
push edi
push esi
call fcn.1002d73e
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x1004f540
push esi
call fcn.1002d8bf
pop ecx
jmp 0x1004f404
cmp eax, 3
jne 0x1004f540
push edi
call fcn.1002c992
pop ecx
xor eax, eax
inc eax
call fcn.1002d17b
ret 0xc
Function at 0x1001bdc
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.01001beb
jmp fcn.01001b4b

Function at 0x418a05
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x418a05
lcall 0x5de5, 0x8b10c483
jmp loc.007e05c0

Function at 0x11685
Capabilities:
Create device object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x11634]
test eax, eax
mov ecx, 0xbb40
je 0x1169c
cmp eax, ecx
jne 0x116bf
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x11634
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x11634], eax
jne 0x116bf
mov eax, ecx
mov dword [0x11634], eax
not eax
mov dword [0x11630], eax
pop ebp
jmp 0x10890