joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424d98
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040b7f8
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x424e02
test ah, 4
je 0x424dfb
test bl, bl
jne 0x424dc0
mov al, 1
jmp 0x424e29
test al, 0x10
je 0x424dc8
xor eax, eax
jmp 0x424e29
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW_1
cmp eax, 0xffffffff
je 0x424dec
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov al, 1
jmp 0x424e29
call sub.KERNEL32.DLL_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x424e29
test al, 0x10
sete al
jmp 0x424e29
call sub.KERNEL32.DLL_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x424e23
cmp ebx, 3
je 0x424e23
cmp ebx, 0x7b
je 0x424e23
mov eax, esi
call fcn.00424d58
test al, al
jne 0x424e27
xor eax, eax
jmp 0x424e29
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x424e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040b7f8
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x424ed7
test esi, 0x400
jne 0x424e6c
test esi, 0x10
setne bl
jmp 0x424f07
cmp byte [esp], 0
je 0x424ea0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW_1
cmp eax, 0xffffffff
je 0x424f07
push eax
call sub.KERNEL32.DLL_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x424f07
test esi, 0x10
je 0x424eac
mov bl, 1
jmp 0x424f07
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW_1
cmp eax, 0xffffffff
je 0x424ed3
push eax
call sub.KERNEL32.DLL_CloseHandle_1
xor ebx, ebx
jmp 0x424f07
mov bl, 1
jmp 0x424f07
call sub.KERNEL32.DLL_GetLastError_2
cmp eax, 2
je 0x424f01
cmp eax, 3
je 0x424f01
cmp eax, 0xa1
je 0x424f01
cmp eax, 0x7b
je 0x424f01
cmp eax, 0x35
je 0x424f01
cmp eax, 0x15
je 0x424f01
cmp eax, 0x43
jne 0x424f05
xor ebx, ebx
jmp 0x424f07
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425114
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4251b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x42519e
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00422f24
test al, al
je 0x42519e
mov eax, dword [ebp - 4]
call fcn.00425848
test al, al
je 0x42518e
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004255bc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042c2e4
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040ba64
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4251c0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a7f0
ret
Function at 0x4251cc
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42529f
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040abb8
cmp byte [ebp - 9], 0
je 0x42525d
mov eax, ebx
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
test ah, 4
je 0x42525d
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00422f24
test al, al
je 0x42525d
mov eax, dword [ebp - 8]
call fcn.00425848
test al, al
je 0x425252
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004255bc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042c2e4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040ba64
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040abb8
push edi
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
jne 0x425277
call sub.KERNEL32.DLL_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4252a6
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a7f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a7f0
ret

Function at 0x4253d8
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040b7f8
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x42542d
call sub.KERNEL32.DLL_GetLastError_2
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425427
test ah, 4
je 0x425427
test al, 0x10
je 0x425427
mov eax, esi
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x42542d
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x429dd8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW_1
test eax, eax
jle 0x429e11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a918
jmp 0x429e1a
mov eax, ebx
mov edx, esi
call fcn.0040ab70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x429e24
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
test eax, eax
jle 0x429e46
movzx eax, word [esp]
jmp 0x429e48
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42ae5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x42af81
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042ac64
mov esi, eax
mov eax, dword [0x8c2460]
cmp byte [eax], 0
je 0x42af29
mov eax, dword [0x8c1bf4]
call fcn.00407e30
call fcn.00407268
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42ae2c]
call fcn.0040d2b8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42af9c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x42af65
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x8c1abc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x8c65a0]
call fcn.0040d814
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42af88
lea eax, [ebp - 4]
mov edx, dword [0x42ae2c]
call fcn.0040d3dc
ret

Function at 0x42bc90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42bd66
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040abb8
lea eax, [ebp - 4]
call fcn.0040ad58
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42bd50
mov eax, ebx
call fcn.004070f4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42bd49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42bd33
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42bd78
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42bd33
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bd50
mov eax, dword [ebp - 0x10]
call fcn.00407110
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bd6d
lea eax, [ebp - 4]
call fcn.0040a790
ret
Function at 0x42bd7c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42be7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040abb8
lea eax, [ebp - 4]
call fcn.0040ad58
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42be66
mov eax, ebx
call fcn.004070f4
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42be5f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42be49
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42be90
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42be49
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42be66
mov eax, dword [ebp - 0x10]
call fcn.00407110
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42be83
lea eax, [ebp - 4]
call fcn.0040a790
ret

Function at 0x42d6c0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040a790
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040b7f8
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42d705
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040a918
jmp 0x42d71e
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040b98c
push ebx
mov eax, dword [esi]
call fcn.0040b7f8
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x440154
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x68
call fcn.00407f88
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
mov dword [ebx + 0x10], 0xc3d2e1f0
pop ebx
ret
Function at 0x4ae6d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ae76e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4ae732
cmp byte [ebx + 0x11], 0
jne 0x4ae732
cmp byte [ebx + 0x3c], 0
jne 0x4ae732
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x4ae753
lea edx, [ebp - 4]
mov eax, dword [0x8c2324]
call fcn.00410254
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x486034]
call fcn.0042afcc
call fcn.00409e94
jmp 0x4ae753
lea edx, [ebp - 8]
mov eax, dword [0x8c2324]
call fcn.00410254
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x486034]
call fcn.0042afcc
call fcn.00409e94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae775
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a7f0
ret

Function at 0x4aebdc
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4aec2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004ae61c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aec43
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4aec4c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004ae61c
dec esi
jne 0x4aec6e
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4b1660
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x8c8da4
cmp dword [edi], 0
jne 0x4b16dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x8c8da0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x8b8b04
mov ecx, 2
call fcn.00407394
mov edx, 0x4b1638
lea eax, [esi + 5]
call fcn.004b1658
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004b1658
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4b16b1
mov dword [0x8c8da0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4d4498
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d462d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4d4602
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x4d45e5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dl, 1
call fcn.00424d98
test al, al
je 0x4d45e5
push 0x20
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dl, 1
mov eax, dword [0x4817c0]
call fcn.004a2a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d45de
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.004a21d8
sub ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404d08]
call fcn.0040d2b8
add esp, 4
mov edx, dword [ebp - 4]
mov ecx, ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 8]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042e5d0
mov ebx, eax
mov dl, 1
mov eax, dword [0x47e80c]
call fcn.004a2178
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d45c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 4]
test esi, esi
je 0x4d457e
sub esi, 4
mov esi, dword [esi]
sub esi, ebx
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, ebx
mov edx, dword [ebp - 4]
call fcn.0042f1c8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004d48a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d45c8
mov eax, dword [ebp - 0xc]
call fcn.00408ac4
ret
mov eax, dword [ebp - 8]
call fcn.004d42f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4609
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
ret
Function at 0x4d765c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d7817
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040abb8
mov eax, dword [ebp - 4]
call fcn.004d7090
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4d76ae
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040bc7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004d7d34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d778d
xor eax, eax
push ebp
push 0x4d7786
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004d724c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004d7828
test al, al
je 0x4d7764
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040a918
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4d7764
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040b7f8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d71ac
test al, al
je 0x4d775e
mov eax, dword [ebp - 8]
call fcn.0040b7f8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040b860
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004d765c
dec ebx
cmp ebx, 0xffffffff
jne 0x4d770d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d778d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004d724c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
cmp byte [0x8c8df4], 0
je 0x4d77cd
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004d7238
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d71ac
mov ebx, eax
jmp 0x4d77f4
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004d7238
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d71ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d781e
lea eax, [ebp - 0x3c]
call fcn.0040a790
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a7f0
ret
Function at 0x4d7894
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d794c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004d7828
test al, al
je 0x4d792e
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040a918
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4d792e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040b7f8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040b860
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4d78e7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7953
lea eax, [ebp - 0x2c]
call fcn.0040a790
lea eax, [ebp - 4]
call fcn.0040a790
ret

Function at 0x4d7c34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004d70a8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040b7f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004d71ac
test al, al
jne 0x4d7c9c
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x8c2068]
mov dl, 1
mov eax, dword [0x4d5900]
call fcn.0042b0c4
call fcn.00409e94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d7ca8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040b7f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004d71ac
test al, al
jne 0x4d7d09
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x8c28e8]
mov dl, 1
mov eax, dword [0x4d5900]
call fcn.0042b0c4
call fcn.00409e94
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d70d8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e0c60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4e0c66
ret
Function at 0x4f3aa8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x43cf2c]
call fcn.0040c104
xor eax, eax
push ebp
push 0x4f3c2b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x8b9578], 0
jne 0x4f3afc
mov ecx, dword [0x8c1784]
mov dl, 1
mov eax, dword [0x41c620]
call fcn.0042b088
call fcn.00409e94
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00407f88
mov eax, ebx
call fcn.0040b4a0
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4f3c3c
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040eca0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4f3b43
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4f3b98
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_GetComputerNameW
test eax, eax
je 0x4f3b91
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.0040b8f0
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.0040b8b4
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.004236d4
test eax, eax
jne 0x4f3b91
mov ebx, 0x15
jmp 0x4f3b9d
mov ebx, 0x10
jmp 0x4f3b9d
mov ebx, 0x15
xor eax, eax
push ebp
push 0x4f3be8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x8c27fc]
movzx eax, word [eax]
or ax, 8
call fcn.004076d8
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x8b9578]
call fcn.004f3820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3bef
call fcn.004076c8
ret