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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100c060]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x1009a18
xor eax, eax
jmp 0x1009b86
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x100e4e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1009a4b
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0100b1b7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1009b1d
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x1009b58
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x1009aa6
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1009a97
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x1009a7a
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1009ae6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1009aef
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1009a6b
jmp 0x1009af1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x1009b81
cmp dword [ebp - 8], edi
je 0x1009b58
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x1009b4a
call fcn.01007a5b
mov dword [eax], 9
call fcn.01007a64
mov dword [eax], esi
jmp 0x1009b53
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1009b3f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x1009af1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1009af1
push dword [ebp - 8]
call fcn.01007a6d
pop ecx
or eax, 0xffffffff
jmp 0x1009b84
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1009b6d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x1009b6d
xor eax, eax
jmp 0x1009b84
call fcn.01007a5b
mov dword [eax], 0x1c
call fcn.01007a64
mov dword [eax], edi
jmp 0x1009b53
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0100380c
leave
ret
Function at 0x100a035
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01004240
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100a0ca
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x100ce00]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100a0ca
cmp eax, 1
je 0x100a0e2
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100a0ca
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100a09f
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x100a0c6
xor eax, eax
inc eax
jmp 0x100a0fe
cmp esi, ebx
jae 0x100a0ce
xor eax, eax
jmp 0x100a0fe
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100ce00]
jmp 0x100a0e4
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b342
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.01004240
mov eax, dword [0x100c060]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.010098d0
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100b46c
push 2
push esi
push dword [ebp + 8]
call fcn.010098d0
add esp, 0xc
cmp eax, ebx
je 0x100b46c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x100b40f
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.010041e0
push 0x8000
push dword [ebp + 8]
call fcn.0100b684
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x100b3c8
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.010099ef
add esp, 0xc
cmp eax, 0xffffffff
je 0x100b3e8
sub edi, eax
test edi, edi
jg 0x100b3c0
jmp 0x100b400
call fcn.01007a64
cmp dword [eax], 5
jne 0x100b3fd
call fcn.01007a5b
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0100b684
pop ecx
pop ecx
jmp 0x100b457
jge 0x100b457
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010098d0
push dword [ebp + 8]
call fcn.0100a6f0
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x100b457
call fcn.01007a5b
mov dword [eax], 0xd
call fcn.01007a64
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.010098d0
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100b46e
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0100380c
leave
ret
Function at 0x100b47d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x100b643
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x100e4e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x100b643
test cl, 0x48
je 0x100b4e3
mov al, byte [eax + 5]
cmp al, 0xa
je 0x100b4e3
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100b535
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x100b51d
call fcn.01007a5b
mov dword [eax], 9
call fcn.01007a64
mov dword [eax], esi
jmp 0x100b52d
cmp eax, 0x6d
je 0x100b643
push eax
call fcn.01007a6d
pop ecx
or eax, 0xffffffff
jmp 0x100b645
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x100b63e
test edx, edx
je 0x100b558
cmp byte [ebx], 0xa
jne 0x100b558
or al, 4
jmp 0x100b55a
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x100b638
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x100b628
cmp al, 0xd
je 0x100b58e
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x100b61a
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x100b5a8
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x100b5a3
add dword [ebp + 0x10], 2
jmp 0x100b5fc
mov dword [ebp + 0x10], eax
jmp 0x100b616
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100b5d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100b616
cmp dword [ebp - 0xc], 0
je 0x100b616
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x100b5f1
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x100b5fc
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x100b619
cmp ebx, dword [ebp + 0xc]
jne 0x100b601
cmp byte [ebp - 1], 0xa
jne 0x100b601
mov byte [ebx], 0xa
jmp 0x100b619
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.010098d0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x100b61a
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x100b572
jmp 0x100b638
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x100b638
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x100b645
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41944f
Capabilities:
Read file on windows

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

Function at 0x419849
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408030
mov eax, dword [0x462500]
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.004172ab
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41988b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4199e7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00407380
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 + 0x4640b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a840
mov ecx, dword [esi*4 + 0x4640b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4199e0
cmp eax, dword [edi + ecx + 0x24]
jne 0x4199e0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4199e0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a840
add esp, 0x14
test edx, edx
jl 0x4199e0
jg 0x419956
test eax, eax
jb 0x4199e0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4199e0
jl 0x419970
cmp dword [ebp - 0x1008], eax
ja 0x4199e0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41998e
test ebx, ebx
je 0x4199c7
cmp ecx, edi
jae 0x4199c7
mov al, byte [ecx]
cmp al, 0xd
jne 0x4199a8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4199b4
cmp byte [ecx + 1], 0xa
jne 0x4199b4
inc ecx
jmp 0x4199b4
movzx eax, al
movsx eax, byte [eax + 0x4627c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41998e
cmp edx, ebx
jne 0x41998e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4199e5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040736f
leave
ret
Function at 0x419cde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4640b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419d1e
cmp byte [ebx], 0xa
jne 0x419d1e
or byte [eax + edi + 0x28], 4
jmp 0x419d23
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419e21
mov al, byte [edx]
cmp al, 0x1a
je 0x419e03
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419d52
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419d77
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419d81
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x419d34
jmp 0x419e21
push 0
lea eax, [ebp - 0xc]
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 0x419dfe
cmp dword [ebp - 0xc], 0
je 0x419dfe
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4640b8]
test byte [eax + edi + 0x28], 0x48
je 0x419dd8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419dc3
mov byte [esi], dl
jmp 0x419dd4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4640b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419e21
cmp byte [ebp - 1], 0xa
jne 0x419de7
cmp esi, ebx
jne 0x419de7
mov byte [esi], 0xa
jmp 0x419e20
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a85e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419e21
mov byte [esi], 0xd
jmp 0x419e20
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4640b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419e1d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419e21
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419e2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4640b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419e6d
cmp word [esi], dx
jne 0x419e6d
or byte [edi + eax + 0x28], 4
jmp 0x419e72
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419fc5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419fa5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419eb4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419eea
cmp eax, edx
jae 0x419ef6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419e8c
jmp 0x419fc5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419fa1
cmp dword [ebp - 0x14], 0
je 0x419fa1
mov eax, dword [ebx*4 + 0x4640b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419f79
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419f42
mov word [esi], cx
jmp 0x419f75
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4640b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4640b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4640b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419fc5
pop ebx
cmp word [ebp - 4], bx
jne 0x419f8a
cmp esi, dword [ebp + 0xc]
jne 0x419f8a
mov word [esi], bx
jmp 0x419fc2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a85e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419fc5
push 0xd
jmp 0x419fbe
mov ecx, dword [ebx*4 + 0x4640b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419fbc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419fc5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x228
mov eax, dword [0x462500]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0
call fcn.0040732c
mov esi, dword [esp + 0x24c]
mov ebx, eax
mov edi, dword [esp + 0x248]
add esp, 4
xor ecx, ecx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [ebx + 8], ebx
mov word [ebx + 0xc], 0x101
mov dword [esp + 0x14], ebx
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x34], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x134], al
inc ecx
cmp ecx, 0x100
jl 0x424060
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x34]
movzx eax, byte [esp + esi + 0x134]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4240a3
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
mov byte [esp + esi + 0x34], al
inc esi
mov byte [esp + edi + 0x34], dl
cmp esi, 0x100
jl 0x424080
xor ecx, ecx
xor ebp, ebp
xor edi, edi
cmp dword [esp + 0x240], ecx
jle 0x4241c0
movsd xmm0, qword [0x425438]
movsd qword [esp + 0x2c], xmm0
nop dword [eax]
inc ebp
and ebp, 0x800000ff
jns 0x4240f1
dec ebp
or ebp, 0xffffff00
inc ebp
mov bl, byte [esp + ebp + 0x34]
movzx esi, bl
add ecx, esi
and ecx, 0x800000ff
jns 0x42410a
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], ecx
push eax
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00401640
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
movzx eax, byte [esp + ecx + 0x34]
mov byte [esp + ebp + 0x34], al
mov byte [esp + ecx + 0x34], bl
movzx eax, byte [esp + ebp + 0x34]
add eax, esi
movzx eax, al
movzx eax, byte [esp + eax + 0x34]
xor byte [edx + edi], al
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4241ae
mov ecx, dword [esp + 0x24]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x424188
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4241f6
push ecx
push edx
call fcn.0040735c
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
inc edi
cmp edi, dword [esp + 0x240]
jl 0x4240e0
mov ebx, dword [esp + 0x14]
push dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, eax
call fcn.00401810
push 0x2c
push dword [esp + 0x18]
call fcn.0040735c
mov ecx, dword [esp + 0x23c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040736f
add esp, 0x228
ret
call fcn.0040bcef
int3
Function at 0x408d0c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004091cc
mov byte [esp], al
cmp byte [esp], 0
jne 0x408e95
test edi, edi
je 0x408e95
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408dd5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408db0
cmp edi, 0xffffffff
je 0x408d71
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408d71
mov byte [esp], 0
jmp 0x408e95
cmp dword [esi], 1
jg 0x408db0
cmp dword [esi], 0
jne 0x408da2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408da2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408e95
lea eax, [esp + 0xc]
call fcn.004089c0
dec ebp
test ebp, ebp
jg 0x408d56
cmp edi, 0xffffffff
je 0x408dd5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408dd3
mov byte [esp], 0
jmp 0x408e95
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408d1a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408dd5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408f10
mov edx, eax
mov ebx, dword [0x4d38f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408e39
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408e37
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408e39
xor edi, edi
cmp byte [esp], 0
je 0x408e5f
mov ebx, dword [esi]
test bl, 1
jne 0x408e75
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e3f
mov byte [esp + 1], 1
jmp 0x408e75
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e5f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408dec
cmp byte [esp], 0
je 0x408e95
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409b24
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4d5b9c
cmp dword [ebp + 0xc], 2
jl 0x409b38
mov ebx, 0x4d5bcc
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409b70
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x405200
mov dword [0x4d301c], eax
mov eax, 0x405208
mov dword [0x4d3020], eax
mov eax, ebx
call fcn.00409a08
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409ba5
cmp al, 3
jge 0x409ba5
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409bb6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409bc1
call dword [ecx + eax*4]
cmp dword [0x4d3040], 0
jne 0x409bd7
mov byte [0x4d3048], 1
fnstcw word [0x4cf028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409e74
call fcn.00409ab8
ret 4

Function at 0x409ddc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d3058], 0
je 0x409e43
cmp word [0x4d3344], 0xd7b2
jne 0x409e05
cmp dword [0x4d334c], 0
jbe 0x409e05
mov eax, 0x4d3340
call dword [0x4d335c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409e70
call fcn.0040a95c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cf032], 0
jne 0x409e5f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a004
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4cf034], 0
je 0x40a02f
mov edx, edi
mov eax, esi
call dword [0x4cf034]
mov ebx, eax
jmp 0x40a040
mov eax, 8
call fcn.00406f60
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d3059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409fcc
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a070
mov eax, ebx
call fcn.00406f7c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc