joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10100960
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.1011fc40
push ebx
mov ebx, dword [esp + 0x10]
push esi
push 0x1048
push 0x10183200
push ebx
call fcn.1011fc70
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, 0x48
jle 0x10100991
mov ecx, 0x48
push edi
mov edi, dword [esp + 0x20]
mov eax, edi
add ecx, edi
lea esi, [ebx + 8]
mov dword [esp + 0x18], 6
push ebp
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x101009b0
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x101009bf
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x101009ce
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x101009dd
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x101009ea
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x101009f9
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x10100a08
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x10100a17
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x10100a24
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x10100a33
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x10100a42
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x10100a51
mov eax, edi
xor dword [esi], edx
add esi, 0xc
dec dword [esp + 0x1c]
jne 0x101009a6
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
xor esi, esi
pop ebp
lea ecx, [ecx]
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.100ff780
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx + esi*4], ecx
mov dword [ebx + esi*4 + 4], edx
add esi, 2
add esp, 8
cmp esi, 0x12
jl 0x10100a70
xor esi, esi
pop edi
lea eax, [esp + 8]
push ebx
push eax
call fcn.100ff780
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebx + esi*4 + 0x48], ecx
mov dword [ebx + esi*4 + 0x4c], edx
add esi, 2
add esp, 8
cmp esi, 0x400
jl 0x10100a98
pop esi
pop ebx
add esp, 8
ret
Function at 0x10101070
Capabilities:
Hash data using sha256

Disassembly:
push edi
push 0x74
push 0
push esi
mov edi, ecx
call fcn.10120090
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov eax, dword [edi]
xor dword [esi], eax
mov eax, dword [edi + 4]
xor dword [esi + 4], eax
mov eax, dword [edi + 8]
xor dword [esi + 8], eax
mov eax, dword [edi + 0xc]
xor dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
xor dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
xor dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
xor dword [esi + 0x18], eax
mov edi, dword [edi + 0x1c]
xor dword [esi + 0x1c], edi
add esp, 0xc
pop edi
ret
Function at 0x10103060
Capabilities:
Hash data using sha256

Disassembly:
push 0xe8
push 0
push esi
call fcn.10120090
add esp, 0xc
mov dword [esi], 0xf3bcc908
mov dword [esi + 4], 0x6a09e667
mov dword [esi + 8], 0x84caa73b
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0xfe94f82b
mov dword [esi + 0x14], 0x3c6ef372
mov dword [esi + 0x18], 0x5f1d36f1
mov dword [esi + 0x1c], 0xa54ff53a
mov dword [esi + 0x20], 0xade682d1
mov dword [esi + 0x24], 0x510e527f
mov dword [esi + 0x28], 0x2b3e6c1f
mov dword [esi + 0x2c], 0x9b05688c
mov dword [esi + 0x30], 0xfb41bd6b
mov dword [esi + 0x34], 0x1f83d9ab
mov dword [esi + 0x38], 0x137e2179
mov dword [esi + 0x3c], 0x5be0cd19
ret

Function at 0x101030e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.10103060
mov edx, edi
lea ecx, [edi + 0x18]
lea eax, [esi + 8]
sub edx, esi
mov ebx, 2
jmp 0x10103100
mov esi, dword [ecx - 0x18]
mov edi, dword [ecx - 0x14]
xor dword [eax - 8], esi
xor dword [eax - 4], edi
mov esi, dword [edx + eax]
mov edi, dword [edx + eax + 4]
xor dword [eax], esi
xor dword [eax + 4], edi
mov esi, dword [ecx - 8]
mov edi, dword [ecx - 4]
xor dword [eax + 8], esi
xor dword [eax + 0xc], edi
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
xor dword [eax + 0x10], esi
xor dword [eax + 0x14], edi
add eax, 0x20
add ecx, 0x20
dec ebx
jne 0x10103100
pop edi
pop esi
pop ebx
ret
Function at 0x1010dc20
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.10120090
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret
Function at 0x1010f710
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.1011fc40
mov eax, dword [0x101b2070]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
je 0x1010f89a
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 1]
movzx ebx, byte [esi]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 4]
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 5]
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 6]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 7]
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 8
mov byte [edi], dl
mov byte [ebp], al
call fcn.100afe80
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.100aff00
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.100ac9d0
push ebp
call fcn.100afe80
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.100aff00
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.100ac9d0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ebx
shr edx, 0x10
mov byte [eax + 2], dl
mov edx, dword [esp + 0x44]
shr ebx, 0x18
mov byte [eax + 3], bl
mov ebx, edx
add esp, 0x30
mov byte [eax + 4], dl
shr ebx, 8
mov byte [eax + 5], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax + 6], bl
mov byte [eax + 7], dl
mov eax, ebp
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
dec dword [esp + 0x18]
mov byte [eax + 6], dl
mov byte [eax + 7], cl
jne 0x1010f753
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.1011bab4
add esp, 0xa0
ret

Function at 0x1010f9d0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.10120090
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x101130b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x101130c9
mov esi, edi
mov edi, eax
jmp 0x101130cb
mov esi, eax
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x10]
push edx
push ebx
call fcn.10091210
add esp, 8
test eax, eax
jne 0x101130e4
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x10113105
jmp 0x101130f0
mov ecx, dword [edi]
mov edx, dword [esi]
mov ecx, dword [ecx + eax*4]
xor ecx, dword [edx + eax*4]
mov edx, dword [ebx]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [edi + 4]
jl 0x101130f0
cmp eax, dword [esi + 4]
jge 0x10113120
lea ebx, [ebx]
mov ecx, dword [esi]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ebx]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [esi + 4]
jl 0x10113110
mov edx, dword [esi + 4]
push ebx
mov dword [ebx + 4], edx
call fcn.10090d20
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x10113370
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 4
call fcn.1011fc40
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor ebp, ebp
push ebx
mov dword [esp + 0x10], ebp
call fcn.100c2a40
push ebx
call fcn.100c2ad0
mov esi, eax
add esp, 8
test esi, esi
je 0x10113572
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 4]
add eax, eax
push eax
push esi
call fcn.10091210
add esp, 8
test eax, eax
je 0x10113571
mov ecx, dword [edi + 4]
dec ecx
js 0x10113547
mov edx, dword [edi]
mov eax, dword [edx + ecx*4]
mov edx, eax
shr edx, 1
and edx, 0x8000
mov ebp, eax
and ebp, 0x20000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x40000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x80000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x100000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x200000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x400000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x800000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x1000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x2000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x4000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x8000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x10000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x20000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x40000000
or edx, ebp
shr edx, 1
and eax, 0x80000001
or edx, eax
mov eax, dword [esi]
shr edx, 1
mov dword [eax + ecx*8 + 4], edx
mov edx, dword [edi]
mov eax, dword [edx + ecx*4]
mov edx, eax
and edx, 0x8000
add edx, edx
mov ebp, eax
and ebp, 0x4000
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x2000
or edx, ebp
mov ebp, eax
add edx, edx
and ebp, 0x1000
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x800
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x400
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x200
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x100
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x80
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x40
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x20
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x10
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 8
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 4
or edx, ebp
mov ebp, eax
add edx, edx
and ebp, 2
or edx, ebp
and eax, 1
add edx, edx
or edx, eax
dec ecx
mov eax, dword [esi]
mov dword [eax + ecx*8 + 8], edx
jns 0x101133c6
mov ebp, dword [esp + 0x10]
mov ecx, dword [edi + 4]
add ecx, ecx
push esi
mov dword [esi + 4], ecx
call fcn.10090d20
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push edx
push esi
push eax
call fcn.10113140
add esp, 0x10
test eax, eax
je 0x10113571
mov ebp, 1
pop edi
push ebx
call fcn.100c2a90
add esp, 4
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x1011bab4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b2070]
jne 0x1011babe
repz ret
jmp fcn.10122941

Function at 0x10130307
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101b2070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10124547
and dword [ebp - 0x14], 0
cmp dword [0x101b8110], 0
mov dword [ebp - 0x18], eax
jne 0x101303ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10130462
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10187ba4
push ebx
call edi
test eax, eax
je 0x10130462
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x101b8110], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x101b8114], eax
call edi
push eax
call esi
push 0x10187b64
push ebx
mov dword [0x101b8118], eax
call edi
push eax
call esi
mov dword [0x101b8120], eax
test eax, eax
je 0x101303ba
push 0x10187b4c
push ebx
call edi
push eax
call esi
mov dword [0x101b811c], eax
mov eax, dword [0x101b811c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10130413
cmp dword [0x101b8120], ecx
je 0x10130413
push eax
call esi
push dword [0x101b8120]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10130413
test ebx, ebx
je 0x10130413
call edi
test eax, eax
je 0x1013040a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1013040a
test byte [ebp - 8], 1
jne 0x10130413
or dword [ebp + 0x10], 0x200000
jmp 0x10130446
mov eax, dword [0x101b8114]
cmp eax, dword [ebp - 0x18]
je 0x10130446
push eax
call esi
test eax, eax
je 0x10130446
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10130446
mov eax, dword [0x101b8118]
cmp eax, dword [ebp - 0x18]
je 0x10130446
push eax
call esi
test eax, eax
je 0x10130446
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x101b8110]
call esi
test eax, eax
je 0x10130462
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10130464
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011bab4
leave
ret
Function at 0x1000a886
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000ea2d
push ebx
push esi
call fcn.1000e959
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000e8ed
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000e9da
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ea2c
push edi
push eax
call fcn.1000b6b5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000e9fa
call fcn.1000b67b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ea2b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000e8ed
add esp, 0x20
test eax, eax
jne 0x1000ea19
push edi
call fcn.1000b67b
jmp 0x1000ea21
push ebx
call fcn.1000b67b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000ec9a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018b78
push 0x10018b70
push str.FlsAlloc
push 0x1f
call fcn.1000ebb6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ecce
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017124]
call esi
jmp 0x1000ecd4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000ed18
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018b88
push 0x10018b80
push str.FlsGetValue
push 0x21
call fcn.1000ebb6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ed4f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000ed57
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018b90
push 0x10018b88
push str.FlsSetValue
push 0x22
call fcn.1000ebb6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ed91
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10017124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100163e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001640d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001640d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404ec7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
mov esi, 0x41d268
lea edi, [ebp - 0x508]
xor eax, eax
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x507]
mov ecx, 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
xor ebx, ebx
mov eax, dword [ebp + 0x10]
add eax, 0x1c
mov dword [ebp - 4], eax
cmp dword [eax], ebx
jle 0x404f5f
xor esi, esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + esi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x404f17
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0040c32a
add esp, 8
lea ecx, [ebp - 0x108]
lea edx, [ebp + edi - 0x508]
push ecx
push 0x41d468
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add edi, eax
lea ecx, [edi + 0x104]
cmp ecx, 0x400
jae 0x404f5f
mov eax, dword [ebp - 4]
add esi, 4
inc ebx
cmp dword [eax], ebx
jg 0x404f04
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x508]
push eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi]
push ebx
mov ecx, esi
call dword [edi + 0x88]
mov edi, dword [edi + 0x8c]
mov eax, dword [ebp - 4]
mov ecx, esi
cmp dword [eax], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 5
push eax
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov ecx, esi
cmp dword [eax], 1
sbb eax, eax
inc eax
push eax
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4053fe
Capabilities:
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push dword [esp + 0x14]
mov edi, ecx
call fcn.00417f20
add esp, 4
mov esi, eax
mov eax, dword [edi]
cmp dword [eax + 0x60], ebx
je 0x40546c
add eax, 0x64
cmp byte [eax], bl
je 0x40546c
push ebx
push pe_nt_image_headers32
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x405468
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0xc]
push ebx
push eax
push esi
push dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x405471
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 4
ret 4
Function at 0x4078a7
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ecx + 0x421c]
mov ecx, dword [edi]
cmp dword [ecx + 8], 0
lea ebx, [ecx + 0x184]
jne 0x4078cf
lea ebx, [ecx + 0x80]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4078d9
mov eax, dword [ecx + 0x20]
mov dword [ebp - 4], eax
cmp byte [ebx], 0
je 0x4078f6
push ebx
call fcn.00417f20
add esp, 4
cmp byte [ebx + eax - 1], 0x5c
mov eax, 0x41d880
jne 0x4078fb
mov eax, 0x41d268
push dword [ebp - 4]
push eax
push ebx
lea ecx, [ebp - 0x404]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp eax, 0x104
jl 0x40793b
push 0
lea eax, [ebp - 0x404]
push str.Pathname_too_long
mov ebx, dword [esi]
push eax
mov ecx, esi
call dword [ebx + 0x90]
xor eax, eax
jmp 0x4079d6
mov eax, dword [edi]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x407947
mov ecx, dword [eax + 0x20]
push ecx
lea eax, [ebp - 0x404]
push eax
call fcn.0040c40b
add esp, 8
test eax, eax
jne 0x407977
push 0
lea eax, [ebp - 0x404]
push str.Not_safe_pathname
mov ebx, dword [esi]
push eax
mov ecx, esi
call dword [ebx + 0x90]
xor eax, eax
jmp 0x4079d6
xor ebx, ebx
lea eax, [ebp - 0x404]
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [edi]
mov dword [ecx + 0x54], eax
mov eax, dword [edi]
cmp dword [eax + 0x54], 0xffffffff
jne 0x4079bc
push ebx
mov eax, dword [esi]
push 0x41d264
mov ecx, esi
push str.Cant_create_file
call dword [eax + 0x90]
xor eax, eax
jmp 0x4079d6
test byte [eax + 0x25], 1
je 0x4079d1
push 1
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4079dd
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ecx + 0x421c]
mov ecx, dword [edi]
mov ebx, dword [ecx + 0x44]
lea eax, [ecx + 0x40]
mov edx, dword [eax]
lea eax, [ecx + 0x28]
mov dword [ebp - 8], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
sub ebx, dword [ecx + 0x48]
sub edx, dword [ebp - 8]
sbb eax, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 0x10000
sub eax, ebx
cdq
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
jl 0x407a41
jg 0x407a35
cmp dword [ebp - 8], eax
jbe 0x407a41
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
mov eax, dword [ecx + 0x50]
add eax, ebx
mov ecx, dword [ecx]
push dword [ebp - 8]
push eax
push dword [ecx + 8]
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
test eax, eax
jle 0x407b5a
mov eax, dword [edi]
cmp dword [eax + 0x54], 0
jne 0x407a78
mov ecx, esi
call fcn.004078a7
test eax, eax
je 0x407b5a
add ebx, dword [ebp - 4]
mov eax, dword [ebp - 4]
cdq
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
add eax, 0x40
mov dword [ebp - 0xc], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, dword [ebp - 0x10]
adc eax, edx
mov edx, dword [edi]
add edx, 0x28
cmp eax, dword [edx + 4]
jg 0x407aac
jl 0x407aa4
cmp ecx, dword [edx]
jae 0x407aac
cmp ebx, 0x10000
jne 0x407ad8
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [edi]
push ebx
push dword [ecx + 0x50]
push dword [ecx + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x407b44
cmp ebx, dword [ebp - 4]
jne 0x407b44
mov ecx, dword [edi]
mov eax, ebx
add ecx, 0x48
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [edi]
mov ecx, dword [ebp - 0x10]
add eax, 0x40
mov edx, dword [ebp - 0xc]
add dword [eax], ecx
adc dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
mov edx, eax
mov ecx, dword [ecx]
add ecx, 0x20
sub edx, dword [ecx]
cmp edx, 0x3e8
jb 0x407b16
push 0
mov dword [ecx], eax
push 0
mov eax, dword [esi]
push 0x470
mov ecx, esi
call dword [eax + 0xa0]
mov esi, dword [edi]
mov ebx, dword [esi + 0x44]
lea edx, [esi + 0x28]
lea eax, [esi + 0x40]
cmp dword [edx + 4], ebx
mov ecx, dword [eax]
jg 0x407b3d
jl 0x407b2e
cmp dword [edx], ecx
ja 0x407b3d
cmp dword [esi + 8], 1
mov eax, 8
adc eax, 0xffffffff
mov dword [esi + 0x7c], eax
mov eax, 1
jmp 0x407b5c
push 0
mov eax, dword [esi]
push 0x41d264
mov ecx, esi
push str.Cant_write_file
call dword [eax + 0x90]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret