joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49769c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c4024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0048f8f6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0048f8f6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x497713
cmp word [ecx], dx
je 0x497713
mov eax, dword [0x4b61e4]
push edi
dec eax
push eax
push 0x4b60d0
call fcn.0049763b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x497786
cmp word [eax], dx
je 0x497786
mov eax, dword [edi]
test eax, eax
je 0x497737
cmp word [eax], dx
je 0x497737
lea eax, [ebp - 0x10]
push eax
call fcn.0049701e
jmp 0x497740
lea eax, [ebp - 0x10]
push eax
call fcn.004970b9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4977b0
mov eax, dword [0x4b60cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4b5dc0
call fcn.0049763b
add esp, 0xc
test al, al
je 0x4977b0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x49777b
cmp word [eax], di
je 0x49777b
lea eax, [ebp - 0x10]
push eax
call fcn.0049701e
pop ecx
jmp 0x4977b2
lea eax, [ebp - 0x10]
push eax
call fcn.004970b9
jmp 0x497778
mov eax, dword [edi]
test eax, eax
je 0x49779d
cmp word [eax], dx
je 0x49779d
lea eax, [ebp - 0x10]
push eax
call fcn.00496fd3
pop ecx
jmp 0x4977b0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x49787b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004974c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49787b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x49787b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x49787b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x497808
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0048f3bb
test ebx, ebx
je 0x497876
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0048f3bb
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49787b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49787b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0049d0a3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x49787d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ca6a
leave
ret
Function at 0x497e5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c6280]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x497e9b
cmp byte [ebx], 0xa
jne 0x497e9b
or byte [edi + eax + 0x28], 4
jmp 0x497ea0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x497f9f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x497f82
inc eax
cmp dl, 0xd
je 0x497ecc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x497ef2
cmp eax, ecx
jae 0x497f00
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x497eb4
jmp 0x497f9f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497f7d
cmp dword [ebp - 0x10], 0
je 0x497f7d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c6280]
test byte [eax + edi + 0x28], 0x48
je 0x497f57
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x497f42
mov byte [esi], dl
jmp 0x497f53
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c6280]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x497f9f
cmp byte [ebp - 1], 0xa
jne 0x497f66
cmp esi, ebx
jne 0x497f66
mov byte [esi], 0xa
jmp 0x497f9e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048e686
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x497f9f
mov byte [esi], 0xd
jmp 0x497f9e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c6280]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x497f9c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497f9f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x497fa8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4c6280]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x497fee
cmp word [ebx], dx
jne 0x497fee
or byte [eax + edi + 0x28], 4
jmp 0x497ff3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x498156
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x498136
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x498034
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49806a
cmp eax, edx
jae 0x498078
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49800f
jmp 0x498156
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x498131
cmp dword [ebp - 0x18], 0
je 0x498131
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c6280]
test byte [eax + edi + 0x28], 0x48
je 0x498107
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4980cb
mov word [esi], cx
jmp 0x498102
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c6280]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4c6280]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c6280]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x498156
pop eax
cmp word [ebp - 4], ax
jne 0x498117
cmp esi, ebx
jne 0x498117
mov word [esi], ax
jmp 0x498153
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0048e686
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x498156
push 0xd
pop eax
jmp 0x498112
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c6280]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x498150
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x498156
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x498b5f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00498adb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x498cce
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x498cce
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x498c83
jg 0x498bbb
test eax, eax
je 0x498c79
push 1
push 0x1000
call fcn.0048fd39
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x498bde
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x498c70
push 0x8000
push ebx
call fcn.00486fbd
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x498c07
jg 0x498c02
cmp ecx, 0x1000
jb 0x498c07
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0049236e
add esp, 0x10
cmp eax, 0xffffffff
je 0x498c4c
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x498c02
jl 0x498c33
test ecx, ecx
jne 0x498bf4
push dword [ebp - 0xc]
push ebx
call fcn.00486fbd
push esi
call fcn.0048ec6b
add esp, 0xc
xor ebx, ebx
jmp 0x498cdc
cmp byte [edi + 0x24], 0
je 0x498c63
cmp dword [edi + 0x20], 5
jne 0x498c63
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x498c6e
mov ebx, dword [edi + 0x18]
jmp 0x498c70
xor ebx, ebx
push esi
call fcn.0048ec6b
pop ecx
jmp 0x498cdc
test ecx, ecx
jg 0x498c45
jl 0x498c83
test eax, eax
jae 0x498c45
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048e686
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x498ca3
cmp byte [edi + 0x1c], 0
je 0x498c45
jmp 0x498cd4
push ebx
call fcn.00495062
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x498c45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x498cdc
cmp byte [edi + 0x1c], 0
je 0x498cd9
mov ebx, dword [edi + 0x18]
jmp 0x498cdc
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0048e686
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49d34e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c4024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x49d391
call fcn.0047e7e2
mov dword [eax], 0xf
call fcn.0047e7f5
mov dword [eax], 0xd
call fcn.0047e6f7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
leave
ret
test eax, eax
jne 0x49d398
inc eax
jmp 0x49d385
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x49d383
xor eax, eax
cmp ecx, 1
setne al
jmp 0x49d385

Function at 0x4a0270
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a029d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a029d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a46a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, ecx
xor edx, edx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [eax]
mov dword [ebp - 4], edx
xor esi, esi
test eax, eax
jle 0x40a4a3
mov ebx, dword [ebp + 0xc]
add ebx, edx
mov edx, dword [ebp - 8]
mov ecx, dword [edi]
mov al, byte [ebx]
lea ebx, [ebx + 4]
xor byte [ecx + esi], al
inc esi
mov eax, dword [edx]
cmp esi, eax
jl 0x40a48f
mov edx, dword [ebp - 4]
inc edx
add edi, 4
mov dword [ebp - 4], edx
cmp edx, 4
jl 0x40a481
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40aac7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x9d8c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x54], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], ecx
lea ebx, [edi + 0x64]
mov dword [ebp - 0x3c], edi
push ebx
mov byte [ebp - 0x50], al
call fcn.00646d1f
push ebx
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.00646d30
push edi
push esi
push dword [ebp - 0x40]
call fcn.00646450
add esp, 0x1c
mov eax, edi
test edi, edi
je 0x40ab25
mov byte [esi], 0
inc esi
dec eax
jne 0x40ab1e
xor eax, eax
mov esi, dword [ebp - 0x40]
push 8
pop ecx
push dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 8], al
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
mov word [ebp - 0xe], 0x4441
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], 0x32394531
push eax
mov eax, dword [ebp - 0x3c]
add eax, 0xf
mov dword [ebp - 0x13], 0x30413436
and eax, 0xfffffff0
mov dword [ebp - 0x28], 0x41454642
push eax
push esi
mov word [ebp - 0x15], 0x4334
mov dword [ebp - 0x1a], 0x32413745
mov dword [ebp - 0x23], 0x45384545
mov byte [ebp - 0xf], 0x42
mov byte [ebp - 0x24], 0x34
mov dword [ebp - 0x1e], 0x42343339
mov byte [ebp - 0x1f], 0x46
mov byte [ebp - 0x16], 0x42
call fcn.0040a608
mov dword [ebp - 0x3c], eax
mov edx, esi
test ebx, ebx
je 0x40abbc
mov byte [edx], 0
inc edx
dec ebx
jne 0x40abb5
push dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
push eax
push edi
call fcn.0040ad34
push esi
call fcn.0067fc0e
push dword [ebp - 0x3c]
call fcn.0067fc0e
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00645ebf
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40abf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x40ac18
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
sub esi, ecx
sub edi, ecx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edi + ecx], al
inc ecx
dec edx
jne 0x40ac0a
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x40ac1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
sub edx, ecx
push edi
push 4
sub esi, ecx
pop edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
dec edi
jne 0x40ac31
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40ad34
Capabilities:
Encode data using base64

Disassembly:
push 0x64
mov eax, 0x7ae155
call fcn.00645f96
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x53]
xor ebx, ebx
mov dword [ebp - 0x64], esi
push 0x40
push ebx
mov dword [ebp - 0x6c], ebx
push eax
mov dword [ebp - 0x70], esi
mov byte [ebp - 0x54], bl
call fcn.00646d30
add esp, 0xc
mov ecx, ebx
lea eax, [ecx + 0x41]
mov byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0x1a
jl 0x40ad62
mov ecx, ebx
lea eax, [ecx + 0x61]
mov byte [ebp + ecx - 0x3a], al
inc ecx
cmp ecx, 0x1a
jl 0x40ad71
mov ecx, ebx
lea eax, [ecx + 0x30]
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xa
jl 0x40ad80
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov word [ebp - 0x16], 0x2f2b
mov byte [esi], bl
mov eax, dword [ebp + 0x10]
mov esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6c], 1
test eax, eax
je 0x40aee6
push 3
pop edi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + esi - 0x5c], al
inc esi
mov dl, byte [ebp - 0x5b]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x5a]
mov cl, byte [ebp - 0x5c]
mov byte [ebp - 0x5f], ch
mov byte [ebp - 0x5d], dl
mov byte [ebp - 0x5e], cl
cmp esi, edi
jne 0x40ae3f
mov edi, dword [ebp - 0x64]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x58], al
mov esi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x57], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x56], cl
mov byte [ebp - 0x55], al
movzx eax, byte [ebp + esi - 0x58]
mov ecx, edi
movzx eax, byte [ebp + eax - 0x54]
push eax
push 1
call fcn.0040acd3
inc esi
cmp esi, 4
jl 0x40ae17
mov dl, byte [ebp - 0x5d]
mov esi, ebx
mov cl, byte [ebp - 0x5e]
mov ch, byte [ebp - 0x5f]
push 3
pop edi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40adb9
mov dword [ebp - 0x68], esi
test esi, esi
je 0x40aee6
mov eax, esi
cmp esi, edi
jge 0x40ae75
cmp eax, edi
jae 0x40aef1
mov byte [ebp + eax - 0x5c], bl
inc eax
cmp eax, edi
jl 0x40ae5d
mov ch, byte [ebp - 0x5a]
mov dl, byte [ebp - 0x5b]
mov cl, byte [ebp - 0x5c]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x58], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x57], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x55], ch
lea eax, [esi + 1]
mov byte [ebp - 0x56], dl
mov dword [ebp - 0x5c], eax
test eax, eax
jle 0x40aed1
mov edi, dword [ebp - 0x64]
mov esi, eax
movzx eax, byte [ebp + ebx - 0x58]
mov ecx, edi
movzx eax, byte [ebp + eax - 0x54]
push eax
push 1
call fcn.0040acd3
inc ebx
cmp ebx, esi
jl 0x40aeb2
mov esi, dword [ebp - 0x68]
push 3
pop edi
cmp esi, edi
jge 0x40aee6
sub edi, esi
mov ecx, dword [ebp - 0x64]
push 0x3d
push 1
call fcn.0040acd3
dec edi
jne 0x40aed7
mov eax, dword [ebp - 0x64]
call fcn.00645f45
ret 0xc
call fcn.00646c43
int3
Function at 0x586e53
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x7c83d8
push edi
and dword [esi + 0x30], 0
and dword [esi + 0x34], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.0040a225
pop ecx
push eax
push edi
lea ecx, [esi + 0x14]
call fcn.00409e76
pop edi
pop esi
ret
Function at 0x650f03
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x9d8c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0064bc31
mov dword [ebp - 0x14], eax
cmp dword [0x9db6c8], esi
jne 0x650ff6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x650f83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x6510d6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x6510d6
push 0x7d59a8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x6510d6
push eax
call ebx
push 0x7d59b4
push edi
mov dword [0x9db6c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x9db6cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x9db6d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x9db6d8], eax
test eax, eax
je 0x650ff3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x9db6d4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x65101b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x65100e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x651030
push 4
pop eax
jmp 0x6510d8
cmp dword [ebp - 0x14], esi
je 0x651030
push dword [0x9db6c8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x651015
mov eax, dword [0x9db6d4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x65108e
cmp dword [0x9db6d8], edi
je 0x65108e
push eax
call ebx
push dword [0x9db6d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x65108e
test eax, eax
je 0x65108e
call ecx
test eax, eax
je 0x651083
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x651083
test byte [ebp - 8], 1
jne 0x65108e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x6510be
mov eax, dword [0x9db6cc]
cmp eax, edi
je 0x6510bb
push eax
call ebx
test eax, eax
je 0x6510bb
call eax
mov esi, eax
test esi, esi
je 0x6510bb
mov eax, dword [0x9db6d0]
cmp eax, edi
je 0x6510bb
push eax
call ebx
test eax, eax
je 0x6510bb
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x9db6c8]
call ebx
test eax, eax
je 0x6510d6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x6510d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00645ebf
mov esp, ebp
pop ebp
ret
Function at 0x669d68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00669d63
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x669d83
xor al, al
pop ebp
ret
mov ecx, dword [ebp + 8]
and eax, 0x10
push esi
push 0
shl eax, 0x15
push eax
push 3
push 0
push 7
push dword [ebp + 0xc]
call fcn.00669d63
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x669db3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, 0xffffffff
pop esi
setne al
pop ebp
ret

Function at 0x669dbe
Capabilities:
Copy file

Disassembly:
push 0x7c
mov eax, 0x7b02e1
call fcn.00645f96
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp byte [ebp + 0x10], al
mov ecx, ebx
mov edi, dword [ebp + 8]
sete al
push eax
call fcn.00669d63
push eax
mov ecx, edi
call fcn.00669d63
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x669e84
push str.Failed_to_copy_the_file__s_to__s
lea ecx, [ebp - 0x30]
call fcn.00408c6d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00408cc0
mov esi, eax
lea ecx, [ebp - 0x70]
call fcn.00408cc0
push esi
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
call fcn.00669628
add esp, 0xc
lea ecx, [ebp - 0x88]
push eax
call fcn.0066154b
sub esp, 0xc
mov ecx, ebx
push esp
call fcn.004474bf
sub esp, 0xc
mov ecx, edi
push esp
call fcn.004474bf
lea eax, [ebp - 0x88]
push eax
call fcn.00689beb
add esp, 0x1c
lea ecx, [ebp - 0x88]
call fcn.00661721
lea ecx, [ebp - 0x70]
call fcn.00408e36
lea ecx, [ebp - 0x50]
call fcn.00408e36
lea ecx, [ebp - 0x30]
call fcn.00408e36
xor al, al
jmp 0x669e86
mov al, 1
call fcn.00645f45
ret

Function at 0x66a8b4
Capabilities:
Create pipe

Disassembly:
push 0x84
mov eax, 0x7b0321
call fcn.00645f96
xor esi, esi
mov dword [ebp - 0x7c], 0xc
push esi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x78], esi
push eax
lea eax, [ecx + 4]
mov dword [ebp - 0x74], 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x66a951
push str.Failed_to_create_an_anonymous_pipe
lea ecx, [ebp - 0x30]
call fcn.00408c6d
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.00408cc0
mov esi, eax
lea ecx, [ebp - 0x70]
call fcn.00408cc0
push esi
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
call fcn.00669628
add esp, 0xc
lea ecx, [ebp - 0x90]
push eax
call fcn.0066154b
lea ecx, [ebp - 0x90]
call fcn.00661721
lea ecx, [ebp - 0x70]
call fcn.00408e36
lea ecx, [ebp - 0x50]
call fcn.00408e36
lea ecx, [ebp - 0x30]
call fcn.00408e36
xor al, al
jmp 0x66a953
mov al, 1
call fcn.00645f45
ret