joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afa42
Capabilities:
Check mutex on windows

Disassembly:
push 0xac
mov eax, 0x5e3ff0
call fcn.004c299a
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x10]
push str.GlobalReadyFile_2F1FD62C_8B36_4AD2_90B7_7238893E1B7E
mov dword [ebp - 0x74], eax
call fcn.00405570
xor eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0xc
push eax
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00419930
push str._files.db
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004137f0
add esp, 0xc
push eax
mov ecx, 0xa26980
mov byte [ebp - 4], 2
call fcn.00411840
lea ecx, [ebp - 0x58]
call fcn.00405680
lea ecx, [ebp - 0x70]
call fcn.00405680
mov dword [ebp - 0x88], 0x628674
mov byte [ebp - 0x7c], 1
push ecx
push ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.004afc59
test al, al
je 0x4afb63
movss xmm1, dword [0x629c88]
lea ecx, [ebp - 0x88]
call fcn.004aff3f
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
call fcn.00406d00
push dword [ebp - 0x74]
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
lea edx, [ebp - 0x28]
push eax
mov ecx, esi
mov byte [edi], bl
call fcn.004af8fa
pop ecx
pop ecx
test al, al
jne 0x4afbcc
push dword [ebp - 0x74]
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x28]
push eax
mov edx, esi
call fcn.004af834
pop ecx
pop ecx
test al, al
je 0x4afbc9
lea edx, [ebp - 0x88]
mov byte [edi], 1
lea ecx, [ebp - 0x28]
call fcn.004af5dc
jmp 0x4afbcc
mov byte [ebp - 0x78], bl
lea ecx, [ebp - 0x88]
call fcn.004afcd5
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [ebp - 0x78], 0
je 0x4afbf9
mov edx, dword [ebp - 0x98]
lea ecx, [ebp - 0x28]
call fcn.004af6cb
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.00405680
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0x628674
call fcn.004afcd5
lea ecx, [ebp - 0x40]
call fcn.004054e0
mov al, bl
call fcn.004c2944
ret
Function at 0x4b8130
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, edx
push edi
mov edi, dword [ecx]
mov ebx, 0xe3779b90
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [esi + 4]
mov esi, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
nop dword [eax]
mov edx, edi
shr edx, 5
add edx, ecx
mov ecx, edi
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + ebx]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [eax + ebx]
xor edx, ecx
lea ebx, [ebx + 0x61c88647]
mov ecx, dword [ebp - 0x10]
sub edi, edx
sub esi, 1
jne 0x4b8170
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret

Function at 0x4b8e50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e52d3
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov ecx, dword [eax + 8]
cmp edx, ecx
jbe 0x4b8edd
lea eax, [ebp - 0x28]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.004067a0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4b8f9f
inc ecx
push ecx
jmp 0x4b8f94
mov eax, dword [eax + 4]
sub ecx, edx
push ecx
add eax, edx
mov byte [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x98], 0x67452301
mov dword [ebp - 0x94], 0xefcdab89
mov dword [ebp - 0x90], 0x98badcfe
mov dword [ebp - 0x8c], 0x10325476
call fcn.004b8220
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x98]
call fcn.004b8ba0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00411840
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x4b8f6e
inc eax
lea ecx, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
call fcn.00406990
lea eax, [ebp - 0x28]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.004067a0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4b8f9f
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00406990
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c2344
mov esp, ebp
pop ebp
ret 8
Function at 0x4b8fd0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [edx]
push ebx
push esi
mov esi, ecx
mov ebx, 4
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
movzx eax, byte [edx + 6]
mov byte [esi + 6], al
movzx eax, byte [edx + 7]
mov byte [esi + 7], al
movzx eax, byte [edx + 8]
mov byte [esi + 8], al
movzx eax, byte [edx + 9]
mov byte [esi + 9], al
movzx eax, byte [edx + 0xa]
mov byte [esi + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [esi + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [esi + 0xc], al
lea eax, [esi + 0xd]
mov cl, byte [edx + 0xd]
mov byte [eax], cl
mov cl, byte [edx + 0xe]
mov byte [esi + 0xe], cl
mov cl, byte [edx + 0xf]
mov byte [esi + 0xf], cl
nop word [eax + eax]
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov ch, byte [eax + 2]
mov dh, byte [eax - 1]
mov byte [ebp - 3], cl
mov byte [ebp - 1], dl
mov byte [ebp - 2], ch
test bl, 3
jne 0x4b90ab
movzx ecx, cl
mov dl, dh
mov dh, byte [ecx + 0x61deb8]
movzx ecx, byte [ebp - 1]
mov cl, byte [ecx + 0x61deb8]
mov byte [ebp - 3], cl
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + 0x61deb8]
mov byte [ebp - 1], cl
movzx ecx, dl
mov dl, byte [ebp - 1]
mov cl, byte [ecx + 0x61deb8]
mov byte [ebp - 2], cl
mov ecx, ebx
shr ecx, 2
xor dh, byte [ecx + 0x61ddac]
mov ch, byte [ebp - 2]
mov cl, byte [eax - 0xd]
inc ebx
xor cl, dh
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, byte [ebp - 3]
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, dl
mov byte [eax + 5], cl
mov cl, byte [eax - 0xa]
xor cl, ch
mov byte [eax + 6], cl
add eax, 4
cmp ebx, 0x2c
jb 0x4b9050
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b92e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, edx
mov ebx, 4
push esi
push edi
mov dword [ebp - 8], eax
mov esi, ecx
lea edi, [eax + 0xa0]
nop dword [eax + eax]
mov edx, 4
mov al, byte [edi]
inc edi
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b9305
sub ebx, 1
jne 0x4b9300
mov eax, dword [ebp - 8]
add eax, 0x90
mov byte [ebp - 1], 9
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
nop dword [eax + eax]
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x61ddb8]
mov byte [ecx - 4], al
sub edx, 1
jne 0x4b9390
inc edi
sub ebx, 1
jne 0x4b9380
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ebx, 4
mov edi, 4
nop dword [eax]
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x4b93c0
sub ebx, 1
jne 0x4b93b4
mov ecx, esi
call fcn.004b90e0
mov dl, byte [ebp - 1]
sub dword [ebp - 0xc], 0x10
dec dl
mov byte [ebp - 1], dl
test dl, dl
jne 0x4b9324
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
mov ecx, edi
mov edx, 4
nop dword [eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x61ddb8]
mov byte [ecx - 4], al
sub edx, 1
jne 0x4b9450
inc edi
sub ebx, 1
jne 0x4b9442
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov edx, dword [ebp - 8]
mov ecx, 4
nop dword [eax]
mov al, byte [edx + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x4b9480
sub dword [ebp - 0xc], 1
jne 0x4b9474
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b94a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, edx
test ebx, ebx
je 0x4b94ef
push edi
dec ebx
lea edi, [ecx + 0xb0]
shr ebx, 4
sub edi, esi
inc ebx
movups xmm0, xmmword [esi]
mov edx, ecx
mov ecx, esi
call fcn.004b92e0
mov ecx, 0x10
mov al, byte [edi + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x4b94d1
mov ecx, dword [ebp - 4]
sub edi, 0x10
movups xmmword [ecx + 0xb0], xmm0
sub ebx, 1
jne 0x4b94c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b9500
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], edx
mov byte [ebp - 1], 0
push ebx
mov ebx, ecx
push esi
push edi
test eax, eax
je 0x4b9520
cmp eax, 0x100
jbe 0x4b9534
push 0x54
push str.rc4.cpp
push str.key_len___0__key_len___256
call fcn.005286f9
add esp, 0xc
mov ecx, 0x40
mov dword [ebx + 0x200], 1
mov esi, 0x61e008
mov dword [ebx + 0x204], 1
mov edi, ebx
mov word [ebx + 0x208], 0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
xor esi, esi
xor edx, edx
mov cl, byte [esi + ebx]
mov eax, esi
div edi
mov eax, dword [ebp - 8]
movzx eax, byte [edx + eax]
mov dl, byte [ebp - 1]
add al, cl
add dl, al
mov byte [ebp - 1], dl
movzx edx, dl
movzx eax, byte [edx + ebx]
mov byte [esi + ebx], al
inc esi
mov byte [edx + ebx], cl
cmp esi, 0x100
jb 0x4b9564
lea edi, [ebx + 0x100]
mov esi, ebx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 0x204]
lea esi, [edi + 0x100]
sub dword [ebp + 8], eax
add ecx, eax
mov bh, byte [edi + 0x209]
sub edx, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
cmp eax, ecx
jae 0x4b962a
sub edx, dword [ebp + 8]
mov edi, edx
nop dword [eax]
mov edx, dword [ebp - 4]
movzx ecx, al
add esi, ecx
mov bl, byte [esi]
add bh, bl
movzx ecx, bh
add edx, ecx
movzx ecx, byte [edx]
mov byte [esi], cl
mov byte [edx], bl
movzx ecx, byte [esi]
mov edx, dword [ebp + 8]
add cl, bl
mov esi, dword [ebp - 4]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + esi]
xor cl, byte [edi + edx]
mov byte [edx], cl
cmp eax, dword [ebp - 8]
jb 0x4b95f0
mov edi, dword [ebp - 0xc]
mov byte [edi + 0x209], bh
mov dword [edi + 0x204], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b96e0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x2c], 0
mov esi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 8], esi
cmp dword [edi + 0x14], 0x10
jb 0x4b9707
mov eax, dword [edi]
jmp 0x4b9709
mov eax, edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
push eax
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00406340
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x4b9838
cmp dword [eax + 0x14], 0x10
jb 0x4b9743
mov eax, dword [eax]
mov dword [ebp + 8], eax
xor bh, bh
xor eax, eax
nop word [eax + eax]
mov byte [ebp + eax - 0x134], al
inc eax
cmp eax, 0x100
jb 0x4b9750
mov edi, dword [ebp + 8]
xor esi, esi
mov word [ebp - 0x34], 0
nop word [eax + eax]
mov eax, esi
mov bl, byte [ebp + esi - 0x134]
xor edx, edx
div ecx
lea ecx, [ebp - 0x134]
movzx eax, byte [edx + edi]
add al, bl
add bh, al
movzx eax, bh
add ecx, eax
movzx eax, byte [ecx]
mov byte [ebp + esi - 0x134], al
inc esi
mov byte [ecx], bl
mov ecx, dword [ebp - 0x24]
cmp esi, 0x100
jb 0x4b9770
mov edi, dword [ebp - 0x28]
lea ebx, [ebp - 0x20]
cmp dword [ebp - 0xc], 0x10
cmovae ebx, dword [ebp - 0x20]
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x4b97c1
mov edi, dword [edi]
mov esi, dword [ebp - 8]
test eax, eax
je 0x4b9838
mov dl, byte [ebp - 0x34]
sub edi, ebx
mov esi, eax
nop
inc dl
lea ebx, [ebx + 1]
mov byte [ebp - 0x34], dl
movzx eax, dl
lea edx, [ebp - 0x134]
add edx, eax
mov al, byte [ebp - 0x33]
add al, byte [edx]
mov byte [ebp - 0x33], al
mov cl, byte [edx]
movzx eax, al
movzx eax, byte [ebp + eax - 0x134]
mov byte [edx], al
movzx eax, byte [ebp - 0x33]
mov byte [ebp + eax - 0x134], cl
movzx ecx, byte [ebp - 0x33]
mov dl, byte [ebp - 0x34]
movzx eax, dl
movzx ecx, byte [ebp + ecx - 0x134]
add cl, byte [ebp + eax - 0x134]
movzx eax, cl
movzx eax, byte [ebp + eax - 0x134]
xor al, byte [edi + ebx - 1]
mov byte [ebx - 1], al
sub esi, 1
jne 0x4b97d0
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x20]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.004067a0
mov eax, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x4b9869
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00406990
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9960
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5369
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
push esi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
mov dword [ebp - 4], 0
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test edi, edi
je 0x4b9b30
nop dword [eax]
mov al, byte [edx]
dec edi
mov byte [ebp + esi - 0x14], al
inc edx
mov ch, byte [ebp - 0x12]
inc esi
mov ah, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov byte [ebp - 0xe], ch
mov byte [ebp + 0xb], ah
mov byte [ebp - 0xd], cl
cmp esi, 3
jne 0x4b9a5a
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ah
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, ah
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
nop word [eax + eax]
cmp dword [0xa3b6d8], 0x10
mov ecx, 0xa3b6c4
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0xa3b6c4]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
push 1
call fcn.00412fd0
inc esi
cmp esi, 4
jl 0x4b9a20
mov edx, dword [ebp - 0x20]
xor esi, esi
mov ah, byte [ebp + 0xb]
mov cl, byte [ebp - 0xd]
mov ch, byte [ebp - 0xe]
test edi, edi
jne 0x4b99c0
mov dword [ebp + 8], esi
test esi, esi
je 0x4b9b30
mov edi, 3
cmp esi, edi
jge 0x4b9a9d
mov ecx, edi
xor eax, eax
sub ecx, esi
lea edi, [ebp - 0x14]
mov edx, ecx
add edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ch, byte [ebp - 0x12]
mov edi, 3
mov ah, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ah
shr al, 4
and ah, 0xf
shl cl, 4
add cl, al
shl ah, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add ah, al
mov byte [ebp - 0x15], ch
mov byte [ebp - 0x16], ah
lea eax, [esi + 1]
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x4b9b13
xor edi, edi
mov esi, eax
nop dword [eax]
cmp dword [0xa3b6d8], 0x10
mov ecx, 0xa3b6c4
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0xa3b6c4]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
push 1
call fcn.00412fd0
inc edi
cmp edi, esi
jl 0x4b9ae0
mov esi, dword [ebp + 8]
mov edi, 3
cmp esi, 3
jge 0x4b9b30
sub edi, esi
nop word [eax + eax]
push 0x3d
push 1
mov ecx, ebx
call fcn.00412fd0
sub edi, 1
jne 0x4b9b20
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4bcbf0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5a05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], 0
push eax
push 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x13], 0
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.004c25cb
mov edi, eax
add esp, 4
test edi, edi
je 0x4bcc62
push ebx
push 0
push edi
call fcn.0050ba40
add esp, 0xc
mov byte [edi], 0
jmp 0x4bcc64
xor edi, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 2
test edi, edi
je 0x4bccd6
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x4bccd6
mov byte [ebp - 4], 0xc
mov esi, edi
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x14]
nop dword [eax]
lea ecx, [esi + 8]
call fcn.004bc8f0
mov ecx, eax
cmp ecx, 1
je 0x4bccb3
test ecx, ecx
jne 0x4bcccb
mov ax, word [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], ax
test ecx, ecx
je 0x4bccd1
mov esi, dword [esi]
test esi, esi
jne 0x4bcca0
mov esi, dword [ebp - 0x1c]
jmp 0x4bccd9
mov ebx, dword [ebp - 0x14]
push 0x200
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0050ba40
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
push eax
movzx eax, byte [ebp - 0x10]
push eax
mov eax, ebx
shr eax, 0x18
push eax
mov eax, ebx
shr ebx, 8
shr eax, 0x10
movzx eax, al
push eax
movzx eax, bl
push eax
movzx eax, byte [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push str._02X__02X__02X__02X__02X__02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0x2c
mov word [esi], ax
cmp word [ebp - 0x224], ax
jne 0x4bcd4b
xor ecx, ecx
jmp 0x4bcd63
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bcd54
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.00405f20
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xf
test edi, edi
je 0x4bcd91
push edi
mov byte [ebp - 4], 0xf
call fcn.004c2396
add esp, 4
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4bdec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor bl, bl
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
jb 0x4bded3
mov ecx, dword [ecx]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4bdf19
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4bdefe
mov esi, dword [esi]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4be0b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov dword [ebp - 0x38], esi
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x4be0df
xor ecx, ecx
jmp 0x4be0fc
cmp byte [edi], 0
jne 0x4be0e8
xor ecx, ecx
jmp 0x4be0fc
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4be0f0
sub ecx, esi
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
call fcn.00427130
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4be113
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.004054e0
test ebx, ebx
jne 0x4be13d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2344
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x4be1e9
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c25cb
add esp, 4
mov esi, eax
push ebx
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x4be189
cmp byte [edi], 0
jne 0x4be178
xor edi, edi
jmp 0x4be189
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4be180
sub edi, ecx
lea eax, [ebp - 0x1c]
mov dword [edx + 4], edi
push eax
call fcn.00427130
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4be1a0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
call fcn.004054e0
push esi
lea ecx, [ebp - 0x1c]
call fcn.00405570
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00427030
mov ecx, dword [ebp - 0x38]
push eax
call fcn.00411840
lea ecx, [ebp - 0x34]
call fcn.00405680
lea ecx, [ebp - 0x1c]
call fcn.004054e0
test esi, esi
je 0x4be1e9
push esi
call fcn.004c2396
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2344
mov esp, ebp
pop ebp
ret 8