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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], esi
push edi
test ecx, ecx
jl 0x40b208
mov eax, dword [ebp + 0x10]
jg 0x40b1f1
test eax, eax
jb 0x40b208
push 0
push ecx
push eax
push dword [ebx + 4]
call fcn.00411db2
add esp, 0x10
test eax, eax
jne 0x40b345
cmp byte [esi], 0
je 0x40b345
cmp byte [esi + 1], 0
je 0x40b345
cmp byte [esi + 2], 0
je 0x40b345
cmp byte [esi + 3], 0
je 0x40b345
mov al, byte [esi + 4]
cmp al, 0x30
jl 0x40b345
push dword [ebx + 4]
movsx eax, al
sub eax, 0x30
push 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0041198e
add esp, 0x10
cmp eax, 8
jne 0x40b345
nop
movzx esi, byte [ebp - 0x14]
xor edi, edi
movzx eax, byte [ebp - 0x13]
mov edx, 8
shl esi, 8
or esi, eax
mov dword [ebp - 0x18], edx
movzx eax, byte [ebp - 0x12]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 0x11]
shl esi, 8
or esi, eax
cmp esi, 1
jne 0x40b2f2
push dword [ebx + 4]
lea eax, [ebp - 0xc]
push edx
push esi
push eax
call fcn.0041198e
add esp, 0x10
cmp eax, 8
jne 0x40b345
movzx edi, byte [ebp - 0xc]
xor esi, esi
movzx eax, byte [ebp - 0xb]
mov edx, 0x10
movzx ecx, byte [ebp - 8]
shl edi, 8
or edi, eax
shl ecx, 8
movzx eax, byte [ebp - 0xa]
shl edi, 8
or edi, eax
mov dword [ebp - 0x18], edx
movzx eax, byte [ebp - 9]
shl edi, 8
or edi, eax
movzx eax, byte [ebp - 7]
or ecx, eax
movzx eax, byte [ebp - 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 5]
shl ecx, 8
or ecx, eax
or esi, ecx
test edi, edi
jl 0x40b345
jg 0x40b2fc
cmp esi, edx
jb 0x40b345
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
cmp eax, dword [edx]
mov edx, dword [ebp - 0x18]
jne 0x40b311
sub dword [ebp - 0x20], 1
js 0x40b376
sub esi, edx
push 1
sbb edi, 0
push edi
push esi
push dword [ebx + 4]
call fcn.00411db2
add esp, 0x10
test eax, eax
jne 0x40b345
push dword [ebx + 4]
lea eax, [ebp - 0x14]
push 8
push 1
push eax
call fcn.0041198e
add esp, 0x10
cmp eax, 8
je 0x40b260
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cda1
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ecx + 5], 0
jne 0x40b3b0
push dword [ebx + 4]
call fcn.00411774
mov ecx, dword [ebp - 0x1c]
add esp, 4
sub esi, dword [ebp - 0x18]
sbb edi, 0
mov dword [ecx], eax
mov eax, ecx
mov dword [ecx + 4], edx
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cda1
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x1c]
lea eax, [ecx + 6]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push esi
mov ecx, ebx
call fcn.0040b1c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cda1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov eax, ecx
lea ecx, [ebp - 0x18]
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push ecx
mov ecx, eax
call fcn.0040b1c0
cmp dword [ebp - 0x14], 0
jl 0x40b498
jg 0x40b418
cmp dword [ebp - 0x18], 0
jb 0x40b498
cmp dword [ebp - 0xc], 0
jg 0x40b498
mov ebx, dword [ebp - 0x10]
jl 0x40b42b
cmp ebx, 0x4000000
ja 0x40b498
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 4]
mov ecx, esi
mov edx, dword [edi]
sub ecx, edx
cmp ebx, ecx
jae 0x40b440
lea esi, [edx + ebx]
jmp 0x40b469
jbe 0x40b46c
mov eax, dword [edi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x40b459
push ecx
push ebx
mov ecx, edi
call fcn.00402610
mov esi, dword [edi + 4]
jmp 0x40b46c
sub ebx, ecx
push ebx
push 0
push esi
call fcn.0040e700
add esp, 0xc
add esi, ebx
mov dword [edi + 4], esi
mov eax, dword [edi]
cmp eax, esi
je 0x40b48a
mov ecx, dword [ebp - 4]
sub esi, eax
push dword [ecx + 4]
push esi
push 1
push eax
call fcn.0041198e
add esp, 0x10
cmp eax, esi
jne 0x40b498
mov eax, dword [edi + 4]
sub eax, dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40b4b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
mov edi, dword [ebp + 0x14]
sar eax, 3
cmp edx, eax
jb 0x40b4dd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
lea ebx, [edx*4]
mov dword [ebp - 8], ebx
mov eax, dword [eax]
test edi, edi
je 0x40b5a6
mov ebx, dword [eax + ebx]
mov esi, dword [edi + 4]
mov eax, esi
sub eax, dword [edi]
mov dword [ebp + 0x14], eax
cmp ebx, eax
jae 0x40b509
mov esi, dword [edi]
jmp 0x40b53f
jbe 0x40b544
mov eax, dword [edi + 8]
mov ecx, dword [edi]
sub eax, ecx
cmp ebx, eax
jbe 0x40b52a
push ecx
push ebx
mov ecx, edi
call fcn.00402610
mov esi, dword [edi + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
jmp 0x40b544
sub ebx, dword [ebp + 0x14]
push ebx
push 0
push esi
call fcn.0040e700
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov edx, dword [ebp + 8]
add esi, ebx
mov dword [edi + 4], esi
cmp dword [edi], esi
je 0x40b594
mov eax, dword [ecx]
mov ebx, dword [ebp - 4]
push 0
push dword [eax + edx*8 + 4]
push dword [eax + edx*8]
push dword [ebx + 4]
call fcn.00411db2
add esp, 0x10
test eax, eax
jne 0x40b594
mov eax, dword [ebp + 0x10]
push dword [ebx + 4]
mov ebx, dword [ebp - 8]
mov esi, dword [eax]
push dword [esi + ebx]
push 1
push dword [edi]
call fcn.0041198e
add esp, 0x10
cmp eax, dword [esi + ebx]
jne 0x40b594
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi]
mov ecx, eax
mov dword [edi + 4], eax
sub eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [eax + ebx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40bde0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, edx
mov dword [ebp - 4], ecx
or eax, 0xffffffff
xor edi, edi
test ebx, ebx
je 0x40bea3
push esi
nop dword [eax]
movzx edx, byte [edi + ecx]
mov ecx, eax
shl edx, 0x18
and ecx, 0xff000000
xor edx, ecx
shl eax, 8
mov esi, edx
inc edi
sar esi, 0x1f
and esi, 0x4c11db7
lea ecx, [edx + edx]
xor esi, ecx
mov edx, esi
sar edx, 0x1f
and edx, 0x4c11db7
lea ecx, [esi + esi]
xor edx, ecx
mov esi, edx
sar esi, 0x1f
and esi, 0x4c11db7
lea ecx, [edx + edx]
xor esi, ecx
mov edx, esi
sar edx, 0x1f
and edx, 0x4c11db7
lea ecx, [esi + esi]
xor edx, ecx
mov esi, edx
sar esi, 0x1f
and esi, 0x4c11db7
lea ecx, [edx + edx]
xor esi, ecx
mov edx, esi
sar edx, 0x1f
and edx, 0x4c11db7
lea ecx, [esi + esi]
xor edx, ecx
mov esi, edx
sar esi, 0x1f
and esi, 0x4c11db7
lea ecx, [edx + edx]
xor esi, ecx
mov edx, esi
sar edx, 0x1f
and edx, 0x4c11db7
lea ecx, [esi + esi]
xor edx, ecx
mov ecx, dword [ebp - 4]
xor eax, edx
cmp edi, ebx
jb 0x40be00
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411578
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00422930
mov eax, dword [0x435004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413fe2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4115ba
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x411716
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422880
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x436208]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00416e1d
mov ecx, dword [esi*4 + 0x436208]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41170f
cmp eax, dword [ecx + edi + 0x24]
jne 0x41170f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41170f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416e1d
add esp, 0x14
test edx, edx
jl 0x41170f
jg 0x411685
test eax, eax
jb 0x41170f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41170f
jl 0x41169f
cmp dword [ebp - 0x1008], eax
ja 0x41170f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4116bd
test ebx, ebx
je 0x4116f6
cmp ecx, edi
jae 0x4116f6
mov al, byte [ecx]
cmp al, 0xd
jne 0x4116d7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4116e3
cmp byte [ecx + 1], 0xa
jne 0x4116e3
inc ecx
jmp 0x4116e3
movzx eax, al
movsx eax, byte [eax + 0x4351f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4116bd
cmp edx, ebx
jne 0x4116bd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411714
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040cda1
leave
ret

Function at 0x414e68
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414ea7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414ea7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414ea7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x414ea7
cmp dword [ecx + 0x74], 0xe
jbe 0x414ea7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x416e99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x436208]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416ed9
cmp byte [ebx], 0xa
jne 0x416ed9
or byte [edi + eax + 0x28], 4
jmp 0x416ede
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x416fdd
mov dl, byte [eax]
cmp dl, 0x1a
je 0x416fc0
inc eax
cmp dl, 0xd
je 0x416f0a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x416f30
cmp eax, ecx
jae 0x416f3e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x416ef2
jmp 0x416fdd
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416fbb
cmp dword [ebp - 0x10], 0
je 0x416fbb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x436208]
test byte [eax + edi + 0x28], 0x48
je 0x416f95
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416f80
mov byte [esi], dl
jmp 0x416f91
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x436208]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416fdd
cmp byte [ebp - 1], 0xa
jne 0x416fa4
cmp esi, ebx
jne 0x416fa4
mov byte [esi], 0xa
jmp 0x416fdc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416e3b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416fdd
mov byte [esi], 0xd
jmp 0x416fdc
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x436208]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416fda
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416fdd
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416fe6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x436208]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41702c
cmp word [ebx], dx
jne 0x41702c
or byte [eax + edi + 0x28], 4
jmp 0x417031
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x417194
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x417174
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x417072
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4170a8
cmp eax, edx
jae 0x4170b6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41704d
jmp 0x417194
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41716f
cmp dword [ebp - 0x18], 0
je 0x41716f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x436208]
test byte [eax + edi + 0x28], 0x48
je 0x417145
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x417109
mov word [esi], cx
jmp 0x417140
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x436208]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x436208]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x436208]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x417194
pop eax
cmp word [ebp - 4], ax
jne 0x417155
cmp esi, ebx
jne 0x417155
mov word [esi], ax
jmp 0x417191
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416e3b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x417194
push 0xd
pop eax
jmp 0x417150
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x436208]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41718e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x417194
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417c4b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426324
push 0x42631c
push str.FlsAlloc
push 0x1f
call fcn.00417b29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417c7f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42411c]
call esi
jmp 0x417c85
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417cc9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426334
push 0x42632c
push str.FlsGetValue
push 0x21
call fcn.00417b29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417d00
push dword [ebp + 8]
mov ecx, esi
call dword [0x42411c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x417d08
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42633c
push 0x426334
push str.FlsSetValue
push 0x22
call fcn.00417b29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417d42
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42411c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41a8bf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x435004]
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 0x41a90a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041aa5a
test al, al
jne 0x41a904
sub edx, 2
cmp edx, edi
jne 0x41a8ea
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41a92c
lea eax, [edi + 2]
cmp edx, eax
je 0x41a92c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041a80b
add esp, 0x10
jmp 0x41aa26
push esi
lea ecx, [ebp - 0x255]
call fcn.0041aa5a
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 0x41a96f
push dword [ebp - 0x25c]
jmp 0x41a91c
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 0x41a9ac
cmp word [ebp - 0x226], 0
je 0x41a9cd
cmp word [ebp - 0x226], ax
jne 0x41a9ac
cmp word [ebp - 0x224], 0
je 0x41a9cd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041a80b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41aa19
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41a986
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41aa01
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41aa26
push 0x41a63b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041f4c0
add esp, 0x10
jmp 0x41a9f6
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.0040cda1
leave
ret

Function at 0x41b4e1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41b4f2
pop esi
ret
push ebx
push edi
push esi
call fcn.0041b4aa
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00418bdd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41b51a
push ebx
push esi
push edi
call fcn.0040fb60
add esp, 0xc
push 0
call fcn.00415d26
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41b8ea
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b52f
Function at 0x4200e5
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00420061
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x420254
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x420254
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x420209
jg 0x420141
test eax, eax
je 0x4201ff
push 1
push 0x1000
call fcn.004179b3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x420164
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4201f6
push 0x8000
push ebx
call fcn.00413f13
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42018d
jg 0x420188
cmp ecx, 0x1000
jb 0x42018d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004189c1
add esp, 0x10
cmp eax, 0xffffffff
je 0x4201d2
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 0x420188
jl 0x4201b9
test ecx, ecx
jne 0x42017a
push dword [ebp - 0xc]
push ebx
call fcn.00413f13
push esi
call fcn.00415d26
add esp, 0xc
xor ebx, ebx
jmp 0x420262
cmp byte [edi + 0x24], 0
je 0x4201e9
cmp dword [edi + 0x20], 5
jne 0x4201e9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4201f4
mov ebx, dword [edi + 0x18]
jmp 0x4201f6
xor ebx, ebx
push esi
call fcn.00415d26
pop ecx
jmp 0x420262
test ecx, ecx
jg 0x4201cb
jl 0x420209
test eax, eax
jae 0x4201cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416e3b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x420229
cmp byte [edi + 0x1c], 0
je 0x4201cb
jmp 0x42025a
push ebx
call fcn.0041a226
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4201cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x420262
cmp byte [edi + 0x1c], 0
je 0x42025f
mov ebx, dword [edi + 0x18]
jmp 0x420262
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00416e3b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417e10
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [esp + 8]
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x4c7aac], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [0x4c7aac]
push 0x10
add ecx, eax
mov dword [0x4c7aac], ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x417e4d
or dword [esi], 0x2000000
mov eax, esi
pop esi
ret

Function at 0x4261be
Capabilities:
Encode data using xor

Disassembly:
invalid
or esp, eax
imul edx, ebp, 0xb1526ab6
bound edi, qword [ecx + 8]
dec edx
ficomp dword [edx]
xchg dword [ebp + 0x67], ecx
xor eax, 0x4f98b321
xchg esp, eax
mov eax, dword [0x8be4ac32]
jne 0x42620f
and eax, 0x595377df
and eax, edx
and dword [ecx + 0x7e], ecx
cmp byte [0x540affa6], 0x4e
push es
js 0x42620b
pop ebp
add byte [ebx - 4], bh
inc esp
mov eax, dword [0x4625e76e]
pop ss
in al, dx
xchg ebp, eax
and byte [ebx - 0x5e], dh
cmpsb byte [esi], byte es:[edi]
add ebx, ebp
pushfd
ja 0x426179
ja 0x426211
jnp 0x42618b
fcom dword [esi]
push es
mov byte [ebp + 0x5b], dl
leave
mov bh, 0xbf
or dh, byte [ecx - 0x37bff070]
cdq
jae 0x4261d1
ror esp, 1
or esp, dword [edi - 0x1c4e5903]
mov esp, 0x3ba53774
xor byte [ecx], cl
invalid
xchg dword [ecx], esi
xlatb
sub al, 0x50
push eax
dec ebp
mov bl, 0x2b
out 0x58, al
mov dword [ecx + 0x69551222], 0x85bd9a5
fstp dword [ebx + 8]
pop ebx
or byte [edi + 0x43ae412a], ah
cmpsd dword [esi], dword es:[edi]
sub al, byte [ecx - 0x52]
inc ebx
test byte [esi], 0x28
daa
xor esp, dword [0xa9748e12]
mov dl, 0xa5
push ds
dec esp
cmpsd dword [esi], dword es:[edi]
mov ecx, 0x65706cfc
push ebp
cld
clc
aaa
pop ebx
push ebp
mul ebx
xor bh, byte [ebx - 0x4d2719d2]
xchg ecx, eax
aad 0x38
xchg ebx, eax
inc edx
jne 0x42621c
aas
push ecx
xor ah, byte [eax - 9]
and ecx, dword [edx]
adc al, 0xa1
and dword [edx + 0x10], ecx
sbb esp, dword [ecx + 0x34]
mov dh, 0x5a
fistp qword [edi]
sub eax, 0x12dfb7c
sbb ch, 0x8e
push eax
or dword [esi + 0x2f], ebp
jg 0x42621d
ret 0x61dd