joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e5de
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x15c
lea ebp, [esp - 4]
mov eax, dword [0x58c584]
xor eax, ebp
mov dword [ebp + 0x15c], eax
push 0x90
mov eax, 0x5388ae
call fcn.0050a8ba
mov esi, dword [ebp + 0x168]
xor edi, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.00402a8c
push dword [ebp + 0x16c]
xor ebx, ebx
lea eax, [ebp - 0x30]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0043e4b3
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push 0x1c
cdq
pop ecx
idiv ecx
mov byte [ebp - 4], 2
test eax, eax
jne 0x43e672
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.00407995
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
call fcn.00402abe
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402abe
mov eax, esi
jmp 0x43e7e6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push 0x1c
cdq
pop ecx
idiv ecx
cmp edi, eax
jae 0x43e7b6
push edi
lea ecx, [ebp - 0x30]
call fcn.00402b9f
push str..
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004054a9
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x43e6b4
mov eax, dword [eax + 4]
jmp 0x43e6b7
add eax, 4
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0
push ebx
lea ecx, [ebp - 0x64]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.004034b0
cmp esi, 0xffffffff
je 0x43e7bd
lea eax, [ebp + 0x2c]
push eax
call fcn.0050a0b0
pop ecx
test eax, eax
jbe 0x43e784
cmp byte [ebp + 0x2c], 0x2e
je 0x43e784
test byte [ebp], 0x10
je 0x43e784
push edi
lea ecx, [ebp - 0x30]
call fcn.00402b9f
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00468480
pop ecx
pop ecx
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x140]
push eax
mov byte [ebp - 4], 5
call fcn.004054a9
add esp, 0xc
push 0
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.004034b0
lea eax, [ebp + 0x140]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00468480
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.00402bc9
push 0
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.004034b0
push 0
push ebx
lea ecx, [ebp + 0x140]
mov byte [ebp - 4], 3
call fcn.004034b0
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43e6dc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
inc edi
jmp 0x43e676
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x48]
push eax
call fcn.00407995
or dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402abe
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402abe
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x15c]
xor ecx, ebp
call fcn.0050a878
add ebp, 0x160
leave
ret
Function at 0x442077
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 8]
call fcn.00441deb
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x442092
xor al, al
jmp 0x442102
cmp dword [0x5908ac], 0x10
mov eax, dword [0x590898]
mov dword [ebp + 8], ebx
jae 0x4420a8
mov eax, 0x590898
lea ecx, [ebp + 8]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44208e
cmp dword [0x5908c8], 0x10
mov eax, dword [0x5908b4]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
jae 0x4420d9
mov eax, 0x5908b4
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4420f7
cmp esi, dword [ebp - 4]
sete bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
leave
ret 4

Function at 0x4446de
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x44476b
cmp dword [0x590c90], 0x10
mov eax, dword [0x590c7c]
jae 0x444712
mov eax, 0x590c7c
push ebx
push esi
push 0x14
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x444764
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x444761
cmp dword [ebp - 0x20], 4
je 0x44475d
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x444761
mov byte [ebp - 1], 1
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret

Function at 0x444771
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x4447ef
cmp dword [0x590c90], 0x10
mov eax, dword [0x590c7c]
jae 0x4447a5
mov eax, 0x590c7c
push ebx
push esi
push 4
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x4447e8
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4447e5
cmp dword [ebp - 0x20], 4
jne 0x4447e5
mov byte [ebp - 1], 1
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x454921
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x58c584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x80
push edi
lea eax, [ebp - 0x84]
push 0
push eax
mov esi, ecx
call fcn.0050aaf0
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
add esp, 0xc
push edi
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0xb0]
call ebx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x20]
call fcn.004033ab
push edi
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0xb4]
call ebx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x3c]
call fcn.004033ab
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0xb8], 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0050a878
leave
ret

Function at 0x457714
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x58c584]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x40
mov eax, 0x53b5dc
call fcn.0050a887
mov eax, dword [ebp + 0x12c]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x18], ebx
jne 0x457814
push 0x103
lea eax, [ebp + 0x1d]
push ebx
push eax
mov byte [ebp + 0x1c], bl
call fcn.0050aaf0
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0041f999
push ebx
push str.Temp
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.0041f999
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.0041f927
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040e453
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040a9d6
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040a9d6
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp]
call fcn.0040ed1a
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 3
call fcn.00403319
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.004034b0
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.0040a9d6
mov ecx, dword [ebp - 0x10]
add esi, 4
push esi
call fcn.004026fa
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0050a878
add ebp, 0x124
leave
ret 4
Function at 0x4602d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi]
mov edx, ecx
xor edx, eax
shr ecx, 8
and edx, 0xff
mov edx, dword [edi + edx*4]
xor edx, ecx
movzx ecx, dl
add ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [edi + ecx*4]
mov dword [esi + 8], edx
ret

Function at 0x460310
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, eax
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov cl, byte [esi]
test cl, cl
je 0x460374
lea ecx, [ecx]
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
mov ecx, dword [edi + ecx*4]
shr eax, 8
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [edi + eax*4]
inc esi
mov dword [edx + 8], ecx
mov cl, byte [esi]
test cl, cl
jne 0x460330
pop esi
ret
Function at 0x461910
Capabilities:
Encrypt data using blowfish

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
push 0x1048
push 0x588818
push ebx
call fcn.0050bbc0
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, 0x48
jle 0x46193a
mov ecx, 0x48
push edi
mov edi, dword [esp + 0x20]
mov eax, edi
add ecx, edi
lea esi, [ebx + 8]
mov dword [esp + 0x18], 6
push ebp
nop
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x46195a
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x461969
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x461978
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x461987
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x461994
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4619a3
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4619b2
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4619c1
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4619ce
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4619dd
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4619ec
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4619fb
mov eax, edi
xor dword [esi], edx
add esi, 0xc
sub dword [esp + 0x1c], 1
jne 0x461950
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
xor esi, esi
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004657e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx + esi*4], ecx
mov dword [ebx + esi*4 + 4], edx
add esi, 2
add esp, 8
cmp esi, 0x12
jl 0x461a18
xor esi, esi
pop edi
lea eax, [esp + 8]
push ebx
push eax
call fcn.004657e0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebx + esi*4 + 0x48], ecx
mov dword [ebx + esi*4 + 0x4c], edx
add esi, 2
add esp, 8
cmp esi, 0x400
jl 0x461a40
pop esi
pop ebx
add esp, 8
ret
Function at 0x463d90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x463e20
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.0050bbc0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x463def
sub eax, ebp
jmp 0x463df1
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x463de0
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x463e10
sub eax, ebp
jmp 0x463e12
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x463e01
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x463f4c
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [esp + 0xc]
mov ebx, ecx
mov dword [esp + 0x10], eax
cmp ebx, edx
jbe 0x463e48
mov ebx, edx
test ebx, ebx
je 0x463e96
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x463e6b
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.00466210
jmp 0x463e7d
cmp ecx, 2
jne 0x463e84
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.00461fd0
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.0050bbc0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x463ec0
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x463ed4
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x463da0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x463f4c
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x463f1b
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x463efb
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.0050aaf0
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x463f4c
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x463f35
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.0050aaf0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4657e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
xor ecx, dword [eax]
mov esi, 1
jmp 0x465800
mov ebx, ecx
shr ebx, 0xe
and ebx, 0x3fc
mov ebx, dword [ebx + eax + 0x448]
mov ebp, ecx
shr ebp, 0x16
and ebp, 0x3fc
add ebx, dword [eax + ebp + 0x48]
mov ebp, ecx
shr ebp, 6
and ebp, 0x3fc
xor ebx, dword [eax + ebp + 0x848]
mov ebp, ecx
and ebp, 0xff
add ebx, dword [eax + ebp*4 + 0xc48]
add esi, 2
xor ebx, dword [eax + esi*4 - 8]
xor edx, ebx
mov ebx, edx
shr ebx, 0xe
and ebx, 0x3fc
mov ebx, dword [ebx + eax + 0x448]
mov ebp, edx
shr ebp, 0x16
and ebp, 0x3fc
add ebx, dword [eax + ebp + 0x48]
mov ebp, edx
shr ebp, 6
and ebp, 0x3fc
xor ebx, dword [eax + ebp + 0x848]
mov ebp, edx
and ebp, 0xff
add ebx, dword [eax + ebp*4 + 0xc48]
xor ebx, dword [eax + esi*4 - 4]
xor ecx, ebx
cmp esi, 0x10
jl 0x465800
xor edx, dword [eax + 0x44]
mov dword [edi + 4], ecx
mov dword [edi], edx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x469bc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x58c584]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
mov esi, dword [esp + 0x118]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x11]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
call fcn.0050aaf0
add esp, 0xc
call fcn.004709a0
test al, al
je 0x469c28
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.Temp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x469c38
lea eax, [esp + 0xc]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x469c50
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004041c5
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0050a878
add esp, 0x10c
ret

Function at 0x46eaf0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x46eb3e
mov esi, dword [esp + 0x10]
test esi, esi
je 0x46eb3e
cmp byte [0x5917c0], 0
jne 0x46eb10
call fcn.0046ea50
mov eax, dword [esp + 0x14]
xor ecx, ecx
test esi, esi
jbe 0x46eb39
push ebx
jmp 0x46eb20
movzx edx, byte [ecx + edi]
movzx ebx, al
xor edx, ebx
shr eax, 8
xor eax, dword [edx*4 + 0x5917c8]
inc ecx
cmp ecx, esi
jb 0x46eb20
pop ebx
pop edi
not eax
pop esi
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
ret
Function at 0x46eb90
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.0050bf30
push 0xffffffffffffffff
push 0x53c980
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x58c584]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x100c]
cmp dword [esi + 0x18], 0x10
mov eax, dword [ebp + 0x1010]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea edi, [esi + 4]
jb 0x46ebf3
mov eax, dword [edi]
jmp 0x46ebf5
mov eax, edi
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.0050f7b3
add esp, 8
test eax, eax
jne 0x46ec9c
mov ebx, dword [ebp - 0x34]
push 0xfff
push eax
lea edx, [ebp + 1]
push edx
mov byte [ebp], al
call fcn.0050aaf0
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x46ec2a
mov edi, dword [edi]
push 0x54bf0c
push edi
call fcn.0050c190
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x46ec9c
xor edi, edi
mov esi, ebx
test esi, esi
jle 0x46ec87
cmp esi, 0x1000
jbe 0x46ec54
mov esi, 0x1000
push eax
push 1
lea eax, [ebp]
push esi
push eax
call fcn.0050dc3c
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
lea edx, [ebp]
push esi
push edx
call fcn.0046eaf0
not eax
mov dword [ebp - 0x14], eax
add edi, esi
mov eax, ebx
add esp, 0xc
sub eax, edi
mov esi, eax
mov eax, dword [ebp - 0x18]
jmp 0x46ec43
mov ecx, dword [ebp - 0x14]
not ecx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x46ec9c
push eax
call fcn.0050b919
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0050a878
add ebp, 0x1004
mov esp, ebp
pop ebp
ret

Function at 0x46eda0
Capabilities:
Check mutex on windows
Create or open mutex on windows

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x46edb9
cmp eax, 0xffffffff
je 0x46edb9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, dword [esp + 0x2c]
mov dword [esi + 0x1c], 0
test edi, edi
je 0x46ede2
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46edd0
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.004041c5
cmp byte [esp + 0x30], 0
jne 0x46edf0
push edi
push 1
push 0
jmp 0x46ee2e
push 1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push edi
lea edx, [esp + 0x18]
push 1
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
cmp eax, 0xb7
je 0x46ee62
cmp dword [esi + 0x1c], 0
je 0x46ee62
mov eax, 1
mov byte [esi + 0x20], al
xor eax, eax
cmp dword [esi + 0x1c], eax
pop esi
setne al
add esp, 0x20
ret 8
xor eax, eax
cmp dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
setne al
pop esi
add esp, 0x20
ret 8
Function at 0x46f5c0
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x46f6f3
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x46f6f3
mov edi, dword [esp + 0x18]
test edi, edi
je 0x46f6f3
push ebp
mov ebp, dword [esp + 0x14]
lea edx, [ebp + 2]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
lea eax, [edx*4 + 1]
cmp dword [edi], eax
jae 0x46f60b
pop ebp
pop edi
mov eax, 2
pop esi
ret
mov edi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, 0xaaaaaaab
mul ebp
shr edx, 1
lea eax, [edx + edx*2]
xor edx, edx
push ebx
test eax, eax
jbe 0x46f698
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [esp + 0x14], eax
jmp 0x46f640
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + edi]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
add eax, edi
shr ebx, 4
movzx eax, byte [ebx + eax]
mov byte [ecx + 1], al
movzx ebx, byte [esi + 2]
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
shr ebx, 6
add ebx, edi
movzx eax, byte [ebx + eax*4]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + edi]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x46f640
mov edx, dword [esp + 0x14]
cmp edx, ebp
jae 0x46f6df
movzx eax, byte [esi]
inc edx
cmp edx, ebp
jae 0x46f6aa
movzx esi, byte [esi + 1]
jmp 0x46f6ac
xor esi, esi
mov ebx, eax
shr ebx, 2
mov bl, byte [ebx + edi]
mov byte [ecx], bl
and eax, 3
shl eax, 4
mov ebx, esi
shr ebx, 4
add eax, edi
mov al, byte [ebx + eax]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, ebp
jae 0x46f6d6
and esi, 0xf
mov al, byte [edi + esi*4]
jmp 0x46f6d8
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [esp + 0x20]
pop ebx
mov byte [ecx], 0
sub ecx, dword [esp + 0x18]
pop ebp
pop edi
mov dword [edx], ecx
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x46f9f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x53cae9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58c584]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], edx
mov dword [esp + 0x18], ebx
mov byte [ebx + 4], dl
mov eax, ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 1
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x46fa47
sub eax, esi
sar eax, 1
lea edi, [eax + 1]
push edi
call fcn.0050ac47
mov esi, eax
add esp, 4
test esi, esi
je 0x46fabb
push edi
push 0
push esi
call fcn.0050aaf0
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46fa80
sub eax, edx
sar eax, 1
inc eax
push eax
push ebp
push esi
call fcn.0050ee16
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46faa0
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.004041c5
push esi
call fcn.0050ab6a
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret