joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be942
Capabilities:
Get graphical window text

Disassembly:
push 0x1dc
mov eax, 0x55231b
call fcn.00513ea1
mov ebx, ecx
call fcn.00402160
xor eax, eax
cmp byte [ebx + 0x24], al
je 0x4bea29
cmp dword [ebx + 0x1c], eax
je 0x4bea27
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], eax
push 0x6c
pop ecx
mov esi, str.nCeXpbXBHqtA6YHTC01HwwE658Hc3qCSkGJ7YZm8ZV564VyC9PMhdIgItryQuCvDRjOIPH2C61mYDJWmdB42GGGH5q7kAu6THeFGAJFbwvUqjnw9fab5AXA1NGpVwCltm8hgLj2njKIVleomXnzQXnSjzGlECaK5wwqyWrqG0ggC7zDqFvUYAD8GUt9ZxcJU8tA13RrlHqWo9Id0UHsENU4rHnpVJkaro7gnh24UaBXZnBjCu0vrm4Zy9LT7X9WpgInueUU4Cork7m4BTUlkFavGTKQxvplps3dNoj7QP5MCekdM5kOB6roZJnOKr4Vxgg0NQqfidfeBiPfHtb6wCM9qTLrMNtbMvkCgCPd5YdrVgA2PLlUEDKwCi0eZRWbV5LUZWOpgQdwHUAlffyPDhP7RIRdJEJFKSR1jUJvpmPR1yNyAP
mov dword [ebp - 4], eax
lea edi, [ebp - 0x1c4]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1dc]
movsw word es:[edi], word [esi]
call fcn.004057d0
lea eax, [ebp - 0x1dc]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1e8]
call fcn.00408170
push 0
push 1
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 0
call fcn.004096c0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00513f50
mov esi, esp
test esi, esi
je 0x4bea1c
push edi
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebx + 0x1c]
push esi
add ecx, 0x1bc
call fcn.00480893
mov ecx, dword [ebx + 0x1c]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0048606d
lea ecx, [ebp - 0x1e8]
call fcn.0047920e
xor eax, eax
lea esp, [ebp - 0x1f8]
call fcn.00513e4b
ret 0x10
Function at 0x4c366c
Capabilities:
Hide graphical window

Disassembly:
push 0x1d4
mov eax, 0x552b60
call fcn.00513ea1
mov edi, ecx
mov dword [ebp - 0x1d4], edi
call fcn.00402160
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x1c], eax
mov dword [eax + 0x5d0], ebx
cmp dword [edi + 4], ebx
jne 0x4c3792
mov dword [ebp - 0x1e0], ebx
mov dword [ebp - 0x1dc], ebx
mov dword [ebp - 0x1d8], ebx
push 0x48
pop ecx
mov esi, str.3DuYdArmpr3HnH6hqWSrQYN29BBXQVS66NITc23WbxRGgtkwOBwjscXhrajiBmeBsrn1p73s1DOgs65zg0q5z7AjQfvCTHzusbPQE3myqo4e719YAdzIFfwuhaurG6EiFGbZ84vorQeQemuCx2jJosZ3lGfZx8XFwAridc8y8EmwYGFqDzleUT1k3JyIA78ScNR1M5SlqypbEfQvzNwrrwN3FJI9O6DjHD0GY40B8D6H8P4xftZ8ovPTCybYd2NId4bbTAUPMOPArW0CF1dSkweGDaJ38wUd
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x134]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x14c]
movsb byte es:[edi], byte [esi]
call fcn.004057d0
lea eax, [ebp - 0x14c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1e0]
call fcn.00408170
push ebx
push 1
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], bl
call fcn.004096c0
mov esi, dword [ebp - 0x1d4]
lea eax, [ebp - 0x144]
push eax
mov ecx, esi
call fcn.004c3131
mov ecx, dword [esi + 0x1c]
mov ebx, 0x40000000
call fcn.004c3807
test al, al
lea esi, [ebp - 0x144]
mov ecx, 0x40010029
cmovne ebx, ecx
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push ebx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1d4]
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00482bee
push eax
mov ecx, edi
call fcn.004876f0
mov esi, dword [edi + 0x1c]
mov ecx, esi
call fcn.004bb03c
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0048276a
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e0]
call fcn.0047920e
mov ecx, dword [edi + 0x1c]
lea edx, [ebp - 0x1d0]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00480e97
lea ecx, [ebp - 0x1d0]
mov bl, al
call fcn.00480803
mov esi, 0x5c0
test bl, bl
je 0x4c37d1
mov eax, dword [edi + 0x1c]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x1c]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x24], 1
call fcn.00513e4b
ret 4
Function at 0x4c9923
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4c9947
cmp dword [esi + 8], edi
jge 0x4c993f
push esi
call fcn.004c7bab
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4c9970
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4c9953
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4c998d
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x4c997b
xor eax, eax
jmp 0x4c9983
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x4c9972
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4c99c2
push str.zlib_corrupt
call fcn.004c7a66
add esp, 4
jmp 0x4c99ff
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4c99d2
push str.read_past_buffer
jmp 0x4c99b8
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4c99e9
push edi
push esi
call fcn.004c7a75
pop ecx
pop ecx
test eax, eax
je 0x4c99ff
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004f0560
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4cd8fd
Capabilities:
Link many functions at runtime

Disassembly:
push 0x25c
mov eax, 0x552e1d
call fcn.00513ea1
mov ebx, ecx
push 0x3d
pop ecx
mov esi, str.0tPsSGVSGYOzXPtHkIeGnAd2xREdNlgvZd4mjCkQl8FRMSqwPp70G8ffimoJAoq8XFrdWCxvKy532tGs9EHv534o0cHf9vy1NxmyRrrPkKaHJ0AyGxQUozaCrNWrOPRizvPiRKJzDwwDacBIaBLMssUhpindnXcfk4XxEobxDm9Z3KobGbWYLYkRijgpU0tD1cGb0GEDVLTLdTp0VuX1bO2yNJQ39SWW8TK9qpByy9VPkWTPxnyn
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
push 0x4f
xor eax, eax
pop ecx
movsb byte es:[edi], byte [esi]
mov esi, str.QbX07fnfk5N1qYqkZMEjbnkFVcY5KqXnf3dv7TX21gLcqOawW8sN6LK7yXyKmzehvMvMuB60lRQwhaOs68kRwYhXluUokRYHUilzxPWatxLpkYbIA7hk56eAgipk0RkmAtwLbZ2FaWllqCRlzlQsN3B03Y7BlCJQNX2hJHH5b0FmEZDPtieN2PW6QvOci1z3EPxUdFFmtgqUohOwMYZ0IhRRBjy3YQwsFAKSRgFMScWgXgRp9tO1c3oFykNYztHJnFvmeKoU7z4ksL9JFZ84ot0foa81MH6Q9gGCChPhZmP8dMObHTnyeBfAHfX
mov dword [ebp - 0x268], eax
lea edi, [ebp - 0x244]
mov dword [ebp - 0x264], eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x25c]
lea eax, [ebp - 0x108]
push eax
call fcn.004057d0
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x268]
call fcn.00408170
xor edi, edi
mov byte [ebp - 4], 0
push 0
inc edi
lea ecx, [ebp - 0x25c]
push edi
call fcn.004096c0
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x25c]
call fcn.004057d0
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x268]
call fcn.00408170
push 0
push edi
lea ecx, [ebp - 0x25c]
call fcn.004096c0
push 0x5f28dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x4cda37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x635634
push eax
call esi
push str.IsWow64Process
push dword [ebx]
mov dword [ebx + 8], eax
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0xc], eax
call esi
push str.Wow64RevertWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0x18], eax
call esi
push str.GetSystemWow64DirectoryW
push dword [ebx]
mov dword [ebx + 0x14], eax
call esi
push str.advapi32.dll
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 4], eax
test eax, eax
je 0x4cda37
push str.Wow64RevertWow64FsRedirection
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push dword [ebx + 4]
mov dword [ebx + 0x20], eax
call esi
mov dword [ebx + 0x1c], eax
jmp 0x4cda39
xor edi, edi
lea ecx, [ebp - 0x268]
call fcn.0047920e
mov eax, edi
call fcn.00513e4b
ret
Function at 0x4cdb36
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x224
mov eax, 0x552eaf
call fcn.00513ea1
push 0x40
pop ecx
mov esi, str.eE8KC4ZfyHPRhotUVbQG9b1mR6mCXsTwYw5QcmGkYeM2KfP2hhncRvsG5RiXy8jKoGd0Fu8sil3cgtUfrUdd2AXY9Yyj8CB0n8hp5daG6mYcuK4xTeU2JpRhNKqQEBqHb4UH5117uMFHr0IlLCDKLMPP094krtUfReuO88bnf675xYFeniZ1Gn4R7LAT7VW1UHEgZGfRWfzUn6feu0DndZidWnl9ieTIyXabTHWEmBvX6kHBjWeRl6KCkhrH4FcZ
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x204]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x3b
pop ecx
mov dword [ebp - 0x230], eax
movsb byte es:[edi], byte [esi]
mov esi, str.guCVEsE8MFQedfWHIuVOwVeSPlL3xesMR0Z1Qq0kgYyK4jrrhOZ07Ollf0rF3j1iCEQtaj1fZjYp7yud5LX1xsTYVeKLJIQVXwoMiWaMt33g8pVeIzg8yDWVAiSxVsp0yhBaRYnApiBdPzZNo3GIr6nT47CeQDhnn6FJJdHCMfRLHGWeSPlhxazHhOhJ8a25n3qrGaN81OmFDr6gqroce1DhEqEophujofIIp4iZi9sitc
mov dword [ebp - 0x22c], eax
lea edi, [ebp - 0x100]
mov dword [ebp - 0x228], eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x204]
push eax
call fcn.004057d0
xor eax, eax
lea ecx, [ebp - 0x230]
inc eax
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x21c]
push eax
call fcn.00408170
xor ecx, ecx
mov byte [ebp - 4], 0
inc ecx
push 0
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004096c0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004057d0
push 2
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x21c]
push eax
call fcn.00408170
push 0
push 1
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call fcn.004096c0
push ebx
call fcn.00500d29
mov dword [ebp - 0x224], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004741dd
mov esi, eax
push ebx
push esi
call fcn.00500d07
mov ebx, dword [ebp - 0x224]
add esp, 0x10
xor edi, edi
test ebx, ebx
js 0x4cdc79
push 0x5c
pop eax
cmp word [esi + edi*2], ax
jne 0x4cdc6b
xor eax, eax
push esi
mov word [esi + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cdc64
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4cdc72
push 0x5c
pop eax
mov word [esi + edi*2], ax
inc edi
cmp edi, ebx
jle 0x4cdc41
jmp 0x4cdc79
mov byte [ebp - 0x220], 0
push esi
call fcn.004741e6
pop ecx
lea ecx, [ebp - 0x230]
call fcn.0047920e
mov ecx, dword [ebp - 0x220]
movzx eax, cl
call fcn.00513e4b
ret
Function at 0x4ce772
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.004741b0
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp byte [ebp + 0x10], 0
push edi
mov edi, dword [ebp + 8]
je 0x4ce960
push 0x2000
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2010], esi
push esi
push eax
mov dword [ebp - 0x2008], esi
call fcn.004f0ae0
push ebx
push edi
lea eax, [ebp - 0x2004]
push str.__s___s
push eax
call fcn.004081f0
push str.EXPLORER.EXE
call fcn.004cec7b
add esp, 0x20
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4ce92b
lea eax, [ebp - 0x2010]
mov edi, 0xf01ff
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4ce92b
lea eax, [ebp - 0x2008]
push eax
push 1
push 1
push esi
push edi
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4ce92b
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4ce87f
push str.WTSGetActiveConsoleSessionId
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ce878
call eax
push 4
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
push 0xc
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4ce92b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x2068]
push esi
push eax
call fcn.004f0ae0
push 0x10
lea eax, [ebp - 0x2024]
push esi
push eax
call fcn.004f0ae0
add esp, 0x18
mov dword [ebp - 0x2068], edi
mov dword [ebp - 0x2060], str.WinSta0Default
mov dword [ebp - 0x203c], 1
mov dword [ebp - 0x200c], esi
push 5
pop eax
push esi
push dword [ebp - 0x2008]
mov word [ebp - 0x2038], ax
lea eax, [ebp - 0x200c]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4ce92b
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2068]
push eax
push esi
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push 0x430
push esi
push esi
push esi
push eax
push esi
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4ce92b
cmp dword [ebp - 0x200c], esi
je 0x4ce92b
push dword [ebp - 0x200c]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, dword [ebp - 0x2008]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4ce943
cmp eax, 0xffffffff
je 0x4ce943
push eax
call edi
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x4ce955
cmp eax, 0xffffffff
je 0x4ce955
push eax
call edi
test ebx, ebx
jne 0x4ce95c
push esi
call edi
xor al, al
jmp 0x4ce971
push esi
push esi
push ebx
push edi
call fcn.004ce215
add esp, 0x10
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474193
mov esp, ebp
pop ebp
ret
Function at 0x4d0a0c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
mov eax, dword [0x672114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0xc24], eax
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0xc28], ebx
mov dword [ebp - 0xc18], ebx
call fcn.004f0ae0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
jmp 0x4d0b06
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4d0af8
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc1c], 0x104
push eax
call fcn.004f0ae0
add esp, 0xc
mov dword [ebp - 0xc20], 1
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0
push str.DisplayName
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d0aec
push dword [ebp - 0xc24]
lea eax, [ebp - 0x414]
push eax
call fcn.004efe95
pop ecx
pop ecx
test eax, eax
jne 0x4d0b34
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4d0a66
push 0x656bb0
mov ecx, esi
call fcn.004024f0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474193
mov esp, ebp
pop ebp
ret
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.004f0ae0
add esp, 0xc
mov dword [ebp - 0xc1c], 0x400
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0
push str.UninstallString
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc14]
push eax
jmp 0x4d0b1a
Function at 0x4d2205
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x553a42
call fcn.00513ea1
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x656bb0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.00402650
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004e7341
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d2379
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d22a3
push 0x656bb0
mov ecx, esi
call fcn.004024f0
jmp 0x4d2384
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.004741dd
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4d22e2
push 0x656bb0
mov ecx, esi
call fcn.004024f0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402590
push ebx
jmp 0x4d2390
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.004f0ae0
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.004e7d0d
push ebx
call fcn.004741e6
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004e755b
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.004da339
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.004096c0
cmp dword [ebp - 0x30], ebx
jbe 0x4d236e
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402880
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00402590
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00404610
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402590
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00402590
mov eax, esi
call fcn.00513e4b
ret 0x1c
Function at 0x4d2470
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x553a8c
call fcn.00513ea1
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.004f0ae0
lea eax, [edi + 4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4d24ca
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.004024f0
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x4d2510
mov eax, dword [esi]
jmp 0x4d2512
mov eax, esi
push ebx
push eax
call fcn.00500cc7
pop ecx
pop ecx
test eax, eax
jne 0x4d255d
cmp byte [edi], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x4d2541
call fcn.004d23a4
jmp 0x4d2546
call fcn.004d243f
push eax
mov ecx, esi
call fcn.00403fe0
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00402590
mov eax, esi
call fcn.00513e4b
ret 0x10
Function at 0x4d3aa1
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5538c3
call fcn.00513ea1
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4d3ba1
cmp byte [ebx + 0x3d], 0
je 0x4d3ba1
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4d3adb
xor al, al
jmp 0x4d3ba3
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.004d412b
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4d3b39
sub eax, 1
je 0x4d3b3d
dec eax
sub eax, 1
je 0x4d3b8f
xor bl, bl
jmp 0x4d3b91
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4d3b75
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004f8af6
add esp, 0x10
cmp esi, eax
jne 0x4d3b35
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x4d3b8f
test esi, esi
jne 0x4d3aff
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004d40ca
jmp 0x4d3af9
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004096c0
mov al, bl
jmp 0x4d3ba3
mov al, 1
call fcn.00513e4b
ret
Function at 0x4d4696
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x553e59
call fcn.00513ea1
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x4d46c2
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x4d4823
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4d46f0
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4d46f0
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x4d4823
cmp dword [esi + 0x4c], 0
je 0x4d4821
mov ecx, esi
call fcn.004d4037
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x4d4720
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.004d0f7c
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x4d4821
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.004d412b
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x4d4815
cmp eax, 1
jg 0x4d47fa
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x4d47cb
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.004f8af6
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x4d4815
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x4d47f5
test edx, edx
jne 0x4d474b
cmp dword [ebp - 0x18], 0x20
jae 0x4d4815
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.004d40ca
jmp 0x4d4748
mov ebx, dword [ebp + 8]
jmp 0x4d4815
cmp eax, 3
jne 0x4d4815
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.004d0f7c
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004096c0
mov eax, ebx
call fcn.00513e4b
ret 4