joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010c0
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
mov ecx, dword [0x806f68]
push ebx
mov ebx, dword [0x806f6c]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x30], ecx
call fcn.004010b0
mov edx, dword [0x806f70]
mov eax, dword [0x806f74]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
jmp 0x401122
xor esi, esi
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov ecx, dword [0xc2676c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40117b
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
xor edx, edx
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
mov word [ebp - 0x1c], dx
mov word [ebp - 0x1a], ax
mov edx, dword [ebp - 0x1c]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 4]
mov ecx, dword [0xc2676c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401195
mov dword [0xc26768], 0xedeb2e40
jmp 0x4011b5
cmp ecx, 0x3eb
jne 0x4011b5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0xc2611c], esi
mov ecx, dword [ebp - 8]
add ecx, edi
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov edx, edi
shr edx, cl
mov dword [0xc26764], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov edx, dword [ebp - 0xc]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 8]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
nop
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
shr esi, cl
mov ecx, dword [ebp - 4]
push eax
push ecx
add esi, ebx
call fcn.00401090
cmp dword [0xc2676c], 0xb03
mov dword [ebp - 4], eax
jne 0x40123e
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, esi
mov dword [ebp - 4], eax
sub edi, eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
sub dword [ebp - 0x20], 1
jne 0x401120
cmp dword [0xc2676c], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x401286
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401670
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0xc2676c], 0x400
push esi
push edi
jne 0x401694
lea eax, [ebp - 0x24]
call fcn.00401750
lea esi, [ebp - 0x24]
call fcn.00401770
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af054
jle 0x4016b2
cmp ebx, 0x787e04e5
jne 0x4016bb
inc esi
cmp esi, 0x1d8d
jl 0x4016a0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x4016ed
inc esi
cmp esi, 0x4f6a4
jl 0x4016d0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
pop ebx
push 0
call edi
cmp esi, 0x2b2589
jg 0x40170b
inc esi
cmp esi, 0x11915
jl 0x4016f6
mov eax, dword [0x8071ac]
mov dword [0xc2676c], eax
call fcn.004013f0
mov esi, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, 0x3078f
jmp 0x401730
cmp dword [0xc2676c], 0x51f
jne 0x401740
push 0
call esi
sub edi, 1
jne 0x401730
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404200
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x806538]
jne 0x40420a
repz ret
jmp fcn.00407b20
Function at 0x407843
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404c67
and dword [ebp - 4], 0
cmp dword [0x808b64], 0
mov ebx, eax
jne 0x4078f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4079a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4079a5
push eax
call fcn.00404bf5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x808b64], eax
call esi
push eax
call fcn.00404bf5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x808b68], eax
call esi
push eax
call fcn.00404bf5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x808b6c], eax
call esi
push eax
call fcn.00404bf5
pop ecx
mov dword [0x808b74], eax
test eax, eax
je 0x4078f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404bf5
pop ecx
mov dword [0x808b70], eax
mov eax, dword [0x808b70]
cmp eax, ebx
je 0x40794c
cmp dword [0x808b74], ebx
je 0x40794c
push eax
call fcn.00404c70
push dword [0x808b74]
mov esi, eax
call fcn.00404c70
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40794c
test edi, edi
je 0x40794c
call esi
test eax, eax
je 0x407943
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407943
test byte [ebp - 0xc], 1
jne 0x40794c
or dword [ebp + 0x10], 0x200000
jmp 0x407985
mov eax, dword [0x808b68]
cmp eax, ebx
je 0x407985
push eax
call fcn.00404c70
pop ecx
test eax, eax
je 0x407985
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407985
mov eax, dword [0x808b6c]
cmp eax, ebx
je 0x407985
push eax
call fcn.00404c70
pop ecx
test eax, eax
je 0x407985
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x808b64]
call fcn.00404c70
pop ecx
test eax, eax
je 0x4079a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4079a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402000
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
call 0x402010
push ebp
jae 0x40206d
jb 0x40203d
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_LoadLibraryA
cmp eax, 0
je 0x40206c
mov ebx, eax
call 0x40202d
inc edx
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [ebx + 0x49], bp
outsb dx, byte [esi]
jo 0x4020a0
je 0x40202d
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, 0
je 0x40206c
mov dword [0x401111], eax
call fcn.004021f9
add al, ch
mov dh, 1
add byte [eax], al
call 0x402074
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [section..data], eax
push 0
push 0x40209d
push 0
push 2
push dword [section..data]
call dword [sym.imp.USER32.DLL_DialogBoxParamA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_ExitProcess
push str.HIDmon
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
je 0x40209c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x40209c
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
ret
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0x110
je 0x402164
cmp dword [ebp + 0xc], 0x111
je 0x4021a1
cmp dword [ebp + 0xc], 0x10
je 0x4021a7
cmp dword [ebp + 0xc], 0xf
je 0x4021a3
cmp dword [ebp + 0xc], 0x219
je 0x4020e1
xor eax, eax
jmp 0x4021b7
cmp dword [ebp + 0x10], 0x8000
je 0x402159
jmp 0x4021b2
cmp dword [esi + 0x20], 0x23444948
jne 0x4021b2
cmp byte [0x401108], 1
je 0x4021b2
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
push 1
push dword [0x401124]
push dword [0x401128]
push dword [0x401120]
push dword [0x40111c]
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_UpdateWindow]
push 0
push 0
push 0
push 0x4021be
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
jmp 0x4021b2
mov esi, dword [ebp + 0x14]
cmp dword [esi + 4], 5
je 0x4020ef
jmp 0x4021b2
push 0x40111c
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_GetWindowRect]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindowAsync]
mov esi, 0x401004
mov dword [esi], 0x30
mov dword [esi + 4], 5
push 4
push 0x401004
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_RegisterDeviceNotificationA]
jmp 0x4021b2
jmp 0x4021b2
jmp 0x4021b2
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402010
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
call 0x402010
push ebp
jae 0x40206d
jb 0x40203d
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_LoadLibraryA
cmp eax, 0
je 0x40206c
mov ebx, eax
call 0x40202d
inc edx
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [ebx + 0x49], bp
outsb dx, byte [esi]
jo 0x4020a0
je 0x40202d
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, 0
je 0x40206c
mov dword [0x401111], eax
call fcn.004021f9
add al, ch
mov dh, 1
add byte [eax], al
call 0x402074
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [section..data], eax
push 0
push 0x40209d
push 0
push 2
push dword [section..data]
call dword [sym.imp.USER32.DLL_DialogBoxParamA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_ExitProcess
push str.HIDmon
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
je 0x40209c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x40209c
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
ret
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0x110
je 0x402164
cmp dword [ebp + 0xc], 0x111
je 0x4021a1
cmp dword [ebp + 0xc], 0x10
je 0x4021a7
cmp dword [ebp + 0xc], 0xf
je 0x4021a3
cmp dword [ebp + 0xc], 0x219
je 0x4020e1
xor eax, eax
jmp 0x4021b7
cmp dword [ebp + 0x10], 0x8000
je 0x402159
jmp 0x4021b2
cmp dword [esi + 0x20], 0x23444948
jne 0x4021b2
cmp byte [0x401108], 1
je 0x4021b2
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
push 1
push dword [0x401124]
push dword [0x401128]
push dword [0x401120]
push dword [0x40111c]
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_UpdateWindow]
push 0
push 0
push 0
push 0x4021be
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
jmp 0x4021b2
mov esi, dword [ebp + 0x14]
cmp dword [esi + 4], 5
je 0x4020ef
jmp 0x4021b2
push 0x40111c
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_GetWindowRect]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindowAsync]
mov esi, 0x401004
mov dword [esi], 0x30
mov dword [esi + 4], 5
push 4
push 0x401004
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_RegisterDeviceNotificationA]
jmp 0x4021b2
jmp 0x4021b2
jmp 0x4021b2
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40202d
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
call 0x402010
push ebp
jae 0x40206d
jb 0x40203d
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_LoadLibraryA
cmp eax, 0
je 0x40206c
mov ebx, eax
call 0x40202d
inc edx
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [ebx + 0x49], bp
outsb dx, byte [esi]
jo 0x4020a0
je 0x40202d
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, 0
je 0x40206c
mov dword [0x401111], eax
call fcn.004021f9
add al, ch
mov dh, 1
add byte [eax], al
call 0x402074
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [section..data], eax
push 0
push 0x40209d
push 0
push 2
push dword [section..data]
call dword [sym.imp.USER32.DLL_DialogBoxParamA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_ExitProcess
push str.HIDmon
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
je 0x40209c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x40209c
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
ret
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0x110
je 0x402164
cmp dword [ebp + 0xc], 0x111
je 0x4021a1
cmp dword [ebp + 0xc], 0x10
je 0x4021a7
cmp dword [ebp + 0xc], 0xf
je 0x4021a3
cmp dword [ebp + 0xc], 0x219
je 0x4020e1
xor eax, eax
jmp 0x4021b7
cmp dword [ebp + 0x10], 0x8000
je 0x402159
jmp 0x4021b2
cmp dword [esi + 0x20], 0x23444948
jne 0x4021b2
cmp byte [0x401108], 1
je 0x4021b2
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
push 1
push dword [0x401124]
push dword [0x401128]
push dword [0x401120]
push dword [0x40111c]
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_UpdateWindow]
push 0
push 0
push 0
push 0x4021be
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
jmp 0x4021b2
mov esi, dword [ebp + 0x14]
cmp dword [esi + 4], 5
je 0x4020ef
jmp 0x4021b2
push 0x40111c
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_GetWindowRect]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindowAsync]
mov esi, 0x401004
mov dword [esi], 0x30
mov dword [esi + 4], 5
push 4
push 0x401004
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_RegisterDeviceNotificationA]
jmp 0x4021b2
jmp 0x4021b2
jmp 0x4021b2
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402074
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
call 0x402010
push ebp
jae 0x40206d
jb 0x40203d
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_LoadLibraryA
cmp eax, 0
je 0x40206c
mov ebx, eax
call 0x40202d
inc edx
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [ebx + 0x49], bp
outsb dx, byte [esi]
jo 0x4020a0
je 0x40202d
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, 0
je 0x40206c
mov dword [0x401111], eax
call fcn.004021f9
add al, ch
mov dh, 1
add byte [eax], al
call 0x402074
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [section..data], eax
push 0
push 0x40209d
push 0
push 2
push dword [section..data]
call dword [sym.imp.USER32.DLL_DialogBoxParamA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_ExitProcess
push str.HIDmon
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
je 0x40209c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x40209c
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
ret
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0x110
je 0x402164
cmp dword [ebp + 0xc], 0x111
je 0x4021a1
cmp dword [ebp + 0xc], 0x10
je 0x4021a7
cmp dword [ebp + 0xc], 0xf
je 0x4021a3
cmp dword [ebp + 0xc], 0x219
je 0x4020e1
xor eax, eax
jmp 0x4021b7
cmp dword [ebp + 0x10], 0x8000
je 0x402159
jmp 0x4021b2
cmp dword [esi + 0x20], 0x23444948
jne 0x4021b2
cmp byte [0x401108], 1
je 0x4021b2
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
push 1
push dword [0x401124]
push dword [0x401128]
push dword [0x401120]
push dword [0x40111c]
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_UpdateWindow]
push 0
push 0
push 0
push 0x4021be
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
jmp 0x4021b2
mov esi, dword [ebp + 0x14]
cmp dword [esi + 4], 5
je 0x4020ef
jmp 0x4021b2
push 0x40111c
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_GetWindowRect]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindowAsync]
mov esi, 0x401004
mov dword [esi], 0x30
mov dword [esi + 4], 5
push 4
push 0x401004
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_RegisterDeviceNotificationA]
jmp 0x4021b2
jmp 0x4021b2
jmp 0x4021b2
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x61e02d18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x61e02d63
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx ecx, byte [eax]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
xor eax, ecx
movzx eax, al
or dword [ebp - 8], eax
add dword [ebp - 4], 1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jl 0x61e02d41
cmp dword [ebp - 8], 0
setne al
movzx eax, al
leave
ret
Function at 0x61e836d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x61e9f4dc
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x61e9f4d4]
sub esp, 4
test ebx, ebx
je 0x61e8371b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x61e83714
test esi, esi
je 0x61e83714
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x61e836f0
mov dword [esp], 0x61e9f4dc
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x61e838f0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x61e8fd84
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x61e83940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x61e83a18
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x61e8397e
cmp eax, 4
jne 0x61e839a0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x61e8398e
cmp edx, 4
je 0x61e8398e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.61e838f0
Function at 0x783bd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x114000]
add word [edi + 0x384080], 2
push edi
or ebp, 0xffffffff
jmp 0x783bfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x783c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x783bf0
mov eax, 1
add ebx, ebx
jne 0x783c13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x783c24
jne 0x783c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x783c43
dec eax
add ebx, ebx
jne 0x783c30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x783c08
add ebx, ebx
jne 0x783c3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x783c95
xor ecx, ecx
sub eax, 3
jb 0x783c5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x783cca
sar eax, 1
mov ebp, eax
jmp 0x783c66
add ebx, ebx
jne 0x783c66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x783c34
inc ecx
add ebx, ebx
jne 0x783c74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x783c34
add ebx, ebx
jne 0x783c81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x783c76
jne 0x783c92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x783c76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x783cb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x783ca6
jmp 0x783bf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x783cb4
add edi, ecx
jmp 0x783bf6
pop esi
mov edi, esi
mov ecx, 0x34a6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x783cd2
cmp byte [edi], 0x22
jne 0x783cd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x783cd7
lea edi, [esi + 0x380000]
mov eax, dword [edi]
or eax, eax
je 0x783d4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x384280]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3843a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x783d04
mov ecx, edi
jns 0x783d33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3843ac]
or eax, eax
je 0x783d49
mov dword [ebx], eax
add ebx, 4
jmp 0x783d21
call dword [esi + 0x3843a8]
mov ebp, dword [esi + 0x3843b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x783d83
sub esp, 0xffffff80
jmp 0x47b901
Function at 0x10001130
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
aam 0x9a
add eax, 0x953196cb
cmp edx, dword [ecx + esi + 0x31943b95]
xchg ebp, eax
aam 0xfa
rol dword [ebx + ecx*8], 0x96
xor dword [ebp - 0x6ace6bc5], edx
cmp edx, dword [ecx + esi + 0x2ea38495]
add al, 0xbb
pop ebx
sti
add edx, ecx
push es
cmp eax, 0x31943b95
xchg ebp, eax
add byte [ebx - 0x2b], bh
jne 0x100010ff
fist dword [esi + 0x6e16ccd2]
movsb byte es:[edi], byte [esi]
retf