joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f0c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040476c
and dword [ebp - 4], 0
cmp dword [0x4278e8], 0
mov ebx, eax
jne 0x406fbd
push 0x4019c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40706e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019b8
push edi
call esi
test eax, eax
je 0x40706e
push eax
call fcn.004046fa
mov dword [esp], 0x4019a8
push edi
mov dword [0x4278e8], eax
call esi
push eax
call fcn.004046fa
mov dword [esp], 0x401994
push edi
mov dword [0x4278ec], eax
call esi
push eax
call fcn.004046fa
mov dword [esp], 0x401978
push edi
mov dword [0x4278f0], eax
call esi
push eax
call fcn.004046fa
pop ecx
mov dword [0x4278f8], eax
test eax, eax
je 0x406fbd
push 0x401960
push edi
call esi
push eax
call fcn.004046fa
pop ecx
mov dword [0x4278f4], eax
mov eax, dword [0x4278f4]
cmp eax, ebx
je 0x407015
cmp dword [0x4278f8], ebx
je 0x407015
push eax
call fcn.00404775
push dword [0x4278f8]
mov esi, eax
call fcn.00404775
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407015
test edi, edi
je 0x407015
call esi
test eax, eax
je 0x40700c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40700c
test byte [ebp - 0xc], 1
jne 0x407015
or dword [ebp + 0x10], 0x200000
jmp 0x40704e
mov eax, dword [0x4278ec]
cmp eax, ebx
je 0x40704e
push eax
call fcn.00404775
pop ecx
test eax, eax
je 0x40704e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40704e
mov eax, dword [0x4278f0]
cmp eax, ebx
je 0x40704e
push eax
call fcn.00404775
pop ecx
test eax, eax
je 0x40704e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4278e8]
call fcn.00404775
pop ecx
test eax, eax
je 0x40706e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407070
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407825
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426a10]
jne 0x40782f
repz ret
jmp fcn.00408ed9

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
mov ecx, 0x1bad32bd
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4ba725ef
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40185e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
push esi
push edi
push 0x25
xor eax, eax
pop ecx
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x9c]
xor esi, esi
push eax
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x49c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4019cf
add eax, 0x30c
cmp byte [eax], 0
je 0x4019cf
push eax
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x49d], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4018f0
lea eax, [ebp - 0x49c]
push 0x40605c
push eax
call esi
push ebx
lea eax, [ebp - 0x49c]
push str.SCMUpdate.ini
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x8c], 2
jne 0x401994
cmp dword [ebp - 0x98], 4
ja 0x401994
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, str.Program_Manager
mov edi, str.Progman
push ebx
push edi
call esi
test eax, eax
jne 0x40194b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
test byte [eax + 0xbb0], 0x40
jne 0x401994
push ebx
push edi
jmp 0x40192d
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x401994
lea eax, [ebp - 4]
push eax
push 0xa
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401991
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push dword [ebp - 4]
call esi
push edi
call esi
pop ebx
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4019b4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401995
cmp dword [ebp - 0x8c], 2
push 1
pop esi
jne 0x4019cf
cmp dword [ebp - 0x98], 4
ja 0x4019cf
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4019d5
Capabilities:
Create process on windows
Create process suspended
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
push ebx
push esi
mov edx, 0xff
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x453]
mov byte [ebp - 0x454], bl
mov byte [ebp - 0x854], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x853]
push 0x11
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x454]
push eax
push 0x400
call fcn.0040407e
cmp byte [ebp - 0x454], bl
pop ecx
pop ecx
jne 0x401a6a
lea edi, [ebp - 0x454]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x455], 0x5c
je 0x401a6a
lea eax, [ebp - 0x454]
push 0x40605c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, str.Update
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x454]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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, [ebp - 0x854]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, 0x406120
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x454]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
lea eax, [ebp - 0x10]
mov ecx, edx
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x454]
and ecx, 3
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401b1c
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x401b22
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x401bdf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
pop edi
jne 0x401c49
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 8]
push 0x401edd
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x407a34], esi
jne 0x401c41
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401c2f
mov eax, dword [0x407a38]
pop esi
leave
ret
push dword [ebp + 8]
call fcn.00401c54
pop ecx
leave
ret
Function at 0x4023ac
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push str.SePInstallDirectryMap
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x40240f
push 0x104
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x402408
cmp byte [eax], 0
je 0x402401
push esi
push edi
mov edi, dword [ebp + 8]
push 0x41
pop ecx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
jmp 0x402412
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x4026cf
Capabilities:
Copy file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x104]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x402836
push ebx
or ebx, 0xffffffff
lea edi, [ebp - 0x104]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x105], 0x5c
je 0x40274a
mov edi, 0x40605c
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.drivers_
mov ecx, ebx
xor eax, eax
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0xc]
mov ecx, edx
and ecx, 3
lea eax, [ebp - 0x208]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [ebp - 0x208]
mov ecx, ebx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x209], 0x5c
je 0x4027d5
mov edi, 0x40605c
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x208]
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x208]
mov edi, str._s_s
push eax
lea eax, [ebp - 0x30c]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
pop ebx
je 0x402836
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x410]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x410]
push 1
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
leave
ret
Function at 0x4028a6
Capabilities:
Copy file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push edi
and dword [ebp - 4], 0
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x402a46
push ebx
or ebx, 0xffffffff
lea edi, [ebp - 0x20c]
mov ecx, ebx
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x20d], 0x5c
je 0x402925
mov edi, 0x40605c
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x20c]
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.drivers_
mov ecx, ebx
xor eax, eax
lea edx, [ebp - 0x20c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0xc]
mov ecx, edx
and ecx, 3
lea eax, [ebp - 0x108]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [ebp - 0x108]
mov ecx, ebx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x109], 0x5c
je 0x4029b0
mov edi, 0x40605c
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x108]
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 4]
push 4
push eax
push 0x7209d
call fcn.0040283a
add esp, 0x10
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
mov edi, str._s_s
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x310]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x402a2a
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 4]
push 4
push eax
push 0x720a1
call fcn.0040283a
add esp, 0x10
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40407e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
lea eax, [ebp - 0x94]
push edi
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
and byte [ebx + 2], 0
cmp dword [ebp - 0x84], 2
mov edi, str.Temp_
je 0x4040c5
mov edi, str.WINDOWSTEMP_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
push 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 3
push 0
mov edi, 0x80000000
push 3
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x404cb4
lea ecx, [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileTime]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp - 4]
push 3
push 0
push 3
push edi
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x404cb0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
ja 0x404cb0
jne 0x404cb4
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
sbb eax, eax
neg eax
jmp 0x404cb7
xor eax, eax
jmp 0x404cb7
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 4
mov eax, dword [0x4ad5f8]
test eax, eax
je 0x403658
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
test byte [edi], 1
je 0x4037b0
cmp edx, 1
lea ecx, [edi + 8]
mov eax, 2
sbb eax, 0xffffffff
mov edx, ecx
call dbg.init_xpoint
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x403710
cmp dword [edi + 0x18], 0xffffffff
je 0x403733
lea eax, [ebp - 0x20]
mov dword [esp + 4], 2
mov dword [esp + 8], eax
lea eax, [edi + 0x18]
mov dword [esp], eax
call dbg.types_get_info
test eax, eax
je 0x403720
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov ebx, edx
mov esi, ecx
add ebx, 0xffffffff
adc esi, 0xffffffff
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x34]
mov esi, ebx
and esi, edx
and eax, ecx
or eax, esi
jne 0x4037f0
mov eax, dword [ebp - 0x2c]
xor esi, esi
cmp eax, edx
mov eax, esi
sbb eax, ecx
jb 0x4037f0
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub eax, 1
and eax, dword [edi + 8]
je 0x403733
mov dword [esp], str.Watchpoint_on_unaligned_address_is_not_supported_n
call dbg.dbg_printf
mov eax, dword [ebp - 0x30]
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [0x4ad5f8]
and word [eax + 0x48], 7
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [esp], str.Cannot_get_watch_size__defaulting_to__lu_n
mov dword [esp + 4], eax
call dbg.dbg_printf
mov esi, dword [ebp - 0x30]
mov eax, dword [0x4ad5f8]
movzx ebx, byte [ebp - 0x2c]
lea edi, [esi + esi*2]
shl edi, 4
sub ebx, 1
lea edx, [eax + edi + 0x40]
and ebx, 3
movzx ecx, byte [edx + 0x10]
and ecx, 0xfffffffc
or ecx, ebx
mov byte [edx + 0x10], cl
lea edx, [eax + edi + 0x58]
mov eax, esi
call dbg.get_watched_value
test eax, eax
je 0x4037c8
mov eax, dword [ebp - 0x30]
mov dword [esp], str.Watchpoint__d_at
mov dword [esp + 4], eax
call dbg.dbg_printf
mov eax, dword [0x4ad5f8]
mov dword [esp + 4], 1
lea eax, [eax + edi + 0x38]
mov dword [esp], eax
call sym._print_address
mov dword [ebp + 8], 0x43b702
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.dbg_printf
mov dword [ebp + 8], str.Cannot_set_a_watch_point_on_register_or_register_based_variable_n
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.dbg_printf
mov dword [esp], str.Bad_address._Watchpoint_not_set_n
call dbg.dbg_printf
add edi, dword [0x4ad5f8]
and word [edi + 0x48], 7
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp], str.Unsupported_length___I64x__for_watch_points__defaulting_to__lu_n
call dbg.dbg_printf
jmp 0x4036e5
Function at 0x403a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test eax, eax
jle 0x403ad0
mov edx, dword [0x4ad5f8]
cmp dword [edx + 0x12f8], eax
jbe 0x403ad0
lea ecx, [eax + eax*2]
shl ecx, 4
add edx, ecx
movzx ecx, word [edx + 0x48]
shr cx, 3
je 0x403ad0
mov eax, dword [edx + 0x48]
xor ecx, ecx
and eax, 0xfffe
test ebx, ebx
setne cl
or eax, ecx
mov dword [edx + 0x48], eax
mov ebx, dword [ebp - 4]
leave
ret
mov dword [ebp + 0xc], eax
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], str.Invalid_breakpoint_number__d_n
leave
jmp dbg.dbg_printf

Function at 0x404ba0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x210]
sub esp, 0x224
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._K32GetProcessImageFileNameW_12
sub esp, 0xc
test eax, eax
je 0x404c28
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
lea edx, [eax + 2]
cmove edx, ebx
cmp word [edx], 0
je 0x404c16
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404bf0
sub eax, edx
cmp eax, 0x9e
jle 0x404c16
mov dword [edx + 0x98], 0x2e002e
mov dword [edx + 0x9c], 0x2e
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], global_unidentified
mov dword [esp + 4], 0x12
mov dword [esp], eax
call dword [0x4b083c]
mov ebx, dword [ebp - 4]
mov eax, global_unidentified
sub esp, 0x10
leave
ret
Function at 0x405b30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], dbg.crash_details_thread
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
leave
ret

Function at 0x408fb0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
sub esp, 0x2c
mov eax, dword [eax + 0x9c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
test edx, edx
jne 0x408fd0
mov esi, dword [edi + 0x40]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax + 0x1c]
lea ecx, [eax + 0x1c]
cmp ecx, ebx
je 0x409060
cmp dword [ebp + 8], 0xffffffff
mov edx, 0x10002
mov eax, 0x80010001
mov dword [ebp - 0x1c], edi
cmove eax, edx
mov edi, esi
mov esi, ecx
mov dword [ebp - 0x28], eax
jmp 0x40901f
mov edx, dword [ebp - 0x24]
mov eax, ebx
call dbg.dbg_thread_set_single_step
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ResumeThread]
sub esp, 4
mov ebx, dword [ebx]
cmp ebx, esi
je 0x409060
cmp edi, 0xffffffff
je 0x409029
cmp dword [ebx + 0x10], edi
jne 0x409019
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x409019
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0xc8], 0
mov edx, dword [ecx + 0x3c]
cmp dword [eax + 0xc], edx
jne 0x409000
mov eax, dword [ecx + 0x40]
cmp dword [ebx + 0x10], eax
jne 0x409000
mov eax, ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x98], ecx
jmp 0x409000
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x409b50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ecx, 1
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
mov edx, 0x43c49c
lea edi, [esi + 0x18]
sub esp, 0x1c
call dbg.packet_reply_add_data
mov eax, ebx
movzx ebx, bl
mov ecx, 2
and eax, 0xf
shr ebx, 4
movzx eax, byte [eax + 0x43c48b]
mov byte [ebp - 0x1f], al
movzx eax, byte [ebx + 0x43c48b]
lea ebx, [ebp - 0x20]
mov edx, ebx
mov byte [ebp - 0x20], al
mov eax, edi
call sym._reply_buffer_append
mov edx, str.thread:
mov eax, esi
mov ecx, 7
call dbg.packet_reply_add_data
mov eax, dword [esi + 0x40]
lea edx, [ebp - 0x18]
lea esi, [esi]
lea esi, [esi]
mov ecx, eax
sub edx, 1
shr eax, 4
and ecx, 0xf
movzx ecx, byte [ecx + 0x43c48b]
mov byte [edx], cl
cmp edx, ebx
jne 0x409bc0
mov eax, edi
mov ecx, 8
call sym._reply_buffer_append
add esp, 0x1c
mov eax, esi
mov ecx, 1
pop ebx
mov edx, global_str
pop esi
pop edi
pop ebp
jmp dbg.packet_reply_add_data