joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462880
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
mov eax, dword [0x4d9540]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov ebx, ecx
test esi, esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
je 0x4628e7
mov ecx, esi
shr ecx, 0x10
jne 0x4628b7
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.0040ff70
jmp 0x4628e7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x4628e7
push edi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x4628e7
lea ecx, [edi + edi]
mov edi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ah, 0x80
jne 0x462a2a
push 0x11
call esi
test ah, 0x80
jne 0x462a2a
mov eax, dword [ebx + 8]
push 0
push 0
push 0x229
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, eax
test ebp, ebp
je 0x462a2a
mov eax, dword [0x4eaccc]
mov esi, dword [esp + 0x10]
cmp eax, esi
je 0x4629ab
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x462945
mov ecx, dword [0x4d9544]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x46294c
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x46298e
mov ebx, dword [esi - 8]
mov ecx, 0x4eaccc
push ebx
call fcn.00401420
test eax, eax
je 0x4629ab
mov edi, dword [0x4eaccc]
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4eaccc]
mov dword [ecx - 8], ebx
mov edx, dword [0x4eaccc]
mov word [eax + edx], 0
jmp 0x4629ab
mov ecx, 0x4eaccc
call fcn.0040e950
mov eax, dword [esp + 0x10]
mov dword [0x4eaccc], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x4eaccc]
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.004ad550
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.SHELL32.dll_ILClone]
push 0
push 0xe103
push 0x111
push ebp
mov dword [0x4eace8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
lea ecx, [esp + 0x18]
je 0x462a21
call fcn.004acdf0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x462a87
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462a87
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
jmp 0x462a7f
call fcn.004acdf0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.004ad550
test eax, eax
je 0x462a43
add eax, 4
jmp 0x462a45
xor eax, eax
mov edx, dword [eax]
mov ecx, ebx
push edx
call fcn.00462280
lea ecx, [esp + 0x18]
call fcn.004acdf0
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x462a87
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462a87
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x10
Function at 0x462aa0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x800
mov eax, dword [0x4e3a2c]
mov edx, dword [esp + 0x80c]
push edi
mov dword [esp + 4], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 8]
push 0x400
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
pop edi
add esp, 0x800
ret 0x10

Function at 0x462af0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov ebx, ecx
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_ILClone]
push eax
lea ecx, [esp + 0x1c]
mov dword [0x4eace8], eax
call fcn.004acdc0
push ebp
lea ecx, [esp + 0x24]
call fcn.004acdc0
lea eax, [esp + 0x30]
push 0x8000
push eax
lea ecx, [esp + 0x20]
call fcn.004ad770
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x462c7a
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ah, 0x80
jne 0x462c6e
push 0x11
call esi
test ah, 0x80
jne 0x462c6e
mov ecx, dword [ebx + 8]
push 0
push 0
push 0x229
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x462c6e
mov eax, dword [0x4eaccc]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x462c32
mov esi, dword [eax - 0xc]
lea edx, [eax - 0xc]
test esi, esi
mov esi, dword [0x4d9544]
jge 0x462bac
lea ebx, [eax - 0xc]
cmp ebx, esi
jne 0x462bb3
mov ebx, dword [ecx - 0xc]
test ebx, ebx
jge 0x462bfb
mov ebx, dword [ecx - 8]
mov esi, ecx
push ebx
mov ecx, 0x4eaccc
call fcn.00401420
test eax, eax
je 0x462c32
mov edi, dword [0x4eaccc]
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4eaccc]
mov edi, dword [esp + 0x10]
mov dword [ecx - 8], ebx
mov edx, dword [0x4eaccc]
mov word [eax + edx], 0
jmp 0x462c32
add eax, 0xfffffff4
cmp eax, esi
je 0x462c22
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462c1e
mov eax, dword [0x4eaccc]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [0x4eaccc], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0xe103
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x462c6a
mov eax, dword [esp + 0x30]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x462ca5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462ca5
jmp 0x462c95
mov ebx, dword [esp + 0x14]
push ebp
mov ecx, ebx
call fcn.00462280
mov eax, dword [esp + 0x30]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x462ca5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x462ca5
mov edx, dword [esp + 0x30]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004acdf0
lea ecx, [esp + 0x18]
call fcn.004acdf0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x10
Function at 0x46be00
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi], 0x4d4428
call fcn.004b8df0
mov eax, dword [esi + 0x63c]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x670], 1
je 0x46be4a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x63c]
push 0xface
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x63c], ebx
mov ecx, esi
call fcn.004508a0
lea ecx, [esi + 0x3278]
call fcn.00479c20
lea ecx, [esi + 0x3268]
call fcn.00479a70
mov eax, dword [esi + 0x630]
mov edx, dword [0x4d9544]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x46be9c
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x46be9c
mov edx, dword [esi + 0x630]
sub edx, 0xc
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esi + 0x620]
call fcn.004278b0
mov eax, dword [esi + 0x614]
lea edi, [esi + 0x610]
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.0047a820
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
call fcn.00427ac0
mov eax, dword [edi + 4]
push eax
call fcn.004c5432
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
lea ecx, [esp + 0x10]
xor edi, edi
call fcn.004d2a1f
mov eax, dword [0x4e511c]
dec eax
mov dword [0x4e511c], eax
jne 0x46bf05
mov edi, dword [0x4e5120]
mov dword [0x4e5120], ebx
lea ecx, [esp + 0x10]
call fcn.004d2abb
cmp edi, ebx
je 0x46bf1b
push edi
call fcn.004c5432
add esp, 4
mov eax, dword [esi + 0x604]
lea edi, [esi + 0x600]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.0047a820
mov edx, dword [eax]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, edi
call fcn.00427ac0
mov ecx, dword [edi + 4]
push ecx
call fcn.004c5432
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
lea ecx, [esp + 0x10]
xor edi, edi
call fcn.004d2a1f
mov eax, dword [0x4e511c]
dec eax
mov dword [0x4e511c], eax
jne 0x46bf79
mov edi, dword [0x4e5120]
mov dword [0x4e5120], ebx
lea ecx, [esp + 0x10]
call fcn.004d2abb
cmp edi, ebx
je 0x46bf8f
push edi
call fcn.004c5432
add esp, 4
mov eax, dword [esi + 0x5e0]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x46bfbe
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x46bfbe
mov eax, dword [esi + 0x5e0]
sub eax, 0xc
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esi + 0xc0]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x46bfed
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x46bfed
mov edx, dword [esi + 0xc0]
sub edx, 0xc
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esi + 0xbc]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x46c01c
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x46c01c
mov edx, dword [esi + 0xbc]
sub edx, 0xc
push edx
call fcn.004c5432
add esp, 4
mov ecx, esi
call fcn.0044f090
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x46ddb0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0x10], ebp
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x46ddf1
mov eax, dword [esp + 0x2d4]
mov ecx, dword [esp + 0x2d0]
mov edx, dword [esp + 0x2cc]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.0044f1d0
pop esi
pop ebp
pop ebx
add esp, 0x2bc
ret 0xc
mov eax, dword [esp + 0x2d0]
test eax, eax
je 0x46df4d
lea esi, [eax + 0xc]
test esi, esi
mov dword [esp + 0xc], esi
je 0x46df4d
mov edx, dword [esi + 4]
mov ebx, dword [ebp + 0x84]
mov eax, dword [ebx + edx*4]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x46df4d
mov eax, dword [esi]
test al, 1
je 0x46de53
mov ecx, dword [esp + 0x2d4]
push esi
mov dword [ecx], 1
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x34]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2bc
ret 0xc
test al, 2
je 0x46df40
push edi
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebx + edx*4]
mov edi, dword [eax + 0x14]
cmp dword [edi], 0
jne 0x46df3a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x46decf
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0xc009
lea ecx, [esp + 0x1c]
push 0x2b4
push ecx
push 0
push eax
call ebx
test eax, eax
je 0x46deab
mov edx, dword [esp + 0x1c]
mov dword [edi], edx
mov ecx, dword [edi + 0x10]
push 0xc00b
lea eax, [esp + 0x1c]
push 0x2b4
push eax
push 0
push ecx
call ebx
test eax, eax
je 0x46df3a
mov edx, dword [esp + 0x1c]
mov dword [edi + 4], edx
jmp 0x46df3a
mov eax, dword [edi + 8]
xor ebx, ebx
test eax, eax
je 0x46deda
mov ebx, eax
test ebx, ebx
mov esi, 0xc001
je 0x46deee
cmp word [ebx], 0x2a
jne 0x46deee
mov esi, 0xc011
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push esi
lea eax, [esp + 0x1c]
push 0x2b4
push eax
push 0x80
push ebx
call ebp
test eax, eax
je 0x46df32
mov ecx, dword [esp + 0x1c]
or esi, 2
push esi
lea edx, [esp + 0x1c]
push 0x2b4
push edx
push 0x80
push ebx
mov dword [edi], ecx
call ebp
test eax, eax
je 0x46df32
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], eax
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [edi]
pop edi
mov dword [esi + 0x1c], ecx
test byte [esi], 0x10
je 0x46df4d
push esi
mov ecx, ebp
call fcn.0044fe10
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2bc
ret 0xc
Function at 0x4772d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov eax, dword [edi]
mov ebx, dword [eax - 8]
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
lea esi, [ebx + 1]
jg 0x4772f7
cmp esi, dword [eax - 4]
jle 0x477372
cmp esi, ebx
jge 0x4772fd
mov esi, ebx
test esi, esi
jne 0x477308
mov eax, dword [0x4d9540]
jmp 0x47732f
lea ecx, [esi + esi + 0xe]
push ecx
call fcn.004c58a5
xor edx, edx
add esp, 4
cmp eax, edx
je 0x477374
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], dx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
lea ecx, [ebx + ebx + 2]
mov dword [edi], eax
mov edx, ecx
lea esi, [ebp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
mov dword [ecx - 8], ebx
mov eax, dword [0x4d9544]
cmp ebp, eax
je 0x47736e
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47736e
push ebp
call fcn.004c5432
add esp, 4
mov edi, dword [esp + 0x38]
mov edx, dword [edi]
test ebx, ebx
jle 0x47738d
mov eax, edx
mov ecx, ebx
cmp word [eax], 0xa
jne 0x477387
mov word [eax], 0
add eax, 2
dec ecx
jne 0x47737c
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x14]
mov word [edx + ebx*2], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], 3
mov ecx, dword [eax + 4]
push edx
mov dword [esp + 0x18], ecx
mov word [esp + 0x28], 0x40
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x477e70
Capabilities:
Hide graphical window

Disassembly:
mov edx, dword [0x4dcaa0]
xor eax, eax
test edx, edx
push esi
mov esi, ecx
sete al
push eax
push ecx
mov ecx, esp
push str.m_start_info
mov dword [0x4dcaa0], eax
call fcn.004014f0
push ecx
mov ecx, esp
push 0x4d9dd0
call fcn.004014f0
call fcn.004553a0
mov eax, dword [esi + 4]
add esp, 0xc
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x14]
xor eax, eax
pop esi
mov dword [ecx], 1
ret 0x10

Function at 0x478af0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x634]
test eax, eax
je 0x478b03
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x479370
Capabilities:
Get disk size

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4e3a2c]
push esi
push edi
mov dword [esp + 0x1c], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x228]
lea ecx, [esp + 8]
push ecx
push edx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edx, 0x5c
cmp word [esp + 0x1c], dx
jne 0x4793ee
cmp word [esp + 0x1e], dx
jne 0x4793ee
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x20]
test cx, cx
mov dword [esp + 8], eax
je 0x4793e3
cmp cx, dx
je 0x4793e3
add eax, 2
mov dword [esp + 8], eax
mov cx, word [eax]
test cx, cx
jne 0x4793cf
cmp word [eax], 0
je 0x4793f6
add eax, 2
jmp 0x4793f2
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov cx, word [eax]
test cx, cx
je 0x479412
cmp cx, dx
je 0x479412
add eax, 2
mov dword [esp + 8], eax
mov cx, word [eax]
test cx, cx
jne 0x4793fe
cmp word [eax], 0
je 0x479424
add eax, 2
mov dword [esp + 8], eax
mov word [eax], 0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x479478
mov eax, dword [0x4d9544]
lea edx, [edi - 0xc]
cmp edx, eax
je 0x47946a
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47946a
push esi
call fcn.004c5432
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x21c
ret 4
mov esi, dword [esp + 0x10]
mov ecx, dword [0x4d9544]
imul esi, dword [esp + 0xc]
lea eax, [edi - 0xc]
cmp eax, ecx
je 0x4794a5
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4794a5
push edi
call fcn.004c5432
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x21c
ret 4
Function at 0x47d2a0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov ebp, dword [esi + 0x2c]
mov edi, dword [esi + 0x24]
cmp ebp, 4
lea ebx, [esi + 0xc4]
je 0x47d2c5
mov eax, dword [ebx]
push 5
push eax
jmp 0x47d2ca
mov ecx, dword [ebx]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi + 0xc0]
mov dword [esi + 0x164], ebp
neg eax
sbb eax, eax
mov ecx, esi
and eax, ebx
cmp ebp, 4
mov edx, dword [eax]
mov dword [esi + 0x3358], edx
jne 0x47d329
call fcn.0047c9b0
add eax, 4
push 5
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0047c9b0
test eax, eax
je 0x47d31d
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esi + 0x3358], ecx
jmp 0x47d33d
xor eax, eax
mov ecx, dword [eax]
mov dword [esi + 0x3358], ecx
jmp 0x47d33d
call fcn.0047c9b0
mov edx, dword [eax + 4]
add eax, 4
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp ebp, 4
mov dword [esp + 0x10], 1
jne 0x47d352
mov dword [esp + 0x10], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x418
push edi
call esi
mov ebx, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
jle 0x47d3c1
mov eax, dword [esp + 0x10]
and eax, 0xffff
mov dword [esp + 0x10], eax
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
push 0x417
push edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], eax
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x401
push edi
call esi
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x47d37e
xor ecx, ecx
cmp ebp, 3
setne cl
and ecx, 0xffff
push ecx
push 0x8585
push 0x404
push edi
call esi
xor edx, edx
cmp ebp, 4
sete dl
and edx, 0xffff
push edx
push 0x8113
push 0x404
push edi
call esi
cmp ebp, 1
mov ebx, 0xb3b6
jne 0x47d405
jmp 0x47d427
cmp ebp, 2
jne 0x47d411
mov ebx, 0xb3b8
jmp 0x47d427
cmp ebp, 3
jne 0x47d41d
mov ebx, 0xbd80
jmp 0x47d427
cmp ebp, 4
jne 0x47d427
mov ebx, 0xb3b7
push 0
push 0xb3b6
push 0x403
push edi
call esi
push 0
push 0xb3b8
push 0x403
push edi
call esi
push 0
push 0xbd80
push 0x403
push edi
call esi
push 0
push 0xb3b7
push 0x403
push edi
call esi
push 1
push ebx
push 0x403
push edi
call esi
mov ecx, dword [esp + 0x18]
call fcn.0047ce00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x47ed90
Capabilities:
Print debug messages

Disassembly:
push ecx
mov eax, dword [0x4d9540]
mov ecx, str._n__n_
test ecx, ecx
push esi
mov dword [esp + 4], eax
je 0x47edf7
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x47edf7
lea edx, [esi + esi + 0xe]
push edx
call fcn.004c58a5
add esp, 4
test eax, eax
je 0x47edf7
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
inc esi
push esi
push str._n__n_
push eax
mov dword [esp + 0x10], eax
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 4]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00401850
mov eax, dword [esp + 4]
mov edx, dword [0x4d9544]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47ee3a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x47ee3a
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0xc]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47ee70
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x47ee70
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop esi
pop ecx
ret 4
Function at 0x480e80
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x4ecbe8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [0x4d9540]
push esi
lea edx, [esp + 0x1c]
push 0x4da88c
push edx
mov dword [esp + 0x24], ecx
call fcn.00401a70
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
push edi
push ebx
push ecx
call fcn.00480fb0
mov edx, dword [esp + 0x30]
push edx
call fcn.004c553e
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 0x20
cmp eax, 0xffffffff
je 0x480ef6
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x480ef6
cmp esi, eax
jle 0x480ef0
mov esi, eax
cmp esi, ecx
jge 0x480ef6
mov esi, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x480f27
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x480f27
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x480f52
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x480f52
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x481400
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x4ecbf8]
sub esp, 0xc
test eax, eax
push esi
push edi
je 0x481466
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x481438
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x481438
push esi
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x48145c
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x48145c
push esi
call fcn.004c5432
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 8
lea eax, [esp + 0xc]
xor esi, esi
push eax
call fcn.00481ec0
mov eax, dword [eax]
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push SHChangeNotifyDeregister
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48149f
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [0x4d9544]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4814d1
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4814d1
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov edi, dword [esp + 0x20]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [esp + 0x20]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
mov dword [esp + 0x24], eax
je 0x481502
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4d9544]
lea ecx, [ebx - 0xc]
cmp ecx, eax
je 0x481521
lea esi, [ebx - 0xc]
push esi
call ebp
test eax, eax
jg 0x481521
push esi
call fcn.004c5432
add esp, 4
mov eax, dword [0x4d9544]
lea edx, [edi - 0xc]
cmp edx, eax
pop ebx
je 0x481541
lea esi, [edi - 0xc]
push esi
call ebp
test eax, eax
jg 0x481541
push esi
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x20]
pop ebp
pop edi
pop esi
add esp, 0xc
ret 8