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

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov ecx, dword [ebp + 0x3ac]
cmp ecx, dword [0x417360]
mov eax, dword [0x415070]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x409867
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x417380]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x409867
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x40973b
xor eax, eax
jmp 0x40987b
test al, 0x20
je 0x40974e
push 2
push 0
push 0
push ecx
call fcn.0040d180
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4097e3
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x409844
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x4097a8
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x409799
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40977b
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409808
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x409811
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x409770
jmp 0x409811
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409808
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x409811
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x409862
cmp dword [ebp - 0x68], eax
je 0x409841
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x409836
mov dword [0x417138], 9
mov dword [0x41713c], eax
jmp 0x409878
push dword [ebp - 0x68]
call fcn.0040c3f1
pop ecx
jmp 0x409878
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x409856
cmp byte [edi], 0x1a
je 0x409734
mov dword [0x417138], 0x1c
jmp 0x409871
sub eax, dword [ebp - 0x7c]
jmp 0x40987b
mov dword [0x417138], 9
and dword [0x41713c], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
pop ebx
call fcn.0040851d
add ebp, 0x3a4
leave
ret
Function at 0x40a291
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00408760
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a32c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x417144]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40a32c
cmp eax, 1
je 0x40a34d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a32c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40a2f9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40a328
xor eax, eax
inc eax
jmp 0x40a36c
cmp edi, eax
jae 0x40a330
xor eax, eax
jmp 0x40a36c
cmp eax, esi
jae 0x40a337
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x417144]
jmp 0x40a350
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c74e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x417184], esi
push edi
jne 0x40c76e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x417180], esi
mov byte [0x41717c], al
jne 0x40c7d4
mov ecx, dword [0x417354]
test ecx, ecx
je 0x40c7b5
mov eax, dword [0x417350]
sub eax, 4
cmp eax, ecx
jmp 0x40c7ae
mov eax, dword [eax]
test eax, eax
je 0x40c7a0
call eax
mov eax, dword [0x417350]
sub eax, 4
cmp eax, dword [0x417354]
mov dword [0x417350], eax
jae 0x40c798
mov eax, 0x415024
mov esi, 0x41502c
cmp eax, esi
mov edi, eax
jae 0x40c7d4
mov eax, dword [edi]
test eax, eax
je 0x40c7cd
call eax
add edi, 4
cmp edi, esi
jb 0x40c7c5
mov eax, 0x415030
mov esi, 0x415038
cmp eax, esi
mov edi, eax
jae 0x40c7f3
mov eax, dword [edi]
test eax, eax
je 0x40c7ec
call eax
add edi, 4
cmp edi, esi
jb 0x40c7e4
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40c80d
push dword [ebp + 8]
mov dword [0x417184], 1
call fcn.0040c6aa
pop ebp
ret
Function at 0x40c8df
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x415070]
mov ecx, dword [ebp + 0x98]
push ebx
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4155a8]
je 0x40c914
inc eax
cmp eax, 0x13
jb 0x40c905
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4155a8]
jne 0x40ca37
mov eax, dword [0x4170e4]
cmp eax, 1
je 0x40ca12
cmp eax, edx
jne 0x40c944
cmp dword [0x415094], 1
je 0x40ca12
cmp ecx, 0xfc
je 0x40ca37
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c97a
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0040db90
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00409b90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40c9ae
mov eax, edi
push eax
call fcn.00409b90
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x412a6c
push edi
call fcn.00409000
add esp, 0x10
push edi
call fcn.00409b90
push dword [esi + 0x4155ac]
mov ebx, eax
call fcn.00409b90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00408760
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040db90
push edi
push ebx
call fcn.0040dba0
push 0x412a68
push ebx
call fcn.0040dba0
push dword [esi + 0x4155ac]
push ebx
call fcn.0040dba0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040da8e
add esp, 0x2c
jmp 0x40ca37
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4155ac]
push dword [esi]
call fcn.00409b90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x8c]
call fcn.0040851d
pop edi
pop esi
pop ebx
add ebp, 0x90
leave
ret
Function at 0x40d852
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x417360]
push edi
jae 0x40da27
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x417380]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40da27
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x40d8fd
test dl, 2
jne 0x40d8fd
test dl, 0x48
je 0x40d8c7
cmp byte [eax + 5], 0xa
je 0x40d8c7
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d910
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40d8f8
mov dword [0x41713c], ecx
jmp 0x40da2e
cmp eax, 0x6d
jne 0x40d904
xor eax, eax
jmp 0x40da3b
push eax
call fcn.0040c3f1
pop ecx
jmp 0x40da38
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x40da22
test eax, eax
je 0x40d937
cmp byte [ebx], 0xa
jne 0x40d937
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40d940
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40da1c
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40da0c
cmp al, 0xd
je 0x40d972
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x40d9fe
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40d98c
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40d987
add dword [ebp - 8], 2
jmp 0x40d9e0
mov dword [ebp - 8], eax
jmp 0x40d9fa
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x40d9b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40d9fa
cmp dword [ebp - 0x10], 0
je 0x40d9fa
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40d9d5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40d9e0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40d9fd
cmp ebx, dword [ebp + 0xc]
jne 0x40d9e5
cmp byte [ebp - 1], 0xa
jne 0x40d9e5
mov byte [ebx], 0xa
jmp 0x40d9fd
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040aee1
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40d9fe
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40d956
jmp 0x40da1c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40da1c
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x40da3b
and dword [0x41713c], 0
mov dword [0x417138], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40da8e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41729c], ebx
push esi
push edi
jne 0x40db0e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40db49
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4131ac
push edi
call esi
test eax, eax
mov dword [0x41729c], eax
je 0x40db49
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4172a0], eax
call esi
cmp dword [0x417144], 2
mov dword [0x4172a4], eax
jne 0x40db0e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4172ac], eax
je 0x40db0e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4172a8], eax
mov eax, dword [0x4172a8]
test eax, eax
je 0x40db53
call eax
test eax, eax
je 0x40db3a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4172ac]
test eax, eax
je 0x40db3a
test byte [ebp - 8], 1
jne 0x40db53
cmp dword [0x417150], 4
jb 0x40db4d
or byte [ebp + 0x12], 0x20
jmp 0x40db72
xor eax, eax
jmp 0x40db82
or byte [ebp + 0x12], 4
jmp 0x40db72
mov eax, dword [0x4172a0]
test eax, eax
je 0x40db72
call eax
mov ebx, eax
test ebx, ebx
je 0x40db72
mov eax, dword [0x4172a4]
test eax, eax
je 0x40db72
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41729c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dc8d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40dcbb
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40dcc2
cmp ebx, dword [eax + 4]
jae 0x40dcc2
xor eax, eax
jmp 0x40deb2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40dcd3
xor eax, eax
inc eax
jmp 0x40deb1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40dce9
cmp ecx, edx
jae 0x40de2e
cmp dword [eax + 4], 0
je 0x40dcf2
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40dcda
cmp dword [ebp + 8], 0
je 0x40dd14
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40de2e
cmp eax, esi
jae 0x40de2e
mov eax, dword [0x4172b0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40dd39
cmp dword [esi*4 + 0x4172b8], edi
je 0x40de32
inc esi
cmp esi, eax
jl 0x40dd27
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40deae
cmp dword [ebp - 8], 0x1000000
jne 0x40deae
test byte [ebp - 0xc], 0xcc
je 0x40ddb7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40deae
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40deae
cmp word [eax + 0x18], 0x10b
jne 0x40deae
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40deae
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40ddb7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40ddb7
test byte [ecx + 0x27], 0x80
jne 0x40de2e
push 1
push 0x4172f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40dccb
mov ecx, dword [0x4172b0]
test ecx, ecx
mov edx, ecx
jle 0x40ddeb
lea eax, [ecx*4 + 0x4172b4]
cmp dword [eax], edi
je 0x40ddeb
dec edx
sub eax, 4
test edx, edx
jg 0x40dddf
test edx, edx
jne 0x40de1c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40ddf8
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40de10
lea eax, [edx*4 + 0x4172b8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40ddfe
cmp ecx, 0x10
jge 0x40de1c
inc ecx
mov dword [0x4172b0], ecx
push 0
push 0x4172f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40dccb
xor eax, eax
jmp 0x40deb1
test esi, esi
jle 0x40dccb
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4172f8
call ebx
test eax, eax
jne 0x40dccb
cmp dword [esi*4 + 0x4172b8], edi
je 0x40de88
mov eax, dword [0x4172b0]
lea esi, [eax - 1]
test esi, esi
jl 0x40de76
cmp dword [esi*4 + 0x4172b8], edi
je 0x40de72
dec esi
jns 0x40de66
test esi, esi
jge 0x40de86
cmp eax, 0x10
jge 0x40de81
inc eax
mov dword [0x4172b0], eax
lea esi, [eax - 1]
jmp 0x40de88
je 0x40dea0
xor ecx, ecx
test esi, esi
jl 0x40dea0
lea eax, [ecx*4 + 0x4172b8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40de8e
push 0
push 0x4172f8
call ebx
jmp 0x40dccb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fbe1
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00408760
mov eax, dword [0x415070]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x417360]
mov dword [ebp - 4], eax
jae 0x40fd2a
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x417380]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40fd2a
push 1
push esi
push ebx
call fcn.0040aee1
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40fd34
push 2
push esi
push ebx
call fcn.0040aee1
add esp, 0xc
cmp eax, 0xffffffff
je 0x40fd34
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40fcd4
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040f1d0
push 0x8000
push ebx
call fcn.0040ffc9
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40fc90
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004096c7
add esp, 0xc
cmp eax, 0xffffffff
je 0x40fcae
sub edi, eax
test edi, edi
jg 0x40fc85
jmp 0x40fcc4
cmp dword [0x41713c], 5
jne 0x40fcc1
mov dword [0x417138], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.0040ffc9
pop ecx
pop ecx
jmp 0x40fd14
jge 0x40fd14
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040aee1
push ebx
call fcn.0040d3c1
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, 0xffffffff
jne 0x40fd14
mov dword [0x417138], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41713c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0040aee1
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40fd37
mov dword [0x417138], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040851d
leave
ret
Function at 0x68a5f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x71c890], 0
jne 0x68a60b
call fcn.0068a5b0
mov eax, edi
dec eax
test eax, eax
jl 0x68a633
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x71c490]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x68a615
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x68d6b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x68d6e1
dec al
je 0x68d71c
dec al
je 0x68d760
dec al
je 0x68d7d2
jmp 0x68d86d
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x68d86d
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x68d6f1
jmp 0x68d86d
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x68d86d
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x68d72c
jmp 0x68d86d
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x68d86d
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x68d793
xor edx, edx
mov dword [esp + 4], edx
jmp 0x68d7a8
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x68d7c0
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x68d770
jmp 0x68d86d
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x68d86d
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x68d839
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.0068a63c
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x68d7ee
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x698610
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x698661
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x698648
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x698638
jmp 0x698661
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x698649
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6ac40c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x6ac43a
mov eax, ebx
call fcn.006acec8
cmp dword [ebx + 0x40], 0
je 0x6ac433
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x6ac4ab
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x6ac49d
cmp dword [ebx + 8], 0
je 0x6ac45c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x6ac46e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x6ac49d
cmp dword [ebx + 8], 0
je 0x6ac44f
cmp eax, 3
je 0x6ac481
dec eax
jne 0x6ac44f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x6ac44f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x6ac44f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x6ac4c9
cmp dword [ebx + 0x14], 0xcc
je 0x6ac4c9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.006ac4d4
pop ebx
ret
Function at 0x6c9e8c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0xc0], 0
je 0x6c9ec6
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
jne 0x6c9ec6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push ebp
push 0x6c9fb5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.006c9bdc
mov eax, dword [eax + 8]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x6c9f3d
inc edi
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.006c9bdc
mov ebx, eax
mov eax, dword [ebx + 8]
mov edx, esi
call fcn.0049f5ec
mov ebx, eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x14]
call fcn.0049f740
cmp ebx, eax
sete al
test al, al
je 0x6c9f39
mov eax, dword [ebp - 4]
call fcn.006c9bdc
mov ebx, eax
mov eax, dword [ebx + 8]
mov edx, esi
call fcn.0049f5ec
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
call fcn.006c99ac
mov byte [ebp - 5], 1
jmp 0x6c9f3d
inc esi
dec edi
jne 0x6c9eea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c9fbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0xc0], 0
je 0x6c9fb2
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
jne 0x6c9f74
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0xc], 0
jne 0x6c9f7e
cmp dword [ebp - 0x10], 0
je 0x6c9fb2
cmp dword [ebp - 0x14], 0
jne 0x6c9f8a
cmp dword [ebp - 0x18], 0
je 0x6c9fb2
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
mov ecx, 0x6c9fd4
mov eax, dword [0x6c7a94]
call fcn.006d357c
pop eax
jmp eax