joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4058e4
pop dword [ebp - 0x44]
mov eax, 0x4058e4
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x79975e9c
add dword [ebp - 0x54], 0xd4bae6af
mov dword [ebp - 0x50], 0x1e0a473e
sub dword [ebp - 0x50], 0xebd6faf9
mov dword [ebp - 0x4c], 0x52567164
add dword [ebp - 0x4c], 0xf9f5d2ca
mov dword [ebp - 0x48], 0xfe2d4c48
add dword [ebp - 0x48], 0x1d2b3b8
lea eax, [ebp - 0x54]
push eax
mov eax, 0xa9ebb5de
add eax, 0x5654cb26
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xc504106d
add dword [ebp - 0x54], 0xaf6e58e9
mov dword [ebp - 0x50], 0x731c886
add dword [ebp - 0x50], 0x3a3a98ef
mov dword [ebp - 0x4c], 0xc11b1dc9
sub dword [ebp - 0x4c], 0x5dabb15d
mov dword [ebp - 0x48], 0x1ad94651
sub dword [ebp - 0x48], 0x1ad94651
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x35044
push 0
call eax
mov ecx, 0x4034
xor edi, edi
add edi, eax
mov ebx, 0x450400
add ebx, dword [ebp - 0x44]
mov esi, 0xe630e90b
sub esi, 0xb7206d9e
sub dword [ebp - 0x18], ecx
mov edx, dword [ebx]
mov dword [ebp - 8], 0x28c4c2e
add edx, esi
xor dword [ebp - 0x20], ecx
mov dword [edi], edx
add dword [ebp - 0x24], 0x10f6d648
add edi, 0xdc7a8e83
sub edi, 0xdc7a8e7f
add ebx, 0xaa84f041
sub ebx, 0xaa84f03d
loop 0x4059f2
add eax, 0x1d8f29b6
sub eax, 0x1d8e3613
xor ebx, ebx
add ebx, eax
add eax, 0x536c65cc
add eax, 0xac939a39
mov ecx, 0x605fc20e
sub ecx, 0x601fc20e
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x405ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cb3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405cb9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x1052f960
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1052fb41
pushal
mov esi, section..reloc
lea edi, [esi - 0x2c0000]
lea eax, [edi + 0x4da024]
push dword [eax]
mov dword [eax], 0xef1e9e25
push eax
push edi
or ebp, 0xffffffff
jmp 0x1052f99a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1052f9a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1052f990
mov eax, 1
add ebx, ebx
jne 0x1052f9b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1052f9a8
jne 0x1052f9c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1052f9a8
xor ecx, ecx
sub eax, 3
jb 0x1052f9d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1052fa4a
mov ebp, eax
add ebx, ebx
jne 0x1052f9e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1052f9f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1052fa14
inc ecx
add ebx, ebx
jne 0x1052fa00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1052f9f5
jne 0x1052fa11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1052f9f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1052fa34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1052fa25
jmp 0x1052f996
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1052fa34
add edi, ecx
jmp 0x1052f996
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x10376
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1052fa56
cmp byte [edi], 0x27
jne 0x1052fa56
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 0x1052fa5b
lea edi, [esi + 0x511000]
mov eax, dword [edi]
or eax, eax
je 0x1052fad3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x52f568]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x52f848]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1052fa88
mov ecx, edi
jns 0x1052fab7
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 + 0x52f84c]
or eax, eax
je 0x1052facd
mov dword [ebx], eax
add ebx, 4
jmp 0x1052faa5
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1052fb04
cmp al, 0xef
ja 0x1052faf7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1052fad9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1052fae6
mov ebp, dword [esi + 0x52f850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x1052fb38
sub esp, 0xffffff80
jmp 0x100f7ec0
Function at 0x41e769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422190
cmp edx, dword [eax]
je 0x41e78b
add eax, 8
inc ecx
cmp eax, 0x422220
jl 0x41e77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422190]
jne 0x41e8b9
mov eax, dword [0x422bb0]
cmp eax, 1
je 0x41e893
test eax, eax
jne 0x41e7bc
cmp dword [0x4220e4], 1
je 0x41e893
cmp edx, 0xfc
je 0x41e8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41e7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041f670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041f490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41e836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041f490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42145c
push edi
call fcn.0041ff00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041f670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041f680
lea eax, [ebp - 0xa0]
push 0x42143c
push eax
call fcn.0041f680
push dword [esi + 0x422194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041f680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041fe75
add esp, 0x2c
pop edi
jmp 0x41e8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x422194]
push 0
push eax
push dword [esi]
call fcn.0041f490
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 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
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]
jmp 0x40102d
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
jae 0x401079
jb 0x401079
stc
push 0x98265913
cmpsb byte [esi], byte es:[edi]
jg 0x4010cb
inc ebx
push es
jp 0x4010ce
mov bl, 0xa9
stc
out 0x33, al
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
jmp 0x4010b2
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]
invalid
add byte [eax], al
add byte [ebx], dh
ror byte [ebp - 0x10343], 0xff
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
jb 0x401114
jae 0x401114
push edi
imul esp, dword [esi - 0x1adb7801], 0x48
invalid
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
xchg dword [ebp + 0x35], ebp
mov byte [0xc2472c7f], al
pop edx
daa
neg byte [edx]
push 0x6e57b7fc
out dx, eax
or eax, 0xade0a702
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]
jmp 0x4011d3
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
jnp 0x4013e4
jp 0x4013e4
mov edi, 0xa9c031bb
fsubr qword [ecx - 0x7c]
popal
in eax, dx
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 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
jmp 0x401925
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
jmp 0x40196c
aad 0x7e
int3
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]
jae 0x4019dd
jb 0x4019dd
loope 0x401967
xchg ecx, eax
xor ebp, esi
dec ecx
inc esp
sbb byte [edi + 0x13], bh
scasb al, byte es:[edi]
int 0xcd
and bl, bl
js 0x401a54
pop ebp
test eax, 0x10c9b8b
add byte [eax], al
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
invalid
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
jnp 0x401e52
jp 0x401e52
add byte [ecx], bl
and dword [edx - 0x32], edi
stosb byte es:[edi], al
ret
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
jmp 0x402248
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
add ch, byte [edx + 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
sar byte [edi - 0x4fee73cf], 1
ja 0x402266
xor eax, 0xf567ea1d
xchg edx, eax
xchg byte [edi + edi*8 + 0x15], bh
sub al, 0x40
inc eax
add byte [ebx + 0x356a0875], cl
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:
Act as tcp client
Connect tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
jmp 0x4024f8
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
jne 0x402530
je 0x402530
jecxz 0x402561
sbb byte [ecx + 0x36], al
test byte [ecx], 0x4b
enter 0x2577, 0x5a
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
jmp 0x40258c
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
js 0x4025c7
jns 0x4025c7
mov al, byte [0x394141ec]
wait
add al, 0xd0
inc ecx
wait
stc
dec esi
int1
push ebx
ret 0x6a67
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
jmp 0x402615
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
jnp 0x40265b
jp 0x40265b
sbb eax, 0x68f9b638
daa
mov edx, 0x4d8be2c0
add al, 0x5c
mov byte [eax + 0x6a], bl
add byte [eax + 0x57], dl
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 0x100465a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019f4e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101f9834]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x100465e9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
cmp dword [0x101f354c], 0
jne 0x10046600
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x1004664d
mov eax, dword [esi]
test eax, eax
je 0x100465d2
cmp dword [esi + 4], 0
je 0x100465d2
push eax
call fcn.100e6320
add esp, 4
push dword [esi + 4]
call fcn.100e6320
mov eax, dword [esi + 0xc]
add esp, 4
test eax, eax
je 0x1004663e
push eax
call fcn.100e6320
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x10046685
push eax
call fcn.100e6320
jmp 0x10046682
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
call fcn.100e6320
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
call fcn.100e6320
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
call fcn.100e6320
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.100e6320
add esp, 4
push 8
call fcn.100e6320
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x100466c0
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100e6320
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100e1380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a102e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101f9834]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
call sym.AIDE.dll_public:_void___thiscall_AIDE::PaletteInfo::constructor_void_
mov ecx, dword [edi + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.100e2a90
mov dword [esi], eax
lea ecx, [edi + 0x28]
mov dword [esi + 4], 3
mov dword [esi + 8], 0
mov dword [ecx], 8
mov dword [edi + 0x30], 8
mov dword [edi + 0x2c], 8
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 8
mov ecx, dword [edi + 0x14]
call fcn.100e2a70
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4