joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059bf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x4059e0
mov ecx, dword [0x423b1c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424378]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x4232e0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405bb3
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405bb3
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405bc0
inc ebx
cmp cl, 0xfc
jbe 0x405ba6
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405b51
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405a74
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405aec
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405a93
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405891
jmp 0x405ae7
cmp eax, 0x26
jne 0x405ac3
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405891
cmp byte [edi], 0
jne 0x405b49
push str.C:Program_Files
push edi
call fcn.0040599d
jmp 0x405ae7
cmp eax, 0x25
jne 0x405ad6
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405ae7
cmp eax, 0x24
jne 0x405aec
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405b49
cmp dword [0x4243c4], 0
jne 0x405af8
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x424344]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b2e
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00405206
cmp dword [ebp - 8], 0
jne 0x405b35
jmp 0x405b31
and byte [edi], 0
test esi, esi
jne 0x405af8
cmp byte [edi], 0
je 0x405b49
cmp dword [ebp + 0xc], 0
je 0x405b49
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405bd9
jmp 0x405b97
cmp byte [ebp + 0xf], 0xfd
jne 0x405b85
cmp esi, 0x1b
jne 0x405b6a
push dword [0x424344]
push edi
call fcn.004058fb
jmp 0x405b7b
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.0040599d
add esi, 0xffffffeb
cmp esi, 6
jae 0x405b97
jmp 0x405b49
cmp byte [ebp + 0xf], 0xff
jne 0x405b97
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059bf
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x4232e0
jmp 0x405bb3
jne 0x405bb0
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405bb3
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a0b
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405bd5
push eax
push dword [ebp + 8]
call fcn.0040599d
leave
ret 8
Function at 0x405d0d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ecc], 0
push esi
jne 0x405d44
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d1e
mov dword [ecx*4 + 0x422ec8], eax
inc ecx
cmp ecx, 0x100
jl 0x405d19
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d75
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ec8]
xor eax, esi
inc ecx
dec edx
jne 0x405d57
pop edi
not eax
pop esi
ret 0xc
Function at 0x65a87c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6634a0
cmp edx, dword [eax]
je 0x65a89e
add eax, 8
inc ecx
cmp eax, 0x663530
jl 0x65a88f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6634a0]
jne 0x65a9cc
mov eax, dword [0xa5bd14]
cmp eax, 1
je 0x65a9a6
test eax, eax
jne 0x65a8cf
cmp dword [0x6612e4], 1
je 0x65a9a6
cmp edx, 0xfc
je 0x65a9cc
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x65a906
lea eax, [ebp - 0x1a4]
push 0x65e9a0
push eax
call fcn.0065b9e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065bad0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65a949
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065bad0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e99c
push edi
call fcn.0065c490
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65e980
push eax
call fcn.0065b9e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065b9f0
lea eax, [ebp - 0xa0]
push 0x65e97c
push eax
call fcn.0065b9f0
push dword [esi + 0x6634a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065b9f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65e954
push eax
call fcn.0065c402
add esp, 0x2c
pop edi
jmp 0x65a9cc
lea eax, [ebp + 8]
lea esi, [esi + 0x6634a4]
push 0
push eax
push dword [esi]
call fcn.0065bad0
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 0x4022c0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Nationalxqd
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push getpeername
call dword [0x408de8]
test eax, eax
je 0x402315
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
lea ecx, [esp + 0x18]
push 0x104
push ecx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push str.ImagePath
push ecx
call dword [0x408de4]
test eax, eax
je 0x402366
mov edx, dword [esp + 0x10]
push edx
call dword [0x408de0]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x10]
push eax
call dword [0x408de0]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40238d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x2c]
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4023ba
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4023de
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x402400
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 0
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402432
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x120]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x402462
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push eax
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x40249b
push str.Nationalxqd
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Nationalxqd
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x4024bc
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x402535
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4061a0
cmp edx, dword [eax]
je 0x402557
add eax, 8
inc ecx
cmp eax, 0x406230
jl 0x402548
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4061a0]
jne 0x402685
mov eax, dword [0x40655c]
cmp eax, 1
je 0x40265f
test eax, eax
jne 0x402588
cmp dword [0x4060f4], 1
je 0x40265f
cmp edx, 0xfc
je 0x402685
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4025bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402ae0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402c50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402602
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402c50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053e8
push edi
call fcn.004038e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402ae0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402af0
lea eax, [ebp - 0xa0]
push 0x4053c8
push eax
call fcn.00402af0
push dword [esi + 0x4061a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402af0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040384e
add esp, 0x2c
pop edi
jmp 0x402685
lea eax, [ebp + 8]
lea esi, [esi + 0x4061a4]
push 0
push eax
push dword [esi]
call fcn.00402c50
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 0xa080b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa08200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa080d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa080c2
add dl, dl
jne 0xa080e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa08134
xor eax, eax
add dl, dl
jne 0xa080ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa081d5
add dl, dl
jne 0xa080fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa08108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa08113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0811e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa0812a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa080cd
mov eax, 1
add dl, dl
jne 0xa08142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0814d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa08139
sub eax, ebx
mov ebx, 1
jne 0xa08180
mov ecx, 1
add dl, dl
jne 0xa08166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa08171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0815d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa080cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa08197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa081a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0818e
cmp eax, 0x7d00
jae 0xa081c5
cmp eax, 0x500
jb 0xa081c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa080cd
cmp eax, 0x7f
ja 0xa081c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa080cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa081f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa080cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402a90
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x40
push eax
push 0x421dcc
call fcn.00402dd0
push 0x40
push 0x40c3d0
push 0x421dcc
push 0x421dcc
call fcn.00402cf0
mov al, byte [esp + 0x3c]
add esp, 0x1c
test al, al
jne 0x402b1b
mov ebx, dword [esp + 0x1c]
mov ebp, 0x10
mov eax, dword [0x41164c]
mov ecx, 8
mov esi, eax
mov edi, 0x421dac
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00402c30
mov ecx, dword [0x411648]
mov edx, dword [0x41164c]
push 0x20
push ecx
push edx
call fcn.00402d40
mov edi, dword [0x411648]
add esp, 0x14
mov ecx, 8
mov esi, 0x421dac
add ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x402acf
jmp 0x402b74
mov eax, dword [esp + 0x1c]
mov ebp, 0x10
lea ebx, [eax + 0x2d0]
mov eax, dword [0x411648]
mov ecx, 8
mov esi, eax
mov edi, 0x421dac
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00402c30
mov ecx, dword [0x41164c]
mov edx, dword [0x411648]
push 0x20
push ecx
push edx
call fcn.00402d40
mov edi, dword [0x41164c]
add esp, 0x14
mov ecx, 8
mov esi, 0x421dac
sub ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x402b2a
push 0x40
push 0x40c410
push 0x421dcc
push 0x421dcc
call fcn.00402cf0
mov eax, dword [esp + 0x24]
push 0x40
push 0x421dcc
push eax
call fcn.00402e10
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402bb0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0x40
push eax
push 0x421d6c
call fcn.00402dd0
push 0x38
push str.91__
push 0x421d6c
push 0x421d6c
call fcn.00402cf0
mov edi, dword [esp + 0x28]
add esp, 0x1c
xor esi, esi
movsx ecx, byte [esi + 0x40c508]
mov edx, dword [0x411650]
push ecx
push 0x1c
push edx
call fcn.00402d70
movsx eax, byte [esi + 0x40c508]
mov ecx, dword [0x411654]
push eax
push 0x1c
push ecx
call fcn.00402d70
push 0x30
push 0x40c4d8
push 0x421d6c
push edi
call fcn.00402cf0
add esp, 0x28
inc esi
add edi, 0x30
cmp esi, 0x10
jl 0x402be2
pop edi
pop esi
ret

Function at 0x402c30
Capabilities:
Encrypt data using des

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x30
push 0x40c450
push esi
push 0x421d3c
call fcn.00402cf0
mov eax, dword [esp + 0x1c]
push 0x30
push eax
push 0x421d3c
call fcn.00402d40
push 0x421d3c
push esi
call fcn.00402c80
push 0x20
push 0x40c480
push esi
push esi
call fcn.00402cf0
add esp, 0x34
pop esi
ret

Function at 0x402d40
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x402d62
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x402d54
pop ebx
pop esi
ret
Function at 0x402e60
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x24]
cmp esi, 1
push edi
jae 0x402e79
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push 4
push eax
push 8
push 0xffff
push edi
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x402ea6
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
lea eax, [esi + esi*4]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xc], ecx
lea eax, [eax + eax*4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea eax, [eax + eax*4]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
shl eax, 3
push edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
push 0xc
push edx
lea eax, [esp + 0x1c]
push 0xc
push eax
push 0x98000004
push edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], 0x3e8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x18
ret

Function at 0x402f10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov edi, ebp
test ebp, ebp
jle 0x402f4f
mov eax, dword [esp + 0x14]
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x402f48
cmp eax, 0xffffffff
je 0x402f48
add ebx, eax
add esi, eax
sub edi, eax
cmp ebx, ebp
jge 0x402f4f
jmp 0x402f24
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x402f60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov edi, ebp
test ebp, ebp
jle 0x402f9f
mov eax, dword [esp + 0x14]
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x402f98
cmp eax, 0xffffffff
je 0x402f98
add ebx, eax
add esi, eax
sub edi, eax
cmp ebx, ebp
jge 0x402f9f
jmp 0x402f74
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x403380
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x4033a4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40339d
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret
Function at 0x4033b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x40b856
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xad4
mov eax, dword [esp + 0xae4]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0x81
mov dword [esp + 0x30], ebp
call fcn.00407852
lea edx, [ebp + 0x60]
xor ebx, ebx
mov ecx, 0x41
xor eax, eax
mov edi, edx
push 0x104
mov dword [ebp], 0x40c980
push edx
rep stosd dword es:[edi], eax
push ebx
mov dword [esp + 0xaf8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x164]
mov byte [esp + 0x18], 0x33
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp + 0x268]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov al, 0x65
push ecx
mov dword [ebp + 0x36c], ebx
mov byte [esp + 0x1d], 0x36
mov byte [esp + 0x1e], 0x30
mov byte [esp + 0x1f], 0x54
mov byte [esp + 0x20], 0x72
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0x79
mov byte [esp + 0x23], 0x2e
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0x78
mov byte [esp + 0x26], al
mov byte [esp + 0x27], bl
call fcn.004056a0
add esp, 4
lea ecx, [esp + 0x24]
mov dword [0x4225fc], eax
call fcn.004028f0
mov ecx, 0x2ae
xor eax, eax
lea edi, [esp + 0x2c]
mov byte [esp + 0x10], 0x33
rep stosd dword es:[edi], eax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x11], 0x34
mov byte [esp + 0x12], 0x32
mov byte [esp + 0x13], 0x31
mov byte [esp + 0x14], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
lea edx, [esp + 0x14]
push ecx
push edx
push 0xab8
lea eax, [esp + 0x3c]
push 0x411c70
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb04], 1
call fcn.00402930
mov ecx, 0x2ae
lea esi, [esp + 0x2c]
mov edi, 0x411c70
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0xa78], ebx
je 0x403501
call fcn.004041f0
mov ecx, ebp
call fcn.004039e0
mov ecx, ebp
call fcn.00403ba0
lea ecx, [esp + 0x24]
mov byte [esp + 0xaec], bl
call fcn.00402920
mov ecx, dword [esp + 0xae4]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xae0
ret 4
Function at 0x403750
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x104
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x403776
pop esi
add esp, 0x104
ret 8
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x110]
lea ecx, [esp + 8]
lea eax, [edi + 0x268]
push eax
push str.__s_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 8]
push 0
push 0
push 0
push 0
push 0
push edx
push 0
push 2
push 0x10
push 0xf01ff
push str.Alerter
push 0x411658
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ecx, edi
mov dword [edi + 0x36c], eax
call fcn.00403540
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret 8

Function at 0x4038f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4038fb
ret 8
lea ecx, [esp + 4]
push ecx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403959
mov edx, dword [esp + 4]
push str.Startup
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x403929
xor eax, eax
ret 8
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.Startup
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x403959
xor eax, eax
ret 8
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret 8
Function at 0x4039e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4124a4]
push ebx
push ebp
push esi
sub eax, 0
push edi
mov ebp, ecx
je 0x403a24
dec eax
je 0x403a11
dec eax
je 0x4039fe
push 0
call dword [sym.imp.MSVCRT.dll_exit]
lea ebx, [ebp + 0x164]
push ebx
push 3
call fcn.00406460
add esp, 8
jmp 0x403a5f
lea ebx, [ebp + 0x164]
push ebx
push 2
call fcn.00406460
add esp, 8
jmp 0x403a5f
lea ebx, [ebp + 0x164]
push ebx
push 1
call fcn.00406460
mov edi, str.Program_Files
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4124a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403ac0
mov edi, 0x4127a4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4124a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x4125ac
push ebx
add ebp, 0x268
push str._s_s
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x41249c]
add esp, 0x10
test eax, eax
jne 0x403b51
mov edi, 0x411e80
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, 0x411658
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x411f84
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, str.Alerter
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41218c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x411964
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret