joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cee70
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
xor eax, eax
push esi
cmp ebp, eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], al
je 0x4cf0c4
mov ebx, dword [esp + 0x34]
cmp bx, ax
jbe 0x4cf0c4
cmp bx, 0xffff
jne 0x4ceebb
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x1c
ret 0x14
push ebp
call fcn.004cf6b0
mov esi, eax
add esi, 0x18
cmp word [esi], 0x7242
jne 0x4cf0b6
test byte [esi + 0x12], 4
jne 0x4ceeea
mov eax, 2
pop edi
mov word [esi + 6], ax
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
mov edi, dword [esp + 0x40]
test di, di
jbe 0x4cef00
push ebp
call fcn.004ce770
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
push eax
push ebx
push ebp
call fcn.004d0e40
test ax, ax
jne 0x4cf0c8
mov ebx, dword [sym.imp.user32.dll_GetSystemMetrics]
push 0x1000
call ebx
test eax, eax
je 0x4cef39
mov eax, 0x46
pop edi
mov word [esi + 6], ax
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
cmp word [esp + 0x38], 1
jne 0x4cf0a9
cmp word [0x573ed2], 0
jne 0x4cefc6
lea ecx, [esp + 0x20]
push ecx
call fcn.004d8d40
add esp, 4
test eax, eax
je 0x4cef73
mov eax, 0x4a
pop edi
mov word [esi + 6], ax
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
push 0
lea edx, [esp + 0x24]
push 0
push edx
call dword [sym.imp.kernel32.dll_CreateMutexA]
test eax, eax
mov dword [0x573ed8], eax
jne 0x4cef9e
mov eax, 0x4a
pop edi
mov word [esi + 6], ax
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0x4d2620
push 0
push 0
call fcn.004fd42c
add esp, 0x18
mov dword [0x573edc], eax
mov word [0x573ed2], 1
push 0x1000
call ebx
test eax, eax
je 0x4cefe4
mov eax, 0x46
pop edi
mov word [esi + 6], ax
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
test di, di
jbe 0x4cf050
lea ecx, [esp + 0x13]
lea edx, [esp + 0x14]
push ecx
push edx
push edi
push ebp
call fcn.004da140
test ax, ax
je 0x4cf00d
mov word [esi + 6], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
cmp byte [esp + 0x13], 1
je 0x4cf022
pop edi
pop esi
pop ebp
mov ax, 4
pop ebx
add esp, 0x1c
ret 0x14
cmp word [esp + 0x14], 0
ja 0x4cf038
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
add esp, 0x1c
ret 0x14
push edi
push ebp
call fcn.004ce6b0
add esp, 8
and eax, 0xffff
jne 0x4cf0c8
mov ebx, 3
jmp 0x4cf054
mov ebx, dword [esp + 0x1c]
push esi
mov word [esi + 0x30], 3
call fcn.004d3a20
mov cx, word [esi + 0x38]
mov ax, word [esi + 0x36]
mov edx, dword [esp + 0x18]
push 0
push edx
mov edx, dword [0x573ec0]
push edi
push edx
push ebx
push 1
push ecx
push eax
push esi
call fcn.004ced10
add esp, 0x24
test ax, ax
je 0x4cf0a9
push 0x404
push ebp
call fcn.004d9bc0
push ebp
call fcn.004d9ca0
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
add esp, 0x1c
ret 0x14
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x1c
ret 0x14
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x1c
ret 0x14
mov ax, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
Function at 0x4d0d40
Capabilities:
Terminate thread

Disassembly:
push ecx
mov ecx, dword [0x573ee0]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call dword [sym.imp.kernel32.dll_GetExitCodeThread]
cmp dword [esp], 0x103
jne 0x4d0d89
call fcn.004d5170
mov edx, dword [0x573ee0]
push 0
push edx
call dword [sym.imp.kernel32.dll_TerminateThread]
test eax, eax
je 0x4d0d89
mov eax, dword [0x573ee0]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ax, 1
pop ecx
ret

Function at 0x4d17e0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.004d8d20
test eax, eax
jne 0x4d1810
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4d1825
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4d1869
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.kernel32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x4d1849
cmp eax, 0x102
jne 0x4d1856
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x4d1860
jmp 0x4d182f
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x73
pop ebx
ret
push esi
call fcn.004d18e0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4d1880
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.004d8d20
test eax, eax
jne 0x4d1898
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x4d18a1
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4d18b4
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x4d18cb
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x4d1900
Capabilities:
Get common file path
Get file size

Disassembly:
sub esp, 0x30c
mov dl, byte [0x5427dc]
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x328]
not ecx
dec ecx
cmp edi, 1
mov byte [esp + ecx + 0xb], al
jne 0x4d19a8
lea ecx, [esp + 0xc]
push 0x56a974
push ecx
lea edx, [esp + 0x21c]
push 0x56acd4
push edx
call fcn.004fa9f4
push 0x56a974
jmp 0x4d19ce
cmp edi, 2
jne 0x4d19e3
lea ecx, [esp + 0xc]
push 0x56ab7c
push ecx
lea edx, [esp + 0x21c]
push 0x56acd4
push edx
call fcn.004fa9f4
push 0x56ab7c
lea eax, [esp + 0x124]
push 0x56acd0
push eax
call fcn.004fa9f4
add esp, 0x1c
cmp dword [esp + 0x324], 2
jne 0x4d1acf
mov ebx, dword [esp + 0x320]
push 0
push 2
push 2
push ebx
push 3
lea ecx, [esp + 0x228]
push 0xc0000000
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, dword [esp + 0x31c]
test eax, eax
mov dword [esi + 0xc], eax
je 0x4d1aa6
cmp eax, 0xffffffff
je 0x4d1aa6
lea edi, [esi + 8]
push edi
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4d1a57
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x110]
push eax
push 0x400
push 0
push 4
push ebx
push ecx
mov dword [esi + 4], 0x400
mov dword [edi], 0
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x4d1b04
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret
cmp edi, 1
jne 0x4d1aba
push 0x56ac80
push 0
call fcn.004d9020
add esp, 8
call dword [sym.imp.kernel32.dll_GetLastError]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret
lea eax, [esp + 0x110]
push eax
push 0
push 6
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov esi, dword [esp + 0x31c]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x4d1b04
call dword [sym.imp.kernel32.dll_GetLastError]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
push 0xf001f
push ecx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
mov dword [esi], eax
jne 0x4d1b40
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0xc]
push eax
call edi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x30c
ret
Function at 0x4d7e40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x5748a4]
push esi
mov esi, dword [esp + 8]
test eax, eax
jne 0x4d7e66
call fcn.004d7eb0
test eax, eax
je 0x4d7e5c
or eax, 0xffffffff
pop esi
ret
mov dword [0x56b498], 0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4d7ea0
push ebx
push edi
lea edi, [eax + 1]
mov eax, dword [edx]
xor ebx, ebx
mov bl, byte [esi]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
mov ebx, dword [0x5748a4]
shr eax, 8
mov ecx, dword [ebx + ecx*4]
inc esi
xor eax, ecx
dec edi
mov dword [edx], eax
jne 0x4d7e7a
pop edi
pop ebx
mov eax, dword [edx]
pop esi
ret

Function at 0x4d7eb0
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
call fcn.004fa109
add esp, 4
mov dword [0x5748a4], eax
test eax, eax
jne 0x4d7ee1
push 0x56b4cc
push 0x56b49c
push 0x56d4f0
call fcn.004fa089
add esp, 0xc
or eax, 0xffffffff
ret
push esi
xor edx, edx
jmp 0x4d7eeb
mov eax, dword [0x5748a4]
mov ecx, edx
mov esi, 8
test cl, 1
je 0x4d7f01
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4d7f03
shr ecx, 1
dec esi
jne 0x4d7ef2
mov dword [eax + edx*4], ecx
inc edx
cmp edx, 0xff
jle 0x4d7ee6
xor eax, eax
pop esi
ret

Function at 0x4d8da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov cl, 0x65
mov al, 0x72
push esi
xor esi, esi
mov byte [esp + 4], 0x54
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.kernel32.dll_GetVersion]
test eax, 0x80000000
jne 0x4d8e29
cmp al, 4
jbe 0x4d8e17
lea eax, [esp + 4]
push eax
call fcn.004d8e30
add esp, 4
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
push ecx
call fcn.004d8e30
add esp, 4
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x4d8e30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
xor ebx, ebx
push 0x56b58c
push 0x80000002
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x4d8f05
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebp
push edx
push ebp
push 0x56b57c
push eax
call esi
test eax, eax
jne 0x4d8f05
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4d8f05
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x4d8f05
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
push ebp
push 0x56b57c
push eax
call esi
test eax, eax
jne 0x4d8ef8
cmp dword [esp + 0x18], 7
jne 0x4d8ef8
mov al, byte [edi]
mov esi, edi
test al, al
je 0x4d8ef8
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.kernel32.dll_lstrcmp]
push ebp
push esi
call ebx
test eax, eax
je 0x4d8ef0
push esi
call dword [sym.imp.kernel32.dll_lstrlen]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4d8ed6
jmp 0x4d8ef8
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.kernel32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4d8f14
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4d9620
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
push 0x4e8
push 5
push 6
mov dword [esp + 0x10], 0x10
call fcn.004d5490
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x4d96b4
mov edx, dword [esp + 4]
push ebx
mov ecx, edx
push edi
mov ebx, ecx
xor eax, eax
lea edi, [esp + 0x10]
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov word [esp + 0x14], 6
push eax
push esi
call sub.wsock32.dll_bind
pop edi
cmp eax, 0xffffffff
pop ebx
je 0x4d96b4
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push esi
call sub.wsock32.dll_getsockname
cmp eax, 0xffffffff
je 0x4d96b4
lea eax, [esp + 8]
push eax
call fcn.004d9590
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.004fa9f4
add esp, 0xc
push esi
call sub.wsock32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push 0x56b618
push edx
call fcn.004fa9f4
add esp, 8
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x4db3d0
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edi
mov edi, dword [esi + 0xc]
mov edx, 0xc6ef3720
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 8]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
sub eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add edx, 0x61c88647
sub ecx, esi
dec edi
jne 0x4db409
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 0xc
ret 8

Function at 0x4db4b0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esi + 4]
xor edx, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
sub edx, 0x61c88647
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
add eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x4db4e6
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x4dc510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push 0x56b730
push 0x80000002
call esi
test eax, eax
jne 0x4dc59b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call esi
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
test eax, eax
jne 0x4dc592
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x56b724
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4dc5a0
cmp dword [esp + 0x10], 1
jne 0x4dc5a0
mov edx, dword [esp + 4]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
xor eax, eax
pop esi
add esp, 8
ret
or eax, 0xffffffff
pop esi
add esp, 8
ret
Function at 0x4dc5f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x18
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push 0x56b730
push 0x80000002
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4dc664
push eax
push eax
push eax
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
test esi, esi
jne 0x4dc662
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.004dc5d0
add esp, 8
pop esi
add esp, 0x18
ret
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x4dc750
Capabilities:
Check if file exists
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x418]
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
push edi
lea ecx, [esp + 0x14]
push 0x200
xor ebx, ebx
push ecx
push ebp
mov byte [esp + 0x1f], 0
mov dword [eax], ebx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
test eax, eax
jne 0x4dc7ff
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x4dc7f5
mov eax, dword [0x56b778]
mov cl, byte [0x56b77c]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x56b774]
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x14], edx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push ebp
push 1
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_DefineDosDeviceA]
test eax, eax
jne 0x4dc8aa
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x4dc8e7
mov ecx, dword [0x56b76c]
mov edi, ebp
mov dword [esp + 0x214], ecx
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x56b770]
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + 0x218], dl
sub edi, ecx
lea edx, [esp + 0x214]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 3
push eax
mov ecx, edx
push 1
push eax
and ecx, 3
lea eax, [esp + 0x22c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4dc8b4
mov ecx, dword [esp + 0x428]
mov edx, dword [esp + 0x424]
mov eax, dword [esp + 0x420]
push 0
push ecx
push edx
push eax
lea ecx, [esp + 0x42c]
push 4
push ecx
push 0x170002
push esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x4dc8a1
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x4dc8bc
mov byte [esp + 0x13], 1
jmp 0x4dc7ff
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
mov al, byte [esp + 0x13]
test al, al
je 0x4dc8e7
lea edx, [esp + 0x14]
push edx
push ebp
push 7
call dword [sym.imp.kernel32.dll_DefineDosDeviceA]
test eax, eax
jne 0x4dc8e7
call dword [sym.imp.kernel32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x4dd160
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [ebp + 0xa0]
push eax
push esi
call fcn.004dcfc0
add esp, 8
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x56bb2c]
mov byte [eax + esi - 1], dl
jl 0x4dd17e
push 0x10
push esi
call fcn.004dcff0
add esp, 8
lea edi, [ebp + 0x90]
mov ebx, 9
push edi
push esi
call fcn.004dcfc0
push esi
call fcn.004dd1f0
add esp, 0xc
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x56bb2c]
mov byte [eax + esi - 1], dl
jl 0x4dd1bb
push 0x10
push esi
call fcn.004dcff0
add esp, 8
sub edi, 0x10
dec ebx
jne 0x4dd1a9
push ebp
push esi
call fcn.004dcfc0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4dd1f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
xor edi, edi
lea eax, [esp + edi + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
sub eax, ecx
mov esi, 1
mov dword [esp + 0x10], eax
lea edx, [esi - 2]
and edx, 3
add edx, edi
mov al, byte [edx + ebp]
push eax
push 9
call fcn.004dd110
lea ecx, [esi + 1]
mov bl, al
and ecx, 3
add ecx, edi
mov dl, byte [ecx + ebp]
push edx
push 0xd
call fcn.004dd110
xor bl, al
mov eax, esi
and eax, 3
add eax, edi
mov cl, byte [eax + ebp]
push ecx
push 0xb
call fcn.004dd110
mov edx, dword [esp + 0x28]
xor bl, al
mov eax, dword [esp + 0x40]
mov cl, byte [edx + eax]
push ecx
push 0xe
call fcn.004dd110
add esp, 0x20
xor bl, al
mov eax, dword [esp + 0x28]
inc esi
mov byte [eax], bl
lea edx, [esi - 1]
inc eax
cmp edx, 4
mov dword [esp + 0x28], eax
jl 0x4dd216
add edi, 4
cmp edi, 0x10
jl 0x4dd1fd
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
pop edi
mov dword [ebp + 0xc], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x4dd2f0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.004dd2b0
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x18]
push 0xc0000000
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x4dd35f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jb 0x4dd346
cmp eax, 3
ja 0x4dd346
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4dd354
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8