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

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1007d612
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x1007d604
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x1007d5fc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x1007d5c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x1007dd10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1007dd60
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x1007dd55
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.1007ef30
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x1007ddb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x1007de33
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1007de33
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1007de26
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x1007fa00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x1007fa0c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x1007fa9f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x1007fa69
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.1007fab0
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x1007fa3e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x1007fad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x1007fbcd
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x1007fb22
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x1007fb4e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.1007fab0
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x1007fb8f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x1007fb11
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x10080b90
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x100d6174]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x10080ba3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x10080be4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x100d621c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x10080c16
mov bl, byte [esp + ecx + 0x4c]
jmp 0x10080c1a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x10080c0b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x10080c38
mov bl, byte [esp + ecx + 0x4c]
jmp 0x10080c3c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x10080c2d
xor ecx, ecx
mov eax, 0x100d6184
xor ebx, ebx
mov bl, byte [ecx + 0x100d622c]
cmp byte [esp + ebx + 0x14], 0
je 0x10080c67
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x100d6244]
cmp byte [esp + ebx + 0x14], 0
je 0x10080c7e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x10080c4e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x10080bd7
lea edx, [esp + 0x84]
push edx
call fcn.10080cc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x402a61
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4131c4], 0
jne 0x402a6f
call fcn.00402a37
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402a9c
test cl, 7
je 0x402a9c
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
dec esi
inc ecx
jmp 0x402a7d
cmp esi, 8
jb 0x402b20
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4131c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
dec edi
jne 0x402aa6
xor edx, edx
test esi, esi
jbe 0x402b40
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4131c0]
inc edx
cmp edx, esi
jb 0x402b27
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x402d5d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 3
jne 0x402def
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040707a
lea eax, [ebp - 0x800]
push eax
call fcn.00409537
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004078e1
test al, al
jne 0x402dcb
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.00409537
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x402def
push eax
push 0xaf
call fcn.00409140
push eax
push 0x4112dc
call fcn.0040a3da
add esp, 0xc
leave
ret 8
Function at 0x4045d7
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c0]
call fcn.00403195
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.00405b72
test al, al
je 0x40477c
cmp word [ebp - 0x2440], di
je 0x40477c
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.0040717e
push eax
call fcn.0040d0d4
test eax, eax
je 0x40477c
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.0040717e
push eax
call fcn.0040d0d4
test eax, eax
jne 0x40477c
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x4046cd
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040c8c3
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.0040717e
push eax
call fcn.00409775
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.004052ae
test al, al
je 0x4046b5
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404666
cmp word [ebp - 0x800], di
je 0x40477c
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040c8c3
lea eax, [ebp - 0x2cc0]
push eax
call fcn.0040717e
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.0040717e
push eax
call fcn.00409561
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x40477c
lea ecx, [ebp - 0x1c20]
call fcn.004049e8
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.004052ae
test al, al
jne 0x404743
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.00404d4b
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x40476d
lea ecx, [ebp - 0x1c20]
call fcn.00404a53
lea ecx, [ebp - 0x1c20]
call fcn.00404ad8
lea ecx, [ebp - 0x1c20]
call fcn.00404bcd
mov al, 1
jmp 0x40477e
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x404c0a
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x404c1d
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x404c30
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.004069db
test eax, eax
je 0x404c69
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x404c69
cmp word [eax], bx
je 0x404c69
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
jmp 0x404c7d
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404c99
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x404c99
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x404d11
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x404cd2
push edi
call fcn.00409537
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.004092b8
jmp 0x404cdb
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x404cf8
push dword [ebp + 8]
call fcn.00409303
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.004092b8
jmp 0x404d07
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040cef1
push dword [esi + 4]
mov ecx, esi
call fcn.00404a2c
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x404e0c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x404e32
cmp dword [ebp + 0xc], esi
jbe 0x404e27
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x404e82
mov ecx, edi
call fcn.00404baa
test al, al
je 0x404e68
cmp dword [ebp + 0xc], esi
jbe 0x404e68
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00404e0c
jmp 0x404e85
cmp dword [edi + 0xc], 1
jne 0x404e7d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
jne 0x404e7d
xor eax, eax
jmp 0x404e85
or eax, 0xffffffff
jmp 0x404e85
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x4050c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x4051d6
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4050f3
dec eax
je 0x4050e8
dec eax
jne 0x4050f3
push 0xfffffffffffffff4
jmp 0x4050ea
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x405142
cmp dword [ebp + 0xc], edi
jbe 0x40515d
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x40511a
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x40515d
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x40510a
jmp 0x405159
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x4051d0
cmp byte [esi + 0x14], 0
je 0x4051d0
cmp dword [esi + 0xc], 0
jne 0x4051d0
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x413e7c
push eax
mov ecx, edi
call fcn.00402ed2
test al, al
je 0x4051ba
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4050fb
test eax, eax
jbe 0x4050fb
push 0
mov ecx, esi
call fcn.00404b08
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405027
jmp 0x4050fb
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.0040315c
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.004069db
test eax, eax
je 0x4052d8
mov eax, dword [esp + 8]
test eax, eax
je 0x4052d8
cmp word [eax], 0
je 0x4052d8
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x4052f5
cmp dword [esp + 4], 0
je 0x4052f3
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4052f3
xor eax, eax
inc eax
jmp 0x4052f5
xor eax, eax
ret 8

Function at 0x405323
Capabilities:
Get file attributes

Disassembly:
call fcn.004069db
test eax, eax
je 0x405343
mov eax, dword [esp + 8]
test eax, eax
je 0x405343
cmp word [eax], 0
je 0x405343
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
jmp 0x40534d
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
ret 8

Function at 0x405350
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.004069db
test eax, eax
je 0x405375
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405375
cmp word [eax], 0
je 0x405375
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
jmp 0x405387
cmp dword [ebp + 8], 0
je 0x40538e
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405390
xor al, al
pop ebp
ret 0xc
Function at 0x4053c6
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.004069db
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x4053ec
cmp esi, ebx
je 0x4053ec
cmp word [esi], bx
je 0x4053ec
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x4053fb
cmp dword [ebp + 8], ebx
je 0x405429
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
cmp eax, ebx
je 0x405414
cmp byte [ebp + 0x10], bl
je 0x405410
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405350
xor eax, eax
jmp 0x40542c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x405429
cmp eax, 3
je 0x405429
xor eax, eax
inc eax
jmp 0x40542c
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406036
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x406068
cmp dword [ebp - 8], ebx
jne 0x4060a9
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x4060a9
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x406055
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x406055
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4060e9
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x411ae8
push eax
call dword [ecx]
test eax, eax
jl 0x4060e9
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x4060e0
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x4099d1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4130b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x409a1c
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x420240], ax
xor eax, eax
mov word [0x420242], ax
mov dword [0x4130b0], 0x420240
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c8ed
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4130a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x409d9b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x41a200]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x41b314], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x409dfd
mov ecx, dword [0x4190d4]
call fcn.00405fd5
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x4116ac
push 0
push 0xc2
push edi
call esi
mov byte [0x41b314], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x409e4d
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x409e97
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x4116d0
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a69b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40a6b6
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40a6c0
mov byte [eax], 0
test edi, edi
je 0x40a769
movzx eax, word [edi]
test ax, ax
je 0x40a769
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40a6f9
cmp dword [ebp + 0xc], 0
je 0x40a705
test esi, esi
jne 0x40a705
test ebx, ebx
je 0x40a6f5
mov byte [ebx], 1
mov esi, edx
jmp 0x40a714
cmp ax, 0xd
je 0x40a727
cmp ax, 0xa
je 0x40a729
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40a71f
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40a6d9
jmp 0x40a729
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40a729
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40a764
mov word [ebx], ax
test esi, esi
je 0x40a764
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040c8c3
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40a76b
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40a7b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00410314
cmp byte [0x41b315], 0
jne 0x40a83e
push 6
push dword [0x41309c]
lea eax, [ebp - 0x820]
push eax
call fcn.0040717e
push eax
call fcn.0040d191
test eax, eax
jne 0x40a83e
push 0x41174c
call fcn.00410301
lea eax, [ebp - 0x820]
push eax
call fcn.00409537
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.00409259
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40a909
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x41a1f1], 1
cmp dword [0x41a200], ebx
je 0x40a931
push 0x7d
call fcn.00409140
push eax
push 2
push dword [0x41a200]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x41a200]
mov dword [0x41a1f4], ebx
mov byte [0x41a1f0], 1
cmp eax, ebx
je 0x40a992
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41b324], ebx
jne 0x40a960
cmp byte [0x41b314], bl
je 0x40a968
cmp dword [0x41a1f8], ebx
jne 0x40a98a
push ebx
push 1
push 0x111
push dword [0x41a200]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40a98a
push ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.00409992
cmp dword [0x41a200], ebx
jne 0x40a97e
cmp byte [0x41a208], bl
pop ebx
je 0x40a9a0
jmp fcn.0040a7b0
ret