joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489cac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x489cc5
add esp, 0xfffffff0
call fcn.004042b0
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405eb0
xor eax, eax
push ebp
push 0x489e49
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x21], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0xffffffff
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.00405ec8
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004352a8
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00403dcc
mov dl, 1
mov eax, dword [0x4893e0]
call fcn.00427920
mov esi, eax
mov dword [ebx + 0x14], esi
lea eax, [ebx + 0xc]
sub eax, 4
mov dword [eax], esi
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.00405ec8
cmp dword [ebx + 0x10], 0
je 0x489e18
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.004899b8
mov eax, dword [ebx + 0x10]
call fcn.0040d598
test al, al
jne 0x489e0e
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.0040d9dc
mov eax, dword [ebp - 4]
test eax, eax
je 0x489d90
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x489d90
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040563c
test eax, eax
je 0x489d99
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x489da5
mov eax, dword [ebp - 4]
call fcn.00489aec
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00405f54
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x489e0e
cmp dword [ebp + 8], 0
je 0x489e08
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call fcn.004076c0
test eax, eax
jle 0x489e08
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004076c0
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebx + 0x24], 0
je 0x489e18
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x489c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489e50
lea eax, [ebp - 8]
mov edx, dword [0x40aa80]
call fcn.00407894
lea eax, [ebp - 4]
call fcn.00405eb8
ret

Function at 0x48a740
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004060c8
add esp, 0x200
pop ebx
ret
Function at 0x48ae9c
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48b0ff
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405f1c
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.0040368c
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.0040368c
push 0x48b10c
push 0x48b134
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00408e50
test eax, eax
je 0x48af26
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x48af32
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x48b0df
test bl, bl
je 0x48af62
call fcn.0048b2ac
mov edx, dword [eax]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x48af7d
lea eax, [ebp - 4]
mov edx, 0x48b15c
call fcn.00405f1c
cmp dword [ebp - 0x11c], 5
jne 0x48afa1
cmp dword [ebp - 0x118], 0
jne 0x48afa1
lea eax, [ebp - 4]
mov edx, 0x48b180
call fcn.00405f1c
jmp 0x48b0df
cmp dword [ebp - 0x11c], 5
jne 0x48afc5
cmp dword [ebp - 0x118], 1
jne 0x48afc5
lea eax, [ebp - 4]
mov edx, 0x48b1a8
call fcn.00405f1c
jmp 0x48b0df
cmp dword [ebp - 0x11c], 5
jne 0x48b00b
cmp dword [ebp - 0x118], 2
jne 0x48b00b
cmp byte [ebp - 6], 1
jne 0x48aff9
cmp word [ebp - 0x144], 9
jne 0x48aff9
lea eax, [ebp - 4]
mov edx, 0x48b1a8
call fcn.00405f1c
jmp 0x48b0df
lea eax, [ebp - 4]
mov edx, 0x48b1cc
call fcn.00405f1c
jmp 0x48b0df
cmp dword [ebp - 0x11c], 6
jne 0x48b02f
cmp dword [ebp - 0x118], 0
jne 0x48b02f
lea eax, [ebp - 4]
mov edx, 0x48b200
call fcn.00405f1c
jmp 0x48b0df
cmp dword [ebp - 0x11c], 6
jne 0x48b053
cmp dword [ebp - 0x118], 1
jne 0x48b053
lea eax, [ebp - 4]
mov edx, 0x48b228
call fcn.00405f1c
jmp 0x48b0df
cmp dword [ebp - 0x11c], 6
jne 0x48b079
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x48b079
lea eax, [ebp - 4]
mov edx, 0x48b248
call fcn.00405f1c
jmp 0x48b0df
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x48b09e
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x48b09e
lea eax, [ebp - 4]
mov edx, 0x48b268
call fcn.00405f1c
jmp 0x48b0df
cmp eax, 0xa
jne 0x48b0cd
cmp dword [ebp - 0x114], 0x55f0
jae 0x48b0be
lea eax, [ebp - 4]
mov edx, 0x48b268
call fcn.00405f1c
jmp 0x48b0df
lea eax, [ebp - 4]
mov edx, 0x48b28c
call fcn.00405f1c
jmp 0x48b0df
cmp eax, 0xb
jb 0x48b0df
lea eax, [ebp - 4]
mov edx, 0x48b28c
call fcn.00405f1c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b106
lea eax, [ebp - 4]
call fcn.00405eb8
ret

Function at 0x48b3dc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004060c8
add esp, 0x200
pop ebx
ret
Function at 0x48c2d8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
test dl, dl
je 0x48c2f7
add esp, 0xfffffff0
call fcn.004042b0
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x48c39b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, esi
call fcn.0048c450
mov dword [esi + 0x18], 0xf003f
mov byte [esi + 0xc], 1
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x110], 5
jne 0x48c34d
call fcn.0048bf0c
test al, al
jne 0x48c37b
cmp dword [ebp - 0x110], 5
ja 0x48c37b
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.0048ae9c
mov eax, dword [ebp - 0x118]
mov edx, 0x48c3cc
call fcn.0040c514
test al, al
jne 0x48c37b
xor eax, eax
jmp 0x48c37d
mov al, 1
mov byte [0x54c3d4], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c3a2
lea eax, [ebp - 0x118]
call fcn.00405eb8
ret
Function at 0x48c7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x48c953
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
xor ebx, ebx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405f1c
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405f54
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, eax
test edi, edi
jne 0x48c8fc
cmp dword [ebp - 0x14], 4
jne 0x48c875
mov dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405f54
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, eax
test edi, edi
jne 0x48c856
mov eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov bl, 1
jmp 0x48c916
lea edx, [ebp - 0x2c]
mov eax, edi
call fcn.0040ce4c
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 0x48c974
call fcn.0040639c
jmp 0x48c916
cmp dword [ebp - 0x14], 0xb
jne 0x48c8db
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405f54
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, eax
test edi, edi
jne 0x48c8bf
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov bl, 1
jmp 0x48c916
lea edx, [ebp - 0x30]
mov eax, edi
call fcn.0040ce4c
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 4]
mov edx, 0x48c9a4
call fcn.0040639c
jmp 0x48c916
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.0040d058
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 4]
mov edx, 0x48c9d4
call fcn.0040639c
jmp 0x48c916
lea edx, [ebp - 0x38]
mov eax, edi
call fcn.0040ce4c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 0x48c9fc
call fcn.0040639c
test bl, bl
jne 0x48c930
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040639c
mov eax, dword [ebp - 0x3c]
call fcn.0048c1e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c95a
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00405ec0
lea eax, [ebp - 4]
call fcn.00405eb8
ret
Function at 0x48ca58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x48cbb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
call fcn.0048c280
mov dword [ebp - 0xc], eax
mov eax, esi
xor edx, edx
call fcn.00405ec8
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x48caad
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x48cab0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
dec eax
sub al, 2
jae 0x48cabf
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x48ca24]
call fcn.00407888
add esp, 4
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.0040368c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, edi
call fcn.00405f54
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x48cb15
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406074
mov edx, dword [esi]
mov eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x48cb28
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x802
jle 0x48cb7d
mov eax, edx
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x48cb40
sub esi, 4
mov esi, dword [esi]
push 0x48cbd0
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040ce4c
push dword [ebp - 0x1c]
push 0x48cc10
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.0040ce4c
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00406480
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dl, 1
call fcn.0048c1b8
mov eax, dword [ebp - 0xc]
call fcn.0048c2b0
mov edx, dword [ebp + 0xc]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cbba
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00405ec0
lea eax, [ebp - 4]
mov edx, dword [0x48ca24]
call fcn.00407894
ret

Function at 0x494b24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
dec ecx
test ecx, ecx
jl 0x494b93
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [esi + ebx]
xor eax, edx
mov edx, dword [eax*8 + 0x541a7c]
mov eax, dword [eax*8 + 0x541a78]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc ebx
dec ecx
jne 0x494b48
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x494ba4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x494bcc
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x541678]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x494bae
pop esi
pop ebx
ret

Function at 0x499110
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x499141
dec al
je 0x49917c
dec al
je 0x4991c1
dec al
je 0x49922a
jmp 0x4992b4
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4992b4
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x499151
jmp 0x4992b4
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4992b4
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x49918c
jmp 0x4992b4
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4992b4
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4991f0
xor ebp, ebp
jmp 0x499200
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x499209
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4991d1
jmp 0x4992b4
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4992b4
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x499283
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00494bd0
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x49923e
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a58e8
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a5a8a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi + 5], eax
mov byte [esi], 0
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.004a5810
test al, al
je 0x4a5954
mov eax, dword [0x5465a0]
cmp byte [eax], 0
je 0x4a5945
mov ecx, 0x405a
mov edx, 0x4a5aa4
mov eax, 0x4a5b20
call fcn.004053b8
push 0x4a5b64
call sub.kernel32.dll_OutputDebugStringW
jmp 0x4a5a6f
mov eax, ebx
call fcn.004a5488
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x4a5a6f
mov byte [ebp - 0xd], 0xe9
sub edi, ebx
sub edi, 5
mov dword [ebp - 0xc], edi
movzx eax, byte [esi]
cmp al, byte [ebp - 0xd]
jne 0x4a5a24
push 0x4a5b8c
call sub.kernel32.dll_OutputDebugStringW
movzx eax, byte [esi]
mov byte [ebp - 0xd], al
mov byte [esi], 0
xor edi, edi
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0xd], 0xe9
jne 0x4a59ce
mov edi, ebx
add edi, 5
add edi, dword [esi + 1]
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x34]
mov ecx, 2
mov eax, 0x4a5bc8
call fcn.0040e3dc
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x4a5c00
call fcn.0040639c
mov eax, dword [ebp - 0x18]
mov ecx, 0x4081
mov edx, 0x4a5aa4
call fcn.004053b8
jmp 0x4a5a6f
mov dword [esi + 5], ebx
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test esi, esi
je 0x4a5a6f
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5a91
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405ec0
ret
Function at 0x4a5c3c
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp byte [esi], 0
je 0x4a5ce8
test ebx, ebx
je 0x4a5ce8
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.004a5810
test al, al
je 0x4a5c93
mov eax, dword [0x5465a0]
cmp byte [eax], 0
je 0x4a5c87
mov ecx, 0x40a0
mov edx, 0x4a5cfc
mov eax, 0x4a5d78
call fcn.004053b8
push 0x4a5dbc
call sub.kernel32.dll_OutputDebugStringW
jmp 0x4a5ce8
mov eax, ebx
call fcn.004a5488
mov ebx, eax
test ebx, ebx
je 0x4a5ce8
lea eax, [esp + 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
push esp
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
mov edi, eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test edi, edi
je 0x4a5ce5
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov byte [esi], 0
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4ab6bc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ab72b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x4ab744
call fcn.0040e3dc
mov eax, dword [ebp - 4]
call fcn.00405f54
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab732
lea eax, [ebp - 4]
call fcn.00405eb8
ret

Function at 0x4ab8a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ab8fd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4ab914
call fcn.0040e3dc
mov eax, dword [ebp - 4]
call fcn.00405f54
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab904
lea eax, [ebp - 4]
call fcn.00405eb8
ret
Function at 0x4ab9c4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4abc39
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x54c404], 0
je 0x4abc1e
mov ebx, dword [0x54c404]
call fcn.00404368
mov eax, ebx
call fcn.00404688
or edx, 0xffffffff
call fcn.00404414
xor eax, eax
push ebp
push 0x4abc17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x54c404]
mov edx, dword [eax + 0x30]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4abb2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x54c404]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x54c404]
mov edx, dword [0x4906ac]
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], 0x4a1294
mov eax, dword [0x54c404]
call fcn.004aa6a4
mov eax, dword [0x54c404]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
mov eax, dword [0x54c404]
mov ebx, dword [eax + 0x38]
cmp byte [0x54c44c], 0
je 0x4abace
test ebx, ebx
je 0x4abace
xor edi, edi
test ebx, ebx
je 0x4abace
cmp dword [ebx + 4], 0xfffffffe
jne 0x4abac7
inc edi
push 0x4abc54
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040ce4c
push dword [ebp - 0x14]
push 0x4abc94
push dword [ebx]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406480
mov eax, dword [ebp - 0x10]
call fcn.00405f54
push eax
call sub.kernel32.dll_OutputDebugStringW
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x4aba8c
mov eax, dword [0x54c404]
mov ebx, dword [eax + 0x38]
test ebx, ebx
je 0x4abb05
mov esi, dword [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 4], 0xfffffffe
mov dword [ebx + 8], 0xe6
mov edx, dword [ebx + 0xc]
mov ecx, ebx
mov eax, dword [0x54c404]
call fcn.004aa960
mov ebx, esi
test ebx, ebx
jne 0x4abada
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abb35
mov eax, dword [0x54c404]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x54c404]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abc40
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405ec0
ret