joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022b0
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x43f780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x402349
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4022f5
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402118
test al, al
je 0x402349
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x48]
sub eax, dword [ebx]
push edi
push ecx
push eax
push dword [ebx]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40231e
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402118
test al, al
je 0x402349
push edi
lea eax, [ebp - 0x4c]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402345
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402118
test al, al
je 0x402349
mov al, 1
jmp 0x40234b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d104
leave
ret 4

Function at 0x403372
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x40339c
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x440090]
inc edi
sub esi, 1
jne 0x403384
pop edi
mov eax, edx
pop esi
ret 0xc
Function at 0x404528
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x430a8f
call fcn.0041d1a8
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x34], edx
test esi, esi
jne 0x40454a
mov al, 1
jmp 0x404670
cmp dword [ebx + 0x10], 1
jne 0x40455e
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebx + 8], eax
mov edx, dword [ebp - 0x34]
and dword [ebp - 0x30], 0
xor cl, cl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], cl
je 0x4045b1
xor edi, edi
test esi, esi
je 0x4045d2
mov eax, esi
mov ecx, 0x4000
sub eax, edi
cmp eax, ecx
jb 0x404582
mov eax, ecx
push 0
lea ecx, [ebp - 0x30]
push ecx
push eax
lea eax, [edx + edi]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne cl
mov byte [ebp - 0x29], cl
test eax, eax
je 0x4045ca
mov edx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x404573
jmp 0x4045ca
push 0
lea eax, [ebp - 0x30]
push eax
push esi
push edx
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne cl
mov byte [ebp - 0x29], cl
test cl, cl
jne 0x404669
cmp byte [ebx + 0x1e], 0
je 0x404669
cmp dword [ebx + 0x10], 0
jne 0x404669
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x45c598
push edi
call fcn.0040353a
test al, al
je 0x404641
mov edx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], esi
jae 0x40455e
cmp dword [ebp - 0x30], 0
jbe 0x40455e
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x433258]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x433258]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
jmp 0x40455b
push 0x433688
lea ecx, [ebp - 0x28]
call fcn.004014a2
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x45c598
call fcn.0040396d
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.0041d157
ret 8
Function at 0x404ca9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x430a1c
call fcn.0041d1a8
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x404cc2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404d48
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004067c5
test al, al
je 0x404d0e
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x404d05
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x404d48
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x404d3f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016c3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041d0f6
pop ecx
pop ecx
mov eax, ebx
call fcn.0041d157
ret 4

Function at 0x404f2d
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x430a1c
call fcn.0041d1a8
mov esi, dword [ebp + 8]
push esi
call fcn.004065b6
movzx eax, ax
cmp eax, 0x2e
je 0x404f71
cmp eax, 0x20
je 0x404f71
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x404f59
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x40501c
jmp 0x404f75
and dword [ebp - 0x2c], 0
push esi
call fcn.00404c97
test al, al
jne 0x40502f
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004067c5
test al, al
je 0x404fc5
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x404fb8
mov eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
jmp 0x404fc8
mov edi, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x405007
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x404ffe
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016c3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041d0f6
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x40502f
cmp byte [ebp + 0xc], 0
je 0x40502b
push dword [ebp + 0x10]
push esi
call fcn.0040528d
xor eax, eax
jmp 0x405047
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x405047
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.0041d157
ret 0xc
Function at 0x40528d
Capabilities:
Set file attributes

Disassembly:
push 0x24
mov eax, 0x430a1c
call fcn.0041d1a8
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x4052a6
mov eax, dword [esi]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x405335
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004067c5
test al, al
je 0x4052fb
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x4052ec
mov eax, dword [ebp - 0x28]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x405335
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40532c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016c3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041d0f6
pop ecx
pop ecx
mov al, bl
call fcn.0041d157
ret 8
Function at 0x4055b0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x430b75
call fcn.0041d1a8
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x27c], eax
cmp esi, 0xffffffff
jne 0x4056c0
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4055e1
mov ecx, dword [eax]
lea eax, [ebp - 0x278]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4056e3
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x27c]
push eax
push edi
call fcn.004067c5
test al, al
je 0x405647
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x405637
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x405698
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x40568f
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004016c3
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.0041d0f6
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x4056e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4056b6
cmp eax, 3
je 0x4056b6
cmp eax, 0x12
je 0x4056b6
mov al, 1
jmp 0x4056b8
xor al, al
mov byte [ebx + 0x5c], al
jmp 0x4057a0
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4056e3
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x4056b8
mov edi, dword [ebp - 0x27c]
push edi
mov ecx, ebx
call fcn.00403aaa
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004014a2
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push ebx
call fcn.00406e14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401780
mov ecx, dword [ebp - 0x25c]
xor eax, eax
add eax, dword [ebp - 0x258]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x278]
adc ecx, 0
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebp - 0x270]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebp - 0x268]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x264]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp - 0x260]
mov dword [ebx + 0x50], eax
lea eax, [ebp - 0x264]
mov dword [ebx + 0x54], ecx
lea ecx, [ebx + 0x28]
push eax
call fcn.0040bc81
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebx + 0x30]
call fcn.0040bc81
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebx + 0x38]
call fcn.0040bc81
and dword [ebx + 0x58], 0
mov eax, esi
call fcn.0041d157
ret 0xc
Function at 0x408d30
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x4480c8], cl
inc ecx
cmp ecx, 0x100
jl 0x408d39
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x448dc9], al
mov byte [ebp*4 + 0x448dc8], al
mov byte [ebp*4 + 0x4489cb], al
mov byte [ebp*4 + 0x4489c8], al
mov byte [ebp*4 + 0x4485cb], al
mov byte [ebp*4 + 0x4485ca], al
mov byte [ebp*4 + 0x4481ca], al
mov byte [ebp*4 + 0x4481c9], al
call fcn.004094d9
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x448dcb], al
mov byte [ebp*4 + 0x4489ca], al
mov byte [ebp*4 + 0x4485c9], al
mov byte [ebp*4 + 0x4481c8], al
call fcn.004094d9
mov bl, byte [ebp + 0x4480c8]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x448dca], al
mov byte [ebp*4 + 0x4489c9], al
mov byte [ebp*4 + 0x4485c8], al
mov byte [ebp*4 + 0x4481cb], al
call fcn.004094d9
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x449dca], al
mov byte [ebp*4 + 0x4499c9], al
mov byte [ebp*4 + 0x4495c8], al
mov byte [ebp*4 + 0x4491cb], al
mov byte [edi*4 + 0x44adca], al
mov byte [edi*4 + 0x44a9c9], al
mov byte [edi*4 + 0x44a5c8], al
mov byte [edi*4 + 0x44a1cb], al
call fcn.004094d9
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x449dc8], al
mov byte [ebp*4 + 0x4499cb], al
mov byte [ebp*4 + 0x4495ca], al
mov byte [ebp*4 + 0x4491c9], al
mov byte [edi*4 + 0x44adc8], al
mov byte [edi*4 + 0x44a9cb], al
mov byte [edi*4 + 0x44a5ca], al
mov byte [edi*4 + 0x44a1c9], al
call fcn.004094d9
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x449dc9], al
mov byte [ebp*4 + 0x4499c8], al
mov byte [ebp*4 + 0x4495cb], al
mov byte [ebp*4 + 0x4491ca], al
mov byte [edi*4 + 0x44adc9], al
mov byte [edi*4 + 0x44a9c8], al
mov byte [edi*4 + 0x44a5cb], al
mov byte [edi*4 + 0x44a1ca], al
call fcn.004094d9
mov byte [ebp*4 + 0x449dcb], al
mov byte [ebp*4 + 0x4499ca], al
mov byte [ebp*4 + 0x4495c9], al
mov byte [ebp*4 + 0x4491c8], al
inc ebp
mov byte [edi*4 + 0x44adcb], al
mov byte [edi*4 + 0x44a9ca], al
mov byte [edi*4 + 0x44a5c9], al
mov byte [edi*4 + 0x44a1c8], al
cmp ebp, 0x100
jl 0x408d4f
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x409456
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [ecx + 0x18]
jbe 0x4094cf
mov edx, dword [esp + 0x18]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x409480
xorps xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
xorps xmm1, xmm0
cmp eax, 1
jle 0x4094b1
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 8], edi
lea edi, [ecx + 0x18]
sub dword [esp + 8], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x40949b
mov edx, dword [esp + 0x18]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x14], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x18], edx
movups xmmword [eax], xmm1
jne 0x40946f
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
pop ecx
ret 0xc

Function at 0x409503
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x43f780]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebx
cmp dword [ebp + 4], ebx
jle 0x4095bc
push esi
push edi
lea edi, [ebp + 0x28]
mov dword [esp + 0x14], edi
lea eax, [edi + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x20]
mov ebp, eax
push 4
add ebx, esi
pop edi
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x44adc8]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x44a5c8]
xor dl, byte [esi + eax*4 + 0x44a1c8]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x44a9c8]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x409546
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x40953b
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.0041e510
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc ebx
add edi, 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp ebx, dword [ebp + 4]
jl 0x409532
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d104
add esp, 0x24
ret
Function at 0x4095cd
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
mov eax, dword [0x43f780]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x20
push eax
mov esi, dword [ebp + 4]
lea eax, [esp + 0x24]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.0041e510
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x409659
cmp ebx, dword [ebp + 4]
jg 0x4097b1
cmp edi, esi
jge 0x409646
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x409642
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x409622
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x40964c
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x40960d
cmp ebx, dword [ebp + 4]
jg 0x4097b1
mov edi, 0x43f108
movzx eax, byte [esp + esi*4 + 0x19]
mov cl, byte [esp + 0x1c]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x1c], cl
movzx eax, byte [esp + esi*4 + 0x1a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1d], al
movzx eax, byte [esp + esi*4 + 0x1b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1e], al
movzx eax, byte [esp + esi*4 + 0x18]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1f], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x1c], al
mov dword [esp + 0x18], edi
cmp esi, 8
je 0x4096e8
cmp esi, 1
jle 0x4096dc
lea ecx, [esp + 0x20]
lea ebp, [esi - 1]
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4096c8
sub ebp, 1
jne 0x4096c5
mov ebp, dword [esp + 0x10]
xor edi, edi
test esi, esi
jle 0x4097a4
jmp 0x409758
push 3
lea ecx, [esp + 0x24]
pop ebp
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4096f2
sub ebp, 1
jne 0x4096ef
movzx eax, byte [esp + 0x28]
lea ecx, [esp + 0x30]
push 3
pop ebp
mov al, byte [eax + str.cw]
xor byte [esp + 0x2c], al
movzx eax, byte [esp + 0x29]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2d], al
movzx eax, byte [esp + 0x2a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2e], al
movzx eax, byte [esp + 0x2b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2f], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x409748
sub ebp, 1
jne 0x409745
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax + 4]
jg 0x4097a0
cmp edi, esi
jge 0x40978d
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x409790
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x40976d
cmp edx, 4
jne 0x409793
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x409758
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp ebx, dword [ebp + 4]
jle 0x409667
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d104
add esp, 0x30
ret 4
Function at 0x409917
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x44b1d0]
test esi, esi
jne 0x40993a
mov ecx, 0x44b1c8
call fcn.004098a2
mov esi, dword [0x44b1d0]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x409983
test esi, esi
je 0x4099a5
push ecx
push eax
push ebx
mov ecx, esi
call dword [0x433258]
call esi
test eax, eax
jne 0x4099c7
push str.CryptProtectMemory_failed
mov esi, 0x45c598
push esi
call fcn.004035f5
pop ecx
pop ecx
mov ecx, esi
call fcn.004037f7
push 2
mov ecx, esi
call fcn.004035f0
jmp 0x4099c7
mov esi, dword [0x44b1d4]
test esi, esi
je 0x4099a5
push ecx
push eax
push ebx
mov ecx, esi
call dword [0x433258]
call esi
test eax, eax
jne 0x4099c7
push str.CryptUnprotectMemory_failed
jmp 0x409964
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edx
jbe 0x4099c7
add al, 0x4b
lea ecx, [ebx + edx]
add al, dl
xor byte [ecx], al
inc edx
mov eax, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jb 0x4099b5
pop esi
pop ebx
leave
ret 0x10
Function at 0x40a506
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x40a933
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x430eef
call fcn.0041d175
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x40a94c
mov eax, dword [edi]
xor ebx, ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40a95f
xor al, al
jmp 0x40a9c4
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004018dd
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov esi, dword [ebp - 0x1c]
sub eax, esi
sar eax, 1
cmp dword [edi + 0x14], 7
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
jbe 0x40a98b
mov ecx, dword [edi]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40a9af
cmp eax, dword [ebp - 0x10]
ja 0x40a9af
push esi
call fcn.0042234e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040181c
mov bl, 1
test esi, esi
je 0x40a9c2
mov ecx, dword [ebp - 0x14]
sub ecx, esi
and ecx, 0xfffffffe
push ecx
push esi
call fcn.0040127e
mov al, bl
call fcn.0041d143
ret 4
Function at 0x40b2eb
Capabilities:
Get common file path

Disassembly:
push 0x60
mov eax, 0x430f7e
call fcn.0041d1a8
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x5c], eax
call fcn.0041d0c6
mov ebx, eax
pop ecx
mov dword [ebp - 0x6c], ebx
lea esi, [ebx + 0x208]
push esi
push ebx
mov dword [ebp - 0x64], esi
call fcn.00401460
mov dword [ebp - 0x68], esi
and dword [ebp - 4], 0
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40b33b
xor edi, edi
jmp 0x40b3f6
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004014a2
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004014a2
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00406b7e
lea ecx, [ebp - 0x40]
call fcn.00401780
lea ecx, [ebp - 0x58]
call fcn.00401780
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x40b3a0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp ecx, 7
jbe 0x40b3e5
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
cmp ecx, 0x1000
jb 0x40b3dc
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004016c3
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
push ecx
push edx
call fcn.0041d0f6
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x40b406
sub esi, ebx
and esi, 0xfffffffe
push esi
push ebx
call fcn.0040127e
mov eax, edi
call fcn.0041d157
ret 4