joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3337
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 5
pop ecx
mov esi, str.ThisIsAFileLockxxxx
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0041df75
mov edx, ebx
mov dword [ebp - 0x24], eax
call fcn.00445b2f
test eax, eax
jne 0x4a344e
mov edi, ebx
call fcn.004a142a
test eax, eax
jne 0x4a3384
inc eax
jmp 0x4a3450
push 0x148f
mov edi, str.File.c
mov esi, 0x4cc77c
push edi
mov edx, esi
mov ecx, ebx
call fcn.004a0001
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4a33c5
push 0x64
call ebx
mov ecx, dword [ebp - 0x1c]
push 0x1493
push edi
mov edx, esi
call fcn.004a0001
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
call fcn.004449db
xor edi, edi
inc edi
cmp dword [ebp - 0x20], 0
je 0x4a33ed
push dword [ebp - 0x20]
push edi
push 0x14
push eax
call fcn.00402244
mov ecx, dword [ebp - 0x20]
add esp, 0x10
call fcn.004a2aec
lea eax, [ebp - 0x18]
push str.ThisIsAFileLockxxxx
push eax
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
jne 0x4a344e
mov eax, dword [ebp - 0x1c]
call fcn.004a14db
test eax, eax
je 0x4a3411
mov eax, edi
jmp 0x4a3450
push 0x64
call ebx
call fcn.0041df75
sub eax, dword [ebp - 0x24]
mov esi, 0x2710
cmp eax, esi
jae 0x4a3432
mov eax, dword [ebp - 0x1c]
call fcn.004a14db
test eax, eax
jne 0x4a340d
push 0x64
call ebx
call fcn.0041df75
sub eax, dword [ebp - 0x24]
cmp eax, esi
jae 0x4a344e
mov eax, dword [ebp - 0x1c]
call fcn.004a14db
test eax, eax
jne 0x4a340d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret

Function at 0x4a345f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
mov edx, esi
stosw word es:[edi], ax
call fcn.00445b2f
test eax, eax
je 0x4a3493
xor eax, eax
jmp 0x4a3515
call fcn.0041df75
mov edi, eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041e918
pop ecx
jmp 0x4a34bf
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041df75
sub eax, edi
cmp eax, 0x7530
ja 0x4a34cc
xor edx, edx
mov ecx, esi
call fcn.004a1b95
test eax, eax
jne 0x4a34a6
push 0x140a
push str.File.c
mov edx, 0x4cc8b8
mov ecx, esi
call fcn.004a0001
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4a348c
push esi
push 1
push 0x14
push str.ThisIsAFileLockxxxx
call fcn.0040257f
push esi
push 1
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.0040257f
add esp, 0x20
mov ecx, esi
mov edi, eax
call fcn.004a2aec
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401317
leave
ret
Function at 0x4a3523
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.00445b2f
test eax, eax
je 0x4a3540
xor eax, eax
jmp 0x4a35cf
mov ecx, dword [ebp + 8]
xor edx, edx
call fcn.004a1b95
mov edi, eax
test edi, edi
je 0x4a3539
mov ecx, dword [ebp + 8]
push 0x1389
push str.File.c
mov edx, 0x4cc77c
call fcn.004a0001
mov ebx, eax
pop ecx
pop ecx
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x4a3539
lea eax, [edi + 0xe]
push eax
call fcn.004028f8
mov esi, eax
pop ecx
test esi, esi
jne 0x4a358c
mov ecx, ebx
call fcn.004a2aec
jmp 0x4a3539
push ebx
push edi
lea eax, [esi + 4]
push 1
push eax
call fcn.00402244
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jae 0x4a35b2
push dword [esp + 0xc]
call fcn.004019d8
pop ecx
test eax, eax
jne 0x4a35b2
xor ebx, ebx
mov ecx, dword [esp + 0xc]
call fcn.004a2aec
test ebx, ebx
jne 0x4a35cb
push esi
call fcn.00401a00
pop ecx
jmp 0x4a3539
mov dword [esi], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a4705
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.00445b2f
test eax, eax
je 0x4a4720
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [0x5215b8], 0
je 0x4a472d
xor eax, eax
jmp 0x4a471b
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x5215b8], 1
call fcn.004a1b95
mov ebx, 0x80000
cmp eax, ebx
ja 0x4a4755
xor eax, eax
and dword [0x5215b8], 0
jmp 0x4a471b
push dword [ebp + 8]
call fcn.004a3523
mov edi, eax
pop ecx
test edi, edi
jne 0x4a4769
or eax, 0xffffffff
jmp 0x4a474c
mov esi, dword [edi]
cmp esi, ebx
ja 0x4a4778
push edi
call fcn.00401a00
pop ecx
jmp 0x4a4764
lea ebx, [esi - 0x80000]
cmp byte [ebx + edi + 4], 0xa
je 0x4a4792
inc ebx
lea eax, [esi - 0x20000]
cmp ebx, eax
jb 0x4a477e
jmp 0x4a4793
inc ebx
mov ecx, dword [ebp + 8]
push 0x4e8
push str.Error.c
mov edx, 0x4cc8b8
call fcn.004a0001
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4a476f
push eax
sub esi, ebx
push esi
lea eax, [ebx + edi + 4]
push 1
push eax
call fcn.0040257f
mov ecx, dword [ebp - 4]
call fcn.004a2aec
push edi
call fcn.00401a00
xor eax, eax
add esp, 0x14
inc eax
jmp 0x4a474c
Function at 0x4a8fb4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
jle 0x4a9013
cmp dword [ebp + 0x10], esi
jle 0x4a9013
push 1
mov ebx, 0x410
push ebx
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x4a9013
push ebx
push esi
push edi
call fcn.00401f80
mov ebx, dword [0x51f734]
add esp, 0xc
cmp ebx, esi
jne 0x4a8ffd
call fcn.0045052b
mov ebx, eax
mov dword [0x51f734], ebx
push edi
call fcn.004504da
pop ecx
cmp dword [0x51f734], esi
jne 0x4a901a
push edi
call fcn.00401a00
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [edi + 0x1b8]
push 0x4cf208
push eax
call fcn.00401ba0
lea ebx, [edi + 0x250]
push str.ConsoleField.c
push ebx
mov dword [edi + 0x15c], 1
mov dword [edi + 0x174], esi
mov dword [edi + 0x190], esi
mov dword [edi + 0x18c], 2
call fcn.0049d62a
mov esi, str.A_Console_Field_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0049d4b5
mov eax, 0xbb8
mov ecx, ebx
call fcn.0049d4a2
mov eax, edi
call fcn.004a6462
push 0x4ce79c
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov eax, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a8c11
add esp, 0x24
test eax, eax
jne 0x4a90a5
mov eax, edi
call fcn.004a842d
jmp 0x4a9013
mov esi, edi
call fcn.004a8244
push 0x5f
call fcn.004a8216
pop ecx
mov eax, edi
jmp 0x4a9015
Function at 0x4aba71
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, eax
test esi, esi
jne 0x4aba81
xor eax, eax
jmp 0x4abaf6
test ebx, ebx
jne 0x4aba8a
mov byte [esi], 0
jmp 0x4aba7d
jns 0x4abab0
push edi
call fcn.004ab4f6
mov edi, eax
sub edi, dword [ebp + 8]
push ebx
call fcn.004042fa
pop ecx
cmp edi, eax
jge 0x4abaa6
mov ebx, edi
jmp 0x4abaaf
push ebx
call fcn.004042fa
pop ecx
mov ebx, eax
pop edi
mov ax, word [ebp + 8]
mov word [ebp - 8], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 6], ax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push esi
call fcn.004ab4b2
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x4abae6
cmp eax, ebx
jg 0x4aba85
mov byte [eax + esi], 0
jmp 0x4aba7d
cmp eax, ebx
jg 0x4abaf0
mov byte [eax + esi], 0
jmp 0x4abaf3
mov byte [esi], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x4ac2be
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x14]
mov ebx, pe_nt_image_headers32
lea esi, [ebx - 1]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00401f80
xor eax, eax
and dword [ebp - 0x114], eax
mov word [ebp - 0x108], ax
lea edi, [ebp - 0x106]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x10c]
add esp, 0xc
call fcn.004449a1
test eax, eax
je 0x4ac334
xor eax, eax
jmp 0x4ac3eb
push dword [ebp - 0x110]
lea edi, [ebp - 0x104]
push dword [ebp - 0x10c]
mov eax, edi
push esi
push eax
jmp 0x4ac383
lea eax, [ebp - 0x104]
cmp edi, eax
je 0x4ac35d
push edi
call fcn.00401a00
pop ecx
add ebx, ebx
lea eax, [ebx + 0xa]
push eax
push 1
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ac32d
push dword [ebp - 0x110]
lea eax, [ebx - 1]
push dword [ebp - 0x10c]
push eax
push edi
call fcn.00402e91
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ac34c
mov cx, word [ebp + 8]
mov word [ebp - 0x108], cx
mov cx, word [ebp + 0xc]
mov word [ebp - 0x106], cx
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp - 0x108]
push eax
push edi
call fcn.004ab4b2
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
test eax, eax
jne 0x4ac3d4
cmp byte [0x51e803], al
jne 0x4ac3d4
mov byte [0x51e803], 1
lea eax, [ebp - 0x104]
cmp edi, eax
je 0x4ac3e5
push edi
call fcn.00401a00
pop ecx
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x4ac4bd
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x51edcc]
push ebx
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x4ac500
xor ebx, ebx
inc ebx
mov dword [0x51edd0], ebx
test eax, eax
je 0x4ac4e8
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x51edcc]
test edi, edi
je 0x4ac4f2
test eax, eax
jne 0x4ac4ce
jmp 0x4ac503
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x4ac60a
xor ebx, ebx
inc ebx
test edi, edi
je 0x4ac608
push esi
mov esi, 0x51edd8
push edi
mov ecx, 0x104
mov eax, esi
call fcn.00444961
pop ecx
mov eax, edi
call fcn.004449db
mov cl, byte [0x51edd8]
xor edi, edi
xor edx, edx
xor eax, eax
jmp 0x4ac55e
cmp edx, edi
je 0x4ac548
cmp cl, 0x29
jne 0x4ac53f
xor edx, edx
mov byte [eax + 0x51eee0], 0x20
jmp 0x4ac557
cmp cl, 0x28
jne 0x4ac551
mov edx, ebx
jmp 0x4ac53f
mov byte [eax + 0x51eee0], cl
mov cl, byte [eax + 0x51edd9]
inc eax
test cl, cl
jne 0x4ac534
push 0x51eee0
push esi
mov byte [eax + 0x51eee0], cl
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x4ac5e9
call fcn.004ab405
test eax, eax
jne 0x4ac5e9
mov dword [ebp + 8], edi
mov dword [0x51edd0], edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ebx, 0x51edd0
call fcn.004abcbb
test eax, eax
jne 0x4ac5dd
mov dword [0x51edcc], 1
cmp dword [ebp + 8], eax
je 0x4ac5bc
push 0x51eee0
call edi
mov eax, 0x2ee
jmp 0x4ac5c4
push esi
call edi
mov eax, 0x5dc
call fcn.0041e248
xor eax, eax
cmp dword [ebp + 8], eax
sete al
cmp dword [0x51edd0], 0
mov dword [ebp + 8], eax
je 0x4ac596
push esi
call edi
and dword [0x51edcc], 0
jmp 0x4ac607
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x3e8
mov dword [0x51edcc], edi
mov dword [0x51edd0], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4acd0b
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
call fcn.004ac065
test eax, eax
je 0x4acd1c
xor eax, eax
inc eax
pop ebp
ret
pop ebp
jmp fcn.004ab8fc

Function at 0x4acd22
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0x207
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.00401f80
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0x214], ebx
call fcn.00401f80
mov eax, dword [ebp - 0x210]
add esp, 0x18
call fcn.004449db
mov edx, edi
call fcn.00445b2f
test eax, eax
je 0x4acd97
xor eax, eax
jmp 0x4acde3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x218]
mov dword [ebp - 0x214], 0x207
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x4acdcb
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4acd93
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x210]
mov ecx, 0x102
call fcn.00444961
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x4ad42a
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x814], eax
xor eax, eax
push 0x7fe
mov word [ebp - 0x804], ax
xor ebx, ebx
lea eax, [ebp - 0x802]
push ebx
push eax
call fcn.00401f80
xor eax, eax
xor ecx, ecx
add esp, 0xc
cmp byte [ebp + 0x14], bl
lea edi, [ebp - 0x80e]
setne cl
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
mov eax, 0x400
mov dword [ebp - 0x808], ebx
sub eax, ecx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x818], ebx
cmp edi, eax
jl 0x4ad4a4
mov eax, 0x3ff
sub eax, ecx
mov edi, eax
call fcn.004ab4b2
lea ebx, [ebp - 0x80c]
lea esi, [ebp - 0x808]
mov dword [ebp - 0x81c], eax
call fcn.004ab898
cmp byte [ebp + 0x14], 0
mov ax, word [ebp - 0x808]
mov word [ebp - 0x810], ax
mov ax, word [ebp - 0x80c]
mov word [ebp - 0x80e], ax
je 0x4ad4e3
inc edi
test edi, edi
jle 0x4ad64a
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 0x810]
lea eax, [ebp - 0x804]
push edi
push eax
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
test eax, eax
je 0x4ad67e
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x4ad67e
cmp eax, edi
je 0x4ad528
mov edi, eax
xor eax, eax
mov ecx, 0xfff7
cmp dword [ebp + 0x10], eax
je 0x4ad548
test edi, edi
jle 0x4ad55b
or word [ebp + eax*2 - 0x804], 8
inc eax
cmp eax, edi
jl 0x4ad538
jmp 0x4ad55b
test edi, edi
jle 0x4ad55b
mov edx, ecx
and word [ebp + eax*2 - 0x804], dx
inc eax
cmp eax, edi
jl 0x4ad54c
cmp byte [ebp + 0x14], 0
je 0x4ad56b
lea eax, [ebp + eax*2 - 0x806]
and word [eax], cx
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 0x810]
lea eax, [ebp - 0x804]
push edi
push eax
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 0x810]
xor eax, eax
cmp byte [ebp + 0x14], al
mov ecx, edi
setne al
sub ecx, eax
push ecx
push dword [ebp - 0x814]
push dword [ebp - 0x81c]
call esi
call fcn.004ab4f6
and dword [ebp - 0x814], 0
mov ebx, eax
test edi, edi
jle 0x4ad64a
cmp byte [ebp + 0x14], 0
je 0x4ad614
lea eax, [edi - 1]
cmp dword [ebp - 0x814], eax
jne 0x4ad614
mov ax, word [ebp - 0x808]
mov word [ebp - 0x810], ax
mov ax, word [ebp - 0x80c]
mov word [ebp - 0x80e], ax
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 0x810]
lea eax, [ebp + 0x14]
push 1
push eax
push dword [ebp - 0x81c]
call esi
inc dword [ebp - 0x808]
cmp dword [ebp - 0x808], ebx
jl 0x4ad63c
call fcn.004ab620
and dword [ebp - 0x808], 0
inc dword [ebp - 0x80c]
cmp dword [ebp - 0x80c], eax
jge 0x4ad66e
inc dword [ebp - 0x814]
cmp dword [ebp - 0x814], edi
jl 0x4ad5cc
push dword [ebp - 0x80c]
push dword [ebp - 0x808]
call fcn.004acd0b
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
dec eax
dec ebx
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x808], ebx
jmp 0x4ad64a
or eax, 0xffffffff
jmp 0x4ad65f
Function at 0x4adeea
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x134], ebx
call fcn.00401f80
add esp, 0xc
cmp edi, ebx
je 0x4adfb4
cmp byte [edi], bl
je 0x4adfb4
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x4adfb6
lea eax, [ebp - 0x134]
push eax
push esi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x4adf64
call fcn.0049ff62
or eax, 0xffffffff
jmp 0x4adfb6
mov dword [ebp - 0x138], ebx
push edi
lea eax, [ebp - 0x110]
push eax
cmp dword [ebp + 8], ebx
je 0x4adf84
call fcn.00401811
pop ecx
pop ecx
test eax, eax
je 0x4adf8f
jmp 0x4adf95
call fcn.004454c3
pop ecx
pop ecx
test eax, eax
je 0x4adf95
inc dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4adf6a
call fcn.0049ff62
mov eax, dword [ebp - 0x138]
jmp 0x4adfb6
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x4aea7c
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00401f80
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.00401f80
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esi + 1]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x210], ebx
call fcn.00444961
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0x1c
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
mov edi, 0xf003f
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push connect
call esi
test eax, eax
je 0x4aeb2a
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push connect
call esi
test eax, eax
je 0x4aeb2a
xor eax, eax
jmp 0x4aeb90
push str.PAULA.exe
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
push eax
push str._s_s__InitServer
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004451a8
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a80
add esp, 0x18
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push str.PAULA_Server
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x4aeb9f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
push ebx
mov esi, eax
call fcn.004abc79
pop ecx
mov dword [0x51c5ec], ebx
cmp esi, ebx
jne 0x4aebd6
xor eax, eax
jmp 0x4aed5a
push edi
push 0x400
mov eax, 0x51c1e8
push ebx
push eax
mov dword [0x51c5f0], eax
xor edi, edi
mov dword [ebp - 0x10c], ebx
call fcn.00401f80
mov eax, dword [0x51c5ec]
mov edx, dword [0x51c5e8]
add esp, 0xc
cmp byte [esi], bl
je 0x4aecc6
mov dword [ebp - 0x110], esi
cmp eax, 0x32
jge 0x4aecb2
lea esi, [edx + edi]
cmp esi, 0x3f6
jge 0x4aecb2
mov ecx, dword [ebp - 0x110]
mov cl, byte [ecx]
cmp cl, 0x20
ja 0x4aec72
xor ebx, ebx
cmp dword [ebp - 0x10c], ebx
jne 0x4aec72
cmp edi, ebx
jle 0x4aec6e
inc eax
lea edx, [esi + 6]
mov dword [0x51c5ec], eax
mov dword [0x51c5e8], edx
cmp eax, 1
jne 0x4aec61
add edx, 4
mov dword [0x51c5e8], edx
lea ecx, [edx + 0x51c1e8]
mov dword [eax*4 + 0x51c5f0], ecx
xor edi, edi
jmp 0x4aec9e
cmp cl, 0x22
jne 0x4aec93
cmp dword [ebp - 0x10c], ebx
jne 0x4aec8b
mov dword [ebp - 0x10c], 1
jmp 0x4aec9e
mov dword [ebp - 0x10c], ebx
jmp 0x4aec9e
mov esi, dword [eax*4 + 0x51c5f0]
mov byte [edi + esi], cl
inc edi
inc dword [ebp - 0x110]
mov ecx, dword [ebp - 0x110]
cmp byte [ecx], bl
jne 0x4aec11
cmp edi, ebx
jle 0x4aecc6
inc eax
lea edx, [edx + edi + 1]
mov dword [0x51c5ec], eax
mov dword [0x51c5e8], edx
push 0x32
pop ecx
cmp eax, ecx
jge 0x4aecde
lea edi, [eax*4 + 0x51c5f0]
sub ecx, eax
lea eax, [edx + 0x51c1e8]
rep stosd dword es:[edi], eax
mov esi, dword [0x51c5f0]
call fcn.0044675d
mov edx, eax
call fcn.00445b2f
test eax, eax
je 0x4aed54
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00401f80
push dword [0x51c5f0]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x108]
call fcn.00444961
mov eax, esi
push str..exe
lea esi, [ebp - 0x108]
call fcn.00445aee
add esp, 0x14
mov edi, esi
call fcn.004a142a
test eax, eax
je 0x4aed54
mov eax, esi
push eax
push dword [0x51c5f0]
call fcn.00401ba0
pop ecx
pop ecx
mov eax, dword [0x51c5ec]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x4aed68
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00401f80
add esp, 0xc
call fcn.004abd29
xor edi, edi
inc edi
call fcn.004ab49c
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x4aedb4
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push 0xfffffffffffffff6
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push eax
call ebx
test eax, eax
jne 0x4aedcf
xor edi, edi
push 3
push 0xfffffffffffffff5
call esi
push eax
call ebx
test eax, eax
jne 0x4aedde
xor edi, edi
push 1
push 0x4abcd7
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x4aedf1
xor edi, edi
push 0x35c
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x4aee02
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ebx, ebx
mov dword [0x51c6bc], eax
cmp eax, ebx
jne 0x4aee15
xor edi, edi
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4aee58
lea edx, [ebp - 0x108]
call fcn.004456dc
mov eax, edx
push eax
mov esi, 0x4cc93c
call fcn.0044486a
pop ecx
test eax, eax
jne 0x4aee58
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push ebx
call fcn.0046209e
pop ecx
pop ecx
mov ebx, eax
call fcn.004b3097
call fcn.0041df75
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040236d
pop ecx
call fcn.0040237f
call fcn.0040237f
call fcn.0040237f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret