joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062ba
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4062e3
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x4062d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x40638e
cmp dword [0x455538], ebx
je 0x40638e
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x45e560], bx
je 0x40635a
cmp dword [0x40b058], 0xffffffff
jne 0x406363
mov esi, 0x45e560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00406023
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x40638c
cmp dword [ebp + 8], 0xffffffff
jne 0x40634f
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x40638c
push 0x4096b8
mov esi, 0x455540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406951
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x44b2d8
push esi
call fcn.004061dc
push esi
call fcn.00405f2c
mov edi, eax
test edi, edi
jne 0x406972
xor eax, eax
jmp 0x4069cf
push edi
call fcn.0040620b
test byte [0x466e28], 0x80
je 0x40698e
movzx eax, word [edi]
test ax, ax
je 0x40696e
cmp eax, 0x5c
je 0x40696e
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4069b0
push esi
call fcn.004064a8
test eax, eax
je 0x4069aa
test byte [eax], 0x10
je 0x4069d4
push esi
call fcn.00406924
push esi
call ebx
cmp eax, edi
jg 0x40699b
push esi
call fcn.004068f5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4069ce
Function at 0x406c6c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4098c8
mov ebx, 0x44f2e0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406cba
push 1
push ebp
push edi
call fcn.00406023
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406e35
cmp eax, esi
jg 0x406e35
push esi
mov edi, 0x454938
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406e35
cmp eax, esi
jg 0x406e35
push ebp
push ebp
push esi
push 0x44fae0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406e35
push ebp
push ebp
push esi
mov esi, 0x450130
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406e35
push esi
push 0x44fae0
push str._s_s_r_n
push 0x450530
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x466ddc]
push dword [eax + 0x128]
push edi
call fcn.004069d8
push 4
push 0xc0000000
push edi
call fcn.00406023
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406e35
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406e2b
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406e2b
cmp edi, dword [esp + 0x10]
jne 0x406e2b
push str._Rename__r_n
push esi
call fcn.00405f89
cmp eax, ebp
jne 0x406dbe
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406df3
push 0x4098bc
add eax, 0xa
push eax
call fcn.00405f89
mov ebp, eax
test ebp, ebp
je 0x406df1
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x406de8
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406dde
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x406df5
xor ebp, ebp
mov eax, edi
push ebx
push 0x450530
add eax, esi
push eax
call fcn.00405fdf
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407454
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x45513c], 0
jne 0x407492
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407468
mov dword [ecx*4 + 0x455138], eax
inc ecx
cmp ecx, 0x100
jl 0x407463
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4074bf
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x455138]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4074a0
not eax
pop ebp
ret 0xc
Function at 0x10012270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10030528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.10012580
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x1004971c
call fcn.10014d44
mov ecx, dword [0x10032164]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.1000db20
mov esi, 0x100321a0
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x10012317
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1001230e
cmp al, 0xff
je 0x1001230e
dec al
mov byte [ecx], al
jmp 0x10012317
push ecx
call fcn.10013629
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.1002ec50
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x1001235d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10012354
cmp al, 0xff
je 0x10012354
dec al
mov byte [ecx], al
jmp 0x1001235d
push ecx
call fcn.10013629
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.10014dcb
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x100290e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10030c50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.1001de6f
mov eax, dword [0x10032a04]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.1001dda1
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.10029c00
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x10029187
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1002917e
cmp al, 0xff
je 0x1002917e
dec al
mov byte [ecx], al
jmp 0x10029187
push ecx
call fcn.10013629
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x100291b8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100291af
cmp al, 0xff
je 0x100291af
dec al
mov byte [ecx], al
jmp 0x100291b8
push ecx
call fcn.10013629
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x10051c10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10051d1c
test eax, eax
je 0x10051d1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x1006cfe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x10051d03
lea edi, [eax + 4]
jmp 0x10051c67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x10051c7c
mov dword [ebp - 4], 2
jmp 0x10051c9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x10051c93
mov dword [ebp - 4], 1
jmp 0x10051c9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x10051d13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x10051cd6
mov byte [ecx], 0x3d
jmp 0x10051ce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x10051ced
mov byte [ecx], 0x3d
jmp 0x10051cf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x10051c64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0x92c00
push 0
call sub.user32.dll_GetShellWindow
call sub.kernel32.dll_VirtualAlloc
call fcn.0049f56c
ret
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor esi, esi
imul byte [eax + 0x30]
push str.DE622D185C1BC760E40CCDB249B95612
xor byte [eax + 0x40], ah
pushal
inc eax
add byte [edx + 1], ch
push 1
add dword [esi - 1], edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
adc eax, sym.imp.KERNEL32.dll_CreateMutexA
or byte [eax + 0x40], al
inc eax
inc eax
add byte [edi], cl
mov edx, dword [esi]
add byte [eax], al
add byte [edi], cl
mov dl, byte [eax]
add byte [eax], al
add cl, ah
loope 0x401001
jnp 0x40102d
jp 0x40102d
loope section..text
loope 0x401002
loope 0x401003
loope 0x401004
loope 0x401005
loope 0x401006
loope 0x401007
loope 0x401008
loope 0x401009
loope 0x40100a
loope 0x40100b
loope 0x40100c
loope 0x40100d
loope 0x40100e
loope 0x400fb3
test eax, eax
je 0x401043
sal byte [edx + edx - 1], 0x15
or al, 0x40
inc eax
add byte [0xb7], bh
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
Get common file path

Disassembly:
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
in al, dx
sub esp, 0x208
in al, dx
or byte [edx], al
add byte [eax], al
add al, byte [eax]
add byte [esi + 0x57], dl
push esi
push edi
jnp 0x401079
jp 0x401079
loope 0x40104a
loope 0x40104c
loope 0x40104e
loope fcn.00401050
loope 0x401052
loope 0x401054
loope 0x401056
loope 0x401058
loope 0x40105a
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
test esp, edi
invalid
jnp 0x4010b2
jp 0x4010b2
loope 0x401091
loope 0x401093
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]
push dword [ebx]
sal dl, 0xae
scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40120a
ror dword [ecx + 0xf], 1
test byte [0x53000001], cl
push ebx
jnp 0x401114
jp 0x401114
loope 0x4010ed
loope 0x4010ef
loope 0x4010f1
loope 0x4010f3
loope 0x4010f5
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]
test dword [ebx - 0x7c057427], 0xaef2ffc9
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]
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
jmp 0x8be6047c
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jnp 0x40119b
jp 0x40119b
loope 0x40116f
loope 0x401171
loope 0x401173
loope 0x401175
loope 0x401177
loope 0x401179
loope 0x40117b
loope 0x401129
lea eax, [ebp - 0x104]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test esp, edi
invalid
adc byte [eax + 0x40], al
inc eax
add byte [ebp - 0x10373], cl
call dword [ecx - 1]
adc eax, sym.imp.KERNEL32.dll_DeleteFileA
lea ecx, [ebp - 0x104]
cld
invalid
invalid
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jnp 0x4011d3
jp 0x4011d3
loope 0x4011a9
loope 0x4011ab
loope 0x4011ad
loope 0x4011af
loope 0x4011b1
loope 0x4011b3
loope 0x401161
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
xchg ebp, eax
clc
std
invalid
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4013c0
Capabilities:
Enumerate processes

Disassembly:
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x128
sub byte [ecx], al
add byte [eax], al
push ebx
push esi
or ebx, 0xffffffff
jnp 0x4013e4
jp 0x4013e4
loope 0x4013bd
loope 0x4013bf
loope 0x4013c1
loope 0x4013c3
loope 0x4013c5
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
in al, dx
sub al, 1
add byte [eax], al
add dword [eax], eax
add byte [ebx + 0x56], dl
push ebx
push esi
call fcn.004013c0
mov dword [ebp - 4], eax
xor bl, bl
jnp 0x4014b8
jp 0x4014b8
loope 0x401494
loope 0x401496
loope 0x401498
loope 0x401523
push 0
push 2
add byte [edx + 2], ch
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 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
add byte [esi + 0x57], dl
push edi
mov ecx, 0x43
inc ebx
add byte [eax], al
add byte [ebx], dh
ror byte [ebx + 0x66abf3fb], 0xab
add byte [eax], al
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jnp 0x401da6
jp 0x401da6
loope 0x401d7c
loope 0x401d7e
loope 0x401d80
loope 0x401d82
loope 0x401d84
loope 0x401d86
loope 0x401e0d
mov ax, word [0x4062f4]
mov eax, dword [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
cld
invalid
inc dword [ebx - 0x3f7af33c]
les ecx, [eax*4 + 0x5f0775c0]
test eax, eax
jne 0x401e32
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
in eax, 0x5d
ret
jnp 0x401e52
mov ebx, dword [edx]
add byte [eax], al
add byte [edi], cl
mov dl, byte [eax + eax]
add byte [eax], al
jp 0x401e52
loope 0x401e21
loope 0x401e23
loope 0x401e25
loope 0x401e27
loope 0x401e29
loope 0x401e2b
loope 0x401e2d
loope 0x401e2f
loope 0x401e31
loope 0x401e33
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:
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x1a0
mov al, byte [0x53000001]
add byte [eax], al
push ebx
push esi
push edi
jnp 0x402248
jp 0x402248
loope 0x40221b
loope 0x40221d
loope 0x40221f
loope 0x402221
loope 0x402223
loope 0x402225
loope 0x402227
loope 0x402229
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
les eax, [ebx]
invalid
mov dword [0x4062f0], eax
bound eax, qword [eax]
add byte [ebp - 0x477bf040], al
add byte [eax], al
add byte [edi], cl
mov edx, dword [eax]
add byte [eax], al
add byte [edi], cl
mov cl, byte [edx]
add byte [eax], al
add cl, ah
inc ebx
test eax, eax
je 0x40236a
jnp 0x4022c8
jp 0x4022c8
loope 0x402303
loope 0x4022a3
loope 0x4022a5
loope 0x4022a7
loope 0x4022a9
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:
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
in al, dx
sub esp, 0x190
in al, dx
nop
add dword [eax], eax
add byte [eax], al
add byte [esi + 0xf], dl
mov ebx, dword [eax]
add byte [eax], al
add byte [edi], cl
mov dl, byte [edx]
add byte [eax], al
add cl, ah
loope 0x4024ca
push esi
jnp 0x4024f8
jp 0x4024f8
loope 0x4024c9
loope 0x4024cb
loope 0x4024cc
loope 0x4024cd
loope 0x4024ce
loope 0x4024cf
loope fcn.004024d0
loope 0x4024d1
loope 0x4024d2
loope 0x4024d3
loope 0x4024d4
loope 0x4024d5
loope 0x4024d6
loope 0x4024d7
loope 0x4024d8
loope 0x4024d9
loope 0x402561
push str.www.hao123.com
call dword [sym.imp.WS2_32.dll_inet_addr]
cld
pushal
inc eax
add bh, bh
adc eax, sym.imp.WS2_32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x40254b
lea eax, [ebp - 0x190]
push eax