joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dc40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x40]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x45dc83
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x45dc7c
mov esi, dword [eax + 0x20]
jmp 0x45dc83
test bl, bl
jns 0x45dc83
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x45dd50
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x40]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x45dcd8
mov ecx, dword [ebx]
test cl, 0x40
je 0x45dcd1
mov edi, dword [eax + 0x20]
jmp 0x45dcd8
test cl, cl
jns 0x45dcd8
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x45dd07
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x45dd07
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0045db90
test eax, eax
je 0x45dd6e
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x45dd2f
mov eax, dword [ebx]
test eax, 0x2000000
je 0x45dd1e
test dword [ebp - 0x10], 0x2000000
je 0x45dd1e
or dword [ebp - 0x10], eax
jmp 0x45dd29
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x45dcb0
lea ecx, [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 0xc], 1
call fcn.0045db90
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46abf1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ab9f8]
jne 0x46abfb
repz ret
jmp fcn.0047455c

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x46df10
call fcn.0046e67b
mov dword [eax], esi
call fcn.0046e668
push 0x16
pop esi
mov dword [eax], esi
call fcn.0046e183
mov eax, esi
jmp 0x46df65
test dword [ebp + 0xc], 0xfffffff9
jne 0x46def6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46df3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046e68e
pop ecx
call fcn.0046e668
mov eax, dword [eax]
jmp 0x46df65
test al, 0x10
jne 0x46df63
test al, 1
je 0x46df63
test byte [ebp + 0xc], 2
je 0x46df63
call fcn.0046e67b
mov dword [eax], 5
call fcn.0046e668
mov dword [eax], 0xd
jmp 0x46df34
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47e19f
call fcn.0046e67b
mov dword [eax], esi
call fcn.0046e668
push 0x16
pop esi
mov dword [eax], esi
call fcn.0046e183
mov eax, esi
jmp 0x47e1f4
test dword [ebp + 0xc], 0xfffffff9
jne 0x47e185
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47e1cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046e68e
pop ecx
call fcn.0046e668
mov eax, dword [eax]
jmp 0x47e1f4
test al, 0x10
jne 0x47e1f2
test al, 1
je 0x47e1f2
test byte [ebp + 0xc], 2
je 0x47e1f2
call fcn.0046e67b
mov dword [eax], 5
call fcn.0046e668
mov dword [eax], 0xd
jmp 0x47e1c3
xor eax, eax
pop esi
pop ebp
ret
Function at 0x483bb7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ab9f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00476e13
and dword [ebp - 0x14], 0
cmp dword [0x4ae2d0], 0
mov dword [ebp - 0x18], eax
jne 0x483c6a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x483d12
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x492b64
push ebx
call edi
test eax, eax
je 0x483d12
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x492b54
push ebx
mov dword [0x4ae2d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4ae2d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4ae2d8], eax
call edi
push eax
call esi
mov dword [0x4ae2e0], eax
test eax, eax
je 0x483c6a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4ae2dc], eax
mov eax, dword [0x4ae2dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x483cc3
cmp dword [0x4ae2e0], ecx
je 0x483cc3
push eax
call esi
push dword [0x4ae2e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x483cc3
test ebx, ebx
je 0x483cc3
call edi
test eax, eax
je 0x483cba
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x483cba
test byte [ebp - 8], 1
jne 0x483cc3
or dword [ebp + 0x10], 0x200000
jmp 0x483cf6
mov eax, dword [0x4ae2d4]
cmp eax, dword [ebp - 0x18]
je 0x483cf6
push eax
call esi
test eax, eax
je 0x483cf6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x483cf6
mov eax, dword [0x4ae2d8]
cmp eax, dword [ebp - 0x18]
je 0x483cf6
push eax
call esi
test eax, eax
je 0x483cf6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ae2d0]
call esi
test eax, eax
je 0x483d12
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x483d14
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046abf1
leave
ret
Function at 0x40125f
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
push edx
sub esi, esi
add esi, 0x30
mov ebx, dword fs:[esi]
push ecx
mov ecx, dword [ebx + 8]
dec ebx
mov edx, dword [ebx + 0xd]
lea esi, [edx]
add esi, 0xc
mov ebx, dword [esi]
push edi
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x4012a7
mov edx, ebx
add edx, 0x30
mov edx, dword [edx]
mov edi, dword [edx]
and edi, 0xdf00df
mov edx, dword [edx + 0xb]
add edx, edi
shr edx, 1
sub edx, 0x192299a5
cmp edx, 0
je 0x4012ad
mov edx, dword [ebx]
lea ebx, [edx]
jmp 0x40127a
call fcn.004013b0
call fcn.00401371
push eax
call fcn.00401366
mov ebx, edi
mov eax, dword [ebx]
add eax, esi
mov ebx, dword [eax + 0xb]
add ebx, ebx
sub ebx, 0xe8c6ca
cmp ebx, 0
jne 0x4012d5
jmp 0x4012da
add edi, 4
jmp 0x4012bd
mov ebx, edx
add ebx, 0x20
mov ebx, dword [ebx]
sub edi, esi
sub edi, ebx
shr edi, 1
mov ebx, dword [edx + 0x24]
add ebx, edi
add ebx, esi
mov edi, dword [ebx]
shl edi, 0x10
shr edi, 0xe
mov ebx, dword [edx + 0x1c]
add ebx, esi
add ebx, edi
mov edi, dword [ebx]
add edi, esi
mov ebx, 0x94000
push esi
mov edx, 0x7c000
lea eax, [0x40]
push ecx
add edx, ecx
push ebx
push esp
push eax
push ebx
push edx
call edi
pop ebx
pop ecx
push eax
mov esi, 0x339c0
lea ebx, [0x9a000]
add esi, ecx
add ebx, ecx
mov edx, 0x2854
call fcn.0040137c
lea esi, [0x6ea2]
mov edx, 0x1b0a4
mov ebx, 0x7c000
add ebx, ecx
lea edi, [3]
imul esi, edi
add esi, 0x3bda
add esi, ecx
call fcn.0040137c
jmp 0x4013b6
lea edx, [0x270]
mov esi, 0x10000000
lea ebx, [0x7c000]
add ebx, ecx
mov edi, 6
imul edx, edi
scasd eax, dword es:[edi]
xlatb
add edx, 0x160
sub ebx, edx
lea edx, [ebx]
sub edx, esi
lea esi, [0x367c0]
add esi, ecx
mov edi, dword [esi]
xor edi, 0xb41619e7
dec edi
test edi, edi
je 0x4013ff
add edi, ebx
mov eax, dword [edi]
add eax, edx
mov dword [edi], eax
add esi, 4
jmp 0x4013e5
lea ebx, [0x5197]
lea esi, [0x3ff3]
add esi, ecx
add esi, 0x77e11
add esi, ebx
push esi
lea edx, [edi]
test edi, edi
jmp 0x4013a0
Function at 0x4030e4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x412008], 0x8088405
inc edx
mov dword [ebx + 0x412008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403714
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41201c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40378c
xor eax, eax
push ebp
push 0x403785
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40378c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x41201c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41201c], ax
mov esp, ebp
pop ebp
ret
Function at 0x40ba24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40bb5c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40bb46
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ba81
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bb46
cmp dword [ebp - 0x14], 0
jne 0x40ba98
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404c98
mov bl, 1
jmp 0x40bb46
cmp dword [ebp - 0x14], 0x70000000
jb 0x40baa6
call fcn.00409734
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00404dd4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004054ac
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40ba4a
test eax, eax
jne 0x40bb46
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40baf4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bb46
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40bafc
dec esi
test esi, esi
je 0x40bb0b
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x40bafb
cmp dword [ebp - 0x10], 7
jne 0x40bb16
test esi, esi
je 0x40bb16
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404f00
cmp dword [ebp - 0x68], 0xffffffe5
xlatb
or eax, dword [ebp - 0x72f08b0a]
inc ebp
cld
call fcn.004054ac
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c98
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb63
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40c5a0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x417d98
mov eax, esi
mov edx, 8
test al, 1
je 0x40c5bc
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c5be
shr eax, 1
dec edx
jne 0x40c5af
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40c5a8
pop esi
ret

Function at 0x40c5d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x417d94], 0
jne 0x40c5f7
call fcn.0040c5a0
push 1
push 0x417d94
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40c622
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x417d98]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40c5fd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x1c5e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01c5e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1c5e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1c5e06a
add dl, dl
jne 0x1c5e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1c5e0dc
xor eax, eax
add dl, dl
jne 0x1c5e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1c5e17d
add dl, dl
jne 0x1c5e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c5e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c5e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c5e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1c5e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1c5e075
mov eax, 1
add dl, dl
jne 0x1c5e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c5e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1c5e0e1
sub eax, ebx
mov ebx, 1
jne 0x1c5e128
mov ecx, 1
add dl, dl
jne 0x1c5e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1c5e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1c5e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1c5e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1c5e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1c5e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1c5e136
cmp eax, 0x7d00
jae 0x1c5e16d
cmp eax, 0x500
jb 0x1c5e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1c5e075
cmp eax, 0x7f
ja 0x1c5e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1c5e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1c5e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1c5e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 8
pop esi
mov ebp, dword [edi]
test ebp, ebp
je 0x401065
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x401065
cmp ebx, esi
jb 0x401065
cmp ebx, 0x10
jb 0x401065
mov ecx, dword [esi + ebp]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
lea eax, [edx + 0xc]
add eax, esi
cmp eax, ebx
ja 0x401065
cmp dword [esi + ebp + 4], 0x54414449
je 0x401070
mov esi, eax
lea eax, [esi + 8]
cmp eax, ebx
jbe 0x401022
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
lea ecx, [esi + ebp]
cmp edx, 5
jb 0x401065
mov ebp, dword [ecx + 8]
sub edx, 4
add ecx, 0xc
mov al, byte [ecx]
movzx esi, al
cmp esi, edx
ja 0x401065
test al, al
jne 0x4010a7
mov eax, dword [edi + 8]
test eax, eax
je 0x401065
mov esi, dword [edi + 0xc]
test esi, esi
je 0x401065
mov dword [esp + 0x10], eax
dec edx
mov dword [esp + 0x14], esi
jmp 0x4010c2
lea eax, [ecx + 1]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
cmp edx, eax
jb 0x401065
or eax, 0xffffffff
sub eax, esi
add edx, eax
add ecx, esi
and dword [esp + 0x20], 0
lea eax, [ecx + 1]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.00401e89
test eax, eax
je 0x401065
mov esi, dword [esp + 0x1c]
xor edx, edx
mov ecx, dword [esp + 0x20]
mov ebx, 0x811c9dc5
test esi, esi
je 0x401103
movzx eax, byte [edx + ecx]
xor eax, ebx
imul ebx, eax, 0x1000193
inc edx
cmp edx, esi
jb 0x4010f2
cmp ebx, ebp
je 0x401122
test ecx, ecx
je 0x40111b
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x401068
xor eax, eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], esi
inc eax
jmp 0x401068

Function at 0x401130
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ebp, edx
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ecx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401158
xor eax, eax
jmp 0x4011c4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esp + 0x18]
mov dword [ebx], eax
test eax, eax
je 0x4011bb
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp], eax
test eax, eax
je 0x4011bb
push 0
lea ecx, [esp + 0x14]
push ecx
push dword [ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x4011a1
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebx]
je 0x4011bb
cmp dword [ebp], 0
je 0x4011b9
push dword [ebp]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4011ca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, edx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4011f2
xor eax, eax
jmp 0x40121f
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x401216
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 8]
neg ecx
sbb ecx, ecx
not ecx
and esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40154b
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00401226
mov edi, dword [esp + 0x14]
mov ecx, ebp
push edi
push 0
push 0
call fcn.00401226
not eax
xor ebx, ebx
inc ebx
and eax, ebx
lea eax, [eax*2 + 0x1a]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x40158d
push str.c:ProgramData
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov dl, bl
mov byte [esi + edi], 0x5c
inc esi
lea ecx, [esi + edi]
push ecx
mov ecx, ebp
call fcn.004014d2
pop ecx
push 0
push edi
add esi, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, ebp
call fcn.00401226
test al, 1
je 0x4015db
lea eax, [esi + edi]
ror bl, 3
push eax
mov dl, bl
mov ecx, ebp
call fcn.004014d2
pop ecx
push 0
push edi
add esi, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi + edi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4015e6
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
and dword [esp + 0xc], 0
xor al, al
mov byte [esp + 6], al
mov al, byte [esp + 0xf]
mov byte [esp + 7], al
mov al, byte [esp + 0xe]
push ebx
mov byte [esp + 0xc], al
mov al, byte [esp + 0x11]
push ebp
mov byte [esp + 0x11], al
mov ebp, 0xff
mov al, byte [esp + 0x14]
push esi
push edi
mov dword [esp + 0x24], ecx
mov byte [esp + 0x1a], al
rdtsc
mov esi, eax
mov dword [esp + 0x1c], edx
xor eax, eax
lea edi, [esp + 0x28]
inc eax
xor ecx, ecx
cpuid
mov dword [edi], eax
mov eax, edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
rdtsc
sub eax, esi
sbb edx, dword [esp + 0x1c]
test edx, edx
ja 0x40169b
jb 0x40165c
cmp eax, 0xfa
jae 0x401662
inc byte [esp + 0x1a]
jmp 0x40169f
test edx, edx
ja 0x40169b
jb 0x40166f
cmp eax, 0x1f4
jae 0x401675
inc byte [esp + 0x19]
jmp 0x40169f
test edx, edx
ja 0x40169b
jb 0x401682
cmp eax, 0x2ee
jae 0x401688
inc byte [esp + 0x18]
jmp 0x40169f
test edx, edx
ja 0x40169b
jb 0x401695
cmp eax, 0x3e8
jae 0x40169b
inc byte [esp + 0x17]
jmp 0x40169f
inc byte [esp + 0x16]
sub ebp, 1
jne 0x401627
push 6
pop eax
lea esi, [esp + 0x28]
xor ecx, ecx
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
xor ecx, ecx
mov dword [esi + 0xc], edx
mov al, byte [esp + 0x28]
and al, 1
mov byte [esp + 0x1b], al
mov eax, 0x40000000
cpuid
mov dword [esi], eax
movzx eax, byte [esp + 0x16]
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
push dword [esp + 0x28]
push eax
movzx eax, byte [esp + 0x1f]
push eax
movzx eax, byte [esp + 0x24]
push eax
movzx eax, byte [esp + 0x29]
push eax
movzx eax, byte [esp + 0x2e]
push eax
movzx eax, byte [esp + 0x33]
push eax
push str._0.2X_0.2X_0.2X_0.2X_0.2X_0.2X_0.8X
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401e2a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov ebp, edx
mov dword [esp + 0x10], ecx
xor edx, edx
push edi
mov edi, dword [esp + 0x1c]
mov eax, edx
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x401e3e
mov cl, dl
mov ebx, edx
mov eax, dword [esp + 0x14]
movzx esi, dl
mov dl, byte [ebx + edi]
mov al, byte [esi + eax]
add al, dl
add cl, al
mov byte [esp + 0x13], cl
movzx ecx, cl
mov al, byte [ecx + edi]
mov byte [ebx + edi], al
lea eax, [esi + 1]
mov byte [ecx + edi], dl
xor edx, edx
mov cl, byte [esp + 0x13]
div ebp
inc ebx
cmp ebx, 0x100
jb 0x401e4d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x401e89
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
je 0x401f42
cmp dword [esi + 4], ebx
je 0x401f42
cmp dword [esi + 8], ebx
je 0x401f42
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401f42
cmp dword [esi + 0x10], ebx
jne 0x401ed7
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x10], eax
test eax, eax
je 0x401f42
mov edx, dword [esi + 4]
lea eax, [esp + 0xc]
mov ecx, dword [esi]
push ebp
push eax
call fcn.00401e2a
mov ebp, dword [esi + 0xc]
pop ecx
test ebp, ebp
je 0x401f3c
push edi
mov edi, dword [esi + 0x10]
mov eax, ebx
mov esi, dword [esi + 8]
sub esi, edi
inc bl
movzx ebx, bl
mov cl, byte [esp + ebx + 0x14]
movzx edx, cl
add al, dl
movzx eax, al
mov dword [esp + 0x10], eax
mov al, byte [esp + eax + 0x14]
mov byte [esp + ebx + 0x14], al
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x14], cl
mov al, byte [esp + ebx + 0x14]
add al, dl
movzx eax, al
mov al, byte [esp + eax + 0x14]
xor al, byte [esi + edi]
mov byte [edi], al
inc edi
mov eax, dword [esp + 0x10]
sub ebp, 1
jne 0x401efa
pop edi
xor eax, eax
inc eax
pop ebp
jmp 0x401f44
xor eax, eax
pop esi
pop ebx
add esp, 0x104
ret