joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411c50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 0x14]
push ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x411ce2
cmp word [ebx + 8], 2
push esi
jne 0x411cb2
cmp word [ebx + 0xa], 4
jne 0x411cb2
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x411cb2
lea ecx, [ecx]
push dword [eax]
mov edx, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.00411bd0
mov dword [edi], eax
test eax, eax
je 0x411cd4
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x411c90
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x10]
call fcn.00427f68
add esp, 0x10
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop esi
pop edi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x411cf2.11001
jmp dword [eax*4 + 0x411d20]
pop edi
mov eax, 0x2af9
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, 0x2afa
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, 0x2afb
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x47bb24], 0
mov ax, cx
push ebx
push esi
push edi
mov word [ebp - 0x23a], ax
mov dword [ebp - 0x238], str.getaddrinfo
mov dword [ebp - 0x234], 0x412010
mov dword [ebp - 0x230], str.getnameinfo
mov dword [ebp - 0x22c], 0x412310
mov dword [ebp - 0x228], str.freeaddrinfo
mov dword [ebp - 0x224], fcn.00411fc0
je 0x4125cd
movzx eax, ax
jmp 0x4126f6
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4126e5
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push 0x10c
push eax
call fcn.00427b16
push str.ws2_32
lea eax, [ebp - 0x118]
push 0x10c
push eax
call fcn.00427b8d
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x412646
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x41269b
push edi
call esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push 0x10c
push eax
call fcn.00427b16
push str.wship6
lea eax, [ebp - 0x118]
push 0x10c
push eax
call fcn.00427b8d
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4126e5
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x41269b
push edi
call esi
jmp 0x4126e5
xor esi, esi
lea ecx, [ecx]
push dword [ebp + esi*8 - 0x238]
push edi
call ebx
mov dword [ebp + esi*8 - 0x234], eax
test eax, eax
je 0x4126de
inc esi
cmp esi, 3
jl 0x4126a0
mov eax, dword [ebp - 0x234]
mov dword [0x457fb4], eax
mov eax, dword [ebp - 0x22c]
mov dword [0x457fbc], eax
mov eax, dword [ebp - 0x224]
mov dword [fcn.00411fc0], eax
jmp 0x4126e5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0x23a]
mov dword [0x47bb24], 1
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x457fb4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret
Function at 0x412d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
mov al, cl
xor edi, edi
mov byte [ebp - 0x125], al
cmp byte [ebp + 8], bl
je 0x412f53
cmp al, 2
je 0x412f53
cmp al, 1
je 0x412f53
cmp al, 8
je 0x412da5
cmp al, 0xd
je 0x412da5
cmp al, 0xa
je 0x412da5
cmp al, 3
je 0x412da5
mov byte [ebp - 0x108], al
lea edi, [ebx + 1]
jmp 0x412e23
test dl, 2
je 0x412e23
test dl, 1
je 0x412e23
push dword [0x47bacc]
movsx eax, al
push eax
push str.Handle_echo_of_special_char__0x_02x__charinaline___d_n
push 2
call fcn.0041a380
mov al, byte [ebp - 0x125]
add esp, 0x10
cmp al, 8
jne 0x412e0e
lea eax, [ebp - 0x124]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ax, word [0x47b994]
cmp ax, word [ebp - 0x120]
je 0x412e23
mov word [ebp - 0x108], 0x2008
mov edi, 3
mov byte [ebp - 0x106], 8
jmp 0x412e23
cmp al, 0xd
jne 0x412e23
mov edi, 2
mov word [ebp - 0x108], 0xa0d
lea ebx, [edi - 1]
push edi
push str.EchoBufLen___d_n
push 2
call fcn.0041a380
add esp, 0xc
test edi, edi
je 0x412f53
cmp dword [0x47b504], 0
push esi
je 0x412f03
lea eax, [edi + 0x2c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x412f52
lea eax, [edi + 0x2c]
push eax
push 0
push esi
call fcn.0042bf20
xor eax, eax
mov dword [esi + 0x18], edi
mov word [esi], ax
lea eax, [edi + 0x2c]
mov dword [esi + 4], eax
lea eax, [ebp - 0x108]
push edi
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0042a7d0
add esp, 0x18
lea eax, [ebp - 0x10c]
push 0
push eax
push dword [esi + 4]
push esi
push dword [0x47b504]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412eda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Echo_WriteFile_failed_with__d_n
push 2
call fcn.0041a380
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
push str.Echo_WriteFile_succeeded_n
push 2
call fcn.0041a380
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
xor esi, esi
test edi, edi
jle 0x412f3c
lea esp, [esp]
mov eax, dword [0x45af98]
mov cl, byte [ebp + esi - 0x108]
mov byte [eax], cl
inc eax
mov dword [0x45af98], eax
movsx eax, cl
push eax
push str.Echo_char__c_n
push 2
call fcn.0041a380
inc esi
add esp, 0xc
cmp esi, edi
jl 0x412f10
test ebx, ebx
je 0x412f52
or ecx, 0xffffffff
call fcn.00412710
call fcn.00414fb0
call fcn.00412780
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret
Function at 0x4135f0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a8
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x45af74], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x8a0], ecx
mov dword [ebp - 0x89c], edi
mov dword [ebp - 0x8a4], eax
mov byte [ebp - 0x885], 0
je 0x41363f
push edi
push esi
push 0x45ae60
call fcn.0041c5b0
add esp, 0xc
push edi
push str.Enter_WriteToConsoleFC_with__d_chars_n
push 1
call fcn.0041a380
add esp, 0xc
cmp edi, 0x400
jbe 0x413683
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427138
add esp, 4
mov dword [ebp - 0x890], eax
mov ebx, eax
mov byte [ebp - 0x885], 1
jmp 0x41368f
lea ebx, [ebp - 0x80c]
mov dword [ebp - 0x890], ebx
push edi
push ebx
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x894], eax
mov dword [ebp - 0x88c], 0
test eax, eax
je 0x41380f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x890]
lea eax, [ebp - 0x88c]
push eax
push edi
lea edx, [ebp - 0x898]
lea ecx, [ebp - 0x85c]
call fcn.00413260
movzx eax, word [ebp - 0x852]
add esp, 8
cmp eax, dword [0x45a6fc]
jne 0x41378b
xorps xmm0, xmm0
mov dword [ebp - 0x860], 0
movdqu xmmword [ebp - 0x870], xmm0
push ecx
movdqu xmmword [ebp - 0x880], xmm0
lea ecx, [ebp - 0x880]
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 0
movdqu xmmword [ebp - 0x880], xmm0
mov dword [ebp - 0x870], 0
mov word [ebp - 0x86c], 0
call fcn.004069f0
test al, al
je 0x41376d
cmp byte [0x45a953], 0
push ecx
lea ecx, [ebp - 0x880]
jne 0x413768
call fcn.004067d0
jmp 0x41376d
call fcn.00406930
cmp dword [ebp - 0x868], 0
je 0x41378b
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push dword [ebp - 0x868]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xffffffffffffffff
push dword [0x45af80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x884]
push eax
push dword [ebp - 0x898]
lea eax, [ebp - 0x85c]
push eax
push dword [ebp - 0x8a0]
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push dword [0x45af80]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x45af64]
test eax, eax
je 0x4137e6
push eax
push str.Sleep__d_n
push 8
call fcn.0041a380
add esp, 0xc
push dword [0x45af64]
call ebx
mov esi, dword [ebp - 0x88c]
inc esi
push 0
mov dword [ebp - 0x88c], esi
call ebx
cmp esi, dword [ebp - 0x894]
jb 0x4136c6
mov edi, dword [ebp - 0x89c]
mov ebx, dword [ebp - 0x890]
cmp byte [ebp - 0x885], 0
je 0x413821
push ebx
call fcn.00426f24
add esp, 4
mov eax, dword [ebp - 0x8a4]
push str.Signal_screen_redraw_n
push 8
mov dword [eax], edi
call fcn.0041a380
add esp, 8
push dword [0x45a960]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret
Function at 0x414ea0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x47b500]
sub eax, dword [0x46b218]
push esi
push eax
push str.ptyflush_buffer_size___d_n
push 1
mov dword [ebp - 8], 0
call fcn.0041a380
mov esi, dword [0x47b500]
add esp, 0xc
mov ecx, dword [0x46b218]
sub esi, ecx
je 0x414f3a
push 0
push dword [0x45af78]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x414f0e
push eax
push esi
push dword [0x46b218]
mov dword [ebp - 8], esi
push dword [0x457a38]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x414f34
mov edx, dword [0x46b218]
lea eax, [ebp - 8]
push ecx
push eax
push esi
call fcn.004146c0
add esp, 0xc
push dword [ebp - 8]
push str.WriteToConsole_wrote__d_bytes_n
push 2
call fcn.0041a380
add esp, 0xc
mov ecx, dword [0x46b218]
add ecx, dword [ebp - 8]
mov eax, dword [0x47b500]
sub eax, ecx
mov dword [0x46b218], ecx
push eax
push str.buffer_size___d_n
push 2
call fcn.0041a380
mov eax, dword [0x46b218]
add esp, 0xc
cmp eax, dword [0x47b500]
jne 0x414f7b
mov dword [0x47b500], 0x46b330
mov dword [0x46b218], 0x46b330
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004265fb
mov esp, ebp
pop ebp
ret
Function at 0x4176a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test esi, esi
je 0x41770d
cmp esi, 0xffffffff
je 0x41770d
call fcn.00419c60
cmp eax, 0x259
jne 0x417706
lea eax, [ebp - 8]
push eax
call fcn.00419120
cmp dword [0x47bb00], 5
jbe 0x41770d
call fcn.004190e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [0x47bb00]
jne 0x4176fe
mov dword [0x47bafc], 0
jmp 0x41770d
inc dword [0x47bafc]
jmp 0x41770d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push accept
push str.CONOUT_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x41773e
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004265fb
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Enable_Application_Wrap_in_PragmaMgr_Console_Settings_to_run_this_program._CreateFile___Console_failed.
call esi
push eax
push 1
push 1
push 0xe0000003
push str.TelnetServer
call fcn.00419930
push str.Enable_Application_Wrap_in_PragmaMgr_Console_Settings_to_run_this_program._Pragma_Shell_support_exiting_n
call fcn.00427a67
add esp, 0x1c
call esi
push eax
push str.CreateFile_Console_failure_likely_to_warp_applic_with__d_n
push 2
call fcn.0041a380
add esp, 0xc
push 1
call fcn.00429500
int3
Function at 0x418860
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp word [esi], 1
jne 0x41889c
cmp dword [0x457e58], 0
je 0x41889c
cmp byte [esi + 0xe], 3
jne 0x41889c
cmp dword [esi + 4], 0
jne 0x418893
call fcn.00409990
cmp dword [0x45ac04], 0
je 0x4188bb
lea eax, [ebp - 8]
push eax
push 1
push esi
push dword [0x45abf8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push dword [0x45a960]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004265fb
mov esp, ebp
pop ebp
ret

Function at 0x419690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x110]
push esi
push edi
mov edi, dword [ebp + 8]
push ecx
push 1
push 0
push eax
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x10c], 0x104
mov dword [ebp - 0x110], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4196e2
push eax
push str.RegOpenKeyEx_Error___d_n
jmp 0x419714
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.Path
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41973f
push eax
push str.RegQueryValueEx_Error___d_n
push 2
call fcn.0041a380
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x446700
push 0x104
push eax
call fcn.00427b16
mov ecx, dword [ebp - 0x10c]
add esp, 0xc
jmp 0x41978f
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419748
sub ecx, edx
lea eax, [ebp - 0x108]
add eax, ecx
mov dword [ebp - 0x10c], ecx
cmp byte [eax - 1], 0x5c
je 0x419780
cmp ecx, 0x103
jae 0x419780
inc ecx
lea eax, [ebp - 0x108]
add eax, ecx
mov dword [ebp - 0x10c], ecx
mov byte [eax - 1], 0x5c
cmp ecx, 0x104
jae 0x419818
mov byte [eax], 0
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x4197a6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10c]
mov edx, edi
lea esi, [edx + 1]
jmp 0x4197b0
mov al, byte [edx]
inc edx
test al, al
jne 0x4197b0
sub edx, esi
inc ecx
add ecx, edx
push ecx
push 0
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4197e3
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
push esi
call fcn.00427b16
push edi
push dword [ebp - 0x10c]
push esi
call fcn.00427b8d
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.004265fb
mov esp, ebp
pop ebp
ret
call fcn.00428745
int3
Function at 0x419820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push dword [ebp + 8]
push str._s_error__n
push 1
call fcn.0041a380
add esp, 0xc
lea eax, [ebp - 4]
push 0
push 0
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x41988b
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
push 0x45071c
push 1
call fcn.0041a380
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esp, ebp
pop ebp
ret

Function at 0x419930
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x934
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0x20]
push esi
push edi
mov edi, dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x92c], eax
lea eax, [ebp - 0x518]
push 0x410
push eax
call fcn.00427a37
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x4199ca
push str.PRAGMASYS_REMOTE_ADDR
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x934]
push eax
call fcn.00427325
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x928]
push str.Remote_Address__s:_r_n_t_s
push eax
call fcn.00419670
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x518]
push 0x410
push eax
call fcn.00427b16
add esp, 0x2c
test edi, edi
je 0x419a58
lea eax, [ebp - 0x92c]
push eax
push edi
call fcn.00419890
mov esi, eax
add esp, 8
test esi, esi
je 0x419a15
push 0x25
push esi
call fcn.00427670
add esp, 8
test eax, eax
je 0x419a15
push edi
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x928]
push str._s_r_n_tError__d:
push eax
call fcn.00419670
add esp, 0x10
jmp 0x419a32
push esi
push edi
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x928]
push str._s_r_n_tError__d:__s
push eax
call fcn.00419670
add esp, 0x14
test esi, esi
je 0x419a3d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x518]
push 0x410
push eax
call fcn.00427b16
add esp, 0xc
lea eax, [ebp - 0x518]
mov dword [ebp - 0x92c], 0
push eax
push str._s_r_n
push 2
call fcn.0041a380
add esp, 0xc
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 0x518]
mov dword [ebp - 0x930], eax
test esi, esi
je 0x419ab8
push 0
lea eax, [ebp - 0x930]
push eax
push 0
push 1
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret
Function at 0x419ad0
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push str.PragmaDecrypt_in_n
push 1
mov dword [ebp - 8], 0
xor edi, edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
call fcn.0041a380
add esp, 8
lea eax, [ebp - 8]
push 0xf0000000
push 1
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419b36
call esi
push eax
push str.Error__x_during_CryptAcquireContext__n
push 2
call fcn.0041a380
add esp, 0xc
jmp 0x419c03
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x419b67
call esi
push eax
push str.Error__x_during_CryptCreateHash__n
push 2
call fcn.0041a380
add esp, 0xc
jmp 0x419c03
push 0
push 0xc
push str.PragmaSecret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x419b91
call esi
push eax
push str.Error__x_during_CryptHashData__n
push 2
call fcn.0041a380
add esp, 0xc
jmp 0x419c03
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 4]
push 0x6801
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x419bc0
call esi
push eax
push str.Error__x_during_CryptDeriveKey__n
push 2
call fcn.0041a380
add esp, 0xc
jmp 0x419c03
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 1
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x419c00
push dword [ebp + 0xc]
push str.bytes_required:_d_n
push 2
call fcn.0041a380
add esp, 0xc
call esi
push eax
push str.Error__x_during_CryptDecrypt__n
push 2
call fcn.0041a380
add esp, 0xc
jmp 0x419c03
mov edi, dword [ebp + 0xc]
cmp ebx, edi
jne 0x419c0b
xor esi, esi
jmp 0x419c0f
call esi
mov esi, eax
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x419c1d
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x419c2b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x419c3b
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.PragmaDecrypt_out_n
push 1
call fcn.0041a380
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a040
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a060
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00427138
mov ebx, eax
add esp, 4
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a080
sub eax, edx
push esi
inc eax
push eax
push ebx
call fcn.00427b16
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.0041a000
lea ecx, [ebp - 0x404]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a0b0
sub ecx, edx
jne 0x41a0cd
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], 0xc
push eax
mov dword [ebp - 0x408], 1
call fcn.00419fe0
add esp, 4
test eax, eax
je 0x41a0bb
lea eax, [ebp - 0x404]
push eax
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x41a173
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41a133
lea eax, [ebp - 0x404]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
jmp 0x41a171
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a138
sub ecx, edx
lea eax, [ebp - 0x404]
push 0x400
push eax
push ebx
mov byte [ecx + ebx - 4], 0x43
call fcn.0041a000
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push fcn.0040bc10
call fcn.0042b139
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret
Function at 0x41a1a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4586a4], 0
movdqu xmm0, xmmword [str.MAXIMUM_FILE_SIZE_REACHED_r_n]
mov eax, dword [0x446770]
push ebx
mov ebx, dword [ebp + 8]
movdqu xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], eax
movq xmm0, qword [0x446768]
movq qword [ebp - 0x10], xmm0
je 0x41a334
cmp dword [0x4587b4], 0
jne 0x41a334
mov eax, dword [0x4587b8]
test eax, eax
je 0x41a334
push esi
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x20
push 0x446754
push 0x4586a8
call fcn.00429660
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41a327
cmp dword [0x4587b0], 0
push edi
jne 0x41a23e
cmp dword [0x4587ac], 0
je 0x41a2ae
lea eax, [ebp - 0x128]
push eax
push esi
call fcn.0042b34e
push eax
call fcn.0042bb6f
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
jne 0x41a26c
test eax, eax
jne 0x41a2ae
mov edx, dword [0x4587ac]
test edx, edx
je 0x41a29a
mov ecx, dword [0x4587b4]
mov edi, 1
cmp dword [ebp - 0x128], edx
cmova ecx, edi
mov dword [0x4587b4], ecx
jne 0x41a2b4
mov dword [0x4587b4], edi
jmp 0x41a2b8
cmp edi, dword [0x4587b0]
jb 0x41a2ae
mov dword [0x4587b4], 1
jmp 0x41a2b8
mov ecx, dword [0x4587b4]
test ecx, ecx
je 0x41a302
push 2
push 0xffffffffffffffe4
push esi
call fcn.0042b784
push esi
push 0x1c
lea eax, [ebp - 0x124]
push 0x104
push eax
call fcn.0042b649
push 0x1c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.004267a7
add esp, 0x28
test eax, eax
je 0x41a317
push 2
push 0
push esi
call fcn.0042b784
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
jmp 0x41a303
push ebx
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._d:__s
push esi
call fcn.0042b372
add esp, 0x10
push esi
call fcn.0042b211
push esi
call fcn.00429d1a
add esp, 8
pop edi
push dword [0x4587b8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret