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

Disassembly:
push 0xffffffffffffffff
push 0x100a3fe7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.10092186
mov dword [esi], method.CEdit.virtual_0
mov eax, dword [0x1025e428]
lea edi, [esi + 0x44]
mov dword [edi], eax
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa8], 0x102422dc
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xb8], 0x102422d0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c], 4
push ecx
mov ecx, edi
mov dword [esi], method.CEdit.virtual_0
call fcn.10090c5c
mov edx, dword [esp + 0x34]
mov dword [esi + 0x48], ebx
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
xor ecx, ecx
cmp ebx, 1
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x40], eax
setne cl
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x60], edx
mov edx, ecx
mov dword [esi + 0x64], ebx
lea eax, [esi + 0x50]
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [edx + 8]
mov dword [eax + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [esi + 0x68], 0
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
or eax, 0x50801084
push ebx
push ecx
push eax
mov ecx, esi
call fcn.1009989b
test eax, eax
je 0x1007ca2d
mov eax, dword [ebx + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push eax
call ebx
push eax
call fcn.10097a60
test eax, eax
je 0x1007c955
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x1c]
push 1
push eax
push 0x30
push ecx
call ebx
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call fcn.1009509f
mov ecx, esi
call fcn.100951da
mov ebp, dword [esp + 0x40]
lea eax, [ebp - 1]
cmp eax, 0x27
ja case.0x1007c987.4
xor ecx, ecx
mov cl, byte [eax + 0x1007ca68]
jmp dword [ecx*4 + 0x1007ca58]
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xffffffffffffffff
push ecx
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
jmp 0x1007ca2b
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esi + 0x1c]
push 0xb1
push ecx
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push edx
jmp 0x1007ca16
mov eax, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call ebx
push 0
push 0
push 0xb7
jmp 0x1007ca27
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebx
push 0
push ebp
mov dword [esi + 0x68], 1
push 0x102
mov ecx, dword [esi + 0x1c]
push ecx
call ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10090b6f
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x10092f7c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10092fb4
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.10090fca
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10090fa2
jmp 0x10092fc0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100947f2
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 0x10094834
call fcn.1009ad22
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10094834
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1009482b
xor eax, eax
jmp 0x1009483c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10094842
pop edi
pop esi
pop ebx
ret 4
Function at 0x4092d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4092e5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409324
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x409320
lea ebx, [ebx]
cmp esi, edx
jae 0x409324
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x409310
cmp esi, edx
jb 0x409329
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40abf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ac61
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40ac2f
cmp eax, 2
jne 0x40ac4b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40ac5b
test ecx, ecx
je 0x40ac56
test cl, 1
jne 0x40ac4b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40ac5b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40adc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd8e0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x515e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 1
mov eax, dword [eax]
push 1
push ecx
sub eax, 0x10
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call fcn.00404f90
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
push str.IEProfiles
mov dword [ebp - 4], 0
call fcn.00401c40
mov dword [ebp - 4], 0xffffffff
call fcn.0040af20
add esp, 0x10
mov bl, al
push 1
call fcn.0040aab0
push eax
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.TotalProfiles
call fcn.00401c40
push ecx
mov ecx, esp
push 0x4d33bc
mov dword [ebp - 4], 1
call fcn.00401c40
mov dword [ebp - 4], 0xffffffff
call fcn.0040af20
mov esi, dword [0x517280]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0xd
idiv ecx
add esp, 0x10
cmp edx, 5
jne 0x40af03
xor edi, edi
mov ecx, edi
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
sar ecx, 1
not eax
and eax, esi
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, esi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
sar ecx, 1
not eax
and eax, esi
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, esi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
sar ecx, 1
not eax
and eax, esi
xor eax, ecx
mov edx, eax
and edx, 1
dec edx
not edx
and edx, esi
sar eax, 1
xor edx, eax
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
sar edx, 1
xor ecx, edx
inc edi
add esi, ecx
cmp edi, 0x100
jl 0x40ae80
mov dword [0x517280], esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40b535
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x40b540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b540
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x410870
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb84
mov eax, dword [0x515e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x517280]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb7c], eax
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x18
idiv ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xb80], ebx
mov dword [ebp - 0xb6c], esi
cmp edx, 0xa
jne 0x4108c1
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
push ebx
call fcn.00410ae0
add esp, 4
cmp dword [ebp + 8], 0
mov dword [ebp - 0xb70], eax
je 0x410a4a
test esi, esi
je 0x410a4a
cmp eax, dword [ebp + 0x14]
ja 0x410a4a
mov ecx, dword [0x517280]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0xe
idiv ecx
push edi
cmp edx, 5
jne 0x41096d
xor edx, edx
mov dword [ebp - 0xb74], edx
lea edi, [ebp - 0xb64]
mov eax, dword [0x517280]
xor ebx, ebx
lea esp, [esp]
inc ebx
cdq
xor ecx, ecx
idiv ebx
mov dword [ebp - 0xb84], ebx
mov dword [ebp - 0xb78], edx
lea esi, [ecx + 1]
mov ecx, esi
cmp ecx, 0xd
jl 0x410932
mov ebx, dword [ebp - 0xb84]
mov eax, dword [0x517280]
add edi, 0xd
cmp ebx, 0x10
jl 0x410920
mov edx, dword [ebp - 0xb74]
inc edx
mov dword [ebp - 0xb74], edx
cmp edx, 0xe
jl 0x410915
mov ebx, dword [ebp - 0xb80]
mov esi, dword [ebp - 0xb6c]
xor ecx, ecx
test ebx, ebx
je 0x4109f5
mov eax, dword [ebp + 8]
cmp ecx, ebx
jae 0x410985
movzx edx, byte [ecx + eax]
inc ecx
jmp 0x410987
xor edx, edx
cmp ecx, ebx
jae 0x410992
movzx edi, byte [ecx + eax]
inc ecx
jmp 0x410994
xor edi, edi
cmp ecx, ebx
jae 0x41099f
movzx eax, byte [ecx + eax]
inc ecx
jmp 0x4109a1
xor eax, eax
shl edx, 8
add edx, edi
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
add esi, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 4], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 3], al
mov eax, edx
shr eax, 6
and eax, 0x3f
and edx, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 2], al
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 1], al
cmp ecx, ebx
jb 0x410977
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
xor ecx, ecx
lea eax, [edx + edx*2]
mov edx, dword [ebp - 0xb70]
sub ebx, eax
pop edi
cmp dword [ebx*4 + 0x4d39c0], ecx
jle 0x410a30
mov eax, dword [ebp - 0xb6c]
dec eax
add eax, edx
mov edi, edi
mov byte [eax], 0x3d
inc ecx
lea eax, [eax - 1]
cmp ecx, dword [ebx*4 + 0x4d39c0]
jl 0x410a20
mov eax, dword [ebp - 0xb7c]
pop esi
mov dword [eax], edx
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049e294
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0049e294
mov esp, ebp
pop ebp
ret
Function at 0x411150
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be521
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x515e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov dword [ebp - 4], 0
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
call fcn.00415a70
test al, al
jne 0x4111c2
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea eax, [ebp - 0x14]
push eax
call fcn.0040c3d0
add esp, 4
mov dword [ebp - 4], 1
call fcn.0041f310
test al, al
jne 0x411240
movd xmm4, dword [0x517280]
movsd xmm3, qword [0x4d39b0]
movsd xmm6, qword [0x4d39b8]
movsd xmm5, qword [0x4d39a8]
xorps xmm2, xmm2
cvtdq2pd xmm4, xmm4
jmp 0x411210
addsd xmm2, xmm3
movapd xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x41122a
subsd xmm2, xmm3
divsd xmm3, xmm6
movapd xmm1, xmm2
mulsd xmm1, xmm2
movapd xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmm5
ja 0x411210
push str._L_bgver_s
lea ecx, [ebp - 0x10]
call fcn.00401c40
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.00447d60
push dword [ebp - 0x14]
mov byte [ebp - 4], 3
push dword [eax]
push ebx
call fcn.00405280
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or esi, 0xffffffff
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x411293
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4112b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4112d1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4116c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be641
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x515e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov dword [ebp - 4], 0
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x517280]
imul eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
and eax, 0x8000000f
jns 0x41172c
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xb
jne 0x411747
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x517280], edx
lea eax, [ebp - 0x10]
push eax
call fcn.0042c530
push dword [ebp - 0x10]
mov dword [ebp - 4], 1
push str.chromever_s
push esi
call fcn.00405280
add esp, 0x10
call fcn.00415960
test al, al
jne 0x411781
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4117a2
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be959
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x515e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov dword [ebp - 4], 0
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call fcn.00416710
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 1
call fcn.00448200
add esp, 0xc
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4128e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
push str.zdata_s
push edi
call fcn.00405280
mov esi, dword [0x517280]
add esp, 0xc
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0xf
jne 0x4129a3
xor edx, edx
nop
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x412920
mov dword [0x517280], esi
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4129c1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418d20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x515e20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 8], ax
push edi
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x5f005f
mov dword [ebp - 0x44], 0x520043
mov dword [ebp - 0x40], 0x40005f
mov dword [ebp - 0x3c], 0x410046
mov dword [ebp - 0x38], 0x4c0049
mov dword [ebp - 0x34], 0x440045
mov dword [ebp - 0x30], 0x44005f
mov dword [ebp - 0x2c], 0x57004f
mov dword [ebp - 0x28], 0x4c004e
mov dword [ebp - 0x24], 0x41004f
mov dword [ebp - 0x20], 0x5f0044
mov dword [ebp - 0x1c], 0x450052
mov dword [ebp - 0x18], 0x440041
mov dword [ebp - 0x14], 0x5f0040
mov dword [ebp - 0x10], 0x520043
mov dword [ebp - 0xc], 0x5f005f
call fcn.00401c40
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049e294
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418eab
test al, 0x10
je 0x418eab
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x418fb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
mov eax, dword [0x515e20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call fcn.004199f0
test al, al
jne 0x418ff7
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x517280]
mov edx, 7
test eax, eax
cmove ecx, edx
mov dword [0x517280], ecx
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1f0], ebx
cmp ebx, 0xffffffff
jne 0x4190a1
call fcn.00419ac0
test al, al
jne 0x41908e
mov ecx, dword [0x517280]
test ecx, ecx
je 0x41908e
mov eax, ecx
and eax, 0x80000001
jns 0x41903f
dec eax
or eax, 0xfffffffe
inc eax
jne 0x41904c
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x419053
lea ecx, [ecx*2 + 1]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
lea eax, [eax + eax*2]
sub edx, eax
mov dword [0x517280], ecx
sub edx, 0
je 0x41907d
sub edx, 2
je 0x419080
dec edx
je 0x419081
jmp 0x41908a
add ecx, 2
inc ecx
add ecx, 2
mov dword [0x517280], ecx
test ecx, ecx
jne 0x419031
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049e294
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
call fcn.00419ac0
test al, al
jne 0x4190cd
mov ebx, dword [0x517280]
xor esi, esi
mov edi, ebx
nop
inc esi
dec edi
cmp esi, 0x7a
jb 0x4190c0
mov ebx, dword [ebp - 0x1f0]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.00419b70
test al, al
jne 0x419109
mov eax, dword [0x517280]
mov ecx, eax
sub ecx, 0
je 0x4190ff
dec ecx
je 0x4190f3
inc eax
mov dword [0x517280], eax
jmp 0x419109
mov dword [0x517280], 0
jmp 0x419109
mov dword [0x517280], 2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0049e294
mov esp, ebp
pop ebp
ret
Function at 0x4192d0
Capabilities:
Get file size
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00419a70
mov ebx, 4
test al, al
jne 0x419320
mov esi, dword [0x517280]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x63]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049d210
push eax
call fcn.0049ee63
add esp, 8
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x419419
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4193b7
cmp eax, dword [ebp + 0x10]
ja 0x4193b7
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4193a3
call fcn.00419a50
test al, al
jne 0x419419
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x517280]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 5
idiv ecx
cmp edx, ebx
jne 0x419419
mov eax, dword [str.TehHww]
mov dword [ebp - 0xc], eax
mov ax, word [0x4d407c]
mov word [ebp - 8], ax
mov al, byte [0x4d407e]
mov byte [ebp - 6], al
lea eax, [ebp - 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4193f6
xor ecx, ecx
sub eax, edx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049d210
push eax
call fcn.0049ee63
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4198a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf898
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x515e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [eax]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4198f4
xor bl, bl
jmp 0x419959
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x41992a
push 0
lea ecx, [ebp + 0xc]
call fcn.00406d00
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 8]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41997d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret