joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055b9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x405663
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x405644
push edi
call fcn.0040558e
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x405637
cmp dword [esi + 0x5c], ebx
je 0x40565e
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00405a92
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.00405550
mov edi, eax
test edi, edi
jne 0x4056df
lea eax, [ebx + 0x20]
push eax
call fcn.004065d7
mov edi, eax
test edi, edi
jne 0x4056df
lea eax, [ebx + 0x1c]
push eax
call fcn.004065d7
mov edi, eax
test edi, edi
jne 0x4056df
push ebx
call fcn.00406490
mov edi, eax
test edi, edi
je 0x4056df
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.004054d2
add ebx, 0x28
sub esi, 1
jne 0x4056ce
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x4056f3
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x405707
cmp dword [esi + 0x40], edx
jne 0x405707
cmp dword [esi + 0x3c], edx
jne 0x405707
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x4066e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.004dc6e6
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x406710
call fcn.004065f6
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x407f6b
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x4ecbe4
call fcn.004d729a
cmp byte [0xb5e054], 0
mov edi, dword [ebp + 8]
jne 0x407fa7
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00407564
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004d7255
pop ecx
test esi, esi
jmp 0x407fb3
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407fb9
mov al, 1
jmp 0x407fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407fca
xor al, al
jmp 0x407fff
lea ecx, [ebp - 0x50]
call fcn.0040862d
lea ecx, [ebp - 0x28]
call fcn.00406bce
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004087f5
test al, al
je 0x407ff4
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004d7255
pop ecx
mov al, bl
call fcn.004d7268
ret 4

Function at 0x408007
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb5e054], 0
jne 0x40803d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d7255
pop ecx
test esi, esi
pop esi
jmp 0x40804a
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408050
mov al, 1
jmp 0x408052
xor al, al
leave
ret 4

Function at 0x40819d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00408e2b
cmp eax, 0xffffffff
je 0x4081ca
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x4081ca
and eax, 0xfffffffe
push eax
push esi
call fcn.0040859f
test al, al
je 0x408202
cmp byte [0xb5e054], 0
push esi
jne 0x4081f4
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d7255
pop ecx
test esi, esi
jmp 0x4081fc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408202
mov al, 1
jmp 0x408204
xor al, al
pop esi
leave
ret 4

Function at 0x40832e
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb5e054], 0
jne 0x408362
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d7255
pop ecx
test esi, esi
pop esi
jmp 0x40836d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x408373
mov al, 1
jmp 0x408375
xor al, al
leave
ret 4
Function at 0x40859f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb5e054], 0
jne 0x4085d6
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d7255
pop ecx
test esi, esi
pop esi
jmp 0x4085e4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4085ea
mov al, 1
jmp 0x4085ec
xor al, al
leave
ret 8

Function at 0x408e2b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb5e054], 0
jne 0x408e5f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d7255
pop ecx
mov eax, esi
pop esi
jmp 0x408e72
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4

Function at 0x409068
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409092
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409092
xor al, al
jmp 0x4090a6
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x414795
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ece30
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0xb5c470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
mov dword [esi], vtable.CInFileStreamVol.0
mov dword [esi + 4], vtable.CInFileStreamVol.1.0
mov dword [esi + 8], vtable.CInFileStreamVol.2.0
mov dword [esi + 0xc], vtable.CInFileStreamVol.3.0
cmp dword [esi + 0x30], edx
je 0x4147e8
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x74]
mov eax, dword [esi + 0x28]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x30]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x4147f8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, esi
call fcn.00410c35
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x418708
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x4eca4c
call fcn.004d729a
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.00418289
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.00409de5
push dword [ebp - 0x18]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040a0f6
push dword [ebp - 0x18]
call fcn.004d7255
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.004d7268
ret 8
Function at 0x4395f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.004d78c0
mov eax, dword [0xb5c470]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004d8ef0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1804]
add esp, 0xc
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x439630
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1004]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x439650
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x804]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x439670
push 0
push 0
lea eax, [ebp - 0x1804]
push eax
push 0x4396c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
je 0x4396a8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6ff7
mov esp, ebp
pop ebp
ret

Function at 0x439810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xb5c470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43985d
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
call fcn.00439400
add esp, 0x10
test al, al
je 0x43987b
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp + 0x1c]
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d6ff7
mov esp, ebp
pop ebp
ret
Function at 0x439890
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0xb5c470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [str.SoftwareClasses]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov ax, word [0x4f0cd0]
push edi
mov edi, dword [ebp + 0x20]
mov word [ebp - 8], ax
or edi, 0x2001f
lea eax, [ebp - 0x30]
push eax
push edi
push 0
lea eax, [ebp - 0x28]
push eax
movzx eax, byte [ebp + 8]
movups xmmword [ebp - 0x28], xmm0
sub eax, 0x7fffffff
movups xmm0, xmmword [0x4f0cc0]
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439946
push esi
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
push edi
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x439925
push dword [ebp + 0x20]
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
call fcn.00439400
add esp, 0x10
test al, al
je 0x439945
push dword [ebp + 0x18]
push dword [ebp - 0x34]
push dword [ebp + 0x1c]
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d6ff7
mov esp, ebp
pop ebp
ret
Function at 0x47cb90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edf40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0xb5c470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004d720e
mov esi, eax
add esp, 4
test esi, esi
je 0x47cbf0
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d864f
add esp, 4
mov dword [esi + 4], eax
jmp 0x47cbf2
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b44c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee33d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0xb5c470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004d720e
mov edi, eax
add esp, 4
test edi, edi
je 0x4b4564
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d864f
add esp, 4
mov dword [edi + 4], eax
jmp 0x4b4566
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.0047ca60
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4b45c0
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4b45c0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x4b45dc
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4b45ff
cmp byte [ebp + 0xc], 0
je 0x4b45eb
push esi
call fcn.004d8acb
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4b460b
mov esi, str.ios_base::badbit_set
jmp 0x4b461b
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004b4650
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.0047d030
push 0x502bb8
lea eax, [ebp - 0x28]
push eax
call fcn.004d9d9b
int3
Function at 0x4cf5e0
Capabilities:
Access peb ldr_data
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee590
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0xb5c470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push 0
push 0x4f205c
mov dword [ebp - 4], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.004b3a80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d6171
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push eax
push esi
push 0x4d1e73
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
pop esi
pop ebp
ret 4
Function at 0x4d6ba7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x14
test eax, eax
je 0x4d6c06
mov ecx, dword [ebp + 8]
dec eax
push ebx
mov ebx, dword [ebp + 0xc]
shr eax, 4
push esi
lea edx, [ecx + 0xf0]
inc eax
push edi
mov dword [ebp - 4], edx
mov dword [ebp + 0x10], eax
mov esi, ebx
lea edi, [ebp - 0x14]
push ecx
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004d6c58
mov edi, dword [ebp - 4]
pop ecx
pop ecx
push 0x10
mov ecx, edi
pop edx
mov al, byte [ecx]
xor byte [ebx], al
inc ecx
inc ebx
sub edx, 1
jne 0x4d6be8
sub dword [ebp + 0x10], 1
lea esi, [ebp - 0x14]
mov ecx, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x4d6bce
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d6c2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
push edi
shl ecx, 4
add ecx, dword [ebp + 0x10]
push 4
pop edi
push 4
pop esi
mov al, byte [ecx]
xor byte [edx], al
inc ecx
inc edx
sub esi, 1
jne 0x4d6c44
sub edi, 1
jne 0x4d6c41
pop edi
pop esi
pop ebp
ret

Function at 0x4d6c58
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
push 0xe
call fcn.004d6c2c
add esp, 0xc
mov bl, 0xd
push 4
mov byte [ebp - 4], bl
mov edx, esi
pop edi
push 4
mov ecx, edx
pop esi
movzx eax, byte [ecx]
mov al, byte [eax + 0x4f3570]
mov byte [ecx], al
lea ecx, [ecx + 4]
sub esi, 1
jne 0x4d6c7f
inc edx
sub edi, 1
jne 0x4d6c7a
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push esi
mov al, byte [esi + 9]
mov cl, byte [esi + 0xd]
push dword [ebp - 4]
mov byte [esi + 0xd], al
mov al, byte [esi + 5]
mov byte [esi + 9], al
mov al, byte [esi + 1]
mov byte [esi + 5], al
mov al, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
mov al, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
mov al, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
mov al, byte [esi + 0xb]
mov byte [esi + 7], al
mov al, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
call fcn.004d6c2c
add esp, 0xc
test bl, bl
je 0x4d6d04
push esi
call fcn.004d6d09
pop ecx
dec bl
jmp 0x4d6c72
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d6f04
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 8
pop esi
lea ecx, [ebx + 1]
lea edx, [edi + 3]
sub edi, ebx
mov ebx, esi
mov al, byte [edx - 3]
mov byte [ecx - 1], al
mov al, byte [edi + ecx]
mov byte [ecx], al
mov al, byte [edx - 1]
mov byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 4]
mov byte [ecx + 2], al
add ecx, 4
sub ebx, 1
jne 0x4d6f1e
mov ebx, dword [ebp + 8]
lea edx, [ebx + 0x1d]
mov cl, byte [edx + 1]
mov eax, esi
mov ch, byte [edx + 2]
mov bl, byte [edx - 1]
mov bh, byte [edx]
mov byte [ebp - 1], cl
mov byte [ebp - 2], ch
and eax, 7
jne 0x4d6f9c
movzx eax, byte [ebp - 1]
movzx ecx, bh
mov bh, byte [eax + 0x4f3470]
movzx eax, byte [ebp - 2]
mov al, byte [eax + 0x4f3470]
mov byte [ebp - 1], al
movzx eax, bl
mov al, byte [eax + 0x4f3470]
mov byte [ebp - 2], al
mov eax, esi
shr eax, 3
mov bl, byte [eax + 0x4f3670]
xor bl, byte [ecx + 0x4f3470]
mov cl, byte [ebp - 1]
mov ch, byte [ebp - 2]
jmp 0x4d6fc5
cmp eax, 4
jne 0x4d6fc5
movzx eax, bl
mov bl, byte [eax + 0x4f3470]
movzx eax, bh
mov bh, byte [eax + 0x4f3470]
movzx eax, cl
mov cl, byte [eax + 0x4f3470]
movzx eax, ch
mov ch, byte [eax + 0x4f3470]
mov al, byte [edx - 0x1d]
xor al, bl
mov byte [edx + 3], al
mov al, byte [edx - 0x1c]
xor al, bh
mov byte [edx + 4], al
mov al, byte [edx - 0x1b]
xor al, cl
mov byte [edx + 5], al
mov al, byte [edx - 0x1a]
xor al, ch
inc esi
mov byte [edx + 6], al
add edx, 4
cmp esi, 0x3c
jb 0x4d6f45
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4e33e7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f62d4
push 0x4f62cc
push str.FlsAlloc
push 0x1e
call fcn.004e3271
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e341b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ef2a0]
call esi
jmp 0x4e3421
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4e3465
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f62e4
push 0x4f62dc
push str.FlsGetValue
push 0x20
call fcn.004e3271
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e349c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ef2a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4e537e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4e541b
push ebx
push esi
call fcn.004e5347
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004e3ea8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4e53c8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e541a
push edi
push eax
call fcn.004e28fc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4e53e8
call fcn.004e28c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e5419
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004e3ea8
add esp, 0x20
test eax, eax
jne 0x4e5407
push edi
call fcn.004e28c2
jmp 0x4e540f
push ebx
call fcn.004e28c2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40f898
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40f8a7
pop dword [ebp - 0x34]
mov eax, 0xc57bc926
add eax, 0x3ac52f81
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x4014c
push 0
mov eax, 0x931384d7
sub eax, 0x92d132bf
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x7d384fe0
add ecx, 0x82c80119
mov ebx, eax
mov edx, 0xe6968a1
sub edx, 0xe2614a1
add edx, dword [ebp - 0x34]
mov edi, 0xc59189c5
add edi, 0x6c21c4e5
xor dword [ebp - 4], eax
mov esi, dword [edx]
sub esi, edi
xor dword [ebp - 0x1c], edx
mov dword [ebx], esi
xor dword [ebp - 8], 0xef55cfe1
add ebx, 0x28e24a33
sub ebx, 0x28e24a2f
add edx, 0xedcfd95b
sub edx, 0xedcfd957
loop 0x40f906
add eax, 0xc17cfc16
sub eax, 0xc17bc55f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4222391a
add ecx, 0xbe1dc6e6
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx