joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485b18
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x485b2f
add esp, 0xfffffff0
call fcn.00404290
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00430d98
mov eax, dword [0x566640]
cmp byte [eax], 0
jne 0x485b5c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x566aec]
cmp word [eax + 2], 0
jne 0x485b76
mov eax, dword [0x566aec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00487a78
mov eax, dword [0x566ca4]
cmp word [eax + 2], 0
jne 0x485b90
mov eax, dword [0x566ca4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00487c88
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x438a58]
call fcn.0043a858
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x48811c
mov dl, 1
mov eax, dword [0x422cb4]
call fcn.00403d7c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x422cb4]
call fcn.00403d7c
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x43960c]
call fcn.004422bc
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x485d6c
mov eax, dword [0x5668cc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004426c0
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4883cc
mov dl, 1
mov eax, dword [0x422cb4]
call fcn.00403d7c
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5668cc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040e384
test eax, eax
je 0x485c9e
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040e034
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040e36c
test eax, eax
je 0x485cb6
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406478
push ebx
push 0x487448
call fcn.0047c188
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x566640]
cmp byte [eax], 0
jne 0x485d07
mov eax, ebx
call fcn.00485ee0
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.004885f4
mov eax, ebx
call fcn.004891b8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x485d64
call fcn.004042e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4861b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x486256
cmp dword [ebx + 0x90], 0
jne 0x486250
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x486100
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x486250
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x486216
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x486250
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00425a44
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x486225
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x486474
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x56c1b4]
cmp dword [eax + 0x170], 0
je 0x4865d9
test bl, bl
jne 0x486527
cmp dword [esi + 0x98], 0
jne 0x48651c
mov eax, esi
call fcn.00489008
push eax
push 0x486380
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x4864ed
mov eax, dword [0x56c1b4]
cmp byte [eax + 0xcf], 0
je 0x4864ed
mov eax, dword [esi + 0xd4]
call fcn.00407ad0
mov edi, eax
cmp edi, 0
jl 0x4864ed
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4864d6
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x48651c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00425a44
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4864fc
inc dword [esi + 0x98]
jmp 0x4865d9
cmp dword [esi + 0x98], 0
jle 0x4865d9
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x4865d9
cmp dword [esi + 0x40], 0
je 0x486584
mov eax, dword [0x56c1b4]
cmp byte [eax + 0xcf], 0
je 0x486584
mov eax, dword [esi + 0xd4]
call fcn.00407ad0
mov edi, eax
cmp edi, 0
jl 0x486584
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x48656d
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4865b3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00425a44
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x486593
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x47bb90]
call fcn.00407c90
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x487194
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4871ff
cmp byte [ebx + 0xcf], 0
jne 0x4871ff
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004063b4
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4871ec
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x48720c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406278
jmp 0x48720c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406278
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4887c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x488836
mov eax, esi
call fcn.0046f0c0
test al, al
je 0x488836
mov eax, dword [ebx + 0x80]
call fcn.0046ed14
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x488836
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x48882a
push 0
mov eax, dword [ebx + 0x80]
call fcn.0046ed14
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.0046624c
jmp 0x488836
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.00488614
pop esi
pop ebx
ret

Function at 0x490480
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 0x4904ef
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 + 0x5609fc]
mov eax, dword [eax*8 + 0x5609f8]
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 0x4904a4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x490500
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x490528
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x5605f8]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x49050a
pop esi
pop ebx
ret
Function at 0x494a6c
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 0x494a9d
dec al
je 0x494ad8
dec al
je 0x494b1d
dec al
je 0x494b86
jmp 0x494c10
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x494c10
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 0x494aad
jmp 0x494c10
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x494c10
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 0x494ae8
jmp 0x494c10
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x494c10
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 0x494b4c
xor ebp, ebp
jmp 0x494b5c
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 0x494b65
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 0x494b2d
jmp 0x494c10
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x494c10
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 0x494bdf
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.0049052c
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 0x494b9a
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a1264
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 0x4a1406
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.004a118c
test al, al
je 0x4a12d0
mov eax, dword [0x566adc]
cmp byte [eax], 0
je 0x4a12c1
mov ecx, 0x407b
mov edx, 0x4a1420
mov eax, 0x4a1490
call fcn.00405398
push 0x4a14d4
call sub.kernel32.dll_OutputDebugStringW
jmp 0x4a13eb
mov eax, ebx
call fcn.004a0e04
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 0x4a13eb
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 0x4a13a0
push 0x4a14fc
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 0x4a134a
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, 0x4a1538
call fcn.0040ea34
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x4a1570
call fcn.0040674c
mov eax, dword [ebp - 0x18]
mov ecx, 0x40a2
mov edx, 0x4a1420
call fcn.00405398
jmp 0x4a13eb
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 0x4a13eb
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 0x4a140d
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00406270
ret
Function at 0x4a15ac
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 0x4a1658
test ebx, ebx
je 0x4a1658
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.004a118c
test al, al
je 0x4a1603
mov eax, dword [0x566adc]
cmp byte [eax], 0
je 0x4a15f7
mov ecx, 0x40c1
mov edx, 0x4a166c
mov eax, 0x4a16dc
call fcn.00405398
push 0x4a1720
call sub.kernel32.dll_OutputDebugStringW
jmp 0x4a1658
mov eax, ebx
call fcn.004a0e04
mov ebx, eax
test ebx, ebx
je 0x4a1658
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 0x4a1655
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 0x4a6f80
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 0x4a6fef
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, 0x4a7008
call fcn.0040ea34
mov eax, dword [ebp - 4]
call fcn.00406304
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6ff6
lea eax, [ebp - 4]
call fcn.00406268
ret

Function at 0x4a7164
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 0x4a71c1
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, 0x4a71d8
call fcn.0040ea34
mov eax, dword [ebp - 4]
call fcn.00406304
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a71c8
lea eax, [ebp - 4]
call fcn.00406268
ret
Function at 0x4a7288
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 0x4a74fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x56c1f4], 0
je 0x4a74e2
mov ebx, dword [0x56c1f4]
call fcn.00404348
mov eax, ebx
call fcn.00404668
or edx, 0xffffffff
call fcn.004043f4
xor eax, eax
push ebp
push 0x4a74db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x56c1f4]
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 0x4a73f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x56c1f4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x56c1f4]
mov edx, dword [0x48c008]
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], 0x49cbf0
mov eax, dword [0x56c1f4]
call fcn.004a5f68
mov eax, dword [0x56c1f4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
mov eax, dword [0x56c1f4]
mov ebx, dword [eax + 0x38]
cmp byte [0x56c23c], 0
je 0x4a7392
test ebx, ebx
je 0x4a7392
xor edi, edi
test ebx, ebx
je 0x4a7392
cmp dword [ebx + 4], 0xfffffffe
jne 0x4a738b
inc edi
push 0x4a7518
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040ce8c
push dword [ebp - 0x14]
push 0x4a7558
push dword [ebx]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406830
mov eax, dword [ebp - 0x10]
call fcn.00406304
push eax
call sub.kernel32.dll_OutputDebugStringW
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x4a7350
mov eax, dword [0x56c1f4]
mov ebx, dword [eax + 0x38]
test ebx, ebx
je 0x4a73c9
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 [0x56c1f4]
call fcn.004a6224
mov ebx, esi
test ebx, ebx
jne 0x4a739e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a73f9
mov eax, dword [0x56c1f4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x56c1f4]
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 0x4a7504
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406270
ret
Function at 0x4b86f4
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 0x4b870d
add esp, 0xfffffff0
call fcn.00404290
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406260
xor eax, eax
push ebp
push 0x4b8891
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.00406278
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0043686c
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00403dac
mov dl, 1
mov eax, dword [0x4b7614]
call fcn.00428bbc
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.00406278
cmp dword [ebx + 0x10], 0
je 0x4b8860
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.004b8400
mov eax, dword [ebx + 0x10]
call fcn.0040d608
test al, al
jne 0x4b8856
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.0040db60
mov eax, dword [ebp - 4]
test eax, eax
je 0x4b87d8
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4b87d8
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405658
test eax, eax
je 0x4b87e1
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4b87ed
mov eax, dword [ebp - 4]
call fcn.004b8534
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00406304
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x4b8856
cmp dword [ebp + 8], 0
je 0x4b8850
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.00407ac8
test eax, eax
jle 0x4b8850
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00407ac8
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 0x4b8860
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x4b8658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8898
lea eax, [ebp - 8]
mov edx, dword [0x40ad40]
call fcn.00407c9c
lea eax, [ebp - 4]
call fcn.00406268
ret
Function at 0x4bb5b8
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bb634
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
mov edx, dword [ebp - 8]
inc edx
lea eax, [ebp - 4]
call fcn.004061c4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00405fe4
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x4bb615
mov edx, dword [ebp - 8]
dec edx
lea eax, [ebp - 4]
call fcn.004061c4
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004064e0
jmp 0x4bb61e
mov eax, ebx
xor edx, edx
call fcn.00406278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb63b
lea eax, [ebp - 4]
call fcn.00405e08
ret