joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421c2a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43e064]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x421c75
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00421dc9
test al, al
jne 0x421c6f
sub edx, 2
cmp edx, edi
jne 0x421c55
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x421c97
lea eax, [edi + 2]
cmp edx, eax
je 0x421c97
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00421b76
add esp, 0x10
jmp 0x421d91
push esi
lea ecx, [ebp - 0x255]
call fcn.00421dc9
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x421cda
push dword [ebp - 0x25c]
jmp 0x421c87
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x421d17
cmp word [ebp - 0x226], 0
je 0x421d38
cmp word [ebp - 0x226], ax
jne 0x421d17
cmp word [ebp - 0x224], 0
je 0x421d38
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00421b76
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x421d84
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x421cf1
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x421d6c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x421d91
push 0x4219a6
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00428510
add esp, 0x10
jmp 0x421d61
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c311
leave
ret
Function at 0x4292f5
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.00429271
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42946d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42946d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42941c
jg 0x42934e
test eax, eax
je 0x429412
push 1
push 0x1000
call fcn.0041a560
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x429374
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x429409
push 0x8000
push ebx
call fcn.00417bcb
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 0x4293a0
jg 0x42939b
cmp ecx, 0x1000
jb 0x4293a0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041c29c
add esp, 0x10
cmp eax, 0xffffffff
je 0x4293e5
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 0x42939b
jl 0x4293cc
test ecx, ecx
jne 0x42938d
push dword [ebp - 0xc]
push ebx
call fcn.00417bcb
push esi
call fcn.0041a5bd
add esp, 0xc
xor edi, edi
jmp 0x42947e
cmp byte [edi + 0x24], 0
je 0x4293fc
cmp dword [edi + 0x20], 5
jne 0x4293fc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x429407
mov edi, dword [edi + 0x18]
jmp 0x429409
xor edi, edi
push esi
call fcn.0041a5bd
pop ecx
jmp 0x42947e
test ecx, ecx
jg 0x4293de
jl 0x42941c
test eax, eax
jae 0x4293de
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ddb8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42943f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4293de
jmp 0x429476
push ebx
call fcn.00422b82
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4293de
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 0x42947e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42947b
mov edi, dword [edi + 0x18]
jmp 0x42947e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041ddb8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x429900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42992d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42992d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42af80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x3216343d
mov dword [ebp - 0xc], 0x151e39
mov dword [ebp - 8], 0x282a1205
mov word [ebp - 4], 0x3004
mov byte [ebp - 2], 0x7a
call fcn.0040b150
mov ecx, dword [0x48efa8]
mov edx, dword [eax]
call fcn.0042edb0
lea ecx, [ebp - 0x10]
mov dword [0x48efa0], eax
mov dword [ebp - 0x10], 0x3072339
mov dword [ebp - 0xc], 0x2922143f
mov dword [ebp - 8], 0x29391313
mov byte [ebp - 4], 0x77
call fcn.0040b070
mov ecx, dword [0x48efa8]
mov edx, dword [eax]
call fcn.0042edb0
movaps xmm0, xmmword [0x43b110]
lea ecx, [ebp - 0x14]
mov dword [0x48ef90], eax
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 4], 0x460c0927
call fcn.0040aea0
mov ecx, dword [0x48efa8]
mov edx, dword [eax]
call fcn.0042edb0
lea ecx, [ebp - 0x10]
mov dword [0x48ef98], eax
mov dword [ebp - 0x10], 0x1610382c
mov dword [ebp - 0xc], 0x1a103e
mov dword [ebp - 8], 0x2e371a0d
mov byte [ebp - 4], 0x77
call fcn.0040b070
mov ecx, dword [0x48efa8]
mov edx, dword [eax]
call fcn.0042edb0
movaps xmm0, xmmword [0x43b100]
lea ecx, [ebp - 0x14]
mov dword [0x48ef88], eax
movups xmmword [ebp - 0x14], xmm0
mov word [ebp - 4], 0x3d27
mov byte [ebp - 2], 0x78
call fcn.0040add0
mov ecx, dword [0x48efa8]
mov edx, dword [eax]
call fcn.0042edb0
movaps xmm0, xmmword [0x43b120]
lea ecx, [ebp - 0x14]
mov dword [0x48ef84], eax
movups xmmword [ebp - 0x14], xmm0
mov byte [ebp - 4], 0x42
call fcn.004014e0
mov ecx, dword [0x48efa8]
mov edx, dword [eax]
call fcn.0042edb0
lea ecx, [ebp - 0x10]
mov dword [0x48ef80], eax
mov dword [ebp - 0x10], 0x3072339
mov dword [ebp - 0xc], 0x3326143f
mov dword [ebp - 8], 0x3e3d150e
mov word [ebp - 4], 0x1404
mov byte [ebp - 2], 0x7a
call fcn.0040b150
mov ecx, dword [0x48efa8]
mov edx, dword [eax]
call fcn.0042edb0
lea ecx, [ebp - 8]
mov dword [0x48ef8c], eax
mov dword [ebp - 8], 0x7073d29
mov word [ebp - 4], 0x713b
call fcn.0040acd0
mov ecx, dword [0x48efa8]
mov edx, dword [eax]
call fcn.0042edb0
mov dword [0x48ef94], eax
mov dword [ebp - 0x10], 0x6033e36
mov dword [ebp - 0xc], 0x33141807
mov dword [ebp - 8], 0x1a210400
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x77
call fcn.0040b070
mov ecx, dword [0x48efa8]
mov edx, dword [eax]
call fcn.0042edb0
lea ecx, [ebp - 0x10]
mov dword [0x48efac], eax
mov dword [ebp - 0x10], 0x6033e36
mov dword [ebp - 0xc], 0x33141807
mov dword [ebp - 8], 0xc210400
mov byte [ebp - 4], 0x77
call fcn.0040b070
mov ecx, dword [0x48efa8]
mov edx, dword [eax]
call fcn.0042edb0
lea ecx, [ebp - 0xc]
mov dword [0x48ef9c], eax
mov dword [ebp - 0xc], 0x110d3d39
mov dword [ebp - 8], 0x2f17392e
mov dword [ebp - 4], 0x4d3d1a05
call fcn.00404000
mov esp, ebp
pop ebp
ret
Function at 0x42edb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x42ee32
test ebx, ebx
je 0x42ee32
mov eax, dword [edi + 0x3c]
xor esi, esi
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 0x10], ecx
add edx, edi
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x42ee32
mov eax, dword [edx + esi*4]
mov ecx, ebx
add eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42ee20
test dl, dl
je 0x42ee1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42ee20
add eax, 2
add ecx, 2
test dl, dl
jne 0x42ee00
xor eax, eax
jmp 0x42ee25
sbb eax, eax
or eax, 1
test eax, eax
je 0x42ee3b
mov edx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 4]
jb 0x42edf2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ee60
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0x14
mov esi, dword [edi]
cmp esi, edi
je 0x42ee8d
push ebx
push dword [esi + 0x20]
call fcn.0040d99e
add esp, 8
test eax, eax
jne 0x42ee93
mov esi, dword [esi]
cmp esi, edi
jne 0x42ee77
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
ret
Function at 0x402eb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79f888
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x634], edi
lea eax, [edi + 8]
mov dword [edi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x638], edi
jb 0x402f0a
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], ecx
cmp dword [edi + 0x34], 8
jb 0x402f27
mov eax, dword [edi + 0x20]
jmp 0x402f2a
lea eax, [edi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x402f44
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x402f5e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push ecx
mov byte [ebp - 4], 3
call fcn.00759463
push eax
call fcn.00759643
push 0x20c
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.007512b0
add esp, 0x14
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x403011
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x630]
push eax
call fcn.007512b0
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x403002
test eax, eax
je 0x403002
add eax, eax
cmp eax, 0x412
jae 0x402ffd
xor ecx, ecx
mov word [ebp + eax - 0x630], cx
lea eax, [ebp - 0x630]
jmp 0x403008
call fcn.006e6667
lea eax, [ebp - 0x21c]
push eax
lea ecx, [edi + 0x20]
call fcn.004027d0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40303d
cmp dword [edi + 0x34], 8
jb 0x403023
mov ecx, dword [edi + 0x20]
jmp 0x403026
lea ecx, [edi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40303d
push 1
push 0x8b5784
lea ecx, [edi + 0x20]
call fcn.00404470
cmp dword [edi + 0x30], 0
jne 0x403052
push 3
push 0x8b5788
lea ecx, [edi + 0x20]
call fcn.00402820
mov dword [edi + 4], 0
mov eax, edi
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.006e615c
mov esp, ebp
pop ebp
ret
Function at 0x406150
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79fbc3
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x8cf144]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], 0
call fcn.007512b0
lea eax, [ebx + 0x50]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4061d0
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push edi
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.006ebdaa
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x40621b
mov eax, dword [esi]
jmp 0x40621d
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x810], cx
je 0x406243
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406234
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00402820
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 1
jb 0x40626d
mov eax, dword [esi]
jmp 0x40626f
mov eax, esi
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406297
test dx, dx
je 0x406293
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406297
add eax, 4
add ecx, 4
test dx, dx
jne 0x406271
xor eax, eax
jmp 0x40629c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406319
push edi
push dword [ebp - 0x82c]
lea eax, [ebp - 0x828]
mov ecx, ebx
push dword [ebp - 0x830]
push eax
call fcn.00405fa0
mov edi, eax
cmp esi, edi
je 0x4062fb
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4062d4
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00402920
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4062ec
mov eax, dword [esi]
jmp 0x4062ee
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00404400
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jb 0x406319
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.00402920
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.006e615c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.006efa11
mov al, byte [0x8d1670]
test al, al
jne 0x4073f8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.007512b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4073f3
lea eax, [ebp - 0x20c]
push eax
call fcn.0075bf65
lea eax, [ebp - 0x20c]
push str.config_systemprofile
push eax
call fcn.00750665
add esp, 0xc
test eax, eax
jne 0x4073de
lea eax, [ebp - 0x20c]
push str.cocuments_and_settingslocalService
push eax
call fcn.00750665
add esp, 8
test eax, eax
je 0x4073f3
mov al, 1
mov byte [0x8d1670], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret
mov al, byte [0x8d1670]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret
Function at 0x40f9c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x8d1680], ecx
inc eax
cmp eax, 0x100
jb 0x40f9c2
cmp eax, 0x800
jae 0x40fa93
nop
mov edx, dword [eax*4 + str.._AV__basic_filebuf_DU__char_traits_D_std___std__]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x8d1680]
mov dword [eax*4 + 0x8d1680], edx
inc eax
cmp eax, 0x800
jb 0x40fa70
mov dword [0x8d3680], 0x40ada0
call fcn.0040fe90
mov ecx, dword [0x8d3680]
test eax, eax
mov edx, 0x40ae40
cmove ecx, edx
mov dword [0x8d3680], ecx
ret
Function at 0x410dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x410de0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp + 0xc], edx
add esi, ebx
mov dword [ebp - 4], esi
cmp esi, edx
jae 0x410e12
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x410e0f
inc esi
cmp esi, edx
jb 0x410e00
mov dword [ebp - 4], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x410f37
cmp ecx, 3
jbe 0x410e2c
xor eax, eax
jmp 0x410e6a
dec ecx
shl eax, cl
and eax, 7
je 0x410e6a
movzx ecx, byte [eax + 0x7bb4f8]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x7bb4f0], 0
mov cl, byte [edx + 4]
je 0x410e54
test cl, cl
je 0x410e54
cmp cl, 0xff
jne 0x410e67
mov edx, dword [ebp + 0xc]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x410df4
mov edx, dword [ebp + 0xc]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x410e8c
cmp cl, 0xff
je 0x410e8c
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x410df4
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
nop dword [eax]
cmp dword [ebp + 0x18], 0
je 0x410ebd
lea edx, [edi + ebx]
add edx, esi
jmp 0x410ec3
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x410f01
movzx edi, byte [eax + 0x7bb4f8]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x410eed
cmp cl, 0xff
jne 0x410f01
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x410eb0
mov esi, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp + 0xc]
shr ecx, 8
add ebx, 5
mov byte [esi + 2], cl
mov esi, dword [ebp + 8]
jmp 0x410df4
pop edi
pop esi
cmp ecx, 3
jbe 0x410f4c
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411960
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.006f3cdd
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, esi
call fcn.006fb56f
pop esi
ret

Function at 0x411ad0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push edi
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
cdq
xor ecx, ebp
sub eax, edx
sar eax, 1
mov dword [ebx], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
pop edi
mov dword [ebx + 4], eax
pop ebx
call fcn.006e615c
mov esp, ebp
pop ebp
ret 4

Function at 0x413b50
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a07ce
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x8cf144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00413310
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call fcn.00413310
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.00413310
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 2
call fcn.00413310
mov dword [esi + 0x20], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov eax, esi
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], vtable.VectorParameter_struct_SInstallItem__.0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret