joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49dc60
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.0049dc20
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x49dcd0
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x49dca9
cmp eax, 3
jbe 0x49dcc1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49dcb6
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x49dce0
Capabilities:
Check if file exists
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push esi
mov byte [esp + 4], 0x5c
mov byte [esp + 5], 0x5c
mov byte [esp + 6], 0x2e
mov byte [esp + 7], 0x5c
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x74
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x6c
mov byte [esp + 0xd], 0x55
mov byte [esp + 0xe], 0x73
mov byte [esp + 0xf], 0x62
mov byte [esp + 0x10], 0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x49dd80
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x49dd5b
cmp eax, 3
jbe 0x49dd73
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49dd68
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x49dda0
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.0049d9c0
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.0049d980
cmp edi, 1
jne 0x49dde5
cmp word [esi + 6], 0xffff
jne 0x49ddeb
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8
Function at 0x49dfa0
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
add esp, 0x24
ret
Function at 0x49f564
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
jmp 0x49f5a9
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a08d4
Capabilities:
Link many functions at runtime

Disassembly:
lea esi, [0x4e5818]
push esi
mov eax, dword [0x4e5408]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x4e582d], eax
mov dword [0x4e50f5], 1
mov eax, 0x4000
push eax
lea eax, [0x4e5333]
push eax
lea eax, [0x4e50e1]
push eax
lea esi, [0x4e55cf]
call dword [esi]
cmp eax, 0xffffffff
jne 0x4a0920
mov dword [0x4e50f5], 0
cmp dword [0x4e50f5], 0
je 0x4a0996
mov eax, 0x4000
push eax
lea eax, [0x4e5333]
push eax
lea eax, [0x4e50ca]
push eax
lea esi, [0x4e55cf]
call dword [esi]
cmp eax, 0xffffffff
je 0x4a0996
lea eax, [0x4e50ca]
push eax
call dword [0x4e51f3]
mov dword [0x4e50ed], eax
cmp eax, 0
je 0x4a0996
lea edx, [0x4e50f9]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x4a0996
mov dword [0x4e514b], eax
mov eax, dword [0x4e50ed]
lea edx, [0x4e5130]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x4a0996
mov dword [0x4e514f], eax
jmp 0x4a0a0e
mov eax, 0x4000
push eax
lea eax, [0x4e5333]
push eax
lea eax, [0x4e50d7]
push eax
lea esi, [0x4e55cf]
call dword [esi]
cmp eax, 0xffffffff
je 0x4a0a03
lea eax, [0x4e50d7]
push eax
call dword [0x4e51f3]
mov dword [0x4e50f1], eax
cmp eax, 0
je 0x4a0a03
lea edx, [0x4e5115]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x4a0a03
mov dword [0x4e514b], eax
mov eax, dword [0x4e50f1]
lea edx, [0x4e513e]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x4a0a03
mov dword [0x4e514f], eax
jmp 0x4a0a19
mov dword [0x4e5153], 0
ret
mov dword [0x4e5153], 1
ret
mov dword [0x4e5153], 2
ret

Function at 0x4a0d31
Capabilities:
Packed with generic packer

Disassembly:
pushal
push eax
push ecx
push edx
test ax, 1
je 0x4a0d4e
push ecx
push edx
call dword [0x4e5763]
cmp eax, 0
je 0x4a0d4e
pop edx
pop ecx
pop eax
stc
jmp 0x4a0d69
pop edx
pop ecx
pop eax
test ax, 2
je 0x4a0d68
push ecx
push edx
call dword [0x4e5775]
cmp ax, 0
je 0x4a0d68
stc
jmp 0x4a0d69
clc
popal
ret
Function at 0x4a1b9c
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov ecx, dword [eax]
push edi
mov edi, dword [esp + 0x14]
lea ebp, [eax + 8]
mov dword [esp + 0x14], 0xc
mov edx, dword [edi + 4]
add edx, ecx
mov ecx, dword [edi]
mov dword [edi + 4], edx
mov edx, dword [eax + 4]
add ecx, edx
mov dword [edi], ecx
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov esi, ebx
mov edx, ebx
shr esi, 4
xor edx, ecx
and esi, 0x1f
mov ecx, 0x20
mov eax, edx
sub ecx, esi
add ebp, 8
shr eax, cl
mov ecx, esi
shl edx, cl
mov ecx, 0x20
or eax, edx
mov edx, dword [ebp - 8]
sub eax, edx
mov edx, eax
mov dword [edi + 4], eax
shr edx, 7
and edx, 0x1f
xor eax, ebx
sub ecx, edx
mov esi, eax
shr esi, cl
mov ecx, edx
mov edx, dword [ebp - 4]
shl eax, cl
or esi, eax
mov eax, dword [esp + 0x14]
add esi, edx
dec eax
mov dword [edi], esi
mov dword [esp + 0x14], eax
jne 0x4a1bc6
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4a1c25
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
lea ebp, [eax + 0x60]
mov dword [esp + 0x14], 0xc
mov ebx, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [ebp + 4]
mov esi, ebx
shr esi, 7
sub edx, ecx
and esi, 0x1f
mov ecx, 0x20
mov eax, edx
sub ecx, esi
sub ebp, 8
shl eax, cl
mov ecx, esi
shr edx, cl
or eax, edx
xor eax, ebx
mov dword [edi], eax
mov ecx, dword [ebp + 8]
mov edx, eax
shr edx, 4
lea esi, [ebx + ecx]
and edx, 0x1f
mov ecx, 0x20
mov ebx, esi
sub ecx, edx
shl ebx, cl
mov ecx, edx
shr esi, cl
or ebx, esi
xor ebx, eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [edi + 4], ebx
mov dword [esp + 0x14], eax
jne 0x4a1c3c
mov eax, dword [esp + 0x18]
mov esi, dword [edi]
mov ecx, ebx
mov edx, dword [eax + 4]
sub esi, edx
mov dword [edi], esi
mov eax, dword [eax]
sub ecx, eax
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4a1cb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x88
mov eax, dword [esp + 0x90]
push ebx
push esi
mov esi, dword [esp + 0x94]
lea ebx, [eax + 7]
shr ebx, 3
and eax, 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
jne 0x4a1ce1
mov dword [esp + 0x10], 8
push ebp
push edi
lea eax, [ebx - 1]
xor edx, edx
xor ecx, ecx
xor edi, edi
test eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edi
jbe 0x4a1db1
mov ebp, dword [esi]
xor ebp, ecx
mov ecx, dword [esi + 4]
xor ecx, edx
mov dword [esi], ebp
test edi, edi
mov dword [esi + 4], ecx
jne 0x4a1d83
cmp ebx, 2
push edi
jbe 0x4a1d76
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004a20e1
mov edi, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x30], edi
lea eax, [esp + 0x30]
mov ebx, 0x19
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
add ecx, edx
mov ebp, edi
mov dword [eax + 4], ecx
mov edx, dword [eax]
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
add eax, 4
shl ebp, cl
mov ecx, edx
mov edx, ebp
mov ebp, edi
shr ebp, cl
or edx, ebp
mov ebp, dword [esp + 0x34]
xor ebp, edx
dec ebx
mov dword [esp + 0x34], ebp
jne 0x4a1d37
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x4a1d91
push 0
push esi
call fcn.004a20e1
add esp, 0xc
jmp 0x4a1d91
lea eax, [esp + 0x30]
push eax
push esi
call fcn.004a1b9c
add esp, 8
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
inc edi
lea eax, [ebx - 1]
mov dword [esp + 0x10], ecx
cmp edi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edi
jb 0x4a1d00
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jbe 0x4a1ddc
mov ebp, esi
lea ecx, [esp + 0x10]
sub ebp, ecx
mov cl, byte [esp + edi + 0x10]
lea eax, [esp + edi + 0x10]
mov dl, byte [ebp + eax]
xor cl, dl
inc edi
mov byte [eax], cl
mov eax, dword [esp + 0x18]
cmp edi, eax
jb 0x4a1dc3
pop edi
cmp ebx, 2
pop ebp
jbe 0x4a1df7
lea eax, [esp + 0x28]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.004a1b9c
add esp, 8
jmp 0x4a1e1a
cmp ebx, 1
jne 0x4a1e09
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.004a20e1
add esp, 0xc
cmp ebx, 1
jbe 0x4a1e4e
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
jbe 0x4a1e35
mov dl, byte [esi + eax - 8]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jb 0x4a1e29
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
pop esi
xor eax, eax
pop ebx
add esp, 0x88
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x88
ret
Function at 0x4a1e66
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0x98]
push ebp
lea ebp, [eax + 7]
push esi
shr ebp, 3
and eax, 7
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], eax
jne 0x4a1e99
mov dword [esp + 0x20], 8
xor edx, edx
cmp ebp, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
jbe 0x4a1f82
lea eax, [ebp - 2]
xor esi, esi
cmp eax, edx
mov dword [esp + 0x24], esi
jbe 0x4a1f82
jmp 0x4a1ec9
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x4a1f39
push edx
lea edx, [esp + 0x34]
push edx
push ebx
call fcn.004a20e1
mov esi, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x38], esi
lea eax, [esp + 0x38]
mov edi, 0x19
mov ecx, dword [eax]
mov edx, dword [esp + 0x34]
add ecx, edx
mov ebp, esi
mov dword [eax + 4], ecx
mov edx, dword [eax]
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
add eax, 4
shl ebp, cl
mov ecx, edx
mov edx, ebp
mov ebp, esi
shr ebp, cl
or edx, ebp
mov ebp, dword [esp + 0x3c]
xor ebp, edx
dec edi
mov dword [esp + 0x3c], ebp
jne 0x4a1efa
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x4a1f47
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.004a1c25
add esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor eax, edx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
add ebx, 8
inc esi
lea eax, [ebp - 2]
cmp esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], esi
jb 0x4a1ec7
xor edx, edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
cmp ecx, edx
mov dword [esp + 0x14], edx
jbe 0x4a1fa7
mov eax, ecx
lea esi, [ebx + 8]
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebp, 1
jne 0x4a1fbc
push edx
push edx
push ebx
call fcn.004a20e1
add esp, 0xc
jmp 0x4a2044
cmp ebp, 2
jne 0x4a1fce
push edx
push edx
push ebx
call fcn.004a20e1
add esp, 0xc
jmp 0x4a1fe1
lea ecx, [esp + 0x38]
push ecx
push ebx
call fcn.004a1c25
add esp, 8
cmp ebp, 1
jbe 0x4a2044
mov edx, dword [ebx]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x20]
xor esi, edx
mov edx, dword [esp + 0x14]
xor edx, eax
xor eax, eax
test edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
jbe 0x4a2022
mov ecx, ebx
lea edx, [esp + 0x10]
sub ecx, edx
mov dl, byte [eax + ebx + 8]
lea esi, [esp + eax + 0x10]
inc eax
mov byte [esi + ecx], dl
mov dl, byte [esi]
mov byte [eax + ebx + 7], dl
cmp eax, edi
jb 0x4a200c
cmp ebp, 2
jne 0x4a2036
push 0
push 0
push ebx
call fcn.004a20e1
add esp, 0xc
jmp 0x4a2044
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.004a1c25
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x1c]
xor eax, edx
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret
Function at 0x40236f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x4023b0
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x402389
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x4023ce
dec esi
je 0x4023c5
dec esi
jne 0x4023d3
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4063fa
Capabilities:
Create http request
Create thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
push ebx
push ebx
push 0x480870
mov dword [edi + 8], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [edi + 4]
mov esi, eax
push ecx
push ebx
push esi
push 0x4064a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40694c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
push edi
mov edi, ecx
test ebx, ebx
je 0x4069a0
test edi, edi
je 0x4069a4
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406964
sub ecx, edx
je 0x4069a0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406974
sub ecx, edx
je 0x4069a0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x480914
call esi
push ebx
call esi
push 0x480928
call esi
push edi
call esi
push 0x480934
call esi
test edi, edi
jne 0x4069df
mov esi, dword [0x4ae254]
test esi, esi
je 0x406a0e
xor edi, edi
push edi
push edi
push 0x12
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call fcn.0043d685
pop ecx
mov dword [0x4ae254], edi
jmp 0x406a0e
cmp dword [0x4ae254], 0
jne 0x406a04
push 0x10
call fcn.0043d6b0
pop ecx
test eax, eax
je 0x4069fd
mov ecx, eax
call fcn.004063fa
jmp 0x4069ff
xor eax, eax
mov dword [0x4ae254], eax
push dword [ebp + 8]
push ebx
push edi
call fcn.00406446
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408db7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
push 0x100
lea eax, [edi + 8]
mov dword [edi + 0x108], ebx
lea esi, [edi + 0x120]
mov byte [eax], bl
push eax
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov byte [edi + 0x10c], 1
mov byte [edi + 0x124], 1
mov dword [esi], ebx
mov dword [edi + 0x11c], ebx
call fcn.0043e29a
mov eax, dword [ebp + 0xc]
push 8
push 8
mov dword [edi + 0x108], eax
call fcn.0043e307
add esp, 0x14
mov dword [edi + 0x114], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push ebx
push edi
push 0x408ff0
push ebx
push ebx
mov dword [edi + 0x11c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x118], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x408e4d
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, edx
push esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408e59
sub ecx, esi
pop esi
je 0x408e9d
mov al, byte [edx + ecx - 1]
cmp al, 0x2e
je 0x408e7d
cmp al, 0x78
je 0x408e7d
cmp al, 0x58
je 0x408e7d
cmp al, 0x30
jl 0x408e80
cmp al, 0x39
jg 0x408e80
dec ecx
jne 0x408e65
test ecx, ecx
je 0x408e9d
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x408e98
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x408ea4
or eax, 0xffffffff
jmp 0x408ea4
push edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
pop ebp
ret 4
Function at 0x408ea8
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
jne 0x408f6f
lea eax, [esp + 0x18]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
lea edi, [esi + 8]
cmp byte [edi], 0
jne 0x408ef4
push dword [ebp + 8]
push 0x100
push edi
call fcn.0043e29a
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0x108], eax
mov cl, byte [esi + 0x10c]
push 6
pop eax
push 0x11
pop edx
test cl, cl
cmovne eax, edx
push eax
xor eax, eax
test cl, cl
setne al
inc eax
push eax
push 2
pop eax
push eax
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi + 4], eax
test eax, eax
jne 0x408f24
xor al, al
jmp 0x408f71
push 2
pop eax
push edi
mov word [esp + 0xc], ax
call fcn.00408e4d
mov dword [esp + 0xc], eax
movzx eax, word [esi + 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x408f6f
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_closesocket]
and dword [esi + 4], 0
mov byte [edi], 0
jmp 0x408f20
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a6e8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, ecx
xor edi, edi
push edi
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x480c60
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0x480c7c
push ebx
call esi
push 0x480c8c
push ebx
mov dword [ebp - 8], eax
call esi
push 0x480c9c
mov edi, eax
push ebx
mov dword [ebp - 0x24], edi
call esi
push 0x480cb0
push ebx
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 8], 0
mov dword [ebp - 0x20], eax
je 0x40a85f
test edi, edi
je 0x40a85f
cmp dword [ebp - 4], 0
je 0x40a85f
test eax, eax
je 0x40a85f
xor edi, edi
push edi
push 0x2000000
push 3
push edi
push edi
push 0x60000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a85f
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
push edi
push edi
push 4
push 1
push esi
call dword [ebp - 8]
cmp dword [ebp - 0x1c], edi
jne 0x40a7b4
cmp dword [ebp - 0xc], edi
jne 0x40a84f
xor ecx, ecx
mov word [ebp - 0x18], 0x500
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push eax
call dword [ebp - 0x20]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x28], eax
inc ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x40], ecx
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x10000000
push eax
xor edi, edi
mov dword [ebp - 0x3c], 3
push ecx
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a837
push edi
push eax
push edi
push edi
push 4
push 1
push esi
call dword [ebp - 0x24]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], edi
je 0x40a848
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a9d4
Capabilities:
Hash data using rshash

Disassembly:
push esi
push edi
mov esi, edx
mov edi, 0xf8c9
xor edx, edx
jmp 0x40a9f0
imul edx, edi
movsx eax, al
imul edi, edi, 0x5c6b7
add edx, eax
inc ecx
mov al, byte [ecx]
test al, al
jne 0x40a9e1
test esi, esi
je 0x40aa00
mov eax, edx
xor edx, edx
div esi
pop edi
mov eax, edx
pop esi
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b919
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret