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

Disassembly:
push 0xac
mov eax, 0x5e3fd0
call fcn.004c2889
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.004050d0
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.00419460
push str._files.db
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00413330
add esp, 0xc
push eax
mov ecx, 0xa27180
mov byte [ebp - 4], 2
call fcn.00411380
lea ecx, [ebp - 0x58]
call fcn.004051e0
lea ecx, [ebp - 0x70]
call fcn.004051e0
mov dword [ebp - 0x88], 0x6286a4
mov byte [ebp - 0x7c], 1
push ecx
push ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.004afb28
test al, al
je 0x4afa32
movss xmm1, dword [0x629cd8]
lea ecx, [ebp - 0x88]
call fcn.004afe0e
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
call fcn.00406850
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.004af7c9
pop ecx
pop ecx
test al, al
jne 0x4afa9b
push dword [ebp - 0x74]
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x28]
push eax
mov edx, esi
call fcn.004af703
pop ecx
pop ecx
test al, al
je 0x4afa98
lea edx, [ebp - 0x88]
mov byte [edi], 1
lea ecx, [ebp - 0x28]
call fcn.004af4ab
jmp 0x4afa9b
mov byte [ebp - 0x78], bl
lea ecx, [ebp - 0x88]
call fcn.004afba4
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [ebp - 0x78], 0
je 0x4afac8
mov edx, dword [ebp - 0x98]
lea ecx, [ebp - 0x28]
call fcn.004af59a
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.004051e0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0x6286a4
call fcn.004afba4
lea ecx, [ebp - 0x40]
call fcn.00405040
mov al, bl
call fcn.004c2833
ret
Function at 0x4b8000
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 0x4b8040
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 0x4b8d20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e52b3
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x64106c]
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 0x4b8dad
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.004062f0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4b8e6f
inc ecx
push ecx
jmp 0x4b8e64
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.004b80f0
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x98]
call fcn.004b8a70
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00411380
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x4b8e3e
inc eax
lea ecx, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
call fcn.004064e0
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.004062f0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4b8e6f
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004064e0
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.004c2233
mov esp, ebp
pop ebp
ret 8
Function at 0x4b8ea0
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 0x4b8f7b
movzx ecx, cl
mov dl, dh
mov dh, byte [ecx + str.cw]
movzx ecx, byte [ebp - 1]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 3], cl
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
movzx ecx, dl
mov dl, byte [ebp - 1]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], cl
mov ecx, ebx
shr ecx, 2
xor dh, byte [ecx + 0x61ddec]
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 0x4b8f20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b91b0
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 0x4b91d5
sub ebx, 1
jne 0x4b91d0
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 + 0x61def8]
mov byte [ecx - 4], al
sub edx, 1
jne 0x4b9260
inc edi
sub ebx, 1
jne 0x4b9250
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 0x4b9290
sub ebx, 1
jne 0x4b9284
mov ecx, esi
call fcn.004b8fb0
mov dl, byte [ebp - 1]
sub dword [ebp - 0xc], 0x10
dec dl
mov byte [ebp - 1], dl
test dl, dl
jne 0x4b91f4
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 + 0x61def8]
mov byte [ecx - 4], al
sub edx, 1
jne 0x4b9320
inc edi
sub ebx, 1
jne 0x4b9312
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 0x4b9350
sub dword [ebp - 0xc], 1
jne 0x4b9344
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9370
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 0x4b93bf
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.004b91b0
mov ecx, 0x10
mov al, byte [edi + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x4b93a1
mov ecx, dword [ebp - 4]
sub edi, 0x10
movups xmmword [ecx + 0xb0], xmm0
sub ebx, 1
jne 0x4b9390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b93d0
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 0x4b93f0
cmp eax, 0x100
jbe 0x4b9404
push 0x54
push str.rc4.cpp
push str.key_len___0__key_len___256
call fcn.00528669
add esp, 0xc
mov ecx, 0x40
mov dword [ebx + 0x200], 1
mov esi, 0x61dff8
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 0x4b9434
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 0x4b9480
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 0x4b94fa
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 0x4b94c0
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 0x4b95b0
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 0x4b95d7
mov eax, dword [edi]
jmp 0x4b95d9
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.00405e90
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x4b9708
cmp dword [eax + 0x14], 0x10
jb 0x4b9613
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 0x4b9620
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 0x4b9640
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 0x4b9691
mov edi, dword [edi]
mov esi, dword [ebp - 8]
test eax, eax
je 0x4b9708
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 0x4b96a0
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.004062f0
mov eax, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x4b9739
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.004064e0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9830
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5349
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 0x4b9a00
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 0x4b992a
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 [0xa3bed8], 0x10
mov ecx, 0xa3bec4
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0xa3bec4]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
push 1
call fcn.00412b10
inc esi
cmp esi, 4
jl 0x4b98f0
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 0x4b9890
mov dword [ebp + 8], esi
test esi, esi
je 0x4b9a00
mov edi, 3
cmp esi, edi
jge 0x4b996d
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 0x4b99e3
xor edi, edi
mov esi, eax
nop dword [eax]
cmp dword [0xa3bed8], 0x10
mov ecx, 0xa3bec4
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0xa3bec4]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
push 1
call fcn.00412b10
inc edi
cmp edi, esi
jl 0x4b99b0
mov esi, dword [ebp + 8]
mov edi, 3
cmp esi, 3
jge 0x4b9a00
sub edi, esi
nop word [eax + eax]
push 0x3d
push 1
mov ecx, ebx
call fcn.00412b10
sub edi, 1
jne 0x4b99f0
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 0x4bcac0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e59e5
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.004c24ba
mov edi, eax
add esp, 4
test edi, edi
je 0x4bcb32
push ebx
push 0
push edi
call fcn.0050b930
add esp, 0xc
mov byte [edi], 0
jmp 0x4bcb34
xor edi, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 2
test edi, edi
je 0x4bcba6
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x4bcba6
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.004bc7c0
mov ecx, eax
cmp ecx, 1
je 0x4bcb83
test ecx, ecx
jne 0x4bcb9b
mov ax, word [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], ax
test ecx, ecx
je 0x4bcba1
mov esi, dword [esi]
test esi, esi
jne 0x4bcb70
mov esi, dword [ebp - 0x1c]
jmp 0x4bcba9
mov ebx, dword [ebp - 0x14]
push 0x200
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0050b930
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 0x4bcc1b
xor ecx, ecx
jmp 0x4bcc33
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bcc24
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.00405a70
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xf
test edi, edi
je 0x4bcc61
push edi
mov byte [ebp - 4], 0xf
call fcn.004c2285
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 0x4bdd90
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 0x4bdda3
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 0x4bdde9
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4bddce
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 0x4bdf80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x64106c]
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 0x4bdfaf
xor ecx, ecx
jmp 0x4bdfcc
cmp byte [edi], 0
jne 0x4bdfb8
xor ecx, ecx
jmp 0x4bdfcc
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bdfc0
sub ecx, esi
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
call fcn.00426c40
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4bdfe3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00405040
test ebx, ebx
jne 0x4be00d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2233
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x4be0b9
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c24ba
add esp, 4
mov esi, eax
push ebx
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x4be059
cmp byte [edi], 0
jne 0x4be048
xor edi, edi
jmp 0x4be059
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4be050
sub edi, ecx
lea eax, [ebp - 0x1c]
mov dword [edx + 4], edi
push eax
call fcn.00426c40
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4be070
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
call fcn.00405040
push esi
lea ecx, [ebp - 0x1c]
call fcn.004050d0
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00426b40
mov ecx, dword [ebp - 0x38]
push eax
call fcn.00411380
lea ecx, [ebp - 0x34]
call fcn.004051e0
lea ecx, [ebp - 0x1c]
call fcn.00405040
test esi, esi
je 0x4be0b9
push esi
call fcn.004c2285
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2233
mov esp, ebp
pop ebp
ret 8